lkmpg icon indicating copy to clipboard operation
lkmpg copied to clipboard

Support Linux v6.x

Open jserv opened this issue 3 years ago • 6 comments

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.

jserv avatar Oct 08 '22 15:10 jserv

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.

  • https://youtu.be/-l-8WrGHEGI
  • https://youtu.be/tPs1uRqOnlk

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

linD026 avatar Oct 08 '22 16:10 linD026

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

jserv avatar Feb 08 '23 13:02 jserv

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.

ashevche avatar Feb 21 '23 14:02 ashevche

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 avatar Feb 22 '23 07:02 linD026

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);
      | 

linD026 avatar Mar 14 '23 00:03 linD026

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.

jserv avatar Sep 17 '23 18:09 jserv