I have a complex toolchain for an embedded system (mipsel) on my x86 Linux. I know how to create a custom kernel (let it call the "vmlinux" image) for it and how to split this image with
objcopy -S -O binary vmlinux vmlinux.bin
For further processing, I also need the download address and image entry point. Before deleting, itβs not a problem to define them scripts/mksysmapvia
nm -n vmlinux | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)' > System.map
Then I can determine the download address and entry point through
awk '/A _text/ { print "0x"$1; }' < _System.map
awk '/T kernel_entry/ { print "0x"$1; }' < System.map
Now the problem is that sometimes I do not create the core of their own, but get a precompiled kernel after it has already deprived of its character through objcopy. Can someone tell me how to do this? I am not very good at building a kernel and using toolchains. Both nm and objdump do not like split image, saying
vmlinux.bin: File format not recognized
source
share