Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 46986

Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)

$
0
0
ok. Thats basically what the archlinux install script was doing for the most part. this is the install script I have modified and am running. But the problem is that its starts the boot then hangs at "[ 14.613752] Waiting for root device /dev/sda2..." Below is the full boot output

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: ST3500514NS                              Firm: SN12     Ser#:             9WJ0JH9J
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)


2319128 bytes read
## Booting image at 02000000 ...
   Image Name:   Linux-3.12.0-kirkwood-tld-3
   Created:      2013-12-14   6:18:48 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2319064 Bytes =  2.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.12.0-kirkwood-tld-3 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #3 PREEMPT Wed Nov 27 16:10:                                 53 PST 2013
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: ZyXEL NSA325 2-Bay Power Media Server
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0659a20, node_mem_map c06c7000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x8000                                 0(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/sda2 rw rootwait loglevel=8
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 512808K/524288K available (4398K kernel code, 333K rwdata, 1540K rodata, 206K init, 420K bss, 11480K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05d4ce0   (5940 kB)
[    0.000000]       .init : 0xc05d5000 - 0xc0608ac4   ( 207 kB)
[    0.000000]       .data : 0xc060a000 - 0xc065d574   ( 334 kB)
[    0.000000]        .bss : 0xc065d574 - 0xc06c680c   ( 421 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[   12.359357] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
[   12.399173] pid_max: default: 32768 minimum: 301
[   12.399256] Security Framework initialized
[   12.399309] Mount-cache hash table entries: 512
[   12.399797] Initializing cgroup subsys devices
[   12.399815] Initializing cgroup subsys freezer
[   12.399826] Initializing cgroup subsys net_cls
[   12.399834] Initializing cgroup subsys blkio
[   12.399888] CPU: Testing write buffer coherency: ok
[   12.400174] Setting up static identity map for 0xc0428fd0 - 0xc042900c
[   12.401625] devtmpfs: initialized
[   12.403439] pinctrl core: initialized pinctrl subsystem
[   12.403695] regulator-dummy: no parameters
[   12.403944] NET: Registered protocol family 16
[   12.404255] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   12.404748] cpuidle: using governor ladder
[   12.404761] cpuidle: using governor menu
[   12.404850] Kirkwood: MV88F6282-Rev-A1, TCLK=200000000.
[   12.404866] Feroceon L2: Enabling L2
[   12.404891] Feroceon L2: Cache support initialised.
[   12.405135] initial MPP regs: 21111111 01103311 00051100 00000000 00000000 00000000 00000000
[   12.405156]   final MPP regs: 21111111 00003311 00051100 00000000 00000000 00000000 00000000
[   12.405600] Kirkwood PCIe port 0: link up
[   12.405607] PCI: bus0 uses PCIe port 0
[   12.405690] PCI host bridge to bus 0000:00
[   12.405704] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   12.405713] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   12.405721] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   12.405750] pci 0000:00:00.0: [11ab:6282] type 00 class 0x058000
[   12.405770] pci 0000:00:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff 64bit pref]
[   12.405782] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x1fffffff]
[   12.405815] pci 0000:00:00.0: supports D1 D2
[   12.405912] pci 0000:00:01.0: [1033:0194] type 00 class 0x0c0330
[   12.405942] pci 0000:00:01.0: reg 0x10: [mem 0x90000000-0x90001fff 64bit]
[   12.406041] pci 0000:00:01.0: PME# supported from D0 D3hot
[   12.406148] PCI: bus0: Fast back to back transfers disabled
[   12.406159] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[   12.406184] pci 0000:00:01.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[   12.408415] bio: create slab <bio-0> at 0
[   12.408718] vgaarb: loaded
[   12.408866] usbcore: registered new interface driver usbfs
[   12.408909] usbcore: registered new interface driver hub
[   12.408982] usbcore: registered new device driver usb
[   12.409484] Switched to clocksource orion_clocksource
[   12.423426] NET: Registered protocol family 2
[   12.423928] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[   12.424025] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   12.424075] TCP: Hash tables configured (established 4096 bind 4096)
[   12.424123] TCP: reno registered
[   12.424133] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   12.424152] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   12.424304] NET: Registered protocol family 1
[   12.424529] RPC: Registered named UNIX socket transport module.
[   12.424537] RPC: Registered udp transport module.
[   12.424542] RPC: Registered tcp transport module.
[   12.424547] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   12.424624] PCI: CLS 32 bytes, default 32
[   12.424850] NetWinder Floating Point Emulator V0.97 (double precision)
[   12.425273] audit: initializing netlink socket (disabled)
[   12.425303] type=2000 audit(0.050:1): initialized
[   12.425856] zbud: loaded
[   12.425953] VFS: Disk quotas dquot_6.5.2
[   12.425991] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   12.426258] NFS: Registering the id_resolver key type
[   12.426298] Key type id_resolver registered
[   12.426304] Key type id_legacy registered
[   12.426316] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   12.426427] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   12.426623] msgmni has been set to 1001
[   12.427941] alg: No test for stdrng (krng)
[   12.428005] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[   12.428014] io scheduler noop registered
[   12.428019] io scheduler deadline registered
[   12.428036] io scheduler cfq registered (default)
[   12.428211] mv_xor mv_xor.0: Marvell shared XOR driver
[   12.459546] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   12.499520] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   12.499592] mv_xor mv_xor.1: Marvell shared XOR driver
[   12.539521] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   12.579519] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   12.579707] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   12.600072] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   13.261624] console [ttyS0] enabled
[   13.265856] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 6                                 4
[   13.277926] Scanning device for bad blocks
[   13.370597] Bad eraseblock 796 at 0x000006380000
[   13.380077] Bad eraseblock 840 at 0x000006900000
[   13.405380] Creating 9 MTD partitions on "orion_nand":
[   13.410575] 0x000000000000-0x000000100000 : "uboot"
[   13.415642] 0x000000100000-0x000000180000 : "uboot_env"
[   13.421066] 0x000000180000-0x000000200000 : "key_store"
[   13.426467] 0x000000200000-0x000000280000 : "info"
[   13.431458] 0x000000280000-0x000000c80000 : "etc"
[   13.436326] 0x000000c80000-0x000001680000 : "kernel_1"
[   13.441665] 0x000001680000-0x000004640000 : "rootfs1"
[   13.446917] 0x000004640000-0x000005040000 : "kernel_2"
[   13.452257] 0x000005040000-0x000008000000 : "rootfs2"
[   13.457880] libphy: Fixed MDIO Bus: probed
[   13.462021] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.468573] ehci-pci: EHCI PCI platform driver
[   13.473089] ehci-orion: EHCI orion driver
[   13.477156] orion-ehci orion-ehci.0: EHCI Host Controller
[   13.482610] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   13.490304] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   13.509509] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   13.515563] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   13.522393] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.529652] usb usb1: Product: EHCI Host Controller
[   13.534551] usb usb1: Manufacturer: Linux 3.12.0-kirkwood-tld-3 ehci_hcd
[   13.541292] usb usb1: SerialNumber: orion-ehci.0
[   13.546249] hub 1-0:1.0: USB hub found
[   13.550051] hub 1-0:1.0: 1 port detected
[   13.554312] mousedev: PS/2 mouse device common for all mice
[   13.869520] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   14.020934] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[   14.027675] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   14.034855] usb 1-1: Product: USB2.0 Hub
[   14.039257] hub 1-1:1.0: USB hub found
[   14.043307] hub 1-1:1.0: 4 ports detected
[   14.569502] rtc-mv rtc-mv: internal RTC not ticking
[   14.574470] i2c /dev entries driver
[   14.578373] orion_gpio_is_valid: invalid GPIO 12
[   14.583502] drop_monitor: Initializing network drop monitor service
[   14.590022] TCP: cubic registered
[   14.593350] NET: Registered protocol family 17
[   14.597869] Key type dns_resolver registered
[   14.602496] registered taskstats version 1
[   14.607160] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[   14.613752] Waiting for root device /dev/sda2...


