-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions to compile modules for the kernel used on the Cybook Muse #5
Comments
After downloading the arm gcc build follow theses instructions https://askubuntu.com/a/1243405 I get :
|
What gcc are you using? You need to be using a gcc older than 5 |
I'm going to look into options to get "gcc older than 5" running on my machine. If you have any tips, I'll take them. |
The compiler that needs to be <5 in this case is the arm-linux-gnueabihf-gcc cross compiler to get past this step. https://linux-sunxi.org/Toolchain#Standalone_toolchain_installation See also: |
Thanks for the input @liamHowatt diff --git a/scripts/build_sun4i.sh b/scripts/build_sun4i.sh
index e9758469..987a720d 100755
--- a/scripts/build_sun4i.sh
+++ b/scripts/build_sun4i.sh
@@ -9,7 +9,7 @@ set -e
#Setup common variables
export ARCH=arm
-export CROSS_COMPILE=arm-none-linux-gnueabi-
+export CROSS_COMPILE=/home/arthur/local/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
export AS=${CROSS_COMPILE}as
export LD=${CROSS_COMPILE}ld
export CC=${CROSS_COMPILE}gcc
trying that out I get different errors : ❯ ./scripts/build_sun4i.sh modules
Building modules
make: Entering directory '/home/arthur/local/kernel-linux-3.0/modules/example'
/home/arthur/local/kernel-linux-3.0
make -C /home/arthur/local/kernel-linux-3.0 M=/home/arthur/local/kernel-linux-3.0/modules/example
make[1]: Entering directory '/home/arthur/local/kernel-linux-3.0'
WARNING: Symbol version dump /home/arthur/local/kernel-linux-3.0/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/arthur/local/kernel-linux-3.0/modules/example/example.o
In file included from include/linux/gfp.h:4:0,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/arthur/local/kernel-linux-3.0/modules/example/example.c:3:
include/linux/mmzone.h:18:30: fatal error: generated/bounds.h: No such file or directory
#include <generated/bounds.h>
^
compilation terminated.
make[2]: *** [scripts/Makefile.build:312: /home/arthur/local/kernel-linux-3.0/modules/example/example.o] Error 1
make[1]: *** [Makefile:1360: _module_/home/arthur/local/kernel-linux-3.0/modules/example] Error 2
make[1]: Leaving directory '/home/arthur/local/kernel-linux-3.0'
make: *** [Makefile:20: build] Error 2
make: Leaving directory '/home/arthur/local/kernel-linux-3.0/modules/example'
❯ find . | grep bounds
./kernel/bounds.c
❯ ./scripts/build_sun4i.sh kernel
make: *** /home/arthur/local/kernel-linux-3.0/arch/arm/mach-sun4i/pm/standby: No such file or directory. Stop. |
@arthurlutz ignore my last message - I didn't realize you were using the script to build it. An idea is to try the script with the arg |
@liamHowatt yep, I tried that. But I'm stuck on that last error, it can't find |
I'm trying to get tailscaled to run on the Cybook Muse
I'd like to compile the modules for this kernel, but I get
The text was updated successfully, but these errors were encountered: