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

The directory /lib/modules/6.6.31+rpt-rpi-v8 exists, but it does not have a build subdirectory #615

Open
Dbkkkkkkkkkk opened this issue Jul 22, 2024 · 1 comment

Comments

@Dbkkkkkkkkkk
Copy link

root@raspberrypi:/home/pi/nexmon/patches/bcm43455c0/7_45_154/nexmon# make backup-firmware
cp /lib/firmware/brcm/brcmfmac43455-sdio.bin brcmfmac43455-sdio.bin.orig
root@raspberrypi:/home/pi/nexmon/patches/bcm43455c0/7_45_154/nexmon# make install-firmware

      ###########   ###########   ##########    ##########           
     ############  ############  ############  ############          
     ##            ##            ##   ##   ##  ##        ##          
     ##            ##            ##   ##   ##  ##        ##          
     ###########   ####  ######  ##   ##   ##  ##    ######          
      ###########  ####  #       ##   ##   ##  ##    #    #          
               ##  ##    ######  ##   ##   ##  ##    #    #          
               ##  ##    #       ##   ##   ##  ##    #    #          
     ############  ##### ######  ##   ##   ##  ##### ######          
     ###########    ###########  ##   ##   ##   ##########           

        S E C U R E   M O B I L E   N E T W O R K I N G               


                           presents:                                  

          # ###   ###  #   # # ###  ###   ###  # ###                  
          ##   # #   #  # #  ##   ##   # #   # ##   #                 
          #    # #####   #   #    #    # #   # #    #                 
          #    # #      # #  #    #    # #   # #    #                 
          #    #  #### #   # #    #    #  ###  #    #                 

            The C-based Firmware Patching Framework                   


                       !!! WARNING !!!                                
Our software may damage your hardware and may void your hardware’s    
 warranty! You use our tools at your own risk and responsibility      

COLLECTING STATISTICS read /home/pi/nexmon/STATISTICS.md for more information
COMPILING src/version.c => obj/version.o (details: log/compiler.log)
GENERATING LINKER FILE gen/nexmon.pre => gen/nexmon.ld
GENERATING LINKER FILE gen/nexmon.pre => gen/flashpatches.ld
LINKING OBJECTS => gen/patch.elf (details: log/linker.log, log/linker.err)
GENERATING MAKE FILE gen/nexmon.pre => gen/nexmon.mk
GENERATING MAKE FILE gen/nexmon.pre => gen/flashpatches.mk
APPLYING FLASHPATCHES gen/flashpatches.mk => brcmfmac43455-sdio.bin (details: log/flashpatches.log)
APPLYING PATCHES gen/nexmon.mk => brcmfmac43455-sdio.bin (details: log/patches.log)
BUILDING DRIVER for kernel 6.6 brcmfmac_6.6.y-nexmon/brcmfmac.ko (details: log/driver.log)
COPYING brcmfmac43455-sdio.bin => /lib/firmware/brcm/brcmfmac43455-sdio.bin
UNLOADING brcmfmac_wcc
UNLOADING brcmfmac
RELOADING brcmfmac
insmod: ERROR: could not insert module /home/pi/nexmon/patches/driver/brcmfmac_6.6.y-nexmon/brcmfmac.ko: Invalid module format
make: *** [Makefile:193:install-firmware] error 1
root@raspberrypi:/home/pi/nexmon/patches/bcm43455c0/7_45_154/nexmon# uname -r
6.6.31+rpt-rpi-v8
root@raspberrypi:/home/pi/nexmon/patches/bcm43455c0/7_45_154/nexmon# ls /lib/modules/6.6.31+rpt-rpi-v7l/build
arch include Makefile Module.symvers scripts tools
root@raspberrypi:/home/pi/nexmon/patches/bcm43455c0/7_45_154/nexmon# ls /lib/modules/6.6.31+rpt-rpi-v7/build
arch include Makefile Module.symvers scripts tools
root@raspberrypi:/home/pi/nexmon/patches/bcm43455c0/7_45_154/nexmon# ls /lib/modules/6.6.31+rpt-rpi-v8/build
ls: 无法访问 '/lib/modules/6.6.31+rpt-rpi-v8/build': 没有那个文件或目录

@jlinktu
Copy link
Member

jlinktu commented Jul 23, 2024

insmod: ERROR: could not insert module /home/pi/nexmon/patches/driver/brcmfmac_6.6.y-nexmon/brcmfmac.ko: Invalid module format

  • Have you installed the right kernel headers for your kernel version? (see Kernel 6.1 vs 6.6 #613)
  • Have you updated your kernel base without cleaning and re-building the brcmfmac_6.6.y kernel module? - If yes, clean and re-build.
  • Manually run insmod /home/pi/nexmon/patches/driver/brcmfmac_6.6.y-nexmon/brcmfmac.ko to see if it provides you with a reason why the loading fails.
  • Check if there is additional information on the loading process in dmesg.

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

2 participants