I use buildroot201802 for cross compile tool.
when I compile with mips64el-linux-gcc *.c -march=octeon -mips64
here is what I got:
but I do have target kernel modules file:quicksec.ko which is octeon with mips64.. I'm wondering how to solve it.
I use buildroot201802 for cross compile tool.
when I compile with mips64el-linux-gcc *.c -march=octeon -mips64
here is what I got:
but I do have target kernel modules file:quicksec.ko which is octeon with mips64.. I'm wondering how to solve it.
remove -mips64
from gcc invokation. Instead add -mabi=64
to specify the ABI.
The machine arcitecture spec -march=octeon
automatically selects mips64r2, so you don't need to attempt to specify that.
Besides, the most common OCTEON platforms use OCTEON in big-endian mode. So unless you know what you are doing, and verified from ELF headers the Endina mode, instead of mips64el-linux-gcc
you should be using the big-Endian compiler mips64-octeon-linux-gnu-gcc
. But this is probably a different question / thread.
-Irfan /Paxym