Linux kernel 3.x with imx_bootlet

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

Linux kernel 3.x with imx_bootlet

1,914 次查看
victorien
Contributor IV

Hi,

For a specific application, I need to boot linux 3.14 (with device tree) with imxbootlet and without bootloader (uboot or barebox). It's work with a kernel 2.6 but not with kernel 3.14.

I use this tool :

- custom board with imx28

- imx-bootlet-src-10.12.01

- CodeSourcery lite compilater

- elftosb 10.12.01

Is there anybodoby who know how to do that ?

Thanks

标签 (2)
标记 (3)
0 项奖励
回复
3 回复数

1,398 次查看
fabio_estevam
NXP Employee
NXP Employee

Kernel 3.14 uses device tree, so you need to create a dts file for your board.

Check arch/arm/boot/dts/imx28-evk.dts for a reference.

Then you generate a dtb:

make imx28-evk.dtb

It would be easier to use U-boot to boot your kernel and dtb, but if you can't use U-boot and need to use the bootlets to run the kernel, then you could do:

- Select CONFIG_ARM_APPENDED_DT=y

- Build the kernel

- Combine the kernel and dtb: cat zImage imx28-evk.dtb > my-zImage

- Boot my-zImage as usual

Also, with kernel mainline the console is ttyAMA0 instead of ttyAM0

Hope this helps.

Regards,

Fabio Estevam

1,398 次查看
victorien
Contributor IV

It's work !

Your answer is correct but you need to add another option on the kernel :

CONFIG_ARM_ATAG_DTB_COMPAT=y

And finaly, modify linux_ivt.bd and replace ./zImage with my-zImage

0 项奖励
回复

1,398 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I have not tried that out. But can you share the steps you have tried so far?

Regards,

Alejandro

0 项奖励
回复