[U-Boot] [help] how does u-boot passing ``fdt'' to linux kernel & where is cmd_line?

Kumar Gala galak at kernel.crashing.org
Mon Jul 13 16:53:12 CEST 2009


On Jul 13, 2009, at 9:39 AM, Baojun Wang wrote:

>>
>> Where is the code you are referencing above?  This is the "old"  
>> bd_t style
>> of booting.  Only the boot wrapper code or and old kernel would  
>> still be
>> using this.
>>
>> - k
>>
>
> the code is from arch/powerpc/boot/cuboot-bamboo.c, and the kernel is
> 2.6.30.1, the boot image I'm using is something like cuImage.bamboo, I
> checked zImage.ld.S, and found that when we're running cuImage.bamboo,
> we actually fall into arch/powerpc/boot/crt0.S:_zimage_start(), which
> will call platform_init() and then bamboo_init() finally. but sounds
> like if we passing r3 as fdt, then the code (platform_init, etc.., and
> even arch/powerpc/kernel/head_xxx.S start() function, only comments,
> though) is actually wrong, isn't it? Thank you very much for help.

This is the boot wrapper code only used if you are trying to boot a  
new kernel w/an old u-boot.  If you are using a current u-boot you  
should just be using a plain old uImage as produced by the kernel build.

- k


More information about the U-Boot mailing list