Skip to content

Commit

Permalink
Fix failing to make network commissioning on RP4 (#5358)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored Mar 15, 2021
1 parent 4401402 commit cf7aa2d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,38 @@ sudo apt-get install pi-bluetooth

You need to reboot your RPi after install `pi-bluetooth`.

By default, wpa_supplicant is not allowed to update (overwrite) configuration,
if you want chip app to be able to store the configuration changes permanently,
we need to make the following changes.

1. Edit the dbus-fi.w1.wpa_supplicant1.service file to use configuration file
instead.

```
sudo nano /etc/systemd/system/dbus-fi.w1.wpa_supplicant1.service
```

Change the wpa_supplicant start parameters to:

```
ExecStart=/sbin/wpa_supplicant -u -s -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
```

2. Add the wpa-supplicant configuration file

```
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
```

And add the following content to the file:

```
ctrl_interface=DIR=/run/wpa_supplicant
update_config=1
```

Finally, reboot your RPi.

### Build Preparation

Before running any other build command, the `scripts/activate.sh` environment
Expand Down

0 comments on commit cf7aa2d

Please sign in to comment.