[PC ~/linux-3.14-x1-at[version]]$ make ARCH=arm CROSS_COMPILE=arm-linux-
⏎
gnueabihf-
[PC ~/linux-3.14-x1-at[version]]$ make ARCH=arm CROSS_COMPILE=arm-linux-
⏎
gnueabihf- LOADADDR=0x80008000 uImage
5.
Confirming the creation of the Image File
When the build finishes, image files (the Linux kernel and DTB) are created under the arch/arm/boot/direc-
tory and arch/arm/boot/dts/ directory.
[PC ~/linux-3.14-x1-at[version]]$ ls arch/arm/boot/uImage
uImage
[PC ~/linux-3.14-x1-at[version]]$ ls arch/arm/boot/dts/
⏎
armadillo_iotg_g3.dtb
armadillo_iotg_g3.dtb
7.3. Building a Debian GNU/Linux Root File System
The following shows how to build a Debian GNU/Linux root file system using x1-debian-builder.
x1-debuan-builder is a tool that can be used on Linux running on a PC such as ATDE6 to build armhf architecture Debian
GNU/Linux root file systems for Armadillo-IoTG3.
Depending on how it is used, after starting Armadillo-IoT G3 the first time the ssh secret key, operation log, shell command
history, the configuration files associated with the hardware UUID and so on are generated on the root file system. If the
root file system is then copied as-is to another Armadillo-IoT G3 , there is a possibility that behavior differences may occur
due to key leakage or UUID mismatch. Therefore it is recommended to use x1-debuan-builder and build a new root file
system for use in mass production etc.
7.3.1. Creating the Factory Default Root File System Archive
The procedure for building the root file system archive of the factory default state is as follows. As packages are obtained
over the internet it will depending on the connection speed, but will generally take around 40 minutes.
[ATDE ~]$sudo apt-get update && sudo apt-get install qemu-user-static
[ATDE ~]$tar xf x1-debian-builder-[VERSION].tar.gz
[ATDE ~]$cd x1-debian-builder-[VERSION]
[ATDE ~]$sudo ./build.sh
Figure 7.1. Procedure for Creating the Factory Default Root File System Archive
7.3.2. Creating a Customized Root File System Archive
The root file system can be modified by altering the files under x1-debian-builder-
[VERSION]
/aiotg3_resources and
executing the build.sh script.
7.3.2.1. Adding Files and Directories
All files and directories under aiotg3_resources except for the resources directory are copied directly to the root file
system. Both the UID and GID of the files become "root".
Armadillo-IoT Gateway G3Product Manual - INTL
Build Procedure
94