Code Monkey home page Code Monkey logo

Comments (5)

lwfinger avatar lwfinger commented on August 17, 2024 1

Thanks for chasing this issue down. The difference between your two kernels is that the second turned comporession on. When it did, the Makefile detected this and compressed its modules appropriately.

I also added the zstd compression when the distro has modules with the .zst suffix, which mine actually does. That explains why I was not seeing the problem.

from rtw88.

lwfinger avatar lwfinger commented on August 17, 2024

Obviously, there is a bug in your kernel. I cannot fix that.

The best I can offer is to prevent the rtw88 build from compressing the modules. In Makefile, find the line that says "#Handle the compression option for modules in 3.18+", and delete it and the following 6 lines. The last one will be "#endif".

from rtw88.

Schoumi avatar Schoumi commented on August 17, 2024

hum, it worked but it's odd since all other modules are working fine and compressed with xz too. So i dug up a bit.

I tried to check differences between modules I already have and the one build with this makefile:
Every modules use CRC32 as integrity check but xz utility by default use CRC64 as integrity check and it seems the kernel doesn't support CRC64: https://docs.kernel.org/staging/xz.html?highlight=xz#notes-on-compression-options

I don't know what change between my two kernel, if it's the DECOMPRESS options or they enforce integrity check that was not done before but it's seems to be the problem.

So I change the Makefile to force CRC32 while compressing with xz and it work perfectly.

I change a bit too, the uninstall part (even if i have not change the modprobe -r that seems to don't reflect all the chipsets modules support, as of today)

diff --git a/Makefile b/Makefile
index 852929a..8f07c2e 100644
--- a/Makefile
+++ b/Makefile
@@ -158,7 +158,7 @@ ifeq ($(COMPRESS_GZIP), y)
        @gzip -f $(MODDESTDIR)/*.ko
 endif
 ifeq ($(COMPRESS_XZ), y)
-       @xz -f $(MODDESTDIR)/*.ko
+       @xz -f -C crc32 $(MODDESTDIR)/*.ko
 endif
 
        depmod -a $(KVER)
@@ -174,7 +174,13 @@ uninstall:
        @modprobe -r rtw_8723de
        @modprobe -r rtw_8723de
        @modprobe -r rtw_8723de
+ifeq ($(COMPRESS_GZIP), y)
+       @rm -f $(MODDESTDIR)/rtw_*.ko.gz
+else ifeq ($(COMPRESS_XZ), y)
+       @rm -f $(MODDESTDIR)/rtw_*.ko.xz
+else
        @rm -f $(MODDESTDIR)/rtw_*.ko
+endif
        
        @depmod $(DEPMOD_ARGS)
        

from rtw88.

Schoumi avatar Schoumi commented on August 17, 2024

Hi,

The problem was reintroduced during this merge: 37e4b3c

The merge has override some change from the Makefile. CRC 32 for xz, zstd.

from rtw88.

dubhater avatar dubhater commented on August 17, 2024

I think I fixed it.

from rtw88.

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.