I'm struggling with getting initrd working....
I'm following the instructions here:
http://wiki.embeddedarm.com/wiki/Linux_for_ARM_on_TS-72XX_User's_Guide#Booting_to_an_initrd_Image_from_RedBoot
I've built the initrd and I think it should boot (at least it's got all
the pieces parts) but the kernel can't read the initrd image. I built
it using cpio.
Here's what I'm doing to boot it:
RedBoot> load -r -b 0x00600000 -m disk hda1:initrd
Raw file loaded 0x00600000-0x007410bf, assumed entry at 0x00600000
RedBoot> load -r -b 0x00218000 -m disk hda1:openwrt-ts72xx-zImage
Raw file loaded 0x00218000-0x0039e5ff, assumed entry at 0x00218000
Not sure what the below errors mean:
RedBoot> exec -r 0x00600000 -b 0x00218000 -c "console=ttyAM0,115200
root=/dev/ram0 init=/init rw"
Length required for non-standard base address
RedBoot> exec -b 0x00218000 -r 0x00600000 -c "console=ttyAM0,115200
root=/dev/ram0 init=/init rw"
Length required for non-standard base address
RedBoot> exec -b 0x00218000 -c "console=ttyAM0,115200 root=/dev/ram0
init=/init rw"
Length required for non-standard base address
It finally boots with this line:
RedBoot> exec -r 0x00600000 -c "console=ttyAM0,115200 root=/dev/ram0
init=/init rw"
Using base address 0x00218000 and length 0x00186600
Uncompressing Linux... done, booting the kernel.
But it dies here:
[ 6.580000] scsi 0:0:0:0: Direct-Access ATA TOSHIBA THNCF1G0
3.00 PQ: 0 ANSI: 5
[ 6.600000] sd 0:0:0:0: [sda] 2000880 512-byte logical blocks: (1.02
GB/976 MiB)
[ 6.610000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 6.620000] sd 0:0:0:0: [sda] Write Protect is off
[ 6.620000] sd 0:0:0:0: [sda] Write cache: disabled, read cache:
enabled, doesn't support DPO or FUA
[ 6.640000] sda: sda1 sda2
[ 6.650000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 6.660000] List of all partitions:
[ 6.670000] 1f00 8192 mtdblock0 (driver?)
[ 6.670000] 0800 1000440 sda driver: sd
[ 6.680000] 0801 62968 sda1
00000000-0000-0000-0000-000000000000
[ 6.680000] 0802 937440 sda2
00000000-0000-0000-0000-000000000000
[ 6.690000] No filesystem could mount root, tried: ext3 ext2 ext4
squashfs vfat
[ 6.700000] Kernel panic - not syncing: VFS: Unable to mount root fs
on unknown-block(1,0)
The kernel has RAM block device support built into it. It looks like it
can't read the cpio archive. I thought that was supported natively in
the kernel? What am I missing?
Is anyone using initrd?
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|