Bundle kernel image,file system image and DTS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Bundle kernel image,file system image and DTS

1,650 次查看
ramakrishnakatt
Contributor II

Hi,

General uboot we load

tftp 1000000 /auto/tftp-blr-users1/ramakatt/test/uImage-p5040ds.bin

tftp 2000000 /auto/tftp-blr-users1/ramakatt/test/fsl-image-flash-p5040ds.ext2.gz.u-boot

tftp c00000 /auto/tftp-blr-users1/ramakatt/test/uImage-p5040ds.dtb

bootm 1000000 2000000 c00000

But I have to Bundle kernel image,file system image and DTS as single image. I have to load that single image from our custom boot loader. Is this possible?

If  this possible please tell what all the steps has to be done to achieve this.

Thanks

Rama

0 项奖励
回复
2 回复数

1,223 次查看
bpe
NXP Employee
NXP Employee

Well, if you are designing a custom bootloader, you only need to know how to

inform the kernel of the location of the DTB and the root filesystem (initrd).

You then can pack everything in the manner you prefer, and unpack and transfer

the information mentioned above when you boot the kernel. The kernel expects

a pointer to the DTB in r3, the start address of the initrd in r4 and the end address of

initrd in r5. Take a look at arch/powerpc/kernel/head_fsl_booke.S for better

understanding.

If you wish to use a combined image format that already exists, take a look at

zImage. This format can combine all three components. Study the following

for more information:

Documentation/powerpc/bootwrapper.txt

arch/powerpc/boot/wrapper

All paths above are from the top level of the kernel source directory hierarchy.

I would also recommend to study Section 5 of ePAPR to understand how the bootloader,

the device tree and the kernel interact. This document can be downloaded from here:

http://www.freescale.com/infocenter/topic/QORIQSDK/2888193.html


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,223 次查看
scottwood
NXP Employee
NXP Employee

If you use zImage and the bootwrapper, then U-Boot will not see the device tree and will not make important fixups.

The right way to do this is with FIT images.  See doc/uImage.FIT/ in the U-Boot source tree.

0 项奖励
回复