Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Linux v6.x #172

Open
jserv opened this issue Oct 8, 2022 · 6 comments
Open

Support Linux v6.x #172

jserv opened this issue Oct 8, 2022 · 6 comments
Assignees

Comments

@jserv
Copy link
Contributor

jserv commented Oct 8, 2022

At present, Linux v5.10+ is the primary kernel version for LKMPG. Meanwhile, Linux v6.0 was released, and it is time to check the availability of existing LKM with Linux v6.0.

@linD026
Copy link
Collaborator

linD026 commented Oct 8, 2022

Just take note and request some opinions here.
If we want to add the Rust Kernel Module, what kind of thing do we need to prepare?
My first mind is we can follow these tutorials for the environment setup.

Then, add some other example that is not the same as the existing one.
Or we can just rewrite the examples by the Rust.

@jserv jserv changed the title Support Linux v6.0 Support Linux v6.x Feb 8, 2023
@jserv
Copy link
Contributor Author

jserv commented Feb 8, 2023

Linux 6.1 is officially promoted to be an LTS kernel, and we shall re-target v6.1 compatibility.

@ashevche
Copy link

ashevche commented Feb 21, 2023

Agree, the book should cover a single or a few LTS kernels and not just something in the middle. The book also has to describe (if it's not done yet) what version (or range of) it covers.

@linD026
Copy link
Collaborator

linD026 commented Feb 22, 2023

Sure, it makes sense to add the version we covered.
However, in 1.1 Authorship, we already told it.

Jim Huang upgraded to recent kernel versions (v5.x) and revised the LaTeX document.

@linD026
Copy link
Collaborator

linD026 commented Mar 14, 2023

Just take some notes here.
For 6.1.11 and gcc (GCC) 12.2.1 20230201, I got the following compile error.

/home/***/lkmpg/examples/kbleds.c:64:55: error: ‘struct tty_driver’ has no member named ‘magic’
   64 |     pr_info("kbleds: tty driver magic %x\n", my_driver->magic);
      | 

@jserv
Copy link
Contributor Author

jserv commented Sep 17, 2023

Just take some notes here. For 6.1.11 and gcc (GCC) 12.2.1 20230201, I got the following compile error.

examples/kbleds.c:64:55: error: ‘struct tty_driver’ has no member named ‘magic’
   64 |     pr_info("kbleds: tty driver magic %x\n", my_driver->magic);
      | 

Once you resolve the compilation error, let's bump the gcc versions in GitHub Actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants