[U-Boot-Users] bootm as a script -- requires HUSH?
Kumar Gala
galak at kernel.crashing.org
Thu Aug 7 23:01:38 CEST 2008
On Aug 7, 2008, at 3:47 PM, Wolfgang Denk wrote:
> In message <45CA6EEB-4A74-46FC-A544-
> B71C0E922753 at kernel.crashing.org> you wrote:
>>
>> On Aug 7, 2008, at 2:34 PM, Wolfgang Denk wrote:
>>
>>> In any case, I expoect the total numbers of lines of code in U-
>>> Boot to
>>> go down by quite an amount - for example, if we manage to get rid of
>>> all the code duplication we have now across architectures.
>>
>> I doubt this is really going to happen because the majority of code
>> is
>> specific to the mechanism used to boot a kernel that is arch
>> specific.
>>
>> (ie, the ePAPR style interface on PPC, the TAGs support on ARM, etc.)
>>
>> I dont see how we reduce code in that area (since it seems
>> fundamentally arch specific).
>
> There is a lot of common code - verify and uncompress the Linux kernel
> image; check for existence of, then verify and load the ramdisk, etc.
I agree that there is probably a far amount of code in lib_ppc/bootm.c
that can be made common above it.
The ARCH specific bits seem to be the "jump" and the specific
mechanism to pass boot information to the kernel (bd_t, fdt, ARM tags,
etc).
- k
More information about the U-Boot
mailing list