2.2. Create a Linux Bootable SD Card¶
The simplest way to boot Linux is through a micro SD card flashed with a bootable Linux image. In this section, we will present two methods to create a micro SD card with a Linux image.
Warning
The prebuilt SD card WIC images provided since AM62x Processor SDK v8.6 by default will boot on SK-AM62B and SK-AM62B-P1, which have AM62x HS-FS device on it.
The SD card, after being flashed using one of the following methods, can be modified to boot on SK-AM62 which have AM62x GP device. Please refer to Boot SD card on AM62x GP device below for the modification procedure.
2.2.1. Create SD Card Using balenaEtcher¶
This method uses a popular GUI based tool, balenaEtcher, to write the Linux image to an SD card. It works on any platform (MS Windows, Linux, or Apple macOS). Please refer to the EVM Quick Start Guide provided in What is Needed to Evaluate Linux? for how to create an SD card using balenaEtcher.
2.2.2. Create SD Card Using Command Line¶
This method uses Linux command line and the bmap tool to create an SD card with a Linux image. Follow the steps given below to flash the SD card:
Install the bmap tool if it’s not already installed:
$ sudo apt-get install bmap-tools
Insert a micro SD card to an SD card reader and plug the SD card reader into a Linux PC.
Unmount the SD card. Find the device name of the SD card using command “lsblk”, and then use command “umount” to unmout the SD card.
For example, if command “lsblk” returns:
$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT : sdc 8:32 1 15G 0 disk ├─sdc1 8:33 1 131.8M 0 part /media/localUser/boot └─sdc2 8:34 1 765.9M 0 part /media/localUser/root
Then unmount sdc1 and sdc2 (the actual device name may be different on your Linux host):
$ sudo umount /media/localUser/boot $ sudo umount /media/localUser/root $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT : sdc 8:32 1 15G 0 disk ├─sdc1 8:33 1 131.8M 0 part └─sdc2 8:34 1 765.9M 0 part
Flash the SD card with the Linux WIC image using the bmap tool. Make sure to use the correct image name and device name:
$ sudo bmaptool copy --nobmap tisdk-default-image-am62xx-evm.wic.xz /dev/sdc
Option “–nobmap” is used here to avoid needing to provide a bmap file.
Boot SD card on AM62x GP device
The SD card flashed using one of the methods above will boot AM62x HS-FS, but not AM62x GP devices. AM62x HS-FS and AM62x GP use different tiboot3.bin binaries. The SD card first partition has both binaries but HS-FS tiboot3.bin is the default. Using the following procedure to make GP tiboot3.bin as the default will make the SD card to boot on SK-AM62.
Plug the flashed SD card to Linux or Windows host. The SD card first partition should have the following files.
tiboot3-am62x-gp-evm.bin tiboot3.bin u-boot.img
tiboot3-am62x-hs-evm.bin tispl.bin uEnv.txt
where tiboot3-am62x-gp-evm.bin
is the GP tiboot3.bin binary, and
tiboot3.bin
is the HS-FS tiboot3.bin binary.
Now rename tiboot3.bin
to something else, for example, tiboot3-am62x-hsfs.bin
,
and rename tiboot3-am62x-gp-evm.bin
to tiboot3.bin
. Then unmount/eject
the SD card. It is ready to boot SK-AM62 EVM now.