SBC-T113产品特性:
- 采用Allwinner公司Cortex-A7双核T113-i处理器,运行最高速度为1.2GHZ;
- 内置64-bit XuanTie C906 RISC-V协处理器;
- 支持JPEG/MJPEG视频编码,最大分辨率1080p@60fps;支持多格式1080P@60fps视频解码 (H.265,H.264, MPEG-1/2/4);
- 支持RGB666/LVDS/MIPI-DSI,分辨率最高1920x1080;
- 支持512-1G Bytes DDR3 SDRAM;
- 支持SPI NAND存储和启动(默认:256MB;最大1GB)或者EMMC启动(默认:4GB,最大32GB);
- 支持四路USB2.0 HOST;
- 支持六路RS232通信;
- 支持双路CAN BUS通信(隔离);
- 支持双路以太网,一路10/100M;一路10/100/1000M;
- 稳定的操作系统的支持,可预装Ubuntu20.04/LINUX 5.4 Preempt/Tina5.0;
- 标准3.5寸主板, 尺寸为:146*102MM;
SBC-T113功能评估图:
1. TinaSDK的目录结构介绍
Tina Linux v5.0目录结构主要有构建工具、构建系统、配置工具、工具链、芯片配置目录、内核及boot目录等组成。Tina Linux v5.0内置快速跳转指令,可以快速进入相关文件夹进行编辑修改。
下面按照目录顺序与快速跳转指令做简单介绍。
点击查看代码
/* by 01022.hk - online tools website : 01022.hk/zh/formatxml.html */
TinaLinux/
├── brandy # 存放boot0,uboot等代码。
├── build # 存放Tina Linux的系统构建脚本
├── buildroot # 存放buildroot相关的配置文件以及原生builroot代码
├── build.sh -> build/top_build.sh # 超链接至build/top_build.sh
├── device # 存放芯片方案的配置文件
├── kernel # 存放不同版本的内核代码
├── openwrt # 存放openWrt原生代码,及软件包、芯片方案目录
├── out # 存放编译相关的临时文件和最终镜像文件
├── platform # 存放着一些软件包源码
├── prebuilt # 存放一些预编译好的工具
└── tools # 存放一些host端工具,下载打包工具
-
brandy目录下主要存放boot0,uboot等代码。
点击查看代码
/* by 01022.hk - online tools website : 01022.hk/zh/formatxml.html */
brandy
└── brandy-2.0
├── build.sh -> tools/build.sh # 超链接
├── spl-pub # boot0仓库
├── tools # 一些工具
└── u-boot-2018 # u-boot 源码
快捷跳转命令:cboot cboot0
-
build目录-
build目录存放Tina Linux的系统构建脚本,主要功能有:
a) 提供编译需要的环境变量、函数、规则。
b) 提供各目标模块的编译方法、规则。
c) 对接 openWrt, buildroot 等不同构建系统。
d) 打包生成系统固件的脚本
快捷跳转命令:cbuild
-
Buildroot目录
buildroot 相关的配置文件以及原生 builroot 代码
-
device目录
device目录用于存放芯片方案的配置文件,包括内核配置,env配置,分区表配置,sys_config.fex, board.dts等。
点击查看代码
device
├── config
│ ├── chips
│ ├── common
│ └── rootfs_tar
└── product -> ./config/chips/t113_s4
快捷跳转命令:cchips, cconfigs
-
kernel目录主要存放不同版本的内核代码。
点击查看代码
kernel
└── linux-5.4
-
openwrt
openwrt目录存放着openWrt原生代码,及软件包、芯片方案目录。
点击查看代码
openwrt
├── build # openWrt构建系统相关hook脚本
├── dl # 软件压缩包
├── openwrt # openWrt原生代码目录
├── package # 额外添加的软件包,包括AW软件包、第三方软件包,feeds引入的软件包
└── target # 各个芯片方案目录,用于保存差异化配置信息
-
out目录
out目录用于保存编译相关的临时文件和最终镜像文件 ,编译后自动生成此目录,例如编译方案t113_s4-sbc-t113s。
点击查看代码
out
├── t113_s4
│ ├──sbc-t113s
│ │ ├── buildroot
│ │ ├── openwrt
│ │ └── pack_out
│ └── kernel
└── toolchain
└── gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi
快捷跳转命令:cout
-
out/openwrt目录
点击查看代码
out/openwrt
├── boot.img
├── rootfs.img
├── build_dir
├── staging_dir
├── tmp
├── extra
├── t113_s4_linux_ sbc-t113s_uart0.img
├── uImage
├── vmlinux
└── zImage
-
boot.img为最终烧写到系统boot分区的数据,可能为boot.img格式也可能为uImage格式。
-
rootfs.img为最终烧写到系统rootfs分区的数据,该分区默认为squashfs格式。
-
build_dir为sdk编译host,target和toolchain的临时文件目录,存有各个软件包的源码。
-
staging_dir为sdk编译过程中保存各个目录结果的目录。
-
extra目录下会保存的是最终生成的ipk软件包。
-
tmp目录下会保存着本方案软件包相关的信息
-
t113_s4_linux_sbc-t113s.img为最终固件包(系统镜像),串口信息通过串口输出
-
若使用pack -d,则生成的固件包为xxx_card0.img,串口信息转递到tf卡座输出。
-
快捷跳转命令:ctarget, crootfs
-
platform目录
platform目录存放着一些软件包源码,这些软件包的编译方式是通用的,分别可以用在openWrt或者buildroot等不同构建系统中。这个目录的存在是为了不同构建系统共用软件包提供可能性。
目前platform目录结构如下,主要根据是否为全志自研改动,以及类别区分:
点击查看代码
platform
├── allwinner
│ ├── power
│ ├── system
│ ├── usb
│ ├── utils
│ └── wireless
└── thirdparty
└── gui
-
prebuilt目录
prebuilt目录存放着一些预编译好的工具
点击查看代码
├── hostbuilt
│ ├── make4.1
│ └── python3.8
├── kernelbuilt
│ ├── aarch64
│ ├── arm
│ └── riscv
└── rootfsbuilt
├── aarch64
├── arm
└── riscv
- hostbuilt目录下存放着make以及python3.8工具,为了解决个别Host端工具版本过低导致编译失败的问题
- kernelbuilt目录存放着编译内核的工具链压缩包,它会被解压到 out/toolchain 目录下
- rootfsbuilt目录存放着编译rootfs的工具链
tools目录
tools目录用于存放一些host端工具, 例如打包工具。
快捷跳转目录指令列表
点击查看代码
croot - Changes directory to the top of the tree
cbsp - Changes directory to the bsp
cbsptest - Changes directory to the bsptest
ckernel - Changes directory to the kernel
cbrandy - Changes directory to the brandy
cboot - Changes directory to the uboot
cbr - Changes directory to the buildroot
cchips - Changes directory to the board
cconfigs - Changes directory to the board's config
cbin - Changes directory to the board's bin
cdts - Changes directory to the kernel's dts
ckernelout - Changes directory to the kernel output
cout - Changes directory to the product's output
copenssl - Changes directory to the product's openssl-1.0.0