blob: a940651713d2a6f4ccef85b4a2f7399a0177198e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# soundbox firmware
This is the firmware for soundbox. It is based on the Zephyr real time
operating system [1].
## Get all source files
```
git submodule update --init
./update_espressif_blobs.py # proprietary binary blobs
```
## Setup Python environment
```
python -m venv zephyrproject/.venv
source zephyrproject/.venv/bin/activate
pip install -r zephyrproject/requirements.txt
```
## Build
```
cmake -Bbuild -GNinja
ninja -C build
```
## Flash
```
esptool.py --chip auto write_flash 0x1000 build/zephyr/zephyr.bin
```
## Connect to shell
```
picocom -b 115200 /dev/ttyUSB0
```
## Scan for WLAN networks
```
wifi scan
```
## Connect to WLAN network
This uses WPA2-PSK (`-k 1`). See `wifi connect help` for other options.
```
wifi connect -s <ssid> -p <passphrase> -k 1
```
## Validate network connection
```
net ping 8.8.8.8 # Google DNS server
```
[1]: https://zephyrproject.org
|