Utilite U-Boot Update
From Utilite Wiki
The procedure described below outlines the steps necessary to update or re-install U-Boot bootloader onto Utilite.
Installation target media
- U-Boot resides in on-board SPI flash.
- U-Boot can also be installed on a micro-SD card.
- Boot Utilite and download the latest U-Boot release.
- Ensure the integrity of the file with md5sum utility. For example:
# md5sum utilite-updater.tar.bz2 bf0d453aeb61a680e15e263eb3ff31bb utilite-updater.tar.bz2
- Untar the archive to get the firmware image (cm-fx6-firmware file) and update script
# mkdir utilite-updater # tar -xvf utilite-updater.tar.bz2 -C utilite-updater
It is possible to update/reinstall U-Boot either manually, or by using the update script.
Update using script
- Get root user access
- cd into the directory where you extracted the update
- Run the updater with the command below and follow instructions
- After the update is complete, restart Utilite.
- Make sure to power off Utilite.
- Connect the host PC to the Utilite COM1 connector located at the front via a serial cable.
- Start terminal emulation software on your PC. Set baud rate to 115200 bps, 8 bit per frame, 1 stop bit, no parity, no flow control.
- Turn on Utiltie. The U-Boot bootloader will start and you will get a command prompt in the terminal window.
|If the Utilite boot settings are different than default, pressing and holding ^C while turning Utilite on might be needed, in order to get command prompt.|
Follow the instructions in the CM-FX6 firmware update article for installing onto the SPI flash. Whenever the CM-FX6 article mentions the SDIO3(BOOT) SD card socket, use the Utilite micro-SD socket.
Creating a bootable micro-SD card
|The following instructions may overwrite filesystem partitions on the SD card! Do not follow these instructions on SD cards you use to store files.|
- Connect a micro-SD card to you PC workstation.
- Determine the device file of your mini-SD card. One way to do this is to run
dmesg | tailright after inserting the micro-SD card. In the following example, we can see that the device file of the micro-SD card is /dev/sde:
$ dmesg | tail [951294.896987] sd 22:0:0:2: [sde] 15564800 512-byte logical blocks: (7.96 GB/7.42 GiB) [951294.899003] sd 22:0:0:2: [sde] No Caching mode page found [951294.899005] sd 22:0:0:2: [sde] Assuming drive cache: write through [951294.901606] sd 22:0:0:2: [sde] No Caching mode page found [951294.901608] sd 22:0:0:2: [sde] Assuming drive cache: write through [951294.902756] sde: sde1
- Use dd command to write U-Boot into the micro-SD card (replace "/dev/sdX" with the device file path)
dd if=cm-fx6-firmware of=/dev/sdX bs=1K skip=1 seek=1 oflag=dsync
- After the write is complete, insert the micro-SD card into the Utilite micro-SD slot, and restart Utilite to boot from the micro-SD card.