Linux kernel 3.x with imx_bootlet

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linux kernel 3.x with imx_bootlet

1,920 Views
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

Labels (2)
Tags (3)
0 Kudos
Reply
3 Replies

1,404 Views
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,404 Views
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 Kudos
Reply

1,404 Views
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 Kudos
Reply