Jump to content

Linux headers. Unable to locate package


Go to solution Solved by Werner,

Recommended Posts

Posted

Hi,

Im trying to install a driver for a usb wifi dongle.

Im getting the error below.

Can I compile the driver with the older linux-header?

Is there somewhere where I can get the current linux-headers?

 

I tried adding --kernelsourcedir but it keeps asking for the same version.

I used armbian-config to install the headers and source

 

Kernel upgrades are frozen due to hardware 

 

headers.PNG

modules.PNG

source-list-d.armbian.list.PNG

sources.list.PNG

  • Solution
Posted

You need the kernel headers matching your kernel version. Older headers will not work.

However we  had (have?) some issues with the repository so you may need to switch to a different kernel version which also has the matching headers in the repo.

Posted

Thankyou for the reply.

Will this version have headers bookworm_edge_6.6.9 and if I install this version can I update to the 6.1.70 via CLI or do I need to reflash the image?

Posted
5 minutes ago, townie said:

Will this version have headers bookworm_edge_6.6.9

I don't know. You can check by yourself  (something like apt-cache search linux*current-rockchip64)

6 minutes ago, townie said:

an I update to the 6.1.70 via CLI

Well that would rather be a downgrade than an upgrade :D

Anyway while switching kernel again would work the module you want to build and need the headers for will not.

Posted

How do I execute this command to import python module?

 

// this is necessary for oragepi5
sed -i '31i MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);' os_dep/linux/os_intfs.c

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines