Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No WiFi on raspberry4 #105

Closed
sophokles73 opened this issue May 22, 2023 · 3 comments
Closed

No WiFi on raspberry4 #105

sophokles73 opened this issue May 22, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@sophokles73
Copy link

Describe the bug
Leda image 0.1.0-M2 on a Raspberry4B does not connect to WiFi

To Reproduce

  1. follow the steps to write the image to an SD card as described in https://eclipse-leda.github.io/leda/docs/general-usage/raspberry-pi/
  2. Add a wpa_supplicant.conf file to the boot partition with the following content
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=DE
    
    network={
         scan_ssid=1
         ssid="my_ssid"
         psk="my_wpa2_pwd"
    }
    
  3. Boot Raspi from SD card
  4. Verify that Raspi has not connected to WiFi using router Web UI

Expected behaviour
Raspi should have connected to WiFi and should show up in router's Web UI

Screenshots / Logfiles

Leda Version (please complete the following information):

  • Version: 0.1.0-M2
  • Machine: raspberrypi4-64
  • Connectivity: local WiFi with transparent internet access
@sophokles73 sophokles73 added the bug Something isn't working label May 22, 2023
@stlachev
Copy link
Contributor

Hi Kai,
According to our documentation Headless Wi-Fi configuration, you can use:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
        key_mgmt=NONE
}
network={
    ssid="my_ssid"
    psk="my_wpa2_pwd"
    key_mgmt=WPA-PSK
}

The file can be created by Notepad++ as a Unix one (LF only).
If you already saw that your previous file (wpa_supplicant.conf) does not work, you can delete it from /etc and /boot folder.
You can also create the file as described in step Connecting to a network just to see if it is working for you, and then move it to /boot partition or distribute it if you like to, or just keep it there in /etc. Note that the line:
wpa_passphrase <SSID> <Passphrase> >> /etc/wpa_supplicant.conf appends

@sophokles73
Copy link
Author

Hey @stlachev thanks for the quick response. I failed to see the dedicated section on WiFi configuration in the docs (stupid me ;-)) In any case, I had been following the guide at https://eclipse-leda.github.io/leda/docs/general-usage/raspberry-pi/ and there is one line

Optional: If you need to adapt the network configuration eg Wifi credentials, edit the configuration files on the boot partition.

which IMHO could benefit from including a link to https://eclipse-leda.github.io/leda/docs/general-usage/wifi-configuration/ ...

@sophokles73
Copy link
Author

I have update my config according to the Leda documentation and everything works as expected now. Thanks again for your help @stlachev 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants