Bootstrap

(盈鹏飞嵌入式SBC-T113全志T113-i主板)-Linux系统镜像编译、生成

SBC-T113产品特性:

  • 采用Allwinner公司Cortex-A7双核T113-i处理器,运行最高速度为1.2GHZ;
  • 内置64位玄铁C906 RISC-V CPU和 DSP,提供高效的计算能力; 
  • 支持1080P 视频编码,多格式1080P 60fps视频解码 (H.265,H.264, MPEG-1/2/4)
  • 支持LVDS/MIPI-DSI,分辨率最高1920x1080;
  • 支持512-1G  Bytes DDR3 SDRAM;
  • 支持SPI NAND启动和存储(256MB默认;512MB可选);可选EMMC启动和存储( 4G默认;8GB可选);
  • 支持4路USB2.0 HOST和1路OTG,1路I2C,6路UART(RS232), 1路PWM(应用于背光)
  • 支持双路CAN BUS通信
  • 支持双路以太网,一路10/100M;一路10/100/1000M;
  • 标准3.5寸主板, 尺寸为:146*102MM

SBC-T113功能评估图:

Linux系统镜像编译、生成

编译指令的简要介绍:

T113的SDK有几个常用的指令,介绍如下:

表7  常用SDK指令说明

指令序号

SDK相关命令

作用

1

./build.sh distclean

清除之前的编译文件,通常在编译SDK前做的第一步。

2

./build.sh brandy

编译Linux的启动程序U-BOOT。

3

./build.sh kernel

编译Linux内核,一般在增加驱动或者减少驱动时进行内核编译。

4

./build.sh dts

DTS(设备树)是内核的一部分,编译内核的时候也会编译DTS,这里提供了单独的编译指令。

5

./build.sh buildroot

编译buildroot,一般在增加或者减少buildroot的软件包时进行编译。

6

./build.sh rootfs

T113的SDK有相关功能的演示程序或者qt的演示程序,如果你进行了演示程序的增加、修改,使用该指令进行编译,并将编译好的程序打包到rootfs。

7

./build.sh

这一条指令,相当于执行了该表中1-6条指令。

8

./build.sh pack

把以上指令生成的相关文件,打包成最后可以烧写到主板上的固件。

需要强调的是这些指令不需要root权限即可执行,以下步骤是我们使用表中指令进行相关编译的具体操作。 

清理编译环境:

进入T113-i_v1.0(SDK所在目录)目录执行如下命令,清除所有编译和配置生成文件。

Host$   cd T113-i_v1.0/

Host$   ./build.sh distclean

embfly@embfly-virtual-machine:~/T113$ cd T113-i_v1.0/

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$ ./build.sh distclean

ACTION List: mkdistclean;

Execute command: mkdistclean

INFO: clean kernel

INFO: Prepare toolchain ..

toolchain_archtvedir=/hone/embfly/T113/T113-i_v1.0/build/toolchain/gcc-linaro

5.3.1-2016.05-x86_64_arm-linux-gnueabi.tar.xz

INFO: clean kernel OK.

INFO: clean buildroot .

INFO: clean buildroot OK.

INFO: clean entires output dir ..

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$

配置编译环境变量:

执行如下命令,配置Linux内核、内核版本、处理器型号、主板型号(sbc-t113_nand)、显示方式、编译器等信息。

Host$  ./build.sh config

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$ ./build.sh config

Welcome to mkscript setup progress

All available platform

0.linux

Choice [linux]: 0

All available linux dev:

o. bsp

1. dragonboard

2. longan

3. tinyos

Choice [longan]: 2

All avatlable kern ver:

0.linux-5.4

Choice [linux-5.4]:0

All available ic

0.t113

1. t113 i

Choice [t113_i]:1

All available board

0. evb1

1. evb1 auto

2. evb1_auto nand

3.evb1 _auto_nor

4.sbc-t113_emmc

5.sbc-t113_nand

Choice [sbc-t113_nand]: 5

All avatlable output _configs

0. hdmi

1. lvds-lcd

2. mipi-lcd

3. tft-lcd

4.cvbs

Choice [tft-lcd]: 3

All avatlable flash:

0. default

1.nor

Choice [default]: 0

All available build root

0. butldroot-201902

1. ubuntu

Choice [buildroot-201902]: 0

All avatlable gnueabt:

0. gnueabi

1. gnueabihf

Choice [gnueabi]: 0

INFo:Prepare toolchain ...

Config具体配置如下:

Welcome to mkscript setup progress

All available platform:

0. linux

Choice [linux]: 0

All available linux_dev:

0. bsp

1. dragonboard

2. longan

3. tinyos

Choice [longan]: 2

All available kern_ver:

0. linux-5.4

Choice [linux-5.4]: 0

All available ic:

0. t113

1. t113_i

Choice [t113_i]: 1

All available board:

0. evb1

1. evb1_auto

2. evb1_auto_nand

3. evb1_auto_nor

4. sbc-t113_emmc

5. sbc-t113_nand

Choice [sbc-t113_nand]: 5

All available output_configs:

0. hdmi

1. lvds-lcd

2. mipi-lcd

3. tft-lcd

4. cvbs

Choice [tft-lcd]: 3

All available flash:

0. default

1. nor

Choice [default]: 0

All available build_root:

0. buildroot-201902

1. ubuntu

Choice [buildroot-201902]: 0

All available gnueabi:

0. gnueabi              //选择gnueabi将配置为软浮点编译器

1. gnueabihf            //选择gnueabihf将配置为硬浮点编译器

Choice [gnueabi]: 0

备注:( 1)若选择gnueabi软浮点编译器,编译生成支持软浮点的Linux系统镜像后,如需切换为gnueabihf硬浮点编译器,请先删除"/out/"目录,再重新编译生成Linux系统镜像使用。反之亦然。

(2)由于音视频等多媒体功能不支持硬浮点编译工具链,因此编译生成支持硬浮点的Linux系统镜像将不支持部分音视频等多媒体功能,例如:aplay音频播放工具

(3)这里是选择主控IC,全志T113系列中有T113-S3,也有T113-I,两者的区别是T113-I需要外扩内存DDR3,而T113-S3内部集成128MB内存。SBC-T113采用的是T113-I处理器,因此选择T113-I。

All available ic

0.t113

1. t113 i

(4)这里是选择主板型号,我司主板型号是sbc-t113系列,该主板根据启动的flash不同,分为emmc启动或者nand启动,请根据您手中的具体flash做选择。

All available board:

0. evb1

1. evb1_auto

2. evb1_auto_nand

3. evb1_auto_nor

4. sbc-t113_emmc

5. sbc-t113_nand

(5)显示输出设备,选择哪个就对应哪个DTS。具体可参考2.2章节《dts简要介绍》。

All available output_configs:

0. hdmi

1. lvds-lcd

2. mipi-lcd

3. tft-lcd

4. cvbs

(6)这个根据板卡上的flash进行选择,如果是nor flash,那么选择1;如果是nand或者emmc,则选择0。

All available flash:

0. default

1. nor

选择完毕后,编译的环境变量就配置完成了。以下是配置过程中的信息:

toolchain_archivedir=/home/embfly/T113/T113-i_v1.0/butld/toolchain/gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi.tar.xz

INFO: kernel defconfig: generate /home/embfly/T113/T113-i_v1.0/out/kernel/build/.config by /home/embfly/1113/T113-_v1.0/kernel/linux-5.4/arch/arm/configs/sun8iw20p1smp_auto_nand_defconfig

INFO: Prepare toolchain ...

toolchatn_archtvedtr=/home/embfly/T113/T113-i_v1.0/build/toolchain/gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi.tar.xz

make:

Entering directory '/home/embfly/T113/T113-i_v1.0/kernel/linux-5.4

make[1]: Entering directory '/home/embfly/T113/T113-i_v1.0/out/kernel/build

GEN Makefille

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

HosTCC scripts/kconfig/confdata.o

HOSTCO scripts/kconfig/expr.c

LEX scripts/kconfig/lexer.lex.c

YACC scripts/kconfig/parser.tab.[ch]

HOSTCC scripts/kconfig/lexer.lex.o

HOsTCC scripts/kconfig/parser.tab.o

HOSTCC scripts/kconfig/preprocess.o

HOSTCC scripts/kconfig/symbol.o

HOSTLD scripts/kconfig/conf

Default conftguration is based on 'sun8iw20p1smp_auto_nand_defconfig

可以看到nand启动时,内核默认的配置文件是sun8iw20p1smp_auto_nand_defconfig

#

# configuration written to .config

#

make[1]: Leaving directory '/home/embfly/T113/T113-i_v1.0/out/kernel/build

make: Leaving directory '/home/embfly/T113/T113-i_v1.0/kernel/linux-5.4

make: Entering directory

'/home/embfly/T113/T113-i_v1.0/buildroot/buildroot-201902'

mkdir -p /home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buitldroot/buitld/butldroot-config/lxdialog

PKG_CONFIG_PATH="" make CC="/usr/btn/gcc" HOSTCC="/usr/btn/gcc" \

obj=/home/embfly/T113/T113-i_v1.o/out/t113_it/sbc-t113_nand/longan/butldroot/butld/buildroot-config -C

support/kconfig -f Makefile.br conf

/usr/bin/gcc -DCURSES_LOC="<ncurses.h>"-DLOCALE -I/home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/butld/buildroot-config -DCONFIG_=\"\" -MM *.c > /home/embfly/T113/T113-t_v1.0/out/t113

i/sbc-t113_nand/longan/buitldroot/build/buildroot-config/.depend 2>/dev/null Il

/usr/bin/gcc -DCURSES_ LOC="<ncurses.h>" -DLOCALE

-I/home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/butld/buildroot-config -DcoNFIG_=\"\" -c conf.c -o /home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/build/buildroot-conftg/conf.o

/usr/bin/gcc -DCURSES_L0C="<ncurses.h>"-DLOCALE -I/home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/butld/buildroot-config -DCONFIG_=\"\" -I. -c /home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/build/butldroot-conftg/zconf.tab.c -o /home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/build/buildroot-config/zconf.tab.c

/usr/btn/gcc -DCURSES_LOC="<ncurses.h>"

-DLOCALE -I/home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/build/buildroot-confg -DCONFIG_=\"\" /home/emblfy/T113/T113-i_v1.0/out/t113_i/sbc-

t113-nand/longan/buildroot/build/buildroot-conftg/conf.o /home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113

-nand/longan/buildroot/build/buildroot-config/zconf.tab.o -o /home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/butld/buildroot-config/conf

rm /home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/build/buildroot-config/zconf.tab.CGEN /home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/Makefile

Config.in.legacy:1769:warning: choice value used outside its choice group

#

# configuration written to /home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/.config

#

make: Leaving directory /home/embfly/T113/T113-i_v1.0/buildroot/buildroot-201902

INF0: buildroot defconfig is sun8iw20p1_t113_i_nand_defconfig

embfly@embfly-virtual-machine:~/T113/T113-i v1.0S

可以看到nand启动时,buildroot默认的配置文件是sun8iw20p1_t113_i_nand_defconfig

配置完成后,在SDK目录下会生成.buildconfig文件,使用ls –a指令可以查看:

embfly@embfly-virtual-machine:~/T113$ ls –a T113-i_v1.0/

brandy buildroot device platform test build build.sh kerneL rtos-dsp tools .buildconfig

embfly@embfly-virtual-machine:~/T113$

通过该文件我们可以了解当前相关编译的环境变量,以下是该文件的内容(可以用vi指令查看):

export LICHEE_PRODUCT=

export LICHEE_BRANDY_VER=2.0

export LICHEE_BRANDY_DEFCONF=sun8iw20p1_auto_t113_i_nand_defconfig

export LICHEE_CROSS_COMPILER=arm-linux-gnueabi

export LICHEE_COMPILER_TAR=gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi.tar.xz

export LICHEE_ROOTFS=target-arm-linaro-5.3.tar.bz2

export LICHEE_BUSSINESS=

export LICHEE_TOP_DIR=/home/embfly/workespace/T113-i_v1.0

export LICHEE_BRANDY_DIR=/home/embfly/workespace/T113-i_v1.0/brandy/brandy-2.0

export LICHEE_BUILD_DIR=/home/embfly/workespace/T113-i_v1.0/build

export LICHEE_BR_DIR=/home/embfly/workespace/T113-i_v1.0/buildroot/buildroot-201902

export LICHEE_DEVICE_DIR=/home/embfly/workespace/T113-i_v1.0/device

export LICHEE_KERN_DIR=/home/embfly/workespace/T113-i_v1.0/kernel/linux-5.4

export LICHEE_PLATFORM_DIR=/home/embfly/workespace/T113-i_v1.0/platform

export LICHEE_SATA_DIR=/home/embfly/workespace/T113-i_v1.0/test/SATA

export LICHEE_DRAGONBAORD_DIR=/home/embfly/workespace/T113-i_v1.0/test/dragonboard

export LICHEE_TOOLS_DIR=/home/embfly/workespace/T113-i_v1.0/tools

export LICHEE_COMMON_CONFIG_DIR=/home/embfly/workespace/T113-i_v1.0/device/config/common

export LICHEE_CHIP_CONFIG_DIR=/home/embfly/workespace/T113-i_v1.0/device/config/chips/t113_i

export LICHEE_BOARD_CONFIG_DIR=/home/embfly/workespace/T113-i_v1.0/device/config/chips/t113_i/configs/sbc-t113_nand

export LICHEE_PRODUCT_CONFIG_DIR=/home/embfly/workespace/T113-i_v1.0/device/target/

export LICHEE_OUT_DIR=/home/embfly/workespace/T113-i_v1.0/out

export LICHEE_BRANDY_OUT_DIR=/home/embfly/workespace/T113-i_v1.0/device/config/chips/t113_i/bin

export LICHEE_BR_OUT=/home/embfly/workespace/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot

export LICHEE_PACK_OUT_DIR=/home/embfly/workespace/T113-i_v1.0/out/pack_out

export LICHEE_TOOLCHAIN_PATH=/home/embfly/workespace/T113-i_v1.0/out/gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi

export LICHEE_PLAT_OUT=/home/embfly/workespace/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan

export LICHEE_BOARDCONFIG_PATH="/home/embfly/workespace/T113-i_v1.0/device/config/chips/t113_i/configs/default/BoardConfig.mk /home/embfly/workespace/T113-i_v1.0/device/config/chips/t113_i/configs/sbc-t113_nand/BoardConfig.mk /home/embfly/workespace/T113-i_v1.0/device/config/chips/t113_i/configs/sbc-t113_nand/longan/BoardConfig.mk"

export LICHEE_REDUNDANT_ENV_SIZE=0x20000

export ANDROID_CLANG_PATH=

export LICHEE_COMPRESS=

export ANDROID_TOOLCHAIN_PATH=

export AW_QT_VER=5.12.5

export QT_INSTALL_DIR=/home/embfly/workespace/T113-i_v1.0/platform/framework/qt/qt-everywhere-src-5.12.5/Qt_5.12.5

export QT_RUN_DIR=/usr/local/Qt_5.12.5

export QT_TARGET_DIR=/home/embfly/workespace/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan/buildroot/target//usr/local/Qt_5.12.5

