I’ve built a ResinOS Image from scratch using the instructions provided here (https://github.com/resin-os/resin-edison). I am able to build it, and flash my board with it using the flashall.sh script. I am also able to connect to the board via serial port and login as root. However, I am not able to connect to WiFi.
I am using Resin OS 2.0.0-rc3
When I am booting up I get the following error:
[ 11.540360] bash[669]: cp: cannot stat '/mnt/boot/system-connections/': No such file or directory
ifconfig shows the interface is available:
docker0 Link encap:Ethernet HWaddr 02:42:16:D5:56:AA
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:482 errors:0 dropped:0 overruns:0 frame:0
TX packets:482 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:30178 (29.4 KiB) TX bytes:30178 (29.4 KiB)
usb0 Link encap:Ethernet HWaddr 02:00:86:10:C3:11
inet6 addr: fe80::86ff:fe10:c311/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:3282 (3.2 KiB)
wlan0 Link encap:Ethernet HWaddr 90:B6:86:12:37:5D
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
and this is the output of nmcli dev:
DEVICE TYPE STATE CONNECTION
usb0 ethernet disconnected --
wlan0 wifi disconnected --
docker0 bridge unmanaged --
sit0 iptunnel unmanaged --
lo loopback unmanaged --
I know that wlan0 is working since when I do nmcli dev wifi list
I get a list of all the available WiFi networks around me. I’ve tried setting up a connection manually, but I keep getting an error:
~# nmcli con add con-name 'aalto open' type wifi ssid 'aalto open' ifname "*"
Connection 'aalto open' (670d9b03-681e-4baa-84dd-a356e1d32e75) successfully added.
~# nmcli con up 'aalto open'
Error: Connection activation failed: Active connection removed before it was initialized
~# nmcli con up 'aalto open' ifname wlan0
Error: device 'wlan0' not compatible with connection 'aalto open':Invalid device MAC address..
Is there another way to set up this wifi connection? I’ve tried also modifying the meta-resin/meta-resin-common/recipes-connectivity/networkmanager/files/resin-sample to include my wireless connection and then re-built. But still I get the same error that cannot stat /mnt/boot/system-connections:
[connection]
id=aalto open
type=wifi
[wifi]
mode=infrastructure
ssid=aalto open
[ipv4]
method=auto
[ipv6]
addr-gen-mode=stable-privacy
method=auto
Can anyone shed some light on this?
Thanks!
EDIT: I’ve also tried downloading the configuration file from resin.io and injecting into the image. The problem is that in the case of Edison the image isn’t a single img file, but a folder full of other images and files.