hypriot / rpi-image-builder

**DEPRECATED** Build Raspberry Pi Raspbian images based on custom kernels
0 stars 0 forks source link

Improve WiFi support #53

Closed StefanScherer closed 9 years ago

StefanScherer commented 9 years ago

Connects to hypriot/build-pipeline#141

StefanScherer commented 9 years ago

Current commit with additional firmware packages can be tested with s3://buildserver-production/images/hypriot-rpi-20150930-230026.img.zip

Use eg.

flash --config myocci.txt s3://buildserver-production/images/hypriot-rpi-20150930-230026.img.zip

to put your WiFi settings into the SD image BEFORE you boot your RPi for the first time. Then just turn on your RPi and run the rspec tests via WiFi.

Govinda-Fichtner commented 9 years ago

The problem with WLAN at first boot is the /etc/wpa_supplicant/wpa_supplicant.conf is not present when the network/wlan is brought up.

The wpa config file would be written by occi, but the /etc/init.d/occi runs after the network is brought up. The wpa config is written but only used after the next reboot.

pre-up occi in /etc/network/interfaces fixes the problem.