Jump to content

linux-headers-dev-...deb missing kernel scripts modpost


m][sko

Recommended Posts

I don't know if this is related to Linux kernel 5.0 but I didn't have this problem with 4.20

I used linux-headers-dev-.._arm64.deb kernel header files to compile mali kernel drivers on board

I don't know if armbian changed something or it is kernel 5.0 related

now I can't

as linux-headers-dev debian/postinst script

 

don't generate scripts/mod/modpost

and only scripts/basic/fixdep

 

any idea?

 

this is output from

make -d -s scripts

http://paste.ubuntu.com/p/fbhr37q8GF/

 

 

Link to comment
Share on other sites

I am looking at ubuntu 19.04

linux-headers-5.0.0-7-generic -contains builded versions of modpost and fixdep

linux-headers-5.0.0-7   - contains kernel headers

 

@Igor

do you remember where do you get inspiration for armbian based kernel headers package structure  and scripts ?

Link to comment
Share on other sites

so

make -s scripts -s prepare0 

fixed problem

I will make pull request

and it is working fine on linux 4.20 and 5.0

 

I didn't check  linux 3

But as it first run scripts part from makefile and then prepare0 it should be fine

Link to comment
Share on other sites

it don't solve my problem

now when I build mali kernel driver

and when I ismod mali.ko

I get this

 version magic '5.0.4 SMP mod_unload aarch64' should be '5.0.4-sunxi64 SMP mod_unload aarch64'

Link to comment
Share on other sites

Not working on meson64

    Must remake target 'scripts/kconfig/zconf.tab.o'.
    Successfully remade target file 'scripts/kconfig/zconf.tab.o'.
   Finished prerequisites of target file 'scripts/kconfig/conf'.
   Prerequisite 'FORCE' of target 'scripts/kconfig/conf' does not exist.
   Prerequisite 'scripts/kconfig/conf.o' is older than target 'scripts/kconfig/conf'.
   Prerequisite 'scripts/kconfig/zconf.tab.o' is older than target 'scripts/kconfig/conf'.
  Must remake target 'scripts/kconfig/conf'.
  Successfully remade target file 'scripts/kconfig/conf'.
 Finished prerequisites of target file 'syncconfig'.
Must remake target 'syncconfig'.
Putting child 0xaaaadc8b0780 (syncconfig) PID 31872 on the chain.
Live child 0xaaaadc8b0780 (syncconfig) PID 31872 
net/Kconfig:89: can't open file "net/wireguard/Kconfig"
Reaping losing child 0xaaaadc8b0780 PID 31872 
scripts/kconfig/Makefile:69: recipe for target 'syncconfig' failed
make[2]: *** [syncconfig] Error 1
Removing child 0xaaaadc8b0780 PID 31872 from chain.
Reaping losing child 0xaaaaf940e1f0 PID 31871 
Makefile:539: recipe for target 'syncconfig' failed
make[1]: *** [syncconfig] Error 2
Removing child 0xaaaaf940e1f0 PID 31871 from chain.
Reaping losing child 0xaaaaf5ebaec0 PID 31798 
Makefile:635: recipe for target 'include/config/auto.conf' failed
make: *** [include/config/auto.conf] Error 2
Removing child 0xaaaaf5ebaec0 PID 31798 from chain.
root@odroidc2:/usr/src/linux-headers-4.19.20-meson64# make -s scripts -s prepare0
net/Kconfig:89: can't open file "net/wireguard/Kconfig"
scripts/kconfig/Makefile:69: recipe for target 'syncconfig' failed
make[2]: *** [syncconfig] Error 1
Makefile:539: recipe for target 'syncconfig' failed
make[1]: *** [syncconfig] Error 2
Makefile:635: recipe for target 'include/config/auto.conf' failed
make: *** [include/config/auto.conf] Error 2

 

Link to comment
Share on other sites

Wireguard is broken on sources that are in repository, while if you use self made, it works.

 

A rebuild of all packages should be done. The question is - is it safe enough? 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines