seemoo-lab / nexmon

The C-based Firmware Patching Framework for Broadcom/Cypress WiFi Chips that enables Monitor Mode, Frame Injection and much more
GNU General Public License v3.0
2.45k stars 455 forks source link

rpi3, no such file named `build` #209

Open lzwzzy opened 6 years ago

lzwzzy commented 6 years ago

make[1]: /lib/modules/4.9.80-v7+/build: No such file or directory. Stop. Makefile:48: recipe for target 'brcmfmac.ko' failed make: [brcmfmac.ko] Error 2

matthiasseemoo commented 6 years ago

Switch to kernel 4.14, 4.9 is deprecated

blackboy notifications@github.com schrieb am Do., 12. Apr. 2018, 04:13:

make[1]: /lib/modules/4.9.80-v7+/build: No such file or directory. Stop. Makefile:48: recipe for target 'brcmfmac.ko' failed make: [brcmfmac.ko] Error 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/seemoo-lab/nexmon/issues/209, or mute the thread https://github.com/notifications/unsubscribe-auth/ALP_7rMMGxpTYwQTuXlPdBp9cCreheQGks5tnrhCgaJpZM4TRBoa .

lzwzzy commented 6 years ago

so, what should I do?

lzwzzy commented 6 years ago

@matthiasseemoo

matthiasseemoo commented 6 years ago

Upgrade to the new kernel install the headers for this kernel and try it again.

blackboy notifications@github.com schrieb am Do., 12. Apr. 2018, 10:02:

@matthiasseemoo https://github.com/matthiasseemoo

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/seemoo-lab/nexmon/issues/209#issuecomment-380714465, or mute the thread https://github.com/notifications/unsubscribe-auth/ALP_7iGD55xiYzVRC-DqS52EcKEB-UXoks5tnwojgaJpZM4TRBoa .

lzwzzy commented 6 years ago

Can you tell the relevant steps, thank you @matthiasseemoo

lzwzzy commented 6 years ago

Or do you have the .img file made on rpi3

TheMMcOfficial commented 6 years ago

1) make a backup image if something wrong happen you will have a backup 2) connect to your rpi3 and type: sudo apt update && apt upgrade && apt dist-upgrade the following command will update your system including (apps, kernel ...) 3) reboot

or you can google how to update kernel raspbian (kernel-header)

discover59 commented 6 years ago

@lzwzzy Which version of raspbian OS do you use? The same error happened for me before and I found the solution. You have to install raspberrypi-kernel-headers on fresh OS without sudo apt update. This will solve the issue.