EBC Exercise 40 Running buster on AI

From eLinux.org
Jump to: navigation, search

thumb‎ Embedded Linux Class by Mark A. Yoder

Here are instructions on how to install a current image on the BeagleBone AI.

Download Current Image

Go to https://rcn-ee.com/rootfs/bb.org/testing/ and click on the most current date. You'll see something like:

Screenshot from 2019-06-04 15-41-10.png

Click on buster-iot and you'll see:

Screenshot from 2019-06-04 15-44-27.png

Download the one that starts with am57xx and ends with .img.xz. Flash to an 8G SD card usig https://www.balena.io/etcher/.

Your SD card is ready to run on an x15, so next we update u-boot to run on an AI.

Download u-boot

Next clone the u-boot source. (jadonk is private. beagleboard is public.)

host$ git clone https://github.com/beagleboard/beaglebone-ai.git
host$ cd beaglebone-ai/SW/u-boot
host$ sudo apt install bison flex device-tree-compiler
host$ ./build.sh  # Took about 6.5 minutes

This will download u-boot and the correct compiler and compile u-boot.

host$ export DISK=/dev/mmcblk0   # Make sure this points to your SD card
host$ ./flash_mainline.sh 
1+1 records in
1+1 records out
133062 bytes (133 kB, 130 KiB) copied, 0.00132487 s, 100 MB/s
2+1 records in
2+1 records out
1168016 bytes (1.2 MB, 1.1 MiB) copied, 0.00160025 s, 730 MB/s

Your SD card should be set up with a current u-boot.

thumb‎ Embedded Linux Class by Mark A. Yoder