[lx2160ardb_rev2] can't install corresponding linux-headers

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[lx2160ardb_rev2] can't install corresponding linux-headers

ソリューションへジャンプ
6,482件の閲覧回数
tsungmin_wang
Contributor III

Hi,

I want to compile a package, but it needs to install linux-headers-`uname -r`.

I build linux from LSDK-20.04-V5.4 and its kernel version is 5.4.3-dirty.

 

I can only found these versions "5.4.0 , 5.3.0 , 5.0.0 , 4.18.0 , 4.15.0" using "apt search linux-headers".

How should I do to install "linux-headers-5.4.3-dirty" or I can compile this package by flexbuild?

0 件の賞賛
返信
1 解決策
6,448件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

In LSDK 20.12, usr/src/linux-headers-5.4.47/ exist in Ubuntu main rootfs filesystem.

 

You could download this rootfs filesystem with the following command.

wget https://www.nxp.com/lgfiles/sdk/lsdk2012/rootfs_lsdk2012_ubuntu_main_arm64.tgz

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
6,475件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

You could install Linux Kernel header 5.4 with the following command

apt-get install linux-headers-5.4

0 件の賞賛
返信
6,471件の閲覧回数
tsungmin_wang
Contributor III

Hi,

I use linux-headers-5.4.0-58-generic to compile.

When I run modprobe

"

Package: version magic '5.4.0-58-generic SMP mod_unload aarch64' should be '5.4.47 SMP preempt mod_unload modversions aarch64'

modprobe: ERROR: could not insert 'Package': Exec format error

"

 

 

0 件の賞賛
返信
6,466件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Would you please provide detailed procedure on the target board?

0 件の賞賛
返信
6,460件の閲覧回数
tsungmin_wang
Contributor III

Hi,

There are a Package.c and a Makefile. 

I only run "make" in the directory.

 

I build a newer kernel version (LSDK-20.12-V5.4to lx2160ardb_rev2, same problem.

# uname -a
Linux localhost 5.4.47 #1 SMP PREEMPT Wed Dec 16 11:11:48 CST 2020 aarch64 aarch64 aarch64 GNU/Linux

0 件の賞賛
返信
6,449件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

In LSDK 20.12, usr/src/linux-headers-5.4.47/ exist in Ubuntu main rootfs filesystem.

 

You could download this rootfs filesystem with the following command.

wget https://www.nxp.com/lgfiles/sdk/lsdk2012/rootfs_lsdk2012_ubuntu_main_arm64.tgz

0 件の賞賛
返信
6,443件の閲覧回数
tsungmin_wang
Contributor III

Hi,

I will try it.

But I use another method to build, I found that the source, flexbuild/packages/linux/linux/, includes what I need.

So, I put the .c files to flexbuild/packages/linux/linux/drivers/usb

And modify Kconfig and Makefile to fit what the driver needs.

 

After enabling the option in "flex-builder -c linux:custom -a arm64" and rebuild kernel "flex-builder -c linux -a arm64"

The driver is compiled and built in to the kernel. Thx.

 

 

0 件の賞賛
返信