Skip to content

Instantly share code, notes, and snippets.

@skvark
Last active May 13, 2024 06:19
Show Gist options
  • Save skvark/794217634c5024da9052 to your computer and use it in GitHub Desktop.
Save skvark/794217634c5024da9052 to your computer and use it in GitHub Desktop.
Flashing Intel Edison using only serial connection and wifi

Do this at your own risk. I take no responsibility for any damage caused to your board.

My Intel Edison was shipped to me with old and buggy version of the Yocto Linux image. I purchased only the console block via Sparkfun (which has only one USB port connected to UART2 (serial connection) of the Edison therefore it's not connected to the actual USB on Edison) so I could not update to a new build the normal way.

I assume you have successfully connected to the Edison via the serial connection and can use the linux console on Edison.

  1. Connect the Edison into a local WiFi network with configure_edison --wifi
  2. Check that you can access to the Edison via SSH or with browser
    • if you can't, vi /etc/systemd/system/basic.target.wants/network-gadget-init.service and change the ip addresses to i.e 192.168.99.15
  3. On Edison, cd /
  4. mkdir update
  5. mkfs.vfat -F32 -I /dev/mmcblk0p9 (mmcblk0p9 is the partition which will contain the new FW files, command formats it to FAT32)
  6. mount -t vfat /dev/mmcblk0p9 /update/ (mount the partition to the /update)
  7. Connect to the Edison i.e. with FileZilla and move the update .zip file (can be found from Intel www site) to the /update folder on Edison
  8. cd /update
  9. mkdir temp
  10. unzip update_file.zip -d temp
  11. rm update_file.zip
  12. mv temp/ota_update.scr . (ota_update.scr must be first in the folder hence this)
  13. mv temp/* .
  14. rm -rf temp
  15. reboot ota

If everything is fine, Edison should now boot and start the upgrade process automatically. It takes couple of minutes and after that you have more robust version of the Yocto image up and running. I recommend running configure_edison --setup after the update process.

@skvark
Copy link
Author

skvark commented May 13, 2024

Thank you! Instructions are still valid in 2024 ;)

That's nice! I'm happy that this has helped so many people.

@andriyfedorov
Copy link

The latest supported Yocto Linux image (Kirkstone64, 2023) can be installed using flashall.sh (supplied in software bundle):
https://github.com/edison-fw/meta-intel-edison/releases/tag/Kirkstone64

root@edison:~# uname -r
6.1.55-edison-acpi-standard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment