第8章 Rewriting Image FilesThis chapter explains the procedure for rewriting the image file written to Armadillo-IoT G3's internal storage (eMMC and QSPI flash memory). The bootloader image files used in this chapter are included on the development set DVD. The latest versions of the files can be downloaded from the "Armadillo site". As over time new functionality is added and defects are fixed, we recommend checking if versions newer than that on the DVD have been released or not and then using the latest version. 8.1. Using the Installation DiscUsing the installation disc, all of the images on the internal storage can be rewritten at once. They can be used as a recovery method if Armadillo stops booting due to a software issue. | |
---|
As all image files saved in the internal storage are overwritten, any data or applications already saved there will be deleted. When rewriting only a specific image, please refer to 「Rewriting Only Specific Image Files」. |
The installation disk is created with ATDE. The file used to create the installation disk is shown below. 表8.1 File Used for Creating Installation Disk File | File Name |
---|
Install disk image | install_disk_sd_[version] .img |
8.1.1. Creating an Installation DiskPlease prepare an SD card with a 512MB or larger capacity. Connect the SD card to ATDE. For details, refer to「Using Removable Devices」. Unmount the SD card if it is currently mounted. Write the installation disk image to the SD card.
8.1.2. Running the InstallationMake sure the Armadillo is powered off. If the power is on, turn it off. Also, be sure to remove the battery if one is connected to 「CON13 RTC Backup Interface 1」. Check the slide switch of the USB serial converter. Make sure that the slide switch is set to side "1" of 図3.8「Slide Switch Configuration」. Use the installation disk to perform an SD boot. Insert the installation disk into the SD slot (CON4) and set JP1 to short. When the Armadillo is powered on while holding User Switch 1 down, the bootloader will start up from the SD card and the following log will be displayed. When the log is displayed, release User Switch 1. For the location of User Switch 1, see 「Armadillo-IoT Gateway Exterior」. When the "boot" command is executed as follows, the installation starts and the eMMC and QSPI are rewritten automatically. The following message will be displayed and installation is complete once automatically halted. After installation is complete, please set JP1 to open.
8.2. Rewriting Only Specific Image FilesOnly certain image files can be rewritten when Armadillo-IoT G3 is running. The image files and their corresponding destinations are shown below. 表8.2 Image Files and their Destinations Name | File Name | Storage | Device File |
---|
Bootloader Image | u-boot-x1-[version] .bin | QSPI Flash memory | /dev/mtdblock0 | Linux Kernel Image | uImage-x1-[version] | eMMC | /dev/mmcblk2p1 | Device Tree Blob | armadillo_iotg_g3-[version] .dtb | /dev/mmcblk2p1 | Debian GNU/Linux Root File System | debian-jessie-armhf_aiotg3_[version] .tar.gz | /dev/mmcblk2p2 |
8.2.1. Rewriting the BootLoader ImageThe method of rewriting the bootloader image is shown below. It is done by writing the image file directly to the MTD block device. 8.2.2. Rewriting the Linux Kernel ImageThe method for rewriting the Linux kernel image is shown below. The method of rewriting the DTB is shown below. 8.2.4. Rewriting the Root File SystemThe procedure for rewriting the root file system on the eMMC is shown below. 手順8.1 Rewriting the Root File System on eMMC An SD boot must be performed in order to rewrite the root file system on eMMC. For details on how to create a boot disk and execute an SD boot, see 9章Utilizing SD Booting. Prepare the Debian GNU/Linux root file system archive. Recreate the root file system within the second partition of the eMMC.
| |
|