Open gosadaque opened 3 years ago
Hello, how do you try to compile the code? Which raspberry do you have? Which Linux kernel is running on?
Hello
I just went to the downloaded git directory and did a make
no parameters or whatsoever. Retried it with Sudo make
But no change.
I'm using a Raspberry Pi Zero W with Raspbian GNU/Linux 10 (buster), Kernel Version: Linux version 4.19.97+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611))
ok I see. I built my own kernel with buildroot. That makefile is a cross compiling one.
Do you install the build tool in raspbian? Can you build some c code in raspbian? If yes: Move the code to the raspberry And edit the makefile
KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd)
default: $(MAKE) -C $(KDIR) M=$(PWD) modules if that do not work, contact me again
The KDIR differs a bit, but with the edited Makefile it looks correct:
make -C /lib/modules/4.9.0-6-rpi/build M=/home/pi/sda5708 modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-6-rpi'
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-6-rpi'
Is this correctly compiled? Also how do I control the display after successfully compiling?
Thanks in advance
Hey pimium,
I was pretty happy about stumbling across your rep. I’m not familiar with compiling and just a simple
make
didn’t work out for me unfortunately.I think it's asking for the kernel, so I changed the path
~/home/pi/embedded/raspi/buildroot-2013.05/output/build/linux-e959a8e/
to/boot/
. But there was another error:I looked into the modules and saw the file sda5908.ko mentioned in the directory
/home/pimi/embedded/raspi/driver/sda5908/
. I copied it there, but still get the same error.Can you help me? Thank you a lot in advance.