过程很简单,主要分为:
- 格式化TF卡
- 使用PhoenixCard软件烧录img镜像文件
- 插TF卡到板上并连接串口后给板子上电
放一下这几个过程所需的软件:
首先是用于将TF卡格式化以及向其写入img镜像的PhoenixCard软件:https://pan.baidu.com/s/1BcuXbHZEKEBWspjTeAYSfQ?pwd=1234
串口终端putty:https://pan.baidu.com/s/1gebyTc7xhPEcQ9Kj78RS6w?pwd=1234
我这边使用的img镜像是LicheeRV_Tina_dock_800480_8723ds.img.因为我这边的板子是带dock的,且是使用RTL8723的WIFI版本,我这边也想后续在Tina上做开发.这个镜像文件去Sipeed官方的百度网盘上下载,链接是https://pan.baidu.com/s/1QJTaDw6kkTM4c_GAlmG0hg 提取码:wbef
先将TF卡插入USB读卡器后插入电脑(如果是笔记本电脑的话尽量不要使用笔记本的自带TF卡接口,会出现各种奇怪的问题).
打开PhoenixCard,软件应该能自动识别插入的TF卡的盘符,例如这样:

点击"恢复卡"按钮,软件会自动格式化TF卡(如果之前TF卡有烧录过镜像,导致一部分容量windows无法识别,此步骤可以释放这部分空间,此步骤操作完成后windows就可以识别整个TF卡容量了).

然后点击左上角的"固件"来选择要烧录的img文件.后选择制作卡的种类为"启动卡"后,点击烧卡,等待进度走满变绿即可.

烧录完成后拔卡,并插入开发板的TF卡槽中.并引出串口线跟GND到外部的USB转串口板,并连接到电脑.

在putty中,选择"串口"并输入对应的串口号以及波特率(115200),点击"open",即可打开终端.

然后USB type-C给板子上电即可看到开机log.

完整的开机log如下:
[157]HELLO! BOOT0 is starting!
[160]BOOT0 commit : 27369ab
OpenSBI v0.6
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs : 1
Current Hart : 0
Firmware Base : 0x40000400
Firmware Size : 75 KB
Runtime SBI Version : 0.2
MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0 : 0x0000000040000000-0x000000004001ffff (A)
PMP1 : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2 : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3 : 0x0000000000020000-0x0000000000027fff (A,▒
U-Boot 2018.05-g0a88ac9-dirty-config-dirty (Dec 14 2021 - 18:32:11 +0800) Allwinner Technology
[00.307]DRAM: 512 MiB
[00.309]Relocation Offset is: 1df30000
[00.313]secure enable bit: 0
[00.316]CPU=1008 MHz(1008),PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
[00.323]flash init start
[00.325]workmode = 0,storage type = 1
[00.328][mmc]: mmc driver ver uboot2018:2021-04-16 14:23:00-1
[00.334][mmc]: get sdc_type fail and use default host:tm1.
[00.340][mmc]: can't find node "mmc0",will add new node
[00.345][mmc]: fdt err returned <no error>
[00.349][mmc]: Using default timing para
[00.352][mmc]: SUNXI SDMMC Controller Version:0x50310
[00.378][mmc]: card_caps:0x3000000a
[00.381][mmc]: host_caps:0x3000003f
[00.387]sunxi flash init ok
[00.389]line:714 init_clocks
__clk_init: clk pll_periph0x2 already initialized
register fix_factor clk error
[00.408]Loading Environment from SUNXI_FLASH... OK
[00.428]out of usb burn from boot: not need burn key
root_partition is rootfs
set root to /dev/mmcblk0p7
[00.439]update part info
[00.442]update bootcmd
[00.445]change working_fdt 0x5eaefda8 to 0x5eacfda8
[00.464]update dts
Hit any key to stop autoboot: 0
Android's image name: d1-nezha
No reserved memory region found in source FDT
[00.896]
Starting kernel ...
[00.899][mmc]: MMC Device 2 not found
[00.902][mmc]: mmc 2 not find, so not exit
formating /dev/by-name/UDISK to ext4
/etc/preinit: line 1: mkfs.ext4: not found
Please press Enter to activate this console.
Trying to connect to SWUpdate...
当出现"Please press Enter to activate this console."时,即可在终端按下回车键,即可进入正常的终端状态.


Comments | NOTHING