Tuesday, February 22, 2022

[SOLVED] How to build uImage?

Issue

I have zImage and kernel source. I did

make zImage 

to generate the zImage.
When I flash this, the board won't boot up.
So how do I convert this to uImage which u-boot reads properly?
Thanks!


Solution

Install u-boot-tools. The command depends on your distribution. If you are using Debian/Ubuntu, it should look like

sudo apt-get install u-boot-tools

See U-Boot documentation on tool installation


make uImage

mkimage -A <arch> -O linux -T kernel -C none -a <load-address> -e <entry-point> -n "Linux kernel" -d arch/arm/boot/zImage uImage

or in the kernel source

make uImage


Answered By - Arthur
Answer Checked By - David Goodson (WPSolving Volunteer)