0
m][sko

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

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/

 

 

Share this post


Link to post
Share on other sites

I can confirm that 4.19 4.20 is fine and make -s scripts generate modpost and fixdep

but 5.0 don't

on sunxi64 at last

Share this post


Link to post
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 ?

Share this post


Link to post
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

Share this post


Link to post
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'

Share this post


Link to post
Share on other sites

Works fine on meson

but on sunxi64

for some reason in some part KERNELVERSION is 5.0.4 and in some other part 5.0.4-sunxi64

Share this post


Link to post
Share on other sites

@Igor

How armbian add suffix to kernel version?

in .config CONFIG_LOCALVERSION is empty

in Makefile EXTRAVERSION = is also empty

 

As when I set proper suffix in .config everything is working fine

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0