All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] Booting multi-file images with a FDT but no initrd
@ 2007-12-04 14:04 Simon Kagstrom
  2007-12-04 15:28 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Kagstrom @ 2007-12-04 14:04 UTC (permalink / raw)
  To: u-boot

Hello U-boot list!

I'm using U-boot 1.3.0 to boot Linux on a Freescale MPC8349E-mITX, and
I have a small issue with multi-file images. I use a device tree but no
initrd, and I'm not quite sure how to boot the image in a good way. The
image is created in this way:

   mkimage -A ppc -O Linux -T multi -d vmlinux.bin.gz:cmxb.dtb /tftpboot/vmlinux+fdt.img

I can boot it with (in U-boot)

   setenv loadaddr 600000
   tftp $loadaddr /tftpboot/vmlinux+fdt.img
   bootm $loadaddr - 7a9634

and it starts just fine. My issue is with the address of the FDT - I'd
like to avoid having to hardcode this address since the kernel size can
change. If I just do 'bootm' or 'bootm $loadaddr -' it will end with

   Verifying Checksum ... OK
   Uncompressing Multi-File Image ... OK
   Loading Ramdisk to 0ff6c000, end 0ff6f000 ... OK

and just lock there. So to the question: Is it possible to boot a
multifile image in this way without having an initrd and without the
hardcoded address, or must I modify the U-boot code to get such
functionality?

// Simon

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

* [U-Boot-Users] Booting multi-file images with a FDT but no initrd
  2007-12-04 14:04 [U-Boot-Users] Booting multi-file images with a FDT but no initrd Simon Kagstrom
@ 2007-12-04 15:28 ` Wolfgang Denk
  2007-12-05  9:58   ` Simon Kagstrom
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2007-12-04 15:28 UTC (permalink / raw)
  To: u-boot

In message <20071204150416.7aa7dda6@seasc0532.dyn.rnd.as.sw.ericsson.se> you wrote:
> 
> I'm using U-boot 1.3.0 to boot Linux on a Freescale MPC8349E-mITX, and
> I have a small issue with multi-file images. I use a device tree but no
> initrd, and I'm not quite sure how to boot the image in a good way. The
> image is created in this way:

In theory this should "just work", but  it  doesn't  at  the  moment.
There  are  plans  to  implement  a  more  flexible format for U-Boot
images, especially for  multi-file  images,  which  will  solve  this
problem.

Best regards,

Wolfgang Denk

-- 
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
No journaling file system can recover your data if the disk dies.
                                 - Steve Rago in <D4Cw1p.L9E@plc.com>

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

* [U-Boot-Users] Booting multi-file images with a FDT but no initrd
  2007-12-04 15:28 ` Wolfgang Denk
@ 2007-12-05  9:58   ` Simon Kagstrom
  2007-12-05 10:08     ` Bartlomiej Sieka
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Kagstrom @ 2007-12-05  9:58 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

On Tue, 04 Dec 2007 16:28:24 +0100
Wolfgang Denk <wd@denx.de> wrote:

> In message
> <20071204150416.7aa7dda6@seasc0532.dyn.rnd.as.sw.ericsson.se> you
> wrote:
> > 
> > I'm using U-boot 1.3.0 to boot Linux on a Freescale MPC8349E-mITX,
> > and I have a small issue with multi-file images. I use a device
> > tree but no initrd, and I'm not quite sure how to boot the image in
> > a good way. The image is created in this way:
> 
> In theory this should "just work", but  it  doesn't  at  the  moment.
> There  are  plans  to  implement  a  more  flexible format for U-Boot
> images, especially for  multi-file  images,  which  will  solve  this
> problem.

Thanks for the information.

I solved it for now by creating a standalone application which reads
the multi-file image and sets the "fdtaddr" environment variable if it
finds one. I can thereafter boot with (basically)

  tftp $loadaddr ...
  tftp 40000 .../parse-multifile
  go 40004 $loadaddr
  bootm $loadaddr - $fdtaddr

If anyone is interested, I can send the short C-file.

// Simon

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

* [U-Boot-Users] Booting multi-file images with a FDT but no initrd
  2007-12-05  9:58   ` Simon Kagstrom
@ 2007-12-05 10:08     ` Bartlomiej Sieka
  2007-12-05 10:30       ` Simon Kagstrom
  0 siblings, 1 reply; 5+ messages in thread
From: Bartlomiej Sieka @ 2007-12-05 10:08 UTC (permalink / raw)
  To: u-boot

Simon Kagstrom wrote:
[...]
>>> I'm using U-boot 1.3.0 to boot Linux on a Freescale
>>> MPC8349E-mITX, and I have a small issue with multi-file images. I
>>> use a device tree but no initrd, and I'm not quite sure how to
>>> boot the image in a good way. The image is created in this way:
[...]
> I solved it for now by creating a standalone application which reads 
> the multi-file image and sets the "fdtaddr" environment variable if
> it finds one.

Hi Simon,

Another workaround is to use a mulit-image file with three images
(kernel, initrd, blob) and ignore the second one by calling "bootm
<addr> -". Note that the second image in the file can a bogus one-byte
file (it needs to be at least one byte in size, because mkimage refuses
the create a multi-image file with a zero-sized member).

Note that this booting scenario will be supported in a much more elegant
manner once the new image format is developed. Please stay tuned.

Regards,
Bartlomiej

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

* [U-Boot-Users] Booting multi-file images with a FDT but no initrd
  2007-12-05 10:08     ` Bartlomiej Sieka
@ 2007-12-05 10:30       ` Simon Kagstrom
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Kagstrom @ 2007-12-05 10:30 UTC (permalink / raw)
  To: u-boot

On Wed, 05 Dec 2007 11:08:46 +0100
Bartlomiej Sieka <tur@semihalf.com> wrote:

> Another workaround is to use a mulit-image file with three images
> (kernel, initrd, blob) and ignore the second one by calling "bootm
> <addr> -". Note that the second image in the file can a bogus one-byte
> file (it needs to be at least one byte in size, because mkimage
> refuses the create a multi-image file with a zero-sized member).

Ah, you are right. I thought I tested this before but apparently I did
some mistake then. It boots OK now, and this is clearly a more clean
workaround until the new image format arrives.

Thanks,
// Simon

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

end of thread, other threads:[~2007-12-05 10:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-04 14:04 [U-Boot-Users] Booting multi-file images with a FDT but no initrd Simon Kagstrom
2007-12-04 15:28 ` Wolfgang Denk
2007-12-05  9:58   ` Simon Kagstrom
2007-12-05 10:08     ` Bartlomiej Sieka
2007-12-05 10:30       ` Simon Kagstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.