快速启动
启动开发板
插入12v电源,拨动开关即可启动开发板。
如果想方便使用的话,可以优先使用下面的 使用ADB登录系统 方式进行登录系统
windows下使用 ADB登录系统
连接OTG线
将开发板配套的两根typec线,一根 直接连接至 开发板 OTG烧录接口
另一头连接至电脑的USB接口,开发板默认有系统,接通otg电源线就会通电并直接启动。
安装windows板ADB
点击链接下载Windows版ADB工具 adb-tools 下载完成后解压,可以看到如下目录,
然后 我们单独 拷贝 上一层的 platform-tools 文件夹到任意 目录,拷贝完成后,记住这个 目录位置,我们接下来要把这个 路径添加至 Windows系统环境变量里。
我这里是把它单独拷贝到了 D盘,我的目录是 D:\platform-tools
接下来 我需要把它单独添加到Windows系统环境变量里面才可以在任意位置使用adb命令。
添加到 Windows系统环境变量里面
打开cmd连接开发板
打开CMD Windows 命令提示符方式有两种 方式1:直接在Windows10/11搜索对话框中输入 cmd 在弹出的软件中点击 命令提示符
方式2:同时按下 wind + r 键,输入 cmd 命令,按下确认 就可以自动打开 命令提示符
打开命令提示符,输出 adb命令可以直接看到我们的adb已经配置成功
连接好开发板的 OTG 并将其连接至电脑上,然后 输入 adb shell就可以自动登录系统
C:\System> adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
_____ _ __ _
|_ _||_| ___ _ _ | | |_| ___ _ _ _ _
| | _ | || | | |__ | || || | ||_'_|
| | | || | || _ | |_____||_||_|_||___||_,_|
|_| |_||_|_||_|_| Tina is Based on OpenWrt!
----------------------------------------------
Tina Linux
----------------------------------------------
root@TinaLinux:/#
ADB 也可以作为文件传输使用,例如:
C:\System> adb push badapple.mp4 /mnt/UDISK # 将 badapple.mp4 上传到开发板 /mnt/UDISK 目录内
C:\System> adb pull /mnt/UDISK/badapple.mp4 # 将 /mnt/UDISK/badapple.mp4 下拉到当前目录内
注意: 此方法目前只适用于 使用全志Tina-SDK 构建出来的系统。
使用串口登录系统
1. 连接串口线
将配套的TypeC线一段连接至开发板的串口/供电接口,另一端连接至电脑USB接口,连接成功后板载的红色电源灯会亮起。 默认情况下系统会自动安装串口设备驱动,如果没有自动安装,可以使用驱动精灵来自动安装。
- 对于Windows系统 此时Windows设备管理器 在 端口(COM和LPT) 处会多出一个串口设备,一般是以
USB-Enhanced-SERIAL CH9102
开头,您需要留意一下后面的具体COM编号,用于后续连接使用。
如上图,COM号是96,我们接下来连接所使用的串口号就是96。
- 对于Linux系统 可以查看是否多出一个/dev/tty 设备,一般情况设备节点为 /dev/ttyACM0 。
2. 打开串口控制台
获取串口工具
使用Putty或者MobaXterm等串口工具来开发板设备。
- 其中putty工具可以访问页面 https://www.chiark.greenend.org.uk/~sgtatham/putty/ 来获取。
- MobaXterm可以通过访问页面 https://mobaxterm.mobatek.net/ 获取 (推荐使用)。
使用putty登录串口
使用Mobaxterm登录串口
打开MobaXterm,点击左上角的“Session”,在弹出的界面选中“Serial”,如下图所示选择端口号(前面设备管理器显示的端口号COM21)、波特率(Speed 115200)、流控(Flow Control: none),最后点击“OK”即可。步骤如下图所示。 注意:流控(Flow Control)一定要选择none,否则你将无法在MobaXterm中向串口输入数据
3. 进入系统shell
使用串口工具成功打开串口后,可以直接按下 Enter 键 进入shell,当然您也可以按下板子上的 Reset
复位键,来查看完整的系统信息。
[53]HELLO! BOOT0 is starting!
[56]BOOT0 commit : 88480af
[59]set pll start
[61]fix vccio detect value:0xc0
[64]periph0 has been enabled
[67]set pll end
[68][pmu]: bus read error
[70]board init ok
[72]ZQ value = 0x2e
[74]get_pmu_exist() = -1
[76]DRAM BOOT DRIVE INFO: V0.33
[79]DRAM CLK = 528 MHz
[81]DRAM Type = 2 (2:DDR2,3:DDR3)
[85]DRAMC read ODT off.
[87]DRAM ODT off.
[89]ddr_efuse_type: 0xa
[91]DRAM SIZE =64 M
[93]dram_tpr4:0x0
[95]PLL_DDR_CTRL_REG:0xf8002b00
[98]DRAM_CLK_REG:0xc0000000
[100][TIMING DEBUG] MR2= 0x0
[105]DRAM simple test OK.
[107]dram size =64
[109]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32
[114]block from 8 to 32
[171]Check is correct.
[173]dma 0x301a8 int is not used yet
[177]dma 0x301a8 int is free, you do not need to free it again
[182]Entry_name = opensbi
[186]Entry_name = u-boot
[189]Entry_name = dtb
▒192]Jump to second Boot.
U-Boot 2018.05-g24521d6-dirty (Feb 27 2024 - 20:21:41 -0500) Allwinner Technology
[00.202]DRAM: 64 MiB
[00.204]Relocation Offset is: 01ee7000
[00.209]secure enable bit: 0
[00.212]CPU=720 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
[00.218]flash init start
[00.220]workmode = 0,storage type = 0
sspi->base_addr = 0x4025000, the SPI control register:
[VER] 0x4025000 = 0x00010001, [GCR] 0x4025004 = 0x00000083, [TCR] 0x4025008 = 0x00000184
[ICR] 0x4025010 = 0x00000f00, [ISR] 0x4025014 = 0x00000032, [FCR] 0x4025018 = 0x00200020
[FSR] 0x402501c = 0x00000000, [WCR] 0x4025020 = 0x00000000, [CCR] 0x4025024 = 0x00000002
[SDC] 0x4025028 = 0x00002000, [BCR] 0x4025030 = 0x00000000, [TCR] 0x4025034 = 0x00000000
[BCC] 0x4025038 = 0x20000000, [DMA] 0x4025088 = 0x000000e5
[00.269]sunxi-spinand-phy: not detect any munufacture from id table
[00.276]sunxi-spinand-phy: get spi-nand Model from fdt fail
[00.281]sunxi-spinand-phy: get phy info from fdt fail
device nand0 <nand>, # parts = 4
#: name size offset mask_flags
0: boot0 0x00100000 0x00000000 1
1: uboot 0x00300000 0x00100000 1
2: secure_storage 0x00100000 0x00400000 1
3: sys 0x07b00000 0x00500000 0
active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000
defaults:
mtdids : nand0=nand
mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
[00.397]ubi0: attaching mtd4
[00.495]ubi0: scanning is finished
[00.503]ubi0: attached mtd4 (name "sys", size 123 MiB)
[00.507]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
[00.514]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
[00.520]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[00.526]ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0
[00.531]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128
[00.538]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
[00.546]ubi0: available PEBs: 0, total reserved PEBs: 492, PEBs reserved for bad PEB handling: 20
[00.554]sunxi flash init ok
[00.557]line:703 init_clocks
[00.560]drv_disp_init
request pwm success, pwm7:pwm7:0x2000c00.
[00.581]drv_disp_init finish
[00.584]boot_gui_init:start
[00.587]set disp.dev2_output_type fail. using defval=0
[00.594]boot_gui_init:finish
partno erro : can't find partition bootloader
54 bytes read in 0 ms
[00.725]bmp_name=bootlogo.bmp size 38454
38454 bytes read in 2 ms (18.3 MiB/s)
[00.775]LCD open finish
[00.853]Loading Environment from SUNXI_FLASH... OK
[00.876]out of usb burn from boot: not need burn key
[00.882]Item0 (Map) magic is bad
partno erro : can't find partition private
[00.910]update bootcmd
[00.923]change working_fdt 0x42aa6da0 to 0x42a86da0
No reserved memory region found in source FDT
[00.956]update dts
noncached_alloc(): addr = 0x42ca5080
noncached_alloc(): addr = 0x42ca50c0
noncached_alloc(): addr = 0x42ca5100
noncached_alloc(): addr = 0x42ca5940
geth_sys_init:634: get node 'gmac0' error
geth_sys_init fail!
[00.977]Board Net Initialization Failed
[00.980]No ethernet found.
Hit any key to stop autoboot: 0
[02.372]no vendor_boot partition is found
Android's image name: d1s-cvbs
Detect comp none
[02.390]
Starting kernel ...
▒** 17 printk messages dropped **
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
Sorting __ex_table...
mem auto-init: stack:off, heap alloc:off, heap free:off
Memory: 55032K/65536K available (4775K kernel code, 427K rwdata, 1864K rodata, 152K init, 240K bss, 10504K reserved, 0K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
rcu: Preemptible hierarchical RCU implementation.
Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0