Damirados
How to use custom wifi drivers with Nerves?
Hi, for my project I need patched version of wifi drivers.
I already have custom nerves system but I have never done custom drivers.
How would I go about this after I compile drivers?
I will also need this card to be unmanaged, how does that work with VintageNet do I just not include it in config?
Marked As Solved
pojiro
Hi!
When I added a driver, kernel-module, before, I made a buildroot package like following.
https://github.com/pojiro/nerves_system_rpi4_mouse/commit/5b6cc45f9962c87263107f0083e6047f2b7e4b43
Related Buildroot document is Chapter 18. Adding new packages to Buildroot.
Also Liked
abelino
@Damirados At a quick glance, the repo you link is a hard fork from fariouche/rtl8812au-unified which is a soft fork of aircrack-ng/rtl8812au. Buildroot’s has a package for aircrack-ng/rtl8812au and since svpcom’s repo is also merging in upstream changes from fariouche’s repo, I see two options for you:
- Generate a patch that captures the differences between
svpcomandfariouche’s repo and add it to yourpatches/rtl8812au-aircrack-ngdirectory. This allows you to use the package available in upstream buildroot and also bring in all the code changes fromsvpcomin the form of a single or multiple patch files. More importantly, you don’t need to redefine a package. (This is the approach I would take long term)
NOTE: User defined packages can’t use existing names used by upstream packages.
- Define a custom package by copying package/rtl8812au-aircrack-ng. Rename it. Modify
RTL8821AU_SITEto point tosvpcomrepo and fix any compilation issues that might come up. This might be the easier option of the two approaches because generating a patch file might require dealing with conflicts.
Buildroot also has an alternative driver you might want to look at: package/rtl8821au
Once you have buildroot compiling your driver, you will need to enable it in the linux defconfig via make linux-menuconfig or by editing the system’s linux defconfig file directly.
Damirados
I am currently building companion computer system for autonomous drones that enables live streaming.
As test drone I am using 5 inch FPV drone with flight controller capable of running ardupilot.
I am basically implementing OpenHD using nerves and membrane. So video transmission, bidirectional Mavlink and data tunnel over wifibroadcast
Once that is done I plan to experiment with features like object detection and tracking…
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









