I am compiling a downstream linux using mipsel toolchain.
Everything works fine except at the very last point which states invalid entry point:
sh: 0: Can't open /arch/mips/boot/tools/entryrm -f arch/mips/boot/vmlinux.bin.gzgzip -9 arch/mips/boot/vmlinux.binmkimage -A mips -O linux -T kernel -C gzip \ -a 0x80010000 -e \ -n 'Linux-2.6.31.3-g29b45174-dirty' \ -d arch/mips/boot/vmlinux.bin.gz arch/mips/boot/uImagemkimage: invalid entry point -n
Now it mentioned sh: 0: Can't open /arch/mips/boot/tools/entry
So I checked that file and it has following:
#!/bin/sh# grab the kernel_entry address from the vmlinux elf imageentry=`$1 $2 | grep kernel_entry`fs=`echo $entry | grep ffffffff` # check toolchain outputif [ -n "$fs" ]; then echo "0x"`$1 $2 | grep kernel_entry | cut -c9- | awk '{print $1}'`else echo "0x"`$1 $2 | grep kernel_entry | cut -c1- | awk '{print $1}'`fi
Now i understand something is generating the kernel entry point, but that generated entry point is invalid.
Question: What exactly generates kernel entry point and what potentially could be an issue given the data above?