3

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!

sorak
  • 2,607
  • 2
  • 16
  • 24
pa1
  • 778
  • 3
  • 11
  • 26

1 Answers1

10

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
sawdust
  • 16,103
  • 3
  • 40
  • 50
Arthur
  • 566
  • 3
  • 7
  • "make uImage" takes LOADADDR as a argument right? Where do i find this? – pa1 Aug 24 '15 at 19:28
  • 1
    @Coder -- *"Where do i find this?"* -- See http://stackoverflow.com/questions/31725605/building-kernel-uimage-using-loadaddr – sawdust Aug 24 '15 at 20:28
  • Why do assume that the OP has a Debian/Ubuntu host/development system? Your instructions/answer could be inappropriate/useless for other Linux distros such as Fedora. You also presume that the OP's system is ARM. – sawdust Aug 24 '15 at 21:29
  • Yeah for me, what this does is it creates the uImage exactly the same size as the zImage. Which CANNOT be right. – Owl Sep 05 '18 at 11:01