Page 1 of 1

[Bug report] cross compiling kernel incomplete

Posted: Mon Sep 12, 2016 8:56 am
by HermannSW
Building the kernel with cross compiler is fine, but for building loadable kernel modules on Nanopi H3 system later some probelms exists:
  • one include file is missing
  • four utility programs were compiled for x86_64 but are needed to be compiled for armhf
    (to allow for creation of loadable kernel modules on H3 based systems like Neo and M1)
For details please see this posting:
http://www.friendlyarm.com/Forum/viewtopic.php?f=47&t=240#p801

Hermann.

Re: [Bug report] cross compiling kernel incomplete

Posted: Tue Sep 27, 2016 5:46 am
by jjm
Hello,
We suggest you add and compile kernel module in the source of h3_lichee on computer .
You can use this command to compile:./build.sh -p sun8iw7p1 -b nanopi-h3 -m kernel , after compiling you need to copy .ko file to NanoPi NEO board then you can insmod the module.

Re: [Bug report] cross compiling kernel incomplete

Posted: Tue Sep 27, 2016 6:27 pm
by HermannSW
I will try what you propose.
But that would degrade the Neo or M1 to a pure runtime CPU with the need to have another 64bit Intel Linux computer for compiling/developing. I like the Neo/M1 being able to develop kernel modules itself as described.
Hermann.