您尚未登录。

楼主 #1 2020-04-08 00:17:39

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

试一试 Ubuntu 18.04 编译 X3 SDK

哎呀, 搜了一圈居然发现已经全有了: https://whycan.cn/t_3270.html


source build/envsetup.sh

lunch

    选1  [astar_parrot-tina]

make

pack

离线

楼主 #2 2020-04-08 08:32:35

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 试一试 Ubuntu 18.04 编译 X3 SDK

~/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

离线

楼主 #3 2020-04-08 09:08:09

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 试一试 Ubuntu 18.04 编译 X3 SDK

打包成功:

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

离线

楼主 #4 2020-04-08 09:57:04

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 试一试 Ubuntu 18.04 编译 X3 SDK

这下麻烦,不知道烧哪里, 烧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  ]==========================

离线

楼主 #5 2020-04-08 10:28:01

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 试一试 Ubuntu 18.04 编译 X3 SDK

2020-04-08_101324.png

烧录应该成功了,因为插卡之后就没有USB FEL设备了, 但是串口0没有反应, 芯片没有发热, 这TMD就怪了。

离线

楼主 #6 2020-04-13 19:44:18

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 试一试 Ubuntu 18.04 编译 X3 SDK

QQ图片20200413194300.jpg

X3 Tina Linux 运行成功了.

离线

#7 2020-04-13 22:42:16

达克罗德
会员
注册时间: 2018-04-10
已发帖子: 1,138
积分: 1090.5

Re: 试一试 Ubuntu 18.04 编译 X3 SDK

88秒?

离线

#8 2020-04-14 16:09:54

sochip索智科技-全志代理商方案商
会员
注册时间: 2020-03-25
已发帖子: 61
积分: 61

Re: 试一试 Ubuntu 18.04 编译 X3 SDK

是Tina哪个版本呢?

离线

#9 2020-04-18 02:00:11

grantho
会员
注册时间: 2020-03-21
已发帖子: 68
积分: 4.5

Re: 试一试 Ubuntu 18.04 编译 X3 SDK

和A33,R16的sdk啥区别?ddr配置?

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn