哎呀, 搜了一圈居然发现已经全有了: https://whycan.cn/t_3270.html
source build/envsetup.sh
lunch
选1 [astar_parrot-tina]
make
pack
离线
~/A33/x3sdk/x3_tina_send$ make
~/A33/x3sdk/x3_tina_send/build/board.mk:9: ~/A33/x3sdk/x3_tina_send/target/allwinner/-common/BoardConfigCommon.mk: No such file or directory
~/A33/x3sdk/x3_tina_send/build/board.mk:10: ~/A33/x3sdk/x3_tina_send/target/allwinner//BoardConfig.mk: No such file or directory
make[3]: *** No rule to make target '~/A33/x3sdk/x3_tina_send/target/allwinner//BoardConfig.mk'. Stop.
~/A33/x3sdk/x3_tina_send/build/board.mk:9: ~/A33/x3sdk/x3_tina_send/target/allwinner/-common/BoardConfigCommon.mk: No such file or directory
~/A33/x3sdk/x3_tina_send/build/board.mk:10: ~/A33/x3sdk/x3_tina_send/target/allwinner//BoardConfig.mk: No such file or directory
make[3]: *** No rule to make target '~/A33/x3sdk/x3_tina_send/target/allwinner//BoardConfig.mk'. Stop.
~/A33/x3sdk/x3_tina_send/build/board.mk:9: ~/A33/x3sdk/x3_tina_send/target/allwinner/-common/BoardConfigCommon.mk: No such file or directory
~/A33/x3sdk/x3_tina_send/build/board.mk:10: ~/A33/x3sdk/x3_tina_send/target/allwinner//BoardConfig.mk: No such file or directory
make[2]: *** No rule to make target '~/A33/x3sdk/x3_tina_send/target/allwinner//BoardConfig.mk'. Stop.
~/A33/x3sdk/x3_tina_send/build/toplevel.mk:287: recipe for target 'prereq' failed
make[1]: *** [prereq] Error 2
~/A33/x3sdk/x3_tina_send/build/toplevel.mk:301: recipe for target 'world' failed
make: *** [world] Error 2
解决方案:
date +%s > version.date
原因:
原因是yaffs需要用这个日期信息来生成一个冗长的version信息,系统会从git信息中查找,但git没有安装,或者git环境变量错误。
参考: https://blog.csdn.net/yulijun2201/article/details/81667198
离线
打包成功:
toc0.fex Len: 0x8
fes1.fex Len: 0x31c0
full_img.fex Len: 0x16
usbtool.fex Len: 0x24200
aultools.fex Len: 0x27c29
aultls32.fex Len: 0x24d3f
cardtool.fex Len: 0x11e00
cardscript.fex Len: 0x6ea
sunxi_mbr.fex Len: 0x10000
dlinfo.fex Len: 0x4000
boot-resource.fex Len: 0x4c800
Vboot-resource.fex Len: 0x4
env.fex Len: 0x20000
Venv.fex Len: 0x4
boot.fex Len: 0x400000
Vboot.fex Len: 0x4
rootfs.fex Len: 0xc00000
Vrootfs.fex Len: 0x4
recovery.fex Len: 0x18
Vrecovery.fex Len: 0x4
BuildImg 0
Dragon execute image.cfg SUCCESS !
----------image is for nand/emmc----------
----------image is at----------
~/A33/x3sdk/x3_tina_send/out/astar-parrot/tina_astar-parrot_uart0.img
pack finish
离线
这下麻烦,不知道烧哪里, 烧TF卡发现一闪而过.
参考这个帖子: https://whycan.cn/t_917.html#p30343
解包img文件, 发现boot0 只有 boot0_sdcard.fex / boot0_nand.fex
看来可能是 tf卡 或者 spi nand 固件:
$ ../imgRePacker.exe "tina_astar-parrot_uart0.img"
imgRePacker (version 2.05 windows)
LiveSuit's & PhoenixSuit's firmware image unpacker/packer
(c) RedScorpio, Moscow, 2012-2014
RedScorpio@land.ru
==========================[ START ]==========================
--- Firmware unpacking ---
PhoenixSuit image format detected
- image.cfg creating -
image.cfg created
- Files extracting -
"\sys_config.fex" extracted (format: unknown)
"\config.fex" extracted (format: unknown)
"\split_xxxx.fex" extracted (format: unknown)
"\sys_partition.fex" extracted (format: unknown)
"\boot0_nand.fex" extracted (format: Allwinner BOOT0 file)
"\boot0_sdcard.fex" extracted (format: Allwinner BOOT0 file)
"\u-boot.fex" extracted (format: unknown)
"\toc1.fex" extracted (format: unknown/empty?)
"\toc0.fex" extracted (format: unknown/empty?)
"\fes1.fex" extracted (format: Allwinner BOOT0 file)
"\full_img.fex" extracted (format: unknown/empty?)
"\usbtool.fex" extracted (format: Windows PE file)
"\aultools.fex" extracted (format: Compiled lua file)
"\aultls32.fex" extracted (format: Compiled lua file)
"\cardtool.fex" extracted (format: Windows PE file)
"\cardscript.fex" extracted (format: unknown)
"\sunxi_mbr.fex" extracted (format: unknown)
"\dlinfo.fex" extracted (format: unknown)
"\boot-resource.fex" extracted (format: FAT16 image)
"boot-resource.fex.iso" created
"\Vboot-resource.fex" extracted (format: unknown/empty?)
"\env.fex" extracted (format: unknown)
"\Venv.fex" extracted (format: unknown/empty?)
"\boot.fex" extracted (format: unknown)
"\Vboot.fex" extracted (format: unknown/empty?)
"\rootfs.fex" extracted (format: unknown)
"\Vrootfs.fex" extracted (format: unknown/empty?)
"\recovery.fex" extracted (format: unknown/empty?)
"\Vrecovery.fex" extracted (format: unknown/empty?)
==========================[ STOP ]==========================
离线
烧录应该成功了,因为插卡之后就没有USB FEL设备了, 但是串口0没有反应, 芯片没有发热, 这TMD就怪了。
离线
X3 Tina Linux 运行成功了.
离线