[PATCH] MIPS: add U-boot uImage build target to arch Makefile

Lluís Batlle i Rossell viriketo at gmail.com
Wed Nov 24 03:14:00 EST 2010


On Wed, Nov 24, 2010 at 08:28:38AM +0200, Sergey Kvachonok wrote:
> I pulled mine from git://projects.qi-hardware.com/qi-kernel.git : jz-2.6.36.
> 
> Just checked vanilla 2.6.36, could not find anything related to u-boot
> either, except avr32 load stubs.
> Am I looking in the wrong place? How do you build your kernel images
> then? I've got my recipe from
> http://en.qi-hardware.com/wiki/Gentoo-cross-compilation#build_kernel

I was also surprised there was no uImage target in the qi kernel. I was used to
having it on vanilla for arm.
Here is how I build the image:
https://svn.nixos.org/websvn/nix/nixpkgs/branches/stdenv-updates/pkgs/os-specific/linux/kernel/linux-nanonote-jz-2.6.35.nix

In short, where $out is a directory where to put the result,
and $crossConfig is mipsel-unknown-linux-
make vmlinux.bin
gzip -9 -c $out/vmlinux.bin > $out/vmlinux.bin.gz
KERNEL_ENTRY="0x`$crossConfig-nm $out/vmlinux 2>/dev/null |
  grep " kernel_entry" | cut -f1 -d ' '`"
mkimage -A mips -O linux -T kernel -a 0x80010000 -C gzip \
		-e $KERNEL_ENTRY -n "MIPS Nix Linux-2.6.35" \
		-d $out/vmlinux.bin.gz $out/uImage




More information about the discussion mailing list


interactive