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.39k stars 448 forks source link

No brcmfmac.ko file with kernel 4.13.13-sunxi #151

Open mashu opened 6 years ago

mashu commented 6 years ago

Hi,

I am building on NanoPi Air Neo which uses same chipset as Raspberry 3. Unfortunately, I need to use newer kernel 4.13.13-sunxi I get the following error in dmesg

[ 117.869421] brcmfmac: version magic '4.9.24-v7+ SMP mod_unload modversions ARMv7 p2v8 ' should be '4.13.13-sunxi SMP mod_unload ARMv7 thumb2 p2v8 ' [ 134.133716] brcmfmac: version magic '4.9.24-v7+ SMP mod_unload modversions ARMv7 p2v8 ' should be '4.13.13-sunxi SMP mod_unload ARMv7 thumb2 p2v8 '

I would appreciate quick fix ? It builds firmware but .ko kernel module never gets created.

matthiasseemoo commented 6 years ago

Unfortunately, we do not have to time to get kernel modules running on all platforms so that the community would need to work on a solution. you can also do it yourself. take the driver for your platform and apply our patches.

Am 17.11.2017 10:21 vorm. schrieb "Mashu" notifications@github.com:

Hi,

I am building on NanoPi Air Neo which uses same chipset as Raspberry 3. Unfortunately, I need to use newer kernel 4.13.13-sunxi I get the following error in dmesg

[ 117.869421] brcmfmac: version magic '4.9.24-v7+ SMP mod_unload modversions ARMv7 p2v8 ' should be '4.13.13-sunxi SMP mod_unload ARMv7 thumb2 p2v8 ' [ 134.133716] brcmfmac: version magic '4.9.24-v7+ SMP mod_unload modversions ARMv7 p2v8 ' should be '4.13.13-sunxi SMP mod_unload ARMv7 thumb2 p2v8 '

I would appreciate quick fix ? It builds firmware but .ko kernel module never gets created.

— 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/151, or mute the thread https://github.com/notifications/unsubscribe-auth/ALP_7uNqv-sruBQs5zvVF0kUH8lMa3C7ks5s3VAYgaJpZM4QhwKJ .

mashu commented 6 years ago

@matthiasseemoo thanks for reply

Any tips where to start ? I do have /usr/src/linux-headers-4.13.13-sunxi only at the moment.

matthiasseemoo commented 6 years ago

compile the brcmfmac driver for your platform on your own. and then add all of our changes to your kernel.

Am 17.11.2017 10:37 vorm. schrieb "Mashu" notifications@github.com:

@matthiasseemoo https://github.com/matthiasseemoo thanks for reply

Any tips where to start ? I do have /usr/src/linux-headers-4.13.13-sunxi only at the moment.

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

DanielAW commented 6 years ago

Have a look at this patch: https://github.com/seemoo-lab/nexmon/blob/master/patches/bcm43430a1/7_45_41_26/nexmon/brcmfmac.patch Especially look for sections which are marked with /* Nexmon */

matthiasseemoo commented 6 years ago

but this patch does not contain the new changes that let you create a separate monitor mode interface.

Am 17.11.2017 10:46 vorm. schrieb "DanielAW" notifications@github.com:

Have a look at this patch: https://github.com/seemoo-lab/ nexmon/blob/master/patches/bcm43430a1/7_45_41_26/nexmon/brcmfmac.patch Especially look for sections which are marked with / Nexmon /

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