At this moment I am quite sure that the
uImage is ok, but something is wrong with my
uInitrd.
On the external usb HDD I have a boot patition (ext3), with the follwing files on it:
lrwxrwxrwx 1 root root 19 Sep 26 21:38 config -> /boot/config-2.6.32
-rw-r--r-- 1 root root 70107 Sep 26 21:38 config-2.6.32
-rw-r--r-- 1 root root 84207 Sep 19 04:53 config-2.6.32-5-kirkwood
lrwxrwxrwx 1 root root 17 Sep 26 23:03 initrd.img -> initrd.img-2.6.32
-rw-r--r-- 1 root root 4626611 Sep 27 00:05 initrd.img-2.6.32
-rw-r--r-- 1 root root 5664915 Sep 21 22:13 initrd.img-2.6.32-5-kirkwood
drwx------ 2 root root 12288 Sep 21 21:45 lost+found
lrwxrwxrwx 1 root root 23 Sep 26 21:38 System.map -> /boot/System.map-2.6.32
-rw-r--r-- 1 root root 1077641 Sep 26 21:38 System.map-2.6.32
-rw-r--r-- 1 root root 1002661 Sep 19 04:53 System.map-2.6.32-5-kirkwood
-rw-r--r-- 1 root root 2125248 Sep 27 00:00 uImage
-rw-r--r-- 1 root root 1431848 Sep 21 22:13 uImage.0
-rw-r--r-- 1 root root 4626699 Oct 3 16:50 uInitrd
-rw-r--r-- 1 root root 5664979 Sep 21 22:13 uInitrd.0
lrwxrwxrwx 1 root root 20 Sep 26 21:38 vmlinuz -> /boot/vmlinuz-2.6.32
-rw-r--r-- 1 root root 1564304 Sep 26 21:38 vmlinuz-2.6.32
-rw-r--r-- 1 root root 1431784 Sep 19 04:52 vmlinuz-2.6.32-5-kirkwood
uImage.0 and
uInitrd.0 are the original Debian files from
http://www.cyrius.com/debian/kirkwood/openrd/install.htmluImage and
uInitrd are the new files that I want to use.
In the same order, the follwing uboot environment boots successfully:
setenv bootargs_console console=ttyS0,115200
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x01100000 /uInitrd.0; ext2load usb 0:1 0x00800000 /uImage.0'
setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_usb; bootm 0x00800000 0x01100000; reset'
saveenv
but this one:
setenv bootargs_console console=ttyS0,115200
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x01100000 /uInitrd; ext2load usb 0:1 0x00800000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_usb; bootm 0x00800000 0x01100000; reset'
saveenv
stops with:
2125248 bytes read
## Booting image at 00800000 ...
Image Name: Linux-2.6.32
Created: 2010-09-26 21:00:41 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2125184 Bytes = 2 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
Bad Magic Number
Bÿ
The
uInitrd image has been made on target with:
mkinitramfs -k -o ~/tmp/uInitrd 2.6.32
Anything wrong with that ? What would be the proper command ?