Jump to content

Custom Kernel module: the old version keeps getting called


JCOneTwoThree

Recommended Posts

I loaded a kernel module from the official Linux Github repo, compiled and placed it within /lib/modules/.........

 

Now if I make changes to this kernel module, and recompile it and reboot, the old one still gets called.

 

If I rmmod and modprobe however, the new module gets loaded.

 

The module I'm talking about is qcaspi.

 

This issue doesn't occur on RPi so I'm thinking it could be an Armbian issue or an oversight by me.

 

Any help please?

Link to comment
Share on other sites

49 minutes ago, JCOneTwoThree said:

I loaded a kernel module from the official Linux Github repo, compiled and placed it within /lib/modules/.........

 

Now if I make changes to this kernel module, and recompile it and reboot, the old one still gets called.

 

Did you tell kernel to use this module you added by hand? Not sure why Armbian kernel would act differently? Perhaps we have better security enabled by default ... not sure, would need to investigate, but that is not possible just like that. Use official build method https://docs.armbian.com/Developer-Guide_Build-Preparation/

 

49 minutes ago, JCOneTwoThree said:

Any help please?


Your turn.

https://forum.armbian.com/forum/54-help-wanted/

 

Link to comment
Share on other sites

Thanks Igor.

 

I managed to find this command which basically solved this issue:

 

update-initramfs -v -u

 

It seems that for debian based OS the modules get stored in archive. The above basically updates the archive.

 

20 hours ago, Igor said:

 

Did you tell kernel to use this module you added by hand? Not sure why Armbian kernel would act differently? Perhaps we have better security enabled by default ... not sure, would need to investigate, but that is not possible just like that. Use official build method https://docs.armbian.com/Developer-Guide_Build-Preparation/

 


Your turn.

https://forum.armbian.com/forum/54-help-wanted/

 

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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