Jump to content

Nano Pi Neo Air - Wifi module changed/ moved


Mavvas

Recommended Posts

In the 3.4 Kernel I could call:
 

rmmod dhd
modprobe dhd op_mode=2

To set the wifi module to Access Point mode. But with the latest Kernel 4.14(?) neither of these modules exist.

Does anyone know what the equivalent of this code would be for 4.14, or some other way to enable AP mode?

 

Link to comment
Share on other sites

6 hours ago, Mavvas said:

To set the wifi module to Access Point mode. But with the latest Kernel 4.14(?) neither of these modules exist.

Does anyone know what the equivalent of this code would be for 4.14, or some other way to enable AP mode?


You don't need to specify the mode in a modern kernel. It knows how to switch out of the box. A module for wireless is brcmfmac and it is enabled by default. Try to use armbian-config way of setting AP.

 

Link to comment
Share on other sites

9 hours ago, Igor said:


You don't need to specify the mode in a modern kernel. It knows how to switch out of the box. A module for wireless is brcmfmac and it is enabled by default. Try to use armbian-config way of setting AP.

 

Thanks for the suggestion, I'll look into it in a bit, but I need it to be done through script. Would the following work?

 

rmmod brcmfmac
modprobe brcmfmac op_mode=2

 

Also I'm using the nanopi-neo-air_eflasher_4.14.img if it helps.

Link to comment
Share on other sites

5 minutes ago, Mavvas said:

Also I'm using the nanopi-neo-air_eflasher_4.14.img if it helps.


No idea. We only provide support for Armbian builds.

 

5 minutes ago, Mavvas said:

rmmod brcmfmac modprobe brcmfmac op_mode=2


No. Read what I wrote once again.

Link to comment
Share on other sites

6 hours ago, Igor said:


No idea. We only provide support for Armbian builds.

 


No. Read what I wrote once again.

My bad, I didn't realize that wasn't an armbian build. I just figured since it was on the wiki it was armbian. If I switch to the mainline debian build available at armbian can I do the following:

flash a custom image onto the eMMC

set/get gpio values via script (I'm assuming you can but I'll ask just in case) via script

switch to and from AP mode via script

 

If so, consider me switched, but can I get a write up of how to do all of those?

Link to comment
Share on other sites

Armbian images are in (much) better shape than board makers. The answer is yes to all.

 

4 hours ago, Mavvas said:

If so, consider me switched, but can I get a write up of how to do all of those?


General things: https://docs.armbian.com/User-Guide_Getting-Started/

Gpio: http://linux-sunxi.org/GPIO

Flasher: https://github.com/zador-blood-stained/fel-mass-storage

 

AP/STA switching will be more tricky - only the most important tip: adapters are used by Network Manager by default - if you want to use hostapd you need to mask that adaptor in its config.  You can see how we do this: https://github.com/armbian/config/blob/dev/debian-config-jobs#L315-L323 ... use our config to make a working hostapd config, then a script to switch between.

 

If you can't manage to work out with those tips, ask for help in comunity section or hire someone. 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines