Raspberrypi kernel headers Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
goldentk
Posts: 9
Joined: Thu May 27, 2021 9:12 am

Re: Raspberrypi kernel headers

Post by goldentk »

Ohh, that works, thanks bro :)
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Raspberrypi kernel headers

Post by Joulinar »

are you able to install the header now?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
goldentk
Posts: 9
Joined: Thu May 27, 2021 9:12 am

Re: Raspberrypi kernel headers

Post by goldentk »

yes
goldentk
Posts: 9
Joined: Thu May 27, 2021 9:12 am

Re: Raspberrypi kernel headers

Post by goldentk »

Another question, I tried to compile driver for my network card but I'm getting this
Do you know what could go wrong?

Code: Select all

DKMS make.log for rtl88x2bu-5.6.1 for kernel 5.10.17-v8+ (aarch64)
Thu May 27 11:15:24 CEST 2021
make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.10.17-v8+/build M=/var/lib/dkms/rtl88x2bu/5.6.1/build  modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.17-v8+'
  CC [M]  /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_cmd.o
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64
  CC [M]  /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_security.o
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64
  CC [M]  /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_debug.o
gcc: error: unrecognized command line option ‘-mapcs’; did you mean ‘--specs’?
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64
gcc: error: unrecognized command line option ‘-mapcs’; did you mean ‘--specs’?
  CC [M]  /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_io.o
gcc: error: unrecognized command line option ‘-mno-sched-prolog’; did you mean ‘-Wno-sign-promo’?
gcc: error: unrecognized command line option ‘-mapcs’; did you mean ‘--specs’?
gcc: error: unrecognized command line option ‘-msoft-float’
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64
gcc: error: unrecognized command line option ‘-mno-sched-prolog’; did you mean ‘-Wno-sign-promo’?
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_cmd.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc: error: unrecognized command line option ‘-msoft-float’
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_security.o] Error 1
gcc: error: unrecognized command line option ‘-mno-sched-prolog’; did you mean ‘-Wno-sign-promo’?
gcc: error: unrecognized command line option ‘-mapcs’; did you mean ‘--specs’?
gcc: error: unrecognized command line option ‘-msoft-float’
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_debug.o] Error 1
gcc: error: unrecognized command line option ‘-mno-sched-prolog’; did you mean ‘-Wno-sign-promo’?
gcc: error: unrecognized command line option ‘-msoft-float’
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_io.o] Error 1
make[1]: *** [Makefile:1804: /var/lib/dkms/rtl88x2bu/5.6.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.17-v8+'
make: *** [Makefile:2284: modules] Error 2
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Raspberrypi kernel headers

Post by Joulinar »

I'm not a specialist in compiling stuff but I see you are using ARCH=arm. But your system is a 64bit Raspberry Pi OS and your would need to use ARCH="arm64" I guess. This would somehow fit the following I found on Google

https://github.com/gnab/rtl8812au/issues/170
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply