Skip to content

Reflashing an UP board

CrypticaScriptura edited this page Oct 16, 2024 · 2 revisions

Reflashing an UP board

Requirements

Step-by-step

  1. On one USB, flash a Linux live distro using balenaEtcher (https://etcher.balena.io/).
  2. Uncompress the ubilinux-4-truncated.img.gz file so that you're left with a ubilinux-4-truncated.img file. On the second USB (formatted exFAT), copy the uncompressed Ubilinux image, as well as the flash-image.sh script.
  3. Disconnect the camera USB cables, but note the port from which they came, as they'll need to be placed back into the same port.
  4. Insert the Linux live USB drive and a USB keyboard into the UP board. Power the machine and enter the BIOS (should be with F7), setting it to boot from the live USB.
  5. Once in the live USB's desktop, open a terminal with CTRL + ALT + T. Run sudo su
  6. Plug in the data USB drive and navigate to it through the terminal: cd /media/linuxmint/USBNAME
  7. Change the script's permissions so you're able to run it directly: chmod u+x flash-image.sh
  8. Run the script as below, replacing the machine model (sintra / gaia / tejo) and printer model (nippon / zebra / none):
./flash-image.sh install /dev/mmcblk0 ubilinux-4-truncated.img upboard gaia nippon
  1. Once complete, run sync and then shutdown now to power off the board. Unplugg the USB drives and keyboards, place the camera USB cables back into their original position (important) and boot into the newly flashed board.

Checksums:

b3sum ubilinux-4-truncated.img.gz
aa61d5ff4e12cfa74ba06cf0d62c4aa650f52ac109b1d0915e63acdc68c306eb
b3sum ubilinux-4-truncated.img
844e2b825d08f2e53e6d47140b62d3796df6f2700a0ebb55528294afc5c36c64