# Modified Raspberry Pi v3 kernel module

**URL:** <https://forums.balena.io/t/modified-raspberry-pi-v3-kernel-module/4891>\
**Category:** Product support\
**Created:** [January 4, 2019, 9:59am UTC](https://forums.balena.io/t/modified-raspberry-pi-v3-kernel-module/4891 "2019-01-04T09:59:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajlennon](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ajlennon/32/63_2.png) [@ajlennon](https://forums.balena.io/u/ajlennon)\
**Post date:** [January 4, 2019, 9:59am UTC](https://forums.balena.io/t/modified-raspberry-pi-v3-kernel-module/4891/1 "2019-01-04T09:59:00Z")

</div>

Hi,

I’m working on a project which requires monitor mode support for the onboard Raspberry Pi v3 wifi chip.

It seems that this isn’t supported out of the box, but there are a set of patches which may be useful.

ref: [https://github.com/seemoo-lab/nexmon](https://github.com/seemoo-lab/nexmon)

Can you suggest the easiest route for me to compile the patched module for the [Balena.io](http://Balena.io) RPi image?

Thanks!

Alex

---

<div class="post-metadata">

**Author:** ![gelbal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/gelbal/32/1109_2.png) [@gelbal](https://forums.balena.io/u/gelbal)\
**Post date:** [January 4, 2019, 11:41am UTC](https://forums.balena.io/t/modified-raspberry-pi-v3-kernel-module/4891/13 "2019-01-04T11:41:46Z")

</div>

Hi Alex,

Perhaps you could make use of the following repository to build a module with the patches and replace the default one at runtime :

> **[balena-os/kernel-module-build](https://github.com/balena-os/kernel-module-build)**
>
> Example project for building an OOT kernel module in resin - balena-os/kernel-module-build

Cheers…

---

<div class="post-metadata">

**Author:** ![ajlennon](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ajlennon/32/63_2.png) [@ajlennon](https://forums.balena.io/u/ajlennon)\
**Post date:** [January 4, 2019, 12:00pm UTC](https://forums.balena.io/t/modified-raspberry-pi-v3-kernel-module/4891/15 "2019-01-04T12:00:31Z")

</div>

Lovely - thanks @gelbal - I’ll have a go and let you know how I get on!

---

<div class="post-metadata">

**Author:** ![ajlennon](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ajlennon/32/63_2.png) [@ajlennon](https://forums.balena.io/u/ajlennon)\
**Post date:** [January 9, 2019, 2:48pm UTC](https://forums.balena.io/t/modified-raspberry-pi-v3-kernel-module/4891/16 "2019-01-09T14:48:02Z")

</div>

That was really useful thanks @gelbal.

I’ve been working to add monitor mode to the Raspberry Piv3B and Piv3B+ WiFi drivers for a project I’m working on here. This required some underlying kernel module and firmware changes.

I’ve documented the process under [Balena.io](http://Balena.io) below, and also provided some binaries for people who just want to get up and running quickly.

> **[DynamicDevices/nexmon-binaries](https://github.com/dynamicdevices/nexmon-binaries)**
>
> Placeholder for binaries I'm building for bcm monitor mode using nexmon - DynamicDevices/nexmon-binaries

---

<div class="post-metadata">

**Author:** ![gelbal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/gelbal/32/1109_2.png) [@gelbal](https://forums.balena.io/u/gelbal)\
**Post date:** [January 11, 2019, 9:04am UTC](https://forums.balena.io/t/modified-raspberry-pi-v3-kernel-module/4891/17 "2019-01-11T09:04:48Z")

</div>

@ajlennon, that’s nice to hear. Thanks for sharing your work with the community!

---

<div class="post-metadata">

**Author:** ![ajlennon](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ajlennon/32/63_2.png) [@ajlennon](https://forums.balena.io/u/ajlennon)\
**Post date:** [January 11, 2019, 9:22am UTC](https://forums.balena.io/t/modified-raspberry-pi-v3-kernel-module/4891/18 "2019-01-11T09:22:51Z")

</div>

It’s a pleasure to assist in some small way 🙂