export LICHEE_OUTPUT_CONFIGS=hdmi

通过观察该文件可以判断配置是否正确。

快速编译LinuxSDK:

在T113-i_v1.0目录下执行如下命令,一个指令就可以编译SPL、U-Boot、Linux内核和buildroot文件系统。

Host$   ./build.sh

备注:

(1) 首次执行"./build.sh"命令编译LinuxSDK,需再执行一次"./build.sh"命令,否则会出现打包生成的Linux系统镜像在主板无法正常启动的现象。

(2) 执行"./build.sh distclean"清除命令后,需执行两次"./build.sh"命令,否则会出现打包生成的Linux系统镜像在主板无法正常启动的现象。

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$ ./build.sh

ACTION List: mklichee

Execute command: mklichee

INFO:

INFo: build lichee

INFO:chip:sun8iw20p1

INFO: platform: linux

INFO: kernel:linux-5.4

INFO: board: sbc-t113_nand

INF0:output: /home/embfly/T113/T113-i_v1.0/out/t113_i/sbc-t113_nand/longan

INFO:

INFO: build buildroot

Prepare br toolchain gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabt.tar.xz

make: Entering directory '/home/embfly/T113/T113-i_v1.0/buildroot/buildroot-201902

预计耗时约30min编译完成后,生成SPL、U-Boot、Linux内核和buildroot文件系统镜像文件,镜像文件需转化为.fex格式后使用。

/home/embfly/T113/T113t_v1.0/platform/framework/auto/kernetl/xr829/Makeftle:19: CROSS_COMPILE: arm Linux-gnueabi

Building modules, stage 2

MODPOST 1 modules

cc [M]/home/embfly/T113/T113-_v1.0/platform/framework/auto/kernel/xr829/xr829.mod.o

LD [M] /home/embfly/T113/T113-i_v1.0/platform/framework/auto/kernel/xr829/xr829.ko

make[1]: Leaving directory '/home/embfly/T113/T113-i_v1.0/out/kernel/build'

'/home/embfly/T113/T113-i_v1.0/platform/framework/auto/kernel/xr829/xr829.ko'-> '/home/embfly/T

113/T113-i_v1.0/platform/../out/t113_i/sbc-t113_nand/longan/buildroot/target/lib/modules/5.4.61-rt37/xr829.ko

INFO: pack rootfs ok

INFO:

INFO: build lichee OK

INFO:

embfly@embfly-virtual-machine:~

/T113/T113-i V1.0$

(1) 生成SPL镜像文件为"out/t113_i/sbc-t113_nand/longan/"目录下的boot0_nand_sun8iw20p1.bin、boot0_sdcard_sun8iw20p1.bin和boot0_spinor_sun8iw20p1.bin。

embfly@embfly-virtual-machine:~/T113/T113-t_v1.0$ ls out/t113_i/sbc-t113_nand/longan/

arisc boot.img lib u-boot-sun8iw20p1.bin

bImage buildroot rootfs.cpio.gz uImage

boot0_nand_sun8iw20p1.bin dist rootfs.ubifs vmlinux

booto_sdcard_sun8iw20p1.bin dtc sboot_sun8iw20p1.bin vmlinux.tar.bz2

boot0_spinor_sun8iw20p1.binfes1_sun8iw20p1.bin sunxi.dtb zImage

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$

(2) 生成U-Boot镜像文件为"out/t113_i/sbc-t113_nand/longan/u-boot-sun8iw20p1.bin"。

embfly@embfly-virtual-machine:~/T113/T113-i v1.0$ ls out/t113 i/sbc-t113_nand/longan/

arisc boot.img lb u-boot-sun8iw20p1.bin

bImage buildroot rootfs.cpio.gz umage

boot0_nand_sun8iw20p1.bin dist rootfs.ubifs vmlinux

booto_sdcard_sun8iw20p1.bin dtc sboot_sun8iw20p1.bin vmlinux.tar.bz2