#!/bin/sh

#####
#  Created By: Jason Plum <jplum@archlinuxarm.org>
#  Prepared for: Arch Linux ARM
#  ----------
#  Automation to convert NSA-325 to Arch Linux ARM on /dev/sda
#  : /dev/sda is sata port 1, left side of enclosure.
#####
echo "Automatic Installation of Arch Linux ARM"

###
#  setup u-boot environment
echo "- set bootloader"
fw_setenv arcNumber 4495
fw_setenv mainlineLinux yes
fw_setenv bootargs_stock 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init'
fw_setenv bootcmd_stock 'setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)'
fw_setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/sda2 rw rootwait loglevel=8'
fw_setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /uImage; bootm $(loadaddr)'
#ArchLinuxArmBoot#fw_setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8'
#ArchLinuxArmBoot#fw_setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); usb reset; ext2load usb 0:1 $(loadaddr) /boot/uImage; ext2load usb 0:1 0x01100000 /boot/uInitrd; bootm $(loadaddr) 0x01100000'
fw_setenv to_stock "setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset"
fw_setenv to_linux "setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset"

###
#  setup the partitions on the disk (sdb)
#  : 16M 1st partition, ext2/3
echo "- parition sdb"
fdisk /dev/sdb <<EOF
o
n
p
1

+100M

n
p
2


p
w

EOF
echo " * pause for ioctl to re-sync partitions"
sleep 5
###
#  make filesystems
echo "- make filesystems"
#  ext2 makes u-boot happy.
mkfs.ext2 -L "boot" /dev/sdb1
#  stock does not know how to make ext4!
mkfs.ext3 -L "rootfs" /dev/sdb2

###
#  make dirs & mount
echo "- mount destination"
mkdir -p /tmp/boot
mount -t ext2 /dev/sdb1 /tmp/boot
mkdir -p /tmp/rootfs
mount -t ext3 /dev/sdb2 /tmp/rootfs

###
#  prepare the system
#  extract the rootfs
echo "- extract rootfs"
tar xzf /Stuff/debian/Debian-3.12.0-kirkwood-tld-3-rootfs-bodhi.tgz -C /tmp/rootfs/

#  copy the uImage to the boot partition
echo "- prepare boot partition"
cp -aR /tmp/rootfs/boot/* /tmp/boot/

#  always make sure you're sync'd!
sync

###
#  prepare for first boot
#  set the bootcmd to run the steps to convert.
fw_setenv bootcmd 'run to_linux'
###
#  we're done here
echo "Please reboot system"
sync
# reboot

Viewing all articles
Browse latest Browse all 46986

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>