jimsynz
No wifi connection on Raspberry Pi Zero 2W
Hi folks. I just got my hands on a pi zero 2W and decided to have a play with nerves on it. I ran mix nerves.new, enabled the nerves_system_rpi_0_2, statically configured a wifi SSID and wrote the SD card with mix firmware.burn. I wanted to validate that my dev env was set up correctly and working.
I configured the network thusly:
config :vintage_net,
regulatory_domain: "NZ",
internet_host_list: [{"harton.dev", 443}],
config: [
{"usb0", %{type: VintageNetDirect}},
{"eth0",
%{
type: VintageNetEthernet,
ipv4: %{method: :dhcp}
}},
{"wlan0",
%{
type: VintageNetWiFi,
vintage_net_wifi: %{
networks: [
%{
key_mgmt: :wpa_psk,
ssid: System.fetch_env!("DEFAULT_WIFI_SSID"),
psk: System.fetch_env!("DEFAULT_WIFI_PSK")
}
]
},
ipv4: %{method: :dhcp}
}}
]
As far as I understand it, VintageNet will automatically start and connect without any further configuration, right? Looking at the logs in the UniFi console it doesn’t even appear to be trying to connect.
The actual code (such as it is) is available here.
I’m using MIX_TARGET=rpi0_2 and setting the DEFAULT_WIFI_SSID and DEFAULT_WIFI_PSK with an environment variable at build time.
Pointers appreciated.
Most Liked
jimsynz
I managed to get it to boot with the rpi3a nerves system, so I guess I’m unblocked for now.
jimsynz
So I just ran into this problem again with a Pi 0 2W and discovered that it was running out of RAM on boot. If your project is contains a lot of dependencies then you want to switch off the emulators embedded mode in your vm.args.eex. This will cause slower boots but it will actually boot without running out of RAM.
jimsynz
Well this explains much. It’s not even booting. I connected a serial cable and this is what I see:
[ 7.218363] watchdog: watchdog0: watchdog did not stop!
[ 8.237418] reboot: Restarting system
[ 0.448748] EXT4-fs (mmcblk0p3): VFS: Can't find ext4 filesystem
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








