ref. http://flashgamer.com/arduino/comments/how-to-update-the-official-arduino-wifi-shield
http://arduino.cc/en/Hacking/WiFiShieldFirmwareUpgrading
Hardware: Arduino UNO rev.3, Arduino Wifi shield, usb mini cable
1. Install dfu-programmer
sudo apt-get install dfu-programmer
2. Download latest Wifi shield firmware
https://github.com/arduino/Arduino/tree/master/hardware/arduino/firmwares
또는, Aduino IDE software 에 포함된 Wifi shield 펌웨어 사용.
arduino-nightly/hardware/arduino/avr/firmwares/wifishield/binary/
3. Wifi shield 의 Power 핀과 Analog 핀 사이에 있는 점퍼 둘을 연결함
4. ArduinoWifiShield_upgrade.sh 스크립트를 실행
$ cd arduino-nightly/hardware/arduino/avr/firmwares/wifishield/scripts
–> ArduinoWifiShield_upgrade.sh 파일에서 경로수정
$ vi ArduinoWifiShield_upgrade.sh
# WIFI_FW_PATH=”/hardware/arduino/firmwares/wifishield/binary”
WIFI_FW_PATH=”/hardware/arduino/avr/firmwares/wifishield/binary”
$ sudo chmod a+x ArduinoWifiShield_upgrade.sh
- 스크립트 파일 도움말:
$ sudo ./ArduinoWifiShield_upgrade.sh -h
- 스크립트 파일 실행:
–> 옵션:
-a : Arduino IDE 설치 경로
-f : shield (Arduino WiFi Shield upgrade), all (Arduino WiFi Shield upgrade, HD WiFi module firmware)
sudo ./ArduinoWifiShield_upgrade.sh -a /home/jinny/App/arduino-nightly -f all
Arduino WiFi Shield upgrade
=========================================
Instructions:
To access to the USB devices correctly, the dfu-programmer needs to have the root permissions.
You can upgrade the firmware of the antenna togheter with the shield firmware or only the shield firmware
if there aren't changes on the antenna firmware.
Use the '-h' parameter for help
=========================================
****Upgrade HD WiFi module firmware****
Validating...
167732 bytes used (66.05%)
Press the RESET button on the shield then type [ENTER] to upgrade the firmware of the shield..
****Upgrade WiFi Shield firmware****
Validating...
261594 bytes used (103.01%)
Done. Remove the J3 jumper and press the RESET button on the shield.
Thank you!
5. 점퍼를 연결한 핀을 제거하고 Reset 버튼을 누룸.