《三十六计》第一条就是“瞒天过海”,解辞云:备周则意怠;常见则不疑。
话说楼主蒙大赛组委会错爱,侥幸忝列第三届玄铁杯之后,那是惴惴不安、坐卧不宁。原来是据江湖传闻,LicheePi 4A这个板子,随出于名门,但胎中带来不足之症,虽不伤大雅,但若不小心伺候,难免如同林妹妹一样呜呼哀哉。究竟是何不足之症?小道消息言讲,乃是HDMI接口保护脆弱,若直接电视,难免会有反向高压,立时晕厥不治。楼主闻听,马上从电视上把HDMI线取下,改接到显示器上。
却说到了那一日,楼主接到快递小哥电话,称“货到速取”。抖擞精神于是取到手中,小心拆封,才有了后面这个故事——
楼主收到之后,发现包装真是安全,双层气垫这是遇石而避、遇水不沉的路子啊:
以下连续大图,手机流量紧张的同学我只能说抱歉了。
外包装封套正面:
背面:
后视图
底视图:
开盒子的照片
翻过来看一下:
板子取出后有一张标签:
配有USB-typeC线、风扇,白色矩形是硅胶:
好。现在开始考试,请问:
1、都出现了哪些二维码?
2、提到GPIO的地方有哪几处?
3、楼主拿到的是什么版本的荔枝派?
参考答案:
是不是突然发现,如果不小心漏看了盒子,就会有些东西不大好找?
这里点题“常见则不疑”(此处应该有嘘声)
既然说到了官网,而且附带的标签提到了应当更新系统,那么就顺便讲一下系统更新的方法。
先要看官网“镜像集合”(https://wiki.sipeed.com/hardware/zh/lichee/th1520/lpi4a/3_images.html)选择自己需要的版本。Sipeed 官方镜像基于 Debian 系统修改适配,主要支持的系统包括Debian、OpenWRT、Android。
楼主不玩安卓,也不搞路由,于是用官方2023年10月23日发布的LPI4A_20231023_FULL.zip(网盘链接:
上面网盘链接里有烧写工具,在image\里,要把burn_tools.zip和burn_tools_support_big_image.zip都下载下来。都解压之后,把burn_tools_support_big_image里的文件挪到burn_tools里,才能用。
烧写时按住板上的BOOT按键不放,然后用USB-typeC连接核心板和电脑主机,电脑主机就会出现一个未识别的驱动,叫做“USB download gadget” 设备。然后安装burn_tools\windows\下的驱动就可以了。能够看出这个驱动其实用的是android的烧写协议,这么说,荔枝派其实是个平板电脑的核心。
做以上操作的之前楼主很很小心地反复读了好几遍官网“烧录镜像”手册(https://wiki.sipeed.com/hardware/zh/lichee/th1520/lpi4a/4_burn_image.html)
烧写之前,把bat文件改好:
:: Script to flash imagess via fastboot, edit image path first
@echo off
call:RunACmd "windows\fastboot.exe flash ram ..\20231023\LPI4A_FULL_20231023\u-boot-with-spl-lpi4a.bin"
call:RunACmd "windows\fastboot.exe reboot"
ping 127.0.0.1 -n 5 >nul
call:RunACmd "windows\fastboot.exe flash uboot ..\20231023\LPI4A_FULL_20231023\u-boot-with-spl-lpi4a.bin"
call:RunACmd "windows\fastboot.exe flash boot ..\20231023\LPI4A_FULL_20231023\boot.ext4"
call:RunACmd "windows\fastboot.exe flash root ..\20231023\LPI4A_FULL_20231023\root.ext4"
pause
exit
:RunACmd
SETLOCAL
set CmdStr=%1
echo IIIIIIIIIIIIIIII Run Cmd: %CmdStr%
%CmdStr:~1,-1% || goto RunACmd
GOTO:EOF
然后运行bat,就可以休息一会儿了:
G:\image\burn_tools_20231028>burn_lpi4a.bat
IIIIIIIIIIIIIIII Run Cmd: "windows\fastboot.exe flash ram ..\20231023\LPI4A_FUL
L_20231023\u-boot-with-spl-lpi4a.bin"
Warning: skip copying ram image avb footer (ram partition size: 0, ram image siz
e: 963008).
Sending 'ram' (940 KB) OKAY [ 0.248s]
Writing 'ram' OKAY [ 0.001s]
Finished. Total time: 0.274s
IIIIIIIIIIIIIIII Run Cmd: "windows\fastboot.exe reboot"
Rebooting OKAY [ 0.001s]
Finished. Total time: 0.004s
IIIIIIIIIIIIIIII Run Cmd: "windows\fastboot.exe flash uboot ..\20231023\LPI4A_
FULL_20231023\u-boot-with-spl-lpi4a.bin"
Warning: skip copying uboot image avb footer (uboot partition size: 0, uboot ima
ge size: 963008).
Sending 'uboot' (940 KB) OKAY [ 0.041s]
Writing 'uboot' OKAY [ 0.076s]
Finished. Total time: 0.180s
IIIIIIIIIIIIIIII Run Cmd: "windows\fastboot.exe flash boot ..\20231023\LPI4A_F
ULL_20231023\boot.ext4"
Sending sparse 'boot' 1/1 (70502 KB) OKAY [ 1.764s]
Writing 'boot' OKAY [ 5.122s]
Finished. Total time: 7.518s
IIIIIIIIIIIIIIII Run Cmd: "windows\fastboot.exe flash root ..\20231023\LPI4A_F
ULL_20231023\root.ext4"
Sending sparse 'root' 1/78 (114684 KB) OKAY [ 7.162s]
Writing 'root' OKAY [ 1.008s]
Sending sparse 'root' 2/78 (114684 KB) OKAY [ 3.612s]
Writing 'root' OKAY [ 0.894s]
Sending sparse 'root' 3/78 (110984 KB) OKAY [ 3.213s]
Writing 'root' OKAY [ 0.859s]
Sending sparse 'root' 4/78 (114684 KB) OKAY [ 3.214s]
Writing 'root' OKAY [ 0.953s]
Sending sparse 'root' 5/78 (109300 KB) OKAY [ 3.140s]
Writing 'root' OKAY [ 0.909s]
Sending sparse 'root' 6/78 (106541 KB) OKAY [ 3.113s]
Writing 'root' OKAY [ 0.937s]
Sending sparse 'root' 7/78 (104948 KB) OKAY [ 2.983s]
Writing 'root' OKAY [ 0.882s]
Sending sparse 'root' 8/78 (113053 KB) OKAY [ 3.260s]
Writing 'root' OKAY [ 1.007s]
Sending sparse 'root' 9/78 (112268 KB) OKAY [ 3.194s]
Writing 'root' OKAY [ 0.921s]
Sending sparse 'root' 10/78 (113989 KB) OKAY [ 3.489s]
Writing 'root' OKAY [ 1.099s]
Sending sparse 'root' 11/78 (114685 KB) OKAY [ 3.887s]
Writing 'root' OKAY [ 1.095s]
Sending sparse 'root' 12/78 (114684 KB) OKAY [ 3.194s]
Writing 'root' OKAY [ 0.894s]
Sending sparse 'root' 13/78 (114220 KB) OKAY [ 3.209s]
Writing 'root' OKAY [ 0.914s]
Sending sparse 'root' 14/78 (113644 KB) OKAY [ 3.190s]
Writing 'root' OKAY [ 0.896s]
Sending sparse 'root' 15/78 (102940 KB) OKAY [ 2.932s]
Writing 'root' OKAY [ 0.865s]
Sending sparse 'root' 16/78 (114685 KB) OKAY [ 3.257s]
Writing 'root' OKAY [ 0.992s]
Sending sparse 'root' 17/78 (112517 KB) OKAY [ 3.210s]
Writing 'root' OKAY [ 1.077s]
Sending sparse 'root' 18/78 (110661 KB) OKAY [ 3.214s]
Writing 'root' OKAY [ 0.993s]
Sending sparse 'root' 19/78 (112112 KB) OKAY [ 3.164s]
Writing 'root' OKAY [ 1.091s]
Sending sparse 'root' 20/78 (114684 KB) OKAY [ 3.215s]
Writing 'root' OKAY [ 0.924s]
Sending sparse 'root' 21/78 (114273 KB) OKAY [ 3.337s]
Writing 'root' OKAY [ 1.043s]
Sending sparse 'root' 22/78 (114684 KB) OKAY [ 3.198s]
Writing 'root' OKAY [ 0.891s]
Sending sparse 'root' 23/78 (114684 KB) OKAY [ 3.173s]
Writing 'root' OKAY [ 0.936s]
Sending sparse 'root' 24/78 (114684 KB) OKAY [ 3.283s]
Writing 'root' OKAY [ 0.886s]
Sending sparse 'root' 25/78 (114686 KB) OKAY [ 3.358s]
Writing 'root' OKAY [ 1.184s]
Sending sparse 'root' 26/78 (114684 KB) OKAY [ 3.202s]
Writing 'root' OKAY [ 0.859s]
Sending sparse 'root' 27/78 (114686 KB) OKAY [ 3.326s]
Writing 'root' OKAY [ 1.159s]
Sending sparse 'root' 28/78 (114684 KB) OKAY [ 3.412s]
Writing 'root' OKAY [ 0.901s]
Sending sparse 'root' 29/78 (114669 KB) OKAY [ 3.266s]
Writing 'root' OKAY [ 0.989s]
Sending sparse 'root' 30/78 (113978 KB) OKAY [ 3.704s]
Writing 'root' OKAY [ 2.532s]
Sending sparse 'root' 31/78 (109377 KB) OKAY [ 3.104s]
Writing 'root' OKAY [ 0.992s]
Sending sparse 'root' 32/78 (114684 KB) OKAY [ 3.227s]
Writing 'root' OKAY [ 0.890s]
Sending sparse 'root' 33/78 (114345 KB) OKAY [ 3.320s]
Writing 'root' OKAY [ 1.008s]
Sending sparse 'root' 34/78 (114684 KB) OKAY [ 4.737s]
Writing 'root' OKAY [ 0.936s]
Sending sparse 'root' 35/78 (112921 KB) OKAY [ 5.345s]
Writing 'root' OKAY [ 1.009s]
Sending sparse 'root' 36/78 (114685 KB) OKAY [ 3.239s]
Writing 'root' OKAY [ 0.973s]
Sending sparse 'root' 37/78 (114097 KB) OKAY [ 3.824s]
Writing 'root' OKAY [ 1.211s]
Sending sparse 'root' 38/78 (110136 KB) OKAY [ 3.290s]
Writing 'root' OKAY [ 0.888s]
Sending sparse 'root' 39/78 (109316 KB) OKAY [ 3.039s]
Writing 'root' OKAY [ 0.866s]
Sending sparse 'root' 40/78 (114684 KB) OKAY [ 3.188s]
Writing 'root' OKAY [ 0.914s]
Sending sparse 'root' 41/78 (114684 KB) OKAY [ 4.915s]
Writing 'root' OKAY [ 0.869s]
Sending sparse 'root' 42/78 (114684 KB) OKAY [ 3.697s]
Writing 'root' OKAY [ 0.881s]
Sending sparse 'root' 43/78 (114684 KB) OKAY [ 3.233s]
Writing 'root' OKAY [ 0.878s]
Sending sparse 'root' 44/78 (114684 KB) OKAY [ 3.264s]
Writing 'root' OKAY [ 0.935s]
Sending sparse 'root' 45/78 (114684 KB) OKAY [ 3.296s]
Writing 'root' OKAY [ 0.960s]
Sending sparse 'root' 46/78 (114684 KB) OKAY [ 3.221s]
Writing 'root' OKAY [ 0.937s]
Sending sparse 'root' 47/78 (107580 KB) OKAY [ 11.634s]
Writing 'root' OKAY [ 0.848s]
Sending sparse 'root' 48/78 (114684 KB) OKAY [ 3.206s]
Writing 'root' OKAY [ 0.879s]
Sending sparse 'root' 49/78 (112581 KB) OKAY [ 3.346s]
Writing 'root' OKAY [ 1.074s]
Sending sparse 'root' 50/78 (114684 KB) OKAY [ 3.203s]
Writing 'root' OKAY [ 0.909s]
Sending sparse 'root' 51/78 (114684 KB) OKAY [ 3.308s]
Writing 'root' OKAY [ 0.916s]
Sending sparse 'root' 52/78 (114684 KB) OKAY [ 8.730s]
Writing 'root' OKAY [ 0.954s]
Sending sparse 'root' 53/78 (112501 KB) OKAY [ 15.947s]
Writing 'root' OKAY [ 1.046s]
Sending sparse 'root' 54/78 (114685 KB) OKAY [ 6.688s]
Writing 'root' OKAY [ 1.005s]
Sending sparse 'root' 55/78 (111012 KB) OKAY [ 3.101s]
Writing 'root' OKAY [ 1.226s]
Sending sparse 'root' 56/78 (109265 KB) OKAY [ 3.100s]
Writing 'root' OKAY [ 0.957s]
Sending sparse 'root' 57/78 (112728 KB) OKAY [ 3.500s]
Writing 'root' OKAY [ 1.760s]
Sending sparse 'root' 58/78 (114685 KB) OKAY [ 3.437s]
Writing 'root' OKAY [ 0.991s]
Sending sparse 'root' 59/78 (114684 KB) OKAY [ 3.319s]
Writing 'root' OKAY [ 0.850s]
Sending sparse 'root' 60/78 (114684 KB) OKAY [ 3.218s]
Writing 'root' OKAY [ 0.836s]
Sending sparse 'root' 61/78 (114684 KB) OKAY [ 3.243s]
Writing 'root' OKAY [ 0.858s]
Sending sparse 'root' 62/78 (114684 KB) OKAY [ 3.180s]
Writing 'root' OKAY [ 0.874s]
Sending sparse 'root' 63/78 (114684 KB) OKAY [ 3.181s]
Writing 'root' OKAY [ 0.846s]
Sending sparse 'root' 64/78 (103316 KB) OKAY [ 2.921s]
Writing 'root' OKAY [ 0.840s]
Sending sparse 'root' 65/78 (114684 KB) OKAY [ 3.230s]
Writing 'root' OKAY [ 0.934s]
Sending sparse 'root' 66/78 (114685 KB) OKAY [ 3.330s]
Writing 'root' OKAY [ 0.997s]
Sending sparse 'root' 67/78 (114684 KB) OKAY [ 3.893s]
Writing 'root' OKAY [ 0.849s]
Sending sparse 'root' 68/78 (107447 KB) OKAY [ 4.087s]
Writing 'root' OKAY [ 1.158s]
Sending sparse 'root' 69/78 (114684 KB) OKAY [ 3.262s]
Writing 'root' OKAY [ 0.938s]
Sending sparse 'root' 70/78 (104040 KB) OKAY [ 3.078s]
Writing 'root' OKAY [ 0.857s]
Sending sparse 'root' 71/78 (114685 KB) OKAY [ 3.254s]
Writing 'root' OKAY [ 1.000s]
Sending sparse 'root' 72/78 (114684 KB) OKAY [ 3.399s]
Writing 'root' OKAY [ 0.875s]
Sending sparse 'root' 73/78 (111544 KB) OKAY [ 3.132s]
Writing 'root' OKAY [ 5.997s]
Sending sparse 'root' 74/78 (114684 KB) OKAY [ 3.222s]
Writing 'root' OKAY [ 0.892s]
Sending sparse 'root' 75/78 (107510 KB) OKAY [ 3.161s]
Writing 'root' OKAY [ 1.084s]
Sending sparse 'root' 76/78 (114684 KB) OKAY [ 3.329s]
Writing 'root' OKAY [ 1.380s]
Sending sparse 'root' 77/78 (114684 KB) OKAY [ 3.256s]
Writing 'root' OKAY [ 0.861s]
Sending sparse 'root' 78/78 (192 KB) OKAY [ 0.023s]
Writing 'root' OKAY [ 0.022s]
Finished. Total time: 536.949s
请按任意键继续. . .
操作的之前时候,行云流水、一气呵成,于是就留了一个小遗憾,没有拍下原版linux启动时那几只小企鹅的照片,刷完后企鹅被红色的“sipeed”logo代替,以后再也看不到了。
这正是:
备周意怠,常见不疑,手册翻千遍,行车很规范。
欲知后事如何,且听下回分解。