Flashing images on Qualcomm Snapdragon Ride 4 (SA8775P)¶
Obtaining images¶
To flash AutoSD onto the Ride 4 board, you need two images:
aboot.img- An Android boot image containing the automotive kernel, the initial RAM file system (initramfs), Device Tree Blob (DTB), and the kernel
command line. The boot loader reads the image to start the kernel. Flash
aboot.imgto theboot_apartition. rootfs.simg- A sparse disk image that grows in size as required to accommodate data without storing empty space.
rootfs.simgcontains the root file system partition with files installed from RPM packages and files generated for configuration purposes.
Nightly builds also include a qm_var.simg image for the QM partition.
You can obtain these images by using the following methods:
- Download the nightly images. The AutoSD CI pipeline builds these images each night.
- Build the images. Use tools provided by AutoSD to build example images or customize your own images.
Downloading nightly images¶
Download and uncompress prebuilt nightly AutoSD images for Ride 4. Multiple board variants produce separate nightly directories:
ride4_sa8650p_sx_r3ride4_sa8775p_sxride4_sa8775p_sx_r3
Each directory contains aboot.img.xz, rootfs.simg.xz, and qm_var.simg.xz files.
-
Identify the name of the latest nightly image for your board variant and store the value in a variable called
latest. The following example uses theride4_sa8775p_sxvariant: -
Download the images from the Automotive SIG nightly builds repository:
$ wget -np -R "index.html*" -nH --cut-dirs=3 --recursive \ "https://autosd.sig.centos.org/AutoSD-10/nightly/RideSX4/$latest"The command downloads a directory containing the compressed image files.
-
Uncompress the image files:
Next steps
After you download and uncompress the image files, you can flash them onto the Ride 4 board.
Building images¶
To build AutoSD images, use Automotive Image Builder, which is available in the
automotive-image-builder repository. The repository contains configuration
files for multiple Qualcomm Snapdragon Ride 4 board variants.
Prerequisites
- An AArch64 system with internet access
-
Install Automotive Image Builder for your OS. For more information, see Introducing Automotive Image Builder.
-
Clone the
sample-imagesrepository: -
Change to the sample-images repository:
-
Build disk images, replacing
<ride4_variant>with your board target (for example,ride4_sa8775p_sx):$ aib-dev build \ --distro autosd10 \ --target <ride4_variant> \ --separate-partitions \ images/developer.mpp.yml \ autosd-ride4-developer-regularThe
buildcommand creates theautosd-ride4-developer-regulardirectory, which contains theaboot.img,rootfs.simg, andqm_var.simgimage files.Available Ride 4 targets:
ride4_sa8650p_sx_r3ride4_sa8775p_sxride4_sa8775p_sx_r3
Next steps
After you build the image files, you can flash them onto the Ride 4 board.
Flashing images¶
Flash the AutoSD images onto the Ride 4 board.
For more information about how to install and run ES12 on Ride 4, see the Release Notes on the Qualcomm document viewer site.
Note
Qualcomm credentials are required to access the Qualcomm document viewer site. For more information, see Create a Qualcomm ID.
Prerequisites
- Qualcomm Snapdragon Ride 4 (SA8775P) development system, running release version ES12 r00021.1a
- A USB cable
android-tools- Images that you obtained either through Downloading nightly images or Building images
- Connect a USB cable from your workstation to the
USB0port on the Ride 4. -
From the workstation, identify the System on Chip (SoC) device:
-
From the workstation, use a TTY application to connect to the SoC device and log in as the
rootuser.Note
The workstation in this step must be connected to the SoC device through USB. The workstation must be configured to use
fastboot. -
Reboot the SoC device and quickly press and hold the down arrow key until you see boot messages on the terminal window.
-
From the workstation, verify that the SoC device is in a fastboot state:
Note
The command returns an ID that confirms device is ready to flash. In this example, the ID is
c2b86509. -
Flash the
boot_aandsystem_apartitions with the images: -
Continue to boot the SoC device:
-
Log in to the operating system (OS) using user ID
rootand passwordpassword.
Additional Resources: