U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] Problem with bootm command
@ 2005-07-25 12:54 Mirco Fuchs
  2005-07-25 13:09 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Mirco Fuchs @ 2005-07-25 12:54 UTC (permalink / raw)
  To: u-boot

I have a problem getting started a 2.6.12 kernel with initrd on my csb637 board using u-boot 1.1.3 as bootloader.
I allready searched the mailing list archive but i did not find a solution for this problem.

I placed an initrd- u-boot image to 0x10160000 and an u-boot kernel image to 0x10040000. My kernel parameters are as follows:

mem=64M console=ttyS0,115200 initrd=0x21200000,0x001b06b6 root=/dev/ram rw

The kernel is compiled with initrd support.
When using the u-boot 'bootm 0x10040000 0x10160000' command, the kernel is decompressed and starts but is not able to mount the initrd as it's root file system.
If I change the kernel command line to

mem=64M console=ttyS0,115200 initrd=0x21200040,0x001b06b6 root=/dev/ram rw, the kernel boots 
correctly with initrd as it's root fs.

The images were created with the mkimage tool delivered with u-boot. For creating the initrd image i used the following command:

mkimage -n 'rootfs' -A arm -O linux -T ramdisk -C gzip -a 0x21200000 -e 0x21200000 initrd.bin initrd.img

I think the problem occures because of the added file-header to the initrd binary file. I compared the original binary file with the u-boot initrd image and found out, that a header with the size of 0x40 bytes is appended at the beginning of the original binary file.
Maybe i only have to change the Entry Point to 0x21200040, but normally i do not know the size of the appended header information.

I thought that when using the bootm command u-boot copies the initrd image to it's designated sdram location without the header information (-- but obviously it does not), am i wrong? Maybe there's another mistake.


Best Regards

Mirco
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot-Users] Problem with bootm command
  2005-07-25 12:54 [U-Boot-Users] Problem with bootm command Mirco Fuchs
@ 2005-07-25 13:09 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-07-25 13:09 UTC (permalink / raw)
  To: u-boot

In message <2824371@web.de> you wrote:
> 
> I have a problem getting started a 2.6.12 kernel with initrd on my csb637 =
> board using u-boot 1.1.3 as bootloader.

And what makes you think this is an U-Boot related question?

> mem=64M console=ttyS0,115200 initrd=0x21200000,0x001b06b6 root=/dev/ram rw

The command is bogus. For a correct port, there is no  need  to  pass
mem= or initrd= at all.

All this has been discussed many, many times before. I am not willing
to repeat it here, especially since I think it is off topic  on  this
list.

> I think the problem occures because of the added file-header to the initrd
>  binary file. I compared the original binary file with the u-boot initrd i

No, this file header is needed by U-Boot.

> Maybe i only have to change the Entry Point to 0x21200040, but normally i
> do not know the size of the appended header information.

A ram disk has no entry point at all.

> I thought that when using the bootm command u-boot copies the initrd image
>  to it's designated sdram location without the header information (-- but
> obviously it does not), am i wrong? Maybe there's another mistake.

For a correct port of U-Boot and Linux that's how it works.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Vulcans worship peace above all.
	-- McCoy, "Return to Tomorrow", stardate 4768.3

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-25 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-25 12:54 [U-Boot-Users] Problem with bootm command Mirco Fuchs
2005-07-25 13:09 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox