Flashing images on Texas Instruments (TI)
Flashing images on Texas Instruments (TI)¶
Follow this procedure to flash an AutoSD image onto a Texas Instruments (TI) board.
Prerequisites
- An AArch64 system with internet access
- An SD card
- A TI board or platform supported by AutoSD
Obtaining an image¶
Use the automotive-image-builder
tool to build AutoSD images for these TI boards:
- BeaglePlay (
beagleplay
) - SK-AM62x Sitara (
am62sk
) - SK-AM69 Jacinto (
am69sk
) - TDA4 EVM (
tda4vm_sk
) - J784S4 EVM (
j784s4evm
)
For these boards, you can download a prebuilt image if you don't want to build your own:
- SK-AM69 Jacinto (
am69sk
) - J784S4 EVM (
j784s4evm
)
Building the AutoSD image¶
Procedure
-
Clone the
automotive-image-builder
repository:console $ git clone https://gitlab.com/CentOS/automotive/src/automotive-image-builder.git
-
Build the TI image for your TI board:
console $ sudo ./automotive-image-builder build \ --container \ --target <model-name> \ --mode package \ --export image \ <manifest> .
Replace
<model-name>
with the string corresponding to your board, such asam62sk
. Replace<manifest>
with your custom automotive image builder manifest file, in the.aib.yml
format. If you do not have your own manifest file, you can build an AutoSD image with theautomotive-image-builder/examples/simple.aib.yml
manifest file. -
Continue with Flashing the image onto an SD card.
Downloading a prebuilt image¶
Procedure
-
Identify the model name of your TI board as used in the image name. See the nightly build directory. The model name is something like
am69sk
(for SK-AM69 Jacinto) orj784s4evm
(for J784S4 EVM), as seen afterauto-osbuild-
in the nightly build directory. -
Store the value of the latest nightly image in a variable called
AUTOSD_IMAGE_NAME
. This example is for theam69sk
model. Replace that piece of the command if you are using a different board.console $ export AUTOSD_IMAGE_NAME="$(curl https://autosd.sig.centos.org/AutoSD-9/nightly/TI/ | grep -oE 'auto-osbuild-am69sk-autosd9-qa-regular-aarch64-[0-9]+\.[A-Za-z0-9]+\.raw\.xz' | head -n 1)"
-
Download the image.
console $ wget -O auto-osbuild-am69sk-autosd9-qa-regular.raw.xz http://autosd.sig.centos.org/AutoSD-9/nightly/TI/$AUTOSD_IMAGE_NAME
-
Uncompress the compressed
.xz
image file:console $ xz -d auto-osbuild-am69sk-autosd9-qa-regular.raw.xz
-
Continue with Flashing the image onto an SD card.
Flashing the image onto an SD card¶
-
To flash the uncompressed image onto an SD card, replace
</dev/sdX>
with your block device.console $ dd if=auto-osbuild-am69sk-autosd9-qa-regular.raw of=</dev/sdX> status=progress bs=4M
-
Set the onboard DIP switch [SW2] to SD boot mode by moving the physical toggle for
sw2.4
to the ON position.Note
By default, the board ships with all four DIP switch toggles set to OFF position, which causes the board to boot from the SD card.
-
Plug in the SD card, and then start the system.
Additional Resources