CaptChrisD

CaptChrisD

Wifi Module not auto loading at boot up

I am trying to use a RT5370 chipset Wifi dongle and am having a bit of trouble.

The system is not automatically setting up the wifi module on boot up. I am having to run :os.cmd('modprobe mt7601u') manually to get the module to be detected when booting up with the USB dongle plugged in.

I am seeing the wifi module be detected by USB without issue, it is just the loading of the driver that is not occurring without the manual modprobe. After the manual modprobe it functions as expected.

To be clear, if I plug it in after boot up the dongle is discovered and the driver is loaded without issue.

I have added the following to my custom BBB system:

diff --git a/linux/linux-5.10.defconfig b/linux/linux-5.10.defconfig
index 0241469..7049ece 100644
--- a/linux/linux-5.10.defconfig
+++ b/linux/linux-5.10.defconfig
@@ -152,7 +152,8 @@ CONFIG_USB_NET_SMSC95XX=y
 # CONFIG_WLAN_VENDOR_INTEL is not set
 # CONFIG_WLAN_VENDOR_INTERSIL is not set
 # CONFIG_WLAN_VENDOR_MARVELL is not set
-# CONFIG_WLAN_VENDOR_MEDIATEK is not set
+CONFIG_WLAN_VENDOR_MEDIATEK=y
+CONFIG_MT7601U=m
 CONFIG_RT2X00=m
 CONFIG_RT2800USB=m
 CONFIG_RT2800USB_RT53XX=y
diff --git a/nerves_defconfig b/nerves_defconfig
index 52400cd..c5ea242 100644
--- a/nerves_defconfig
+++ b/nerves_defconfig
@@ -45,15 +45,20 @@ BR2_PACKAGE_ALSA_UTILS_ALSACONF=y
 BR2_PACKAGE_ALSA_UTILS_APLAY=y
 BR2_PACKAGE_F2FS_TOOLS=y
 BR2_PACKAGE_LINUX_FIRMWARE=y
+BR2_PACKAGE_LINUX_FIRMWARE_MEDIATEK_MT7601U=y

Anyone have an idea how to get it detected at boot up?

Most Liked

LostKobrakai

LostKobrakai

Not really an answer to the question, but vintage net supports power managers, which can be used to handle the lifecycle of hw related to networking. You might be able to use this to handle running the modprobe.

lawik

lawik

Nerves Core Team

Does it have to be compiled as a module? IIRC sometimes you can do away with the need for modprobe by compiling it in with =y.

I don’t have a great understanding of when and why this is needef.

Where Next?

Popular in Questions Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
vac
Hi, I’m quite new in Elixir and I’m trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and I...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
yawaramin
In the Dialyzer docs ( dialyzer — OTP 29.0.2 (dialyzer 6.0.1) ), there is a way to turn off a specific warning for a function: -dialyzer...
New

Other popular topics Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 42920 311
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41539 114
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31142 143
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 47930 226
New

We're in Beta

About us Mission Statement