linux-mips
[Top] [All Lists]

Re: Au1550 with kernel linux-2.6.28.1 (SOLVED)

To: Manuel Lauss <mano@roarinelk.homelinux.net>
Subject: Re: Au1550 with kernel linux-2.6.28.1 (SOLVED)
From: Frank Neuber <frank.neuber@kernelport.de>
Date: Sun, 25 Jan 2009 09:20:16 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <1232839224.28527.336.camel@t60p>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1232739600.28527.289.camel@t60p> <20090124085734.5b6b5c66@scarran.roarinelk.net> <1232787448.28527.302.camel@t60p> <1232839224.28527.336.camel@t60p>
Sender: linux-mips-bounce@linux-mips.org
Hi List,
after a sleepness nigth I got an idea ....
Because I need an uImage I had to build a Image first.

The buildprocess of the kernel call this wrong line
mips_4KCle-objcopy  --remove-section=.reginfo  vmlinux arch/mips/boot/Image
if I add this rule in the Makefile
$(obj)/Image: $(VMLINUX) FORCE
        $(call if_changed,objcopy)
        @echo '  Kernel: $@ is ready'
On older kernelversions this works well!

The rigth one is this:
mips_4KCle-objcopy -O binary -R .note -R .comment -S  vmlinux 
arch/mips/boot/Image

I typed the last steps by hand for now and it works
gzip -f -9 < arch/mips/boot/Image > arch/mips/boot/zImage
/bin/sh /tmp/linux-2.6.28.1/scripts/mkuboot.sh -A mips -O linux -T kernel -C 
gzip -a 0x80100000 -e 0x80104690 -n 'Linux-2.6.28.1' -d arch/mips/boot/zImage 
uImage
(keep in mind the -a 0x80100000 -e 0x80104690 parameters are greped from 
vmlinux with 
TEXT_ADDR       := $(shell awk '/_text/ { printf "0x%s", $$1 ; exit }' < 
$(TOPDIR)/System.map)
ENTRY_ADDR      := $(shell awk '/kernel_entry/ { printf "0x%s", $$1 ; exit }' < 
$(TOPDIR)/System.map)
)

Than I can see my first early printk messages :-) huhuuu

Now I can work on.

BTW: why is uImage not supported by the kernel build system for MIPS?

Regards,
 Frank
  


<Prev in Thread] Current Thread [Next in Thread>