Re: Au1550 with kernel linux-2.6.28.1 (SOLVED)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
  



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux