Code Monkey home page Code Monkey logo

Comments (5)

kd8bny avatar kd8bny commented on July 28, 2024

I'll look into this. Which OS is the system you are using? In the meantime it should compile without the digest option scratch that I see it in the header . In the meantime compiling without the digest should work

from lime.

dijiang avatar dijiang commented on July 28, 2024

I deleted the code about digest and it works... but insmod failed...
image
i add MOUDLE_INFO(...) in the code, and insmod successfully...is my linux header have problems?

from lime.

dijiang avatar dijiang commented on July 28, 2024

image
do i make something wrong? and do you have any suggestions about loading modules Automatically (not need make any change in different system)?

from lime.

dijiang avatar dijiang commented on July 28, 2024

i solved this by using script

  1. lsmod | tail -1 //to get a $modeName
  2. modinfo $modeName //to get the $vermagic
  3. then append "MOUDLE_INFO(vermagic, $vermagic);" to the main.c file
  4. build , insmod success

from lime.

kd8bny avatar kd8bny commented on July 28, 2024

It looks like your issue is with different gcc versions. Replacing the magic number in this case is a good call as insmod just doe a basic check to make to module versions match before inserting. If the string doesn't match exactly it will reject the module. Not very necessary in this case but a failsafe for other drivers and such.

from lime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.