I checked the procedure (** Factory reset **) to restore the BX1 of the OpenBlocks IoT family to the factory default state. Make a note for your work.
Connect the BX1 and the Windows terminal with a USB-UART conversion cable, and log in to the console with terminal software such as TeraTerm that enables serial communication. The baud rate and data bit settings are as shown in the figure below.
BX1's Wi-Fi includes Client Mode (connects to an existing Wi-Fi network) and AP Mode (BX1 itself becomes an access point). It's the same as a general Wi-Fi router. I want to download the factory firmware, so I connect to the Internet in Client Mode.
command
wpa_passphrase [SSID] [Passphrase]
Standard output
network={
ssid="[SSID]"
#psk="[Passphrase]"
psk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
}
Set the above SSID and encryption key.
/etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
wpa-ssid [SSID]
wpa-psk XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
wpa-ap-scan 1
wpa-key_mgmt WPA-PSK
wpa-proto WPA RSN
wpa-pairwise CCMP TKIP
wpa-group CCMP TKIP
ifdown wlan0 && ifup wlan0
Plat'Home's site shows the firmware for the latest kernel of ** Intel Edison **. Since there is image data, download it.
cd /root
wget http://ftp.plathome.co.jp/pub/BX1/wheezy/3.10.17-17/bx1_userland_web1.0.14-1.tgz
Check the output of the Web UI to see which version of BX1 to download.
curl -sL localhost:880 | grep Version
The BX1 has a RAM disk mode that does not use storage and a storage combined mode that uses storage.
In the display of the df
command, what is mounted on /. Rw
is the storage mode if it is / dev / mmcblk0p10
, and the RAM disk mode if it is tmpfs
.
e2label /dev/mmcblk0p10 ""
reboot
After rebooting, log in as root
/ root
.
yes | mkfs -t ext4 -L DEBIAN /dev/mmcblk0p10
sync
It takes about 3 minutes.
mount /dev/mmcblk0p10 /mnt
tar zxf /root/bx1_userland_web1.0.14-1.tgz -C /mnt 2> /dev/null
umount /mnt
rm -f /root/bx1_userland_web1.0.14-1.tgz
e2label /dev/mmcblk0p10 DEBIAN
reboot
If you cannot connect to Wi-Fi from ** Debian GNU / Linux **, connect from ** Yocto Linux **, which is Intel Edison's embedded Linux.
Serially connect to the PC and perform the following operations.
******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size) = 0x00080000
*** Ready to receive application ***
Is displayed, press the space key repeatedly, and when the boot prompt appears, enter the following command.
boot > run bootYocto
In the default low power consumption mode, the first character of the serial console may be missed, so the serial communication power is always on.
echo on > /sys/devices/pci0000:00/0000:00:04.3/power/control
Connect to existing Wi-Fi.
wpa_passphrase [SSID] [Passphrase] > /etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf &
udhcpc -i wlan0
Recommended Posts