[U-Boot] [PATCH 05/10] pxe: use bootz instead of bootm when enabled

Rob Herring robherring2 at gmail.com
Mon Dec 3 15:16:46 CET 2012


On 12/03/2012 06:22 AM, Wolfgang Denk wrote:
> Dear Rob Herring,
> 
> In message <1354503629-25621-6-git-send-email-robherring2 at gmail.com> you wrote:
>> From: Rob Herring <rob.herring at calxeda.com>
>>
>> Standard pxelinux servers would use zImage rather than u-boot image
>> format, so use bootz instead of bootm if enabled.
> 
> Why would this be the case?  We should encourage the use of a
> checksum-protected image format, i. e. the default setting should be
> for FIT images, followed by legacy U-Boot images, and fall back on
> archaic formats like zImage only when there is really no other way.
> 

There is no way for the client to tell the server what kind of client it
is and therefore what kind of image to serve. There is the dhcp client
id string, but that can't be used in situations were you don't control
the dhcp server setup. That problem is also the reason for patch 9 where
you can't distinguish between x86 and ARM for "default".

When we have systems that boot from UEFI, they will certainly not use
u-boot image formats and we don't want to have different setup based on
the client/bootloader type.

I can actually just make this run-time rather than compile time. When
do_bootm returns when it fails to find a valid u-boot image, I can just
call do_bootz.

Rob


More information about the U-Boot mailing list