How to convert vmlinux into uImage

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

How to convert vmlinux into uImage

2,660 Views
davidzhou
Contributor V

Hi,

I have imx6ul and Linux 4.15

I am trying to use uImage for booting process. Currentlt zImage is created from vmlinux ( I believe).

The vmlinux is ELF 32-bit LSB relocatable, ARM, version1, statically linked, not stripped.

I converted from vmlinux into uImage. Using bootm, everything is fine upto kernel_entry(); Stuck when control is transferred into kernel. The loadaddr of the vmlinux is 0x001010100. Usning mkimage, I set loadaddr and entry point to 0x80008000. The command as follows:

mkimage -A arm -T kernel -C none -O linux -a 0x80008000 -e 0x80008000 -n "Linux" -d vmlinux uImage

By the way, what is the best way to make uImage?

What did I missed?

Thank you,

David Zhou

0 Kudos
1 Reply

1,713 Views
davidzhou
Contributor V

I worked out a way to create uImage by installing tool chain, and use:

make -j8 LOADADDR=0x80008000 uImage

The uImage is good

Thank you,

David