booto_spinor_sun8iw20p1.bin fes1_sun8iw20p1.bin sunxi.dtb zImage

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$

(3) 生成Linux内核镜像文件为"out/t113_i/sbc-t113_nand/longan/boot.img"。

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$ ls out/t113_i/sbc-t113_nand/longan/

arisc              boot.img       lib        u-boot-sun8iw20p1.bin

bImage                     butldroot  rootfs.cpio.gz          uImage

boot0_nand_sun8iw20p1.bin   dist     rootfs.ubifs            vmlinux

boot0_sdcard_sun8iw20p1.bin dtc     sboot_sun8iw20p1.bin  vmlinux.tar.bz2

boot0_spinor_sun8iw20p1.bin fes1_sun8iw20p1.bin sunxi.dtb zImage

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$

(4) 生成文件系统镜像文件"out/t113_i/sbc-t113_nand/longan/rootfs.ubifs"和"out/t113_i/sbc-t113_nand/longan/buildroot/images/rootfs.ext4"。其中rootfs.ubifs为UBIFS格式,适用于NAND FLASH;rootfs.ext4为EXT4格式,适用于Micro SD卡。

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$ ls out/t113_i/sbc-t113_nand/longan/

arisc boot.img lb u-boot-sun8iw20p1.bin

bImage buildroot rootfs.cpio.gz uImage

boot0 nand sun8iw20p1.bin dist rootfs.ubifs vmlinux

boot0_sdcard_sun8iw20p1.bin dtc sboot_sun8iw20p1.bin vmlinux.tar.bz2

boot0_spinor_sun8iw20p1.bin fes1 _sun8iw20p1.bin sunxi.dtb zImage

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$ ls out/t113_i/sbc-t113_nand/longan/buildroot

/images

rootfs.ext2 rootfs.ext4 rootfs.tar

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$

编译生成Linux系统镜像:

执行如下命令,打包生成Linux系统镜像文件。

备注:若已执行过"./build.sh qt"命令编译Qt库,则生成Linux系统镜像文件支持Qt功能,否则不支持Qt功能。

Host$   ./build.sh pack

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$ ./build.sh pack

ACTION List:mkpack ;

Execute command: mkpack

INFO:packing firmware

INFO:Use BIN PATH: /home/embfly/T113/T113-i_v1.0/device/config/chips/t113_i/bin

copying tools file

copying configs file

copying product configs file

/home/embfly/T113/T113-i_v1.0/out/pack_out/aultls32.fex

/home/embfly/T113/T113-i_v1.0/out/pack_out/aultools.fex

/home/embfly/T113/T113-i_v1.0/out/pack_out/boot_package.cfg

/home/embfly/T113/T113-i_v1.0/out/pack_out/boot_package.fex

/home/embfly/T113/T113-i_v1.0/out/pack_out/boot_package_nor.cfg

/home/embfly/T113/T113-i_v1.0/out/pack_out/cardscript.fex

/home/embfly/T113/T113-i_v1.0/out/pack_out/cardscript_secure.fex

/home/embfly/T113/T113-i_v1.0/out/pack_out/cardtool.fex

/home/embfly/T113/T113-i_v1.0/out/pack_out/diskfs.fex

/home/embfly/T113/T113-i_v1.0/out/pack_out/dragon_toc.cfg

/home/embfly/T113/T113-i_v1.0/out/pack_out/env.cfg

/home/embfly/T113/T113-i_v1.0/out/pack_out/env_burn.cfg

/home/embfly/T113/T113-i_v1.0/out/pack_out/env_dragon.cfg

/home/embfly/T113/T113-i_v1.0/out/pack_out/esm.fex

……

vmlinux.fex Len: 0x3d78b64

boot-resource.fex Len:0x4cc400

vboot-resource.fex Len: ex4

env.fex Len: 0x20000

Venv.fex Len: 0x4

env.fex Len: 0x20000

Venv.fex Len: 0x4

boot.fex Len: 0xea5000

Vboot.fex Len: 0x4

rootfs-ubifs.fex Len: 0x4c89000

Vrootfs-ubifs.fex Len: 0x4

dsp0.fex Len: 0x3fc78

vdsp0.fex Len: ox4

Building 0

Dragon execute image.cfg SUccess !

----image is at-..-....

size:162M /home/embfly/T113/T113-i_v1.0/out/t113_i_linux_sbc-t113_nand_uart0.ing

pack finish

本次操作会将SPL镜像(boot0_nand_sun8iw20p1.bin、boot0_sdcard_sun8iw20p1.bin和boot0_spinor_sun8iw20p1.bin)转化为boot0_sdcard.fex、boot0_nand.fex、boot0_spinor.fex文件;

将U-Boot镜像(u-boot-sun8iw20p1.bin)、设备树镜像、sys_config配置文件合并生成boot_package.fex文件;

将Linux内核镜像(boot.img)转化为boot.fex文件;将文件系统镜像文件转化为rootfs-ubifs.fex文件和rootfs-sdboot.fex文件。

最后将boot0_sdcard.fex、boot0_nand.fex、boot0_spinor.fex、boot_package.fex、boot.fex、rootfs-ubifs.fex等文件,打包生成"out/t113_i_linux_sbc-t113_nand_uart0.img"Linux系统镜像文件;

将boot0_sdcard.fex、boot0_nand.fex、boot0_spinor.fex、boot_package.fex、boot.fex、rootfs-sdboot.fex等文件,打包生成"out/t113_i_linux_sbc-t113_nand-sdboot_uart0.img"Linux系统镜像文件。

其中t113_i_linux_sbc-t113_nand_uart0.img适用于NAND FLASH配置主板,仅支持NAND FLASH启动;t113_i_linux_sbc-t113_nand-sdboot_uart0.img适用于NAND FLASH配置主板,仅支持Micro SD启动。

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0$ cd out/pack_out/

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0/out/pack_out$ ls

arisc.fex cardtool.fex sunxi_gpt.fex

aultls32.fex config.fex sunxi mbr.fex

aultools.fex default.awlic sys_config.bin

battery_charge.bmp diskfs.fex sys_config.fex

battery_charge.bmp.lzma dlinfo.fex sys_partition.bin

bempty.bmp dragon_toc.cfg sys_partition_dump.fex

bempty.bmp.lzma dsp0.fex sys_partition.fex

board config.bin env_burn.cfg sys_partition_nor.fex

board_config.fex env.cfg sys_partition_private.fex

BoardConfig.mk env_dragon.cfg sys_partition sdboot.bin

Boardconfig_nor.mk env.fex sys_partition _sdboot.fex

board.fex esm.fex sysrecovery.fex

booto nand.fex fes1.fex toc0.fex

boot0 sdcard.fex fit-image.its toc1.fex

boot0 spinor.fex image.cfg u-boot-crash.fex

boot.fex image_crashdump.cfg u-boot.fex

bootlogo.bmp image_linux.cfg u-boot-spinor.fex

bootlogo.bmp.lzma image_nor.cfg usbtool crash.fex

bootlogo.bmp.lzma.head kernel.fex usbtool.fex

bootlogo.fex optee.fex usbtool_test.fex

boot_package.cfg parameter.fex vboot.fex

boot package.fex rootfs.fex vboot-resource.fex

boot_package_nor.cfg rootfs nor.fex vdsp0.fex

boot-resource rootfs-sdboot.fex venv.fex

boot-resource.fex rootfs-ubifs.fex version base.mk

boot-resource.ini sboot.bin vmlinux.fex

cardscript.fex split_xxxx.fex vrootfs-sdboot.fex

cardscript _secure.fex sunxi.fex Vrootfs-ubifs.fex

embfly@embfly-virtual-machine:~/T113/T113-i_v1.0/out/pack_out$

;