a question about compiling uboot or kernel for imx28

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

a question about compiling uboot or kernel for imx28

1,887 次查看
jonnyju
Contributor I

Dear all:

     as we all know, we call use ltib to compile all src code, and  get the image,

    

     but if i want to compile uboot or kernel or rootfs respectivly, without using ltib,

    

     ex: i patched kernel by hand, after configuring the kernel, run "make uImage",

     but the uImage i get seems to be different from the one compiled with ltib,

     i use mfg tools burn two uImage into flash, but the one compiled by hand can not work,

     while the one compiled with ltib works well.

     so if i want to compile uboot or kernel or rootfs respectivly, without using ltib, what should be paid attention to ?

标签 (1)
0 项奖励
回复
5 回复数

1,658 次查看
VladanJovanovic
NXP Employee
NXP Employee

When compiling u-boot or kernel for i.MX28 one thing to especially consier is that i.MX28 internal ROM does not boot u-boot.bin or uImage directly. Instead those have to package in a special binary format called bootstream.

So, every time you build u-boot or kernel, you will have to rebuild bootstream as well, so that it takes latest u-boot and/or kernel image!

Easiest to do this with LTIB:

./ltib -m prep -p kernel     //will unpack to <ltib>/rpm/BUILD/linux-.... ; patch as needed

./ltib -m scbuild -p kernel //will build kernel

./ltib -m scdeploy -p kernel //will deploy built kernel binary to <ltib>/rootfs

./ltib -p boot_stream.spec -f

Last command forces rebuild of bootstream. Do similar for u-boot as well.

1,658 次查看
fabio_estevam
NXP Employee
NXP Employee

I think it is easier to boot a mainline U-boot on mx28, so that you do not have to worry about the bootlets.

Instructions are here:

http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.mx28_common;h=8bacaf8a5e5a19b33b695b7861510bbbd...

1,658 次查看
jonnyju
Contributor I

thks, i got sb through bootlets.

0 项奖励
回复

1,658 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Have you set ARCH=arm and set CROSS_COMPILE before 'make' ?

0 项奖励
回复

1,658 次查看
jonnyju
Contributor I

of cause i did

0 项奖励
回复