Building and flashing images on Texas Instruments (TI)
Building and 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:
- 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 cd automotive-image-builder ./automotive-image-builder --container build --target <model-name> --mode package --export image <manifest> .
Replace <model name>
with the string corresponding to your board, such as am62sk
.
Replace <manifest>
with your custom OSBuild manifest file, in the .mpp.yml format.
If you do not have your own manifest file, you can build an AutoSD image with the automotive-image-builder/example.mpp.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 switches to SD boot mode
SW11[1-8] = 1000 0010 SW7[1-8] = 0000 0000
. -
Plug in the SD card, and then start the system.
Additional Resources