This chapter shows the procedure for starting Armadillo directly from an SD card (hereafter referred to as "SD booting"). By utilizing SD booting, the system image can be changed by replacing the SD card. In order to execute the procedure described in this chapter, an SD card with a capacity of 2GB or more is required. While in the procedure for SD booting below Debian GNU/Linux 9 (codename stretch) is used as an example, it is also possible to SD boot other operating systems. ![[ティップ]](images/tip.png) | |
---|
When booting with SD, the settings of the bootloader are saved to the SD card. |
Work on the SD card is done with ATDE and therefore the SD card must be connected to ATDE. For details, please refer to 「Using Removable Devices」. When an SD card is connected to ATDE, it will be mounted automatically to the /media/ directory. In order to execute the procedure described in this chapter, first unmount the SD card as follows. Download the lastest version of Imagine file at the following Armadillo site.In case of troubleshoot or function additon, updating of lastest version is recommend. The boot disk is created with ATDE. The file used to create the boot disk is shown below. 表9.1 Files Used to Create Boot Disk File | File Name |
---|
Bootloader Image | u-boot-x1-[version] .bin |
![[ティップ]](images/tip.png) | |
---|
The Image for SPI flash memory and SD/eMMC ware merged since u-boot-x1-at16 . |
The procedure to create the boot disk in 表9.2「Boot Disk Configuration Example」 is shown in 手順9.1「Boot Disk Creation Example」. 表9.2 Boot Disk Configuration Example Partition Number | Partition Size | File System | Description |
---|
1 | 128MByte | FAT32 | The bootloader image is placed here. | 2 | All remaining | ext4 | An ext4 file system is first created to allow the creation of the root file system. |
手順9.1 Boot Disk Creation Example Obtain the bootloader image file for SD boots. Create two primary partitions on the SD card. Please display the partition list and confirm that two partitions have been created. Create a file system on each partition. Write the bootloader image file for SD boots to the SD card.
9.2. Creating a Root File SystemThe root file system is created on the boot disk prepared in 「Boot Disk Creation」. A Debian GNU/Linux root file system can be created. The file used to build the root file system is shown below. 表9.3 File Used for Creating Root File System Linux Distribution | File Name | File Explanation |
---|
Debian GNU/Linux | debian-stretch-armhf_aiotg-g3_[version] .tar.gz | Root file system archive of Debian GNU/Linux 9 (codename stretch) for the ARM (armhf) architecture |
9.2.1. Creating a Debian GNU/Linux Root File SystemThe procedure for building a root file system from the Debian GNU/Linux root file system archive is shown below. 手順9.2 Creating a Root File System from the Debian GNU/Linux Root File System Archive Prepare the Debian GNU/Linux root file system archive. Create the root file system on the second partition of the boot disk. ![[警告]](images/warning.png) | |
---|
Removing the SD card from the work PC before the unmounting is completed may damage the data on the SD card. |
9.3. Storing the Linux Kernel Image and DTBPlace the Linux kernel image and DTB (Device Tree Blob) created in 「Boot Disk Creation」 on the boot disk. The following files are used. Hereafter, DTB (Device Tree Blob) is referred to as DTB. 表9.4 Files Used to Create Boot Disk File | File Name |
---|
Linux Kernel Image | uImage-x1-[version] | DTB | armadillo_iotg_g3_w2-[version] .dtb |
When placing the Linux kernel image and DTB on the SD card, the following conditions must be met. If these conditions are not met, the bootloader may not be able to detect the Linux kernel image or DTB. 表9.5 Conditions Under which the Bootloader can Detect the Linux Kernel Item | Condition |
---|
File System | FAT32 | Compressed Format | Uncompressed | Linux Kernel Image File Name | uImage | DTB Filename | armadillo_iotg_w2.dtb |
The procedure for storing the Linux kernel image and DTB on the boot disk is as follows. 手順9.3 Storing the Linux Kernel Image and DTB Prepare the Linux kernel image and DTB. Store the Linux kernel image on the first partition of the boot disk. ![[警告]](images/warning.png) | |
---|
Removing the SD card from the work PC before the unmounting is completed may damage the data on the SD card. |
9.4. Performing an SD BootThis section explains how to boot from the boot disk created in 「Boot Disk Creation」. Perform the following preparation before powering on Armadillo. Connect the boot disk to the SD slot (CON4). Set JP1 to short.
After preparation is complete, SD booting can be done by turning on the power. If the SD boot is successful, executing the saveenv command will display the message shown in 図9.2「saveenv Messages for SD Boot」. Check that the save destination of the environment variables is "MMC(0)". ![[警告]](images/warning.png) | |
---|
Please disable the write protection (switch) of the SD card. SD booting cannot be performed normally if the SD card cannot be written to. |
| |
|