Skip to contentSkip to conversation

booting initramfs

U-Boot cjjoy1980 2 participants 2 messages Sep 17, 2008

lore
Share & tools
lore

cjjoy1980

author
#0 lore raw

Hi all!
I am trying to boot my board with initramfs file system. After loading the kernel image and initramfs onto uboot, executing bootm command gave me
errors of "bad magic number". Then I tried to append header information
using
mkimage, here's what I executed:

/tools/mkimage -A ppc -O linux -T filesystem -C gzip -n 'Initramfs root file' -d /exports/myinitramfs.cpio.gz myramfs

Image Name:   Initramfs root file
Created:      Tue Sep 16 21:28:41 2008
Image Type:   PowerPC Linux Filesystem Image (gzip compressed)
Data Size:    51685255 Bytes = 50473.88 kB = 49.29 MB
Load Address: 0x00000000
Entry Point:  0x00000000  

When I try to boot this image, I am getting "No Linux PPC Ramdisk Image"

## Loading RAMDisk Image at 00900000 ...

   Image Name:   Initramfs root file
   Image Type:   PowerPC Linux Unknown Image (gzip compressed)
   Data Size:    51685255 Bytes = 49.3 MB

Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
No Linux PPC Ramdisk Image
(u-boot restarts after this)

1. Where am I going wrong. Can I not boot using Initramfs, or should I create Ramdisk image only for booting the board.
2. If I need to create ramdisk using genext2fs is there any size restriction, that the file size should be
less than 8 MB?

Please let me know.

Thanks,
joy

Signature · 2 lines
View this message in context: http://www.nabble.com/booting-initramfs-tp19531737p19531737.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw

Dear cjjoy1980,

Quoted 6 lines · In message <[email protected]> you wrote:

I am trying to boot my board with initramfs file system. After loading the kernel image and initramfs onto uboot, executing bootm command gave me
errors of "bad magic number". Then I tried to append header information
using
mkimage, here's what I executed:

...

Quoted 2 lines

1. Where am I going wrong. Can I not boot using Initramfs, or should I create Ramdisk image only for booting the board.

Initramfs != ramdisk.

Quoted 3 lines

2. If I need to create ramdisk using genext2fs is there any size restriction, that the file size should be
less than 8 MB?

No.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Most people would like to be delivered  from  temptation  but  would
like it to keep in touch."                             - Robert Orben