Android Automotive OS 13 on a Raspberry Pi 4
Nearly two years ago we released details of how to build Android Automotive OS 11 for the Raspberry Pi 4B to give folk a cheap and easy way to run it on actual hardware. Today we’re making AAOS 13 available for the same platform.
Since making the AAOS 11 build available we’ve seen a lot of interest in Raspberry Pi AAOS builds from various groups, and, while we do not feel that the RPi 4B is a good platform for automotive devices, we understand that the development community likes to experiment with ideas, and the RPi4 provides an easy way to do this.
Our AAOS 13 Raspberry Pi build is designed for the development community to work with, and, for now, you will need to build the disk images yourself, and the end result is not a fully functioning product. We are releasing it as a starting point for people to work with, rather than holding it back until it is in a consumer-friendly state. For this reason we recommend using the -eng build variant and a serial console (as discussed in the original AAOS 11 post), to ensure you can debug issues you may encounter.
For AAOS 13 we have altered how we create the build targets to allow folk to place our AAOS build files, and the Android RPi build (on which it’s based), side-by-side. This means there is no need to select one build or the other and allows you to test any updates from the Android RPi project in the same checkout as our AAOS build.
To obtain the source code for the build you will need to perform the following steps, which are also in the README in the repository.
The build instructions are available in the README file in the device repository, and consist of these steps;
This will create the disk images you will need to create a bootable SD card. You will then need to partition the SD card with the following layout using fdisk;
Once your build has been completed you can write the disk images to p2 and p4 using the following commands;
You will also need to create filesystems on p1 and p4 using the following commands;
You will then need to mount p1 to copy the boot files to it, you can use the following commands;
You will then need to build the Android RPi kernel using the instructions available from that group. Once you have built the kernel, you should, from the kernel build directory, run the following commands;
You now have everything you need to boot the SD card, so you should run the following commands;
You can now remove the SD card from your build machine, insert it into your Raspberry Pi 4, and boot AAOS!
Warnings
This is an engineering development build. It can take several minutes for the first boot, so please be patient. If you are in any doubt about the boot process please connect a serial console and check the output before reporting the system as not booting.
Known Issues
The system currently does not have working WiFi.