[U-Boot] [PATCH V6] BOOT: Add "bootz" command to boot Linux zImage on ARM

Rob Herring robherring2 at gmail.com
Thu Mar 15 20:48:47 CET 2012


On 03/15/2012 02:05 PM, Marek Vasut wrote:
> Dear Rob Herring,
> 
>> On 03/15/2012 02:52 AM, Marek Vasut wrote:
>>> From: Marek Vasut <marek.vasut at gmail.com>
>>>
>>> This command boots Linux zImage from where the zImage is loaded to.
>>> Passing initrd and fdt is supported.
>>
>> This is great! However, the initrd is still in the u-boot image format,
>> right?
>>
>> If a raw initrd is supported, then we could get rid of flash-kernel on
>> disk-based debian/ubuntu systems. The file size is known from the
>> filesystem, but then needs to get to the bootz command somehow.
> 
> Yes. Initrd still needs a bit of work, ideas?

How about:

bootz <kern addr> [<fdt addr> [<initrd addr> [<initrd size>]]]

I changed the order so the size can be optional without resorting to
using a "-". Then no size means u-boot image format.

File load commands would need to set loadsize env var.

Another idea is to prepend the u-boot image header on file loading. This
would need some way to disable the crc check and specify any other data.
It would probably be hard to do without changing existing commands.

Rob


More information about the U-Boot mailing list