Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页
    1. Home
    2. Recent
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • 公告
    • 芯片
    •          D1系列-RISC-V
    •          V853系列-AI视觉
    •          H616系列-OTT
    •          XR系列-无线互联
    •          R系列-智能硬件
    • Technical topics
    •          RTOS
    •          Linux
    •          GUI
    • Others
    •          其它全志芯片讨论区
    •          代码下载问题专区
    •          编译和烧写问题专区
    •          灌水区
    • J

      关于Maix-II-Dock(v831)的一些问题
      其它全志芯片讨论区 • Posted at • joeydeng

      0 Votes
      17 Replies
      166 Views

      W Replied at

      @joeydeng 在 关于Maix-II-Dock(v831)的一些问题 中说:

      @whycan d1168494-3c5a-4e94-9256-99983bb75512-image.png 晕哥,请问官方的sdk获取流程具体是怎么样的呀?🤔

      全志客户服务平台
      有获取流程的,你仔细找找.

      17
    • U

      自己做的F1C200s板子开机几分钟就挂了,但是widora的板子正常
      其它全志芯片讨论区 • f1c200s • Posted at • ubuntu

      0 Votes
      1 Replies
      54 Views

      H Replied at

      your linux kernel crashed . maybe it is device tree issue idk.

      1
    • Y

      T113 Tina linux怎么做到开机自动运行指定的脚本
      其它全志芯片讨论区 • Posted at • Yorozuya

      0 Votes
      0 Replies
      41 Views

      No one has replied

      0
    • K

      请问全志的镜像可以dd制作是什么意思呢?
      编译和烧写问题专区 • Posted at • kelsey

      0 Votes
      3 Replies
      54 Views

      W Replied at

      @kelsey
      全志官方的tina一般不这么玩,开源Linux(树莓派社区)一般用这种玩法.

      请参考这个链接: bing

      3
    • B

      V3S 5.4找不到fb0节点
      其它全志芯片讨论区 • Posted at • beiyi

      0 Votes
      1 Replies
      59 Views

      W Replied at

      @beiyi

      参考这个帖子(V3s/V3x/S3/S3L/R11通吃)小智V3x开发板smallwitpi lite u-boot/linux/buildroot测试

      主线Linux用drm或者simplefb驱动显示屏.

      1
    • J

      调试 t113_whycanpii-tina 方案的 mipi 显示问题
      其它全志芯片讨论区 • Posted at • Justyu666

      0 Votes
      8 Replies
      165 Views

      W Replied at

      @justyu666
      可能C库不一致,上面SDK里面有一个是 glibc, 有一个是musl。

      8
    • W

      A133 longan 平台 RT8723DS WIFI 测试
      其它全志芯片讨论区 • Posted at • whycan晕哥

      0 Votes
      4 Replies
      83 Views

      W Replied at

      扫描:

      wpa_cli -iwlan0 scan

      读取扫描接口:

      wpa_cli -iwlan0 scan_result root@dragonboard:~# root@dragonboard:~# wpa_cli -iwlan0 scan OK root@dragonboard:~# root@dragonboard:~# root@dragonboard:~# wpa_cli -iwlan0 scan_result bssid / frequency / signal level / flags / ssid c8:bf:4c:d5:43:88 2412 -63 [ESS] Xiaomi_C12D_3ED2 72:3d:d6:25:ac:3b 2462 -70 [WPA2-PSK-CCMP][ESS] whycan
      4
    • hqdz8

      华秋电子与信威电子合作打造智能家居安全防范系统
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      35 Views

      No one has replied

      0
    • hqdz8

      机械钻孔、激光钻孔的流程
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      34 Views

      No one has replied

      0
    • hqdz8

      喜讯!华秋电子荣获千峰奖“2022年度产业互联网百强”,持续为电子产业增效降本!
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      24 Views

      No one has replied

      0
    • hqdz8

      PCB阻焊油墨的五种过孔工艺,你知道吗?
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      30 Views

      No one has replied

      0
    • G

      T507使用mcp2515转CAN问题
      其它全志芯片讨论区 • Posted at • Gawaine

      0 Votes
      18 Replies
      166 Views

      G Replied at

      @whycan 好的,我稍后买一个试试,谢谢了大神!!!

      18
    • q1215200171

      【FAQ】全志T113芯片蓝牙音乐播放失败如何解决?
      其它全志芯片讨论区 • Posted at • budbool

      0 Votes
      0 Replies
      53 Views

      No one has replied

      0
    • W

      18.8元的 4G 转 WIFI dongle,即插即用,无需USB通讯,通电即可使用。
      灌水区 • Posted at • whycan晕哥

      0 Votes
      11 Replies
      496 Views

      U Replied at

      @whycan 在 18.8元的 4G 转 WIFI dongle,即插即用,无需USB通讯,通电即可使用。 中说:

      据说手快有: https://detail.tmall.com/item.htm?id=656554238743

      仅推荐,其他风险自担。

      涨价了,73元。

      11
    • L

      T113开发资料下载
      其它全志芯片讨论区 • Posted at • one001

      0 Votes
      3 Replies
      335 Views

      W Replied at

      @whycan 在 T113开发资料下载 中说:

      分享T113资料,百度网盘:
      https://pan.baidu.com/s/1h-yRCvY3I7fhlVL9tVIfvw?pwd=awol 
      提取码:awol--来自百度网盘超级会员V4的分享

      这个网盘内的东东,实在不敢收下,太大了,动不动几十个G。

      3
    • J

      哪位有T113S3驱动mipi屏幕代码吗
      其它全志芯片讨论区 • Posted at • Justyu666

      0 Votes
      4 Replies
      202 Views

      J Replied at

      @whycan 多谢兄弟

      4
    • duskmoon

      [部分已解决] v853 sdk 编译失败:undefined reference to `sunxi_challenge`
      编译和烧写问题专区 • Posted at • duskmoon

      0 Votes
      4 Replies
      248 Views

      YuzukiTsuru Replied at

      docker 的问题,sunxi_challenge是从urandom里出来的一个随机码,Makefile把@删了就可以了

      CLEAN_FILES += board/sunxi/sunxi_challenge.c board/sunxi/sunxi_challenge.c: echo " prepare sunxi_challenge..." dd if=/dev/urandom of=sunxi_challenge bs=128 count=1 > /dev/null 2>&1 xxd -c 8 -i sunxi_challenge > board/sunxi/sunxi_challenge.c sed -i '/^unsigned/i __attribute__((__used__))' board/sunxi/sunxi_challenge.c rm sunxi_challenge prepare: board/sunxi/sunxi_challenge.c
      4
    • U

      A133 芯片 io 调试
      其它全志芯片讨论区 • a133 io debug • Posted at • uuuuid

      0 Votes
      4 Replies
      75 Views

      W Replied at

      cat /sys/kernel/debug/pwm

      root@dragonboard:/sys/kernel/debug/dispdbg# cat /sys/kernel/debug/pwm platform/300a000.pwm, 16 PWM devices pwm-0 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-1 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-2 (lcd ): requested period: 20000 ns duty: 7812 ns polarity: normal pwm-3 (lcd ): requested enabled period: 20000 ns duty: 19922 ns polarity: inverse pwm-4 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-5 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-6 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-7 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-8 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-9 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-10 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-11 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-12 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-13 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-14 ((null) ): period: 0 ns duty: 0 ns polarity: normal pwm-15 ((null) ): period: 0 ns duty: 0 ns polarity: normal
      4
    • C

      新购D1-H开箱>>>无法通过串口连接设备,无法烧写固件。求助中.........
      编译和烧写问题专区 • Posted at • cyber

      0 Votes
      7 Replies
      200 Views

      C Replied at

      @xiaowenge 正解,谢谢

      7
    • J

      T113 (tina) 如何编译打包spi nand flash 固件
      其它全志芯片讨论区 • Posted at • jr_online

      0 Votes
      21 Replies
      1207 Views

      J Replied at

      @justyu666 在 T113 (tina) 如何编译打包spi nand flash 固件 中说:

      @jr_online 亲,我按照您的分区表改后仍然无法打包,是还要改哪里呢?分区表的 mbr size 改了 252,但是打包提示还是 16384,如下图
      图6 sys_partition.fex修改后打包失败.png
      麻烦指导一下,谢谢!

      指导算不上,我也是半吊子,你把我上面的分区表复制替换你的分区表试试,总觉得是你的name = boot-resour有问题?不应该是boot-resource咩?不知道跟这个有没有关系

      21
    • C

      能在uboot阶段初始化pwm么?
      其它全志芯片讨论区 • Posted at • cruise33

      0 Votes
      4 Replies
      105 Views

      C Replied at

      @xiaowenge 感谢指导👍 uboot里也有驱动,调用pwm驱动的接口就实现了

      4
    • hqdz8

      生产工艺流程你了解多少?
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      34 Views

      No one has replied

      0
    • hqdz8

      PCB设计如何防止阻焊漏开窗
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      30 Views

      No one has replied

      0
    • hqdz8

      栉风沐雨砥砺行,春华秋实满庭芳——华秋电子2022年度大事记
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      42 Views

      No one has replied

      0
    • S

      RMII接口调试全志的外置PHY网口时,tx-delay,rx-delay参数怎么填?
      其它全志芯片讨论区 • Posted at • Vogelweide

      0 Votes
      7 Replies
      469 Views

      W Replied at

      参考: d1-tina-linux-emac-开发指南.pdf

      (8)”tx-delay” tx 时钟延迟,tx-delay 取值 0-7,一档约 536ps(皮秒);

      (9)”rx-delay ” rx 时钟延迟,rx-delay 取值 0-31,一档约 186ps(皮秒);

      7
    • T

      关于修改 A40i BROM
      其它全志芯片讨论区 • a40i brom boot0 • Posted at • tkdeh339

      0 Votes
      2 Replies
      65 Views

      T Replied at

      @whycan
      感谢您分享信息。

      有时A40i进入FEL模式,想修改一下,可惜了。

      2
    • karlno

      T113-S3入门资料汇总(避坑指南)一
      其它全志芯片讨论区 • Posted at • 12DSJ

      3 Votes
      11 Replies
      2947 Views

      Q Replied at

      @chzfmx 再装一个降级看看

      11
    • H

      T113-S3的单路LVDS可以输出1920x720 @60Hz分辨率图像吗?
      其它全志芯片讨论区 • Posted at • HQEmbed

      0 Votes
      3 Replies
      191 Views

      B Replied at

      請問哪裡可買到單路LVDS 1920x720 的屏

      3
    • J

      t113s3由 TF 卡启动改 NAND-Flash 启动
      其它全志芯片讨论区 • Posted at • Justyu666

      0 Votes
      0 Replies
      53 Views

      No one has replied

      0
    • C

      移植RTL8188fu驱动编译报错,sw_usb_enable_hcd等函数未定义
      编译和烧写问题专区 • Posted at • casojie

      0 Votes
      0 Replies
      45 Views

      No one has replied

      0
    • M

      A133 Android USB摄像头无法使用,请问是什么问题?
      其它全志芯片讨论区 • android a133 usb摄像头 • Posted at • memory

      0 Votes
      15 Replies
      441 Views

      C Replied at

      @whycan 好的 已经发帖,板子是V853S的,感谢您,期待回复~8f3f3738-174d-4a79-b966-0627b00a0333-image.png

      15
    • J

      请教t113s3运行芒果例程驱动7寸RGB问题
      其它全志芯片讨论区 • Posted at • Justyu666

      0 Votes
      2 Replies
      174 Views

      J Replied at

      @whycan 好的,谢谢

      2
    • U

      T113-S3 板子网卡启动失败,请问是什么问题呢?
      其它全志芯片讨论区 • Posted at • ubuntu

      0 Votes
      0 Replies
      68 Views

      No one has replied

      0
    • W

      T113-S3 / V853 安全固件学习记录
      其它全志芯片讨论区 • 安全固件 t113 • Posted at • whycan晕哥

      1 Votes
      11 Replies
      278 Views

      W Replied at

      7c9f68d5-224b-4edb-9f8a-9d2b11986785-image.png

      左边是非安全固件启动日志,右边是安全固件启动日志.

      11
    • L

      MYC-YT507H开箱
      其它全志芯片讨论区 • Posted at • liuxingkeji

      1 Votes
      0 Replies
      69 Views

      No one has replied

      0
    • W

      在wsl下开发T113的主线linux(最新gcc+awboot+最新kernel+最新buildroot)
      其它全志芯片讨论区 • wsl t113 awboot • Posted at • whycan晕哥

      0 Votes
      1 Replies
      138 Views

      W Replied at

      这篇文章记录了在wsl系统下编译调试awboot和linux的全过程

      硬件要求:任意T113-S3芯片的板子,SPI0接spinand标准接法。

      1、准备wsl开发环境

      首先在win10或win11下安装wsl,选择wsl1或者wsl2都可以,wsl2的性能更高一些,wsl1的跨系统文件操作速度更快一些,我这里因为有一些工程在win文件系统下,所以选择了wsl1,发行版使用最新的Ubuntu 22.04.01 LTS。
      这里我没有选用vm虚拟机安装ubuntu开发的原因是虚拟机下的文件交互不够方便,特别是git和文件对比,有时在内核源码改了一些文件,使用win下的TortoiseGit工具就可以很方便的查看差异,提交变更。使用beyond compare也可很方便的比较各种文件文件夹的不同版本的差异。
      21d39193-ed21-4a4f-ae6f-d6dec28b7a9f-image.png
      在win资源管理器下可以直接查看wsl的linux根目录,右键可以直接执行各种操作,就像操作win文件一样

      这里编译开发的核心软件只有一个,就是VS code,安装好后添加所需的插件。
      串口调试工具使用MobaXterm

      下载交叉编译器,这里使用arm官方最新的GCC 12.2
      https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
      arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-linux-gnueabihf.tar.xz
      下载后解压在wsl的主目录,在.bashrc中添加编译器路径

      PATH="$PATH:/home/wsl/arm-none-linux-gnueabihf/bin"

      2、编译awboot

      意外发现有awboot能够代替uboot直接引导内核,体验了一下果断选择awboot,因为足够简洁,编译大小只有32k,和uboot接近1M的体量相比,简直是小而美,启动速度也比uboot快上不少,也能同时支持sd卡,spinand,spinorflash启动。
      https://github.com/szemzoa/awboot

      说起uboot不禁想起几年前路由器第三方固件盛行的时期,那时的路由器还没有很复杂的方案,第三方固件往往比官方固件更易用功能更丰富,买个普通路由器换颗flash,内存芯片刷个系统就能获得更丰富的功能体验,各种固件openwrt,Padavan,高格百花齐放,为了刷机方便,系统的uboot都要支持tftp,串口甚至web的文件传输接口,由此孕育而出了大名鼎鼎的Breed,仅仅为了更新固件更方便,不用spi flash编程器那么麻烦的烧写。而到了全志嵌入式这边,由于自带usb接口的BROM,使用sunxi-fel或者xfel烧写flash已足够方便,所以使用uboot更新固件的需求就不是那么大,况且全志的方案比路由器的方案定制性更高一些,没有通用的第三方固件可以刷,所以uboot的功能就完全成了摆设,让用户使用sunxi-fel更新固件都要比uboot更新固件更稳定更实用,消费者用户用不到,开发人员也不会去用,那uboot的1m大小,集成的各种usb,网络,屏幕驱动,环境变量,文件系统,设备树编辑等功能就显得格外多余。

      15a4a48f-2147-485d-a424-e76bd042c293-image.png

      awboot相比spl+uboot的区别就是少了一次跳转的过程,由BROM拉起的boot0拥有足足160kb的sram,足够编写执行引导kernel的代码,所以这何尝不是一种恰到好处。

      下面是awboot的编译过程:
      修改makefile中的CROSS_COMPILE编译器定义为arm-none-linux-gnueabihf,或者使用

      make CROSS_COMPILE=arm-none-linux-gnueabihf
      命令编译
      如果不是git拉取的而是手动下载解压的源码,需要去除git编译目标,位于makefile line:49
      出现DWORD重复定义的错误,删除lib\fatfs\integer.h中的DWORD定义
      链接出现未定义函数__aeabi_unwind_cpp_pr0,makefile中添加编译选项CFLAGS += -lgcc_eh
      链接出现未定义函数raise,在main.c中添加函数

      int raise(void) { return 0; }

      编译成功,出现awboot.bin等文件

      3、写入spinand测试

      接下来是烧写入硬件验证,我的板子焊接的是W25N01GV,这里使用xfel,因为支持写入spi-nand。
      https://github.com/xboot/xfel

      为什么不使用sd卡验证,因为烧写sd卡需要:
      拔卡->插到电脑->dd命令写入->拔卡->插到板子上。
      而写入spi-nand只需要:
      按着boot键同时按复位键->xfel命令写入(可以飞线两个按键,复位键接到reset脚到地,boot键接到spi-cs脚到地)。
      步骤大幅减少,同时没有拔插sd卡造成的触点磨损。同时因为使用的wsl系统,并不能很方便的使用dd命令写入sd卡。虽然wsl下也不能直接访问全志的usb设备,但是xfel有win的版本,wsl下可直接执行exe文件,所以只需要下载xfel-windows解压到wsl中,在.bashrc中添加命令别名

      alias xfel='/home/wsl/xfel-windows-v1.2.9/xfel.exe'
      即可在wsl中使用win版的xfel,就像linux中的xfel一模一样。

      make spi-boot.img xfel version xfel spinand xfel spinand erase 0 0x8000000 xfel spinand write 0 spi-boot.img

      复位重启,可以在串口看到awboot打印的信息
      awboot默认使用uart5打印,其他串口可以修改board.c中的配置,非常通俗易懂
      内核加载地址如下表,可在board.h中修改

      spi-nand内存划分 起始地址 空间容量 awboot 0 0x40000(256k) dtb 0x40000 0x40000(256k) kernel 0x80000 任意 [I] AWBoot r6143 starting... [I] SPI-NAND: W25N01GV detected [E] SPI-NAND: DTB verification failed [F] SPI-NAND: loading failed restarting...

      4、编译kernel

      接下来编译kernel,编译过程可能会出现缺少命令的报错,大概是下面这几个

      sudo apt update sudo apt install flex bison bc libncurses-dev

      目前linux主线的最新版本并没有适配t113的相关外设驱动,虽然能启动并串口打印,但其他的一些外设并没有驱动,还不是可用的状态,所以这里选择全志D1的kernel进行修改。
      https://github.com/smaeul/linux/tree/d1/all

      unzip linux-d1-all.zip cd linux-d1-all

      应用awboot提供的linux补丁

      linux/allow_select_d1_ccu_on_t113.patch linux/ccu-sun20i-make_cpux_clk_critical_for_t113.patch linux/second_core_support_in_platsmp.patch linux/d1s_t113_can_bus.patch

      在arch\arm\configs\sunxi_defconfig中添加D1时钟

      CONFIG_SUN20I_D1_CCU=y CONFIG_SUN20I_D1_R_CCU=y

      添加sun8i-t113.dtsi和sun8i-t113-mangopi-dual.dts设备树配置文件到arch\arm\boot\dts
      在arch\arm\boot\dts\Makefile的line:1389 处,CONFIG_MACH_SUN8I配置中添加sun8i-t113-mangopi-dual.dtb

      awboot提供的sun8i-t113-mangopi-dual.dts设备树文件调试终端串口是5,需要改成uart0。

      make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- sunxi_defconfig make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- zImage -j4 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- dtbs xfel spinand write 0x40000 arch/arm/boot/dts/sun8i-t113-mangopi-dual.dtb xfel spinand write 0x80000 arch/arm/boot/zImage

      5245787f-02fb-49ac-ba26-e4167ce500f2-image.png

      复位,串口成功打印内核信息,目前spinand中还没有文件系统,所以系统无法启动成功。

      5、构建ubi文件系统

      接下来是构建文件系统,这里使用最新的buildroot
      https://buildroot.org/downloads/buildroot-2022.11.tar.gz

      tar xf buildroot-2022.11.tar.gz
      cd buildroot-2022.11
      make menuconfig
      配置目标指令集类型
      006b7cd7-d0d3-40a7-b20b-b58a0ae89aca-image.png

      配置外部自定义编译器
      345e868b-a6ef-4376-9f7b-d01239c4aa36-image.png

      配置生成文件系统类型为ubifs,最大逻辑擦除块数量决定了spinand的容量,我这里是128M的spinand,所以128M/128k = 1024
      c798468b-ad46-44ea-b24a-bbe272779220-image.png

      上面的这些配置操作可以用下面的默认配置文件代替,在configs文件夹创建sunxi_t113_spinand_defconfig文件,添加下面内容,使用make sunxi_t113_spinand_defconfig载入配置。

      # architecture BR2_arm=y BR2_cortex_a7=y BR2_ARM_FPU_VFPV4=y # Toolchain BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y BR2_TOOLCHAIN_EXTERNAL_PATH="/home/wsl/arm-none-linux-gnueabihf" BR2_TOOLCHAIN_EXTERNAL_GLIBC=y BR2_TOOLCHAIN_EXTERNAL_PREFIX="arm-none-linux-gnueabihf" BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-none-linux-gnueabihf" BR2_TOOLCHAIN_EXTERNAL_GCC_12=y BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_20=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y # BR2_TOOLCHAIN_EXTERNAL_INET_RPC is not set BR2_TOOLCHAIN_EXTERNAL_CXX=y # system # kernel # bootloader # filesystem / image BR2_TARGET_ROOTFS_UBI=y BR2_TARGET_ROOTFS_UBI_PEBSIZE=0x20000 BR2_TARGET_ROOTFS_UBI_SUBSIZE=0 BR2_TARGET_ROOTFS_UBIFS=y BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000 BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE=0x800 BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=1024 BR2_TARGET_ROOTFS_UBIFS_OPTS="-F"

      配置完成后make开始编译,接下来就是漫长的下载编译过程,大概需要半小时。
      编译成功后会生成output/images/rootfs.ubi,使用xfel命令写入。

      xfel spinand erase 0x800000 0x7800000
      xfel spinand write 0x800000 output/images/rootfs.ubi
      复位发现没有启动成功,原来内核默认没有打开mtd和ubi支持,在内核配置添加下面选项

      Device Drivers -> Memory Technology Device (MTD) support -> NAND -> SPI NAND device Support
      Device Drivers -> Memory Technology Device (MTD) support -> Enable UBI - Unsorted block images
      File Systems -> Miscellaneous filesystems -> UBIFS file system support
      或者在arch\arm\configs\sunxi_defconfig中添加

      CONFIG_MTD=y
      CONFIG_MTD_SPI_NAND=y
      CONFIG_MTD_UBI=y
      CONFIG_UBIFS_FS=y
      后重新载入配置。

      另外设备树中的启动参数和分区也需要修改

      bootargs = "mem=128M ubi.mtd=3 rootfstype=ubifs root=ubi0:rootfs rw rootwait console=ttyS0,115200"; &spi0 { pinctrl-0 = <&spi0_pins>; pinctrl-names = "default"; status = "okay"; spi_nand: spi_nand@0 { #address-cells = <1>; #size-cells = <1>; compatible = "spi-nand"; reg = <0>; partition@0 { label = "awboot"; reg = <0x0 0x40000>; /* 256K */ read-only; }; partition@40000 { label = "dtb"; reg = <0x40000 0x40000>; /* 256k */ read-only; }; partition@80000 { label = "kernel"; reg = <0x80000 0x780000>; /* 7.5MB */ read-only; }; partition@800000 { label = "rootfs"; reg = <0x800000 0x7800000>; }; }; };

      修改完后重新写入spi-nand,系统顺利启动,一个标准linux 6.1的基础busybox文件系统就做好了,可以根据不同应用可在buildroot添加所需的命令,下面是我常用的一些命令,总之非常方便。

      make menuconfig System configuration ---> [*] Enable root login with password Target packages ---> Networking applications ---> dropbear Target packages ---> Libraries ---> Hardware handling ---> tslib Target packages ---> Text editors and viewers ---> nano Target packages ---> System tools ---> htop iperf3 coremark dhrystone make busybox-menuconfig Archival Utilities ---> Make tar xxx, Autodetect compressed tarballs Linux System Utilities ---> Support mounting CIFS/SMB file systems Networking Utilities ---> httpd Networking Utilities ---> ntpd Networking Utilities ---> udhcpd Process Utilities ---> Support thread display in ps/pstree/top Process Utilities ---> pgrep Process Utilities ---> pmap Process Utilities ---> Show the number of users

      完整启动日志

      [I] AWBoot r6143 starting... [I] SPI-NAND: W25N01GV detected [I] SPI-NAND: read dt blob of size 22242 at 43.00MB/S [I] SPI-NAND: read Image of size 5424416 at 49.00MB/S [I] booting linux... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 6.1.0-rc3 (wsl@DESKTOP-NQRKTHB) (arm-none-linux-gnueabihf-gcc (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205, GNU ld (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.1210) #7 SMP Fri Dec 30 18:52:12 CST 2022 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: MangoPi MQ-Dual [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 16 MiB at 0x47000000 [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000040000000-0x0000000047ffffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000040000000-0x0000000047ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000047ffffff] [ 0.000000] percpu: Embedded 11 pages/cpu s15764 r8192 d21100 u45056 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: mem=128M ubi.mtd=3 rootfstype=ubifs root=ubi0:rootfs rw rootwait console=ttyS0,115200 [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off [ 0.000000] Memory: 99804K/131072K available (8192K kernel code, 952K rwdata, 2188K rodata, 1024K init, 270K bss, 14884K reserved, 16384K cma-reserved, 0K highmem) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000013] Switching to timer-based delay loop, resolution 41ns [ 0.000188] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000681] Console: colour dummy device 80x30 [ 0.000724] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.000740] pid_max: default: 32768 minimum: 301 [ 0.000901] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.000916] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.001461] CPU: Testing write buffer coherency: ok [ 0.001766] /cpus/cpu@0 missing clock-frequency property [ 0.001795] /cpus/cpu@1 missing clock-frequency property [ 0.001805] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.002581] Setting up static identity map for 0x40100000 - 0x40100060 [ 0.002720] rcu: Hierarchical SRCU implementation. [ 0.002725] rcu: Max phase no-delay instances is 1000. [ 0.003261] smp: Bringing up secondary CPUs ... [ 0.003971] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.004097] smp: Brought up 1 node, 2 CPUs [ 0.004107] SMP: Total of 2 processors activated (96.00 BogoMIPS). [ 0.004114] CPU: All CPU(s) started in SVC mode. [ 0.004635] devtmpfs: initialized [ 0.008727] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.008927] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.008951] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.009546] pinctrl core: initialized pinctrl subsystem [ 0.010921] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.011968] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.012787] thermal_sys: Registered thermal governor 'step_wise' [ 0.012969] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.012981] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.020855] platform 5460000.tcon-top: Fixing up cyclic dependency with 5200000.mixer [ 0.020919] platform 5460000.tcon-top: Fixing up cyclic dependency with 5100000.mixer [ 0.021185] platform 5461000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top [ 0.021537] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5604000.tv-encoder [ 0.021593] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top [ 0.022352] platform 7090000.rtc: Fixing up cyclic dependency with 7010000.clock-controller [ 0.032234] SCSI subsystem initialized [ 0.032716] usbcore: registered new interface driver usbfs [ 0.032754] usbcore: registered new interface driver hub [ 0.032791] usbcore: registered new device driver usb [ 0.032977] mc: Linux media interface: v0.10 [ 0.033022] videodev: Linux video capture interface: v2.00 [ 0.033106] pps_core: LinuxPPS API ver. 1 registered [ 0.033112] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.033127] PTP clock support registered [ 0.033547] Advanced Linux Sound Architecture Driver Initialized. [ 0.034416] clocksource: Switched to clocksource arch_sys_counter [ 0.041644] NET: Registered PF_INET protocol family [ 0.041849] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.042389] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.042417] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.042428] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.042444] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 0.042479] TCP: Hash tables configured (established 1024 bind 1024) [ 0.042567] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.042599] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.042749] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.043429] RPC: Registered named UNIX socket transport module. [ 0.043443] RPC: Registered udp transport module. [ 0.043447] RPC: Registered tcp transport module. [ 0.043450] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.044815] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.049789] NFS: Registering the id_resolver key type [ 0.049854] Key type id_resolver registered [ 0.049858] Key type id_legacy registered [ 0.050022] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246) [ 0.050031] io scheduler mq-deadline registered [ 0.050036] io scheduler kyber registered [ 0.108727] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled [ 0.118865] CAN device driver interface [ 0.122269] sun6i-rtc 7090000.rtc: registered as rtc0 [ 0.122395] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T00:00:00 UTC (86400) [ 0.122514] sun6i-rtc 7090000.rtc: RTC enabled [ 0.122857] i2c_dev: i2c /dev entries driver [ 0.124723] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 0.125850] sun8i-ce 3040000.crypto: Set mod clock to 300000000 (300 Mhz) from 400000000 (400 Mhz) [ 0.126215] sun8i-ce 3040000.crypto: will run requests pump with realtime priority [ 0.126553] sun8i-ce 3040000.crypto: will run requests pump with realtime priority [ 0.126774] sun8i-ce 3040000.crypto: will run requests pump with realtime priority [ 0.126977] sun8i-ce 3040000.crypto: will run requests pump with realtime priority [ 0.127118] sun8i-ce 3040000.crypto: Register cbc(aes) [ 0.127146] sun8i-ce 3040000.crypto: Register ecb(aes) [ 0.127157] sun8i-ce 3040000.crypto: Register cbc(des3_ede) [ 0.127166] sun8i-ce 3040000.crypto: Register ecb(des3_ede) [ 0.127195] sun8i-ce 3040000.crypto: CryptoEngine Die ID 0 [ 0.128073] usbcore: registered new interface driver usbhid [ 0.128082] usbhid: USB HID core driver [ 0.130773] NET: Registered PF_PACKET protocol family [ 0.130787] can: controller area network core [ 0.130861] NET: Registered PF_CAN protocol family [ 0.130869] can: raw protocol [ 0.130876] can: broadcast manager protocol [ 0.130885] can: netlink gateway - max_hops=1 [ 0.130991] Key type dns_resolver registered [ 0.131078] Registering SWP/SWPB emulation handler [ 0.151942] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver [ 0.153211] printk: console [ttyS0] disabled [ 0.173477] 2500000.serial: ttyS0 at MMIO 0x2500000 (irq = 231, base_baud = 1500000) is a 16550A [ 0.980691] printk: console [ttyS0] enabled [ 0.987508] spi-nand spi0.0: Winbond SPI NAND was found. [ 0.992841] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64 [ 1.001736] 4 fixed-partitions partitions found on MTD device spi0.0 [ 1.008126] Creating 4 MTD partitions on "spi0.0": [ 1.012920] 0x000000000000-0x000000040000 : "awboot" [ 1.018743] 0x000000040000-0x000000080000 : "dtb" [ 1.024176] 0x000000080000-0x000000800000 : "kernel" [ 1.038649] 0x000000800000-0x000008000000 : "rootfs" [ 1.194220] phy phy-4100400.phy.0: Changing dr_mode to 1 [ 1.195527] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests [ 1.199603] ehci-platform 4101000.usb: EHCI Host Controller [ 1.209317] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver [ 1.214352] ehci-platform 4101000.usb: new USB bus registered, assigned bus number 1 [ 1.220112] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 2 [ 1.236616] hub 2-0:1.0: USB hub found [ 1.236719] ehci-platform 4200000.usb: EHCI Host Controller [ 1.240434] hub 2-0:1.0: 1 port detected [ 1.247931] ohci-platform 4200400.usb: Generic Platform OHCI controller [ 1.256590] ohci-platform 4200400.usb: new USB bus registered, assigned bus number 3 [ 1.264527] ehci-platform 4101000.usb: irq 233, io mem 0x04101000 [ 1.270652] ehci-platform 4200000.usb: new USB bus registered, assigned bus number 4 [ 1.270760] ohci-platform 4200400.usb: irq 237, io mem 0x04200400 [ 1.286255] ehci-platform 4200000.usb: irq 235, io mem 0x04200000 [ 1.292563] sunxi-mmc 4020000.mmc: Got CD GPIO [ 1.294477] ehci-platform 4101000.usb: USB 2.0 started, EHCI 1.00 [ 1.303231] ubi0: attaching mtd3 [ 1.308189] hub 1-0:1.0: USB hub found [ 1.312277] hub 1-0:1.0: 1 port detected [ 1.322619] sunxi-mmc 4020000.mmc: initialized, max. request size: 2047 KB, uses new timings mode [ 1.334453] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00 [ 1.341315] hub 4-0:1.0: USB hub found [ 1.345162] hub 4-0:1.0: 1 port detected [ 1.359176] hub 3-0:1.0: USB hub found [ 1.362978] hub 3-0:1.0: 1 port detected [ 1.444542] ohci-platform 4101400.usb: Generic Platform OHCI controller [ 1.451202] ohci-platform 4101400.usb: new USB bus registered, assigned bus number 5 [ 1.459287] ohci-platform 4101400.usb: irq 236, io mem 0x04101400 [ 1.539278] hub 5-0:1.0: USB hub found [ 1.543116] hub 5-0:1.0: 1 port detected [ 1.574453] random: crng init done [ 2.100239] ubi0: scanning is finished [ 2.114539] ubi0: attached mtd3 (name "rootfs", size 120 MiB) [ 2.120305] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 2.127199] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 2.133981] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 2.140952] ubi0: good PEBs: 960, bad PEBs: 0, corrupted PEBs: 0 [ 2.146964] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 [ 2.154178] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 2041766426 [ 2.163310] ubi0: available PEBs: 0, total reserved PEBs: 960, PEBs reserved for bad PEB handling: 20 [ 2.172542] ubi0: background thread "ubi_bgt0d" started, PID 85 [ 2.172894] ALSA device list: [ 2.181451] No soundcards found. [ 2.186632] UBIFS (ubi0:0): Mounting in unauthenticated mode [ 2.192477] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 86 [ 2.249179] UBIFS (ubi0:0): recovery needed [ 2.379732] UBIFS (ubi0:0): recovery completed [ 2.384300] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" [ 2.391721] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 2.401642] UBIFS (ubi0:0): FS size: 117452800 bytes (112 MiB, 925 LEBs), max 1024 LEBs, journal size 9023488 bytes (8 MiB, 72 LEBs) [ 2.413554] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) [ 2.419390] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 9AE4F0B9-2A05-4C7A-8644-AA2CE4D2FFF0, small LPT model [ 2.432511] VFS: Mounted root (ubifs filesystem) on device 0:13. [ 2.440323] devtmpfs: mounted [ 2.444496] Freeing unused kernel image (initmem) memory: 1024K [ 2.450581] Run /sbin/init as init processSB bus registered, assigned bus number 2 [ 1.228343] ehci-platform 4200000.usb: EHCI Host Controller [ 1.235904] hub 2-0:1.0: USB hub found [ 1.242613] ohci-platform 4200400.usb: Generic Platform OHCI controller [ 1.244554] hub 2-0:1.0: 1 port detected [ 1.255208] ehci-platform 4101000.usb: irq 233, io mem 0x04101000 [ 1.261339] ehci-platform 4200000.usb: new USB bus registered, assigned bus number 3 [ 1.264326] ohci-platform 4200400.usb: new USB bus registered, assigned bus number 4 [ 1.278588] ehci-platform 4200000.usb: irq 235, io mem 0x04200000 [ 1.284829] ehci-platform 4101000.usb: USB 2.0 started, EHCI 1.00 [ 1.284899] sunxi-mmc 4020000.mmc: Got CD GPIO [ 1.296563] ubi0: attaching mtd3 [ 1.300503] ohci-platform 4200400.usb: irq 237, io mem 0x04200400 [ 1.307274] hub 1-0:1.0: USB hub found [ 1.311088] hub 1-0:1.0: 1 port detected [ 1.315120] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00 [ 1.320965] sunxi-mmc 4020000.mmc: initialized, max. request size: 2047 KB, uses new timings mode [ 1.322827] hub 3-0:1.0: USB hub found [ 1.333954] hub 3-0:1.0: 1 port detected [ 1.379177] hub 4-0:1.0: USB hub found [ 1.382997] hub 4-0:1.0: 1 port detected [ 1.444407] ohci-platform 4101400.usb: Generic Platform OHCI controller [ 1.451070] ohci-platform 4101400.usb: new USB bus registered, assigned bus number 5 [ 1.459134] ohci-platform 4101400.usb: irq 236, io mem 0x04101400 [ 1.539152] hub 5-0:1.0: USB hub found [ 1.542954] hub 5-0:1.0: 1 port detected [ 1.614309] random: crng init done [ 2.110704] ubi0: scanning is finished [ 2.124757] ubi0: attached mtd3 (name "rootfs", size 120 MiB) [ 2.130523] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 2.137436] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 2.144219] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 2.151185] ubi0: good PEBs: 960, bad PEBs: 0, corrupted PEBs: 0 [ 2.157205] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 [ 2.164431] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 2041766426 [ 2.173555] ubi0: available PEBs: 0, total reserved PEBs: 960, PEBs reserved for bad PEB handling: 20 [ 2.183138] ALSA device list: [ 2.186140] No soundcards found. [ 2.186172] ubi0: background thread "ubi_bgt0d" started, PID 85 [ 2.197304] UBIFS (ubi0:0): Mounting in unauthenticated mode [ 2.203409] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 86 [ 2.318154] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" [ 2.325610] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 2.335531] UBIFS (ubi0:0): FS size: 117452800 bytes (112 MiB, 925 LEBs), max 1024 LEBs, journal size 9023488 bytes (8 MiB, 72 LEBs) [ 2.347444] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) [ 2.353272] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 9AE4F0B9-2A05-4C7A-8644-AA2CE4D2FFF0, small LPT model [ 2.366769] VFS: Mounted root (ubifs filesystem) on device 0:13. [ 2.374505] devtmpfs: mounted [ 2.378644] Freeing unused kernel image (initmem) memory: 1024K [ 2.384764] Run /sbin/init as init process Starting syslogd: OK Starting klogd: OK Running sysctl: OK Initializing random number generator: OK Saving random seed: OK Starting network: OK Welcome to Buildroot buildroot login: root # # uname -a Linux buildroot 6.1.0-rc3 #7 SMP Fri Dec 30 18:52:12 CST 2022 armv7l GNU/Linux # # cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 48.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 processor : 1 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 48.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 Hardware : Generic DT based system Revision : 0000 Serial : 0000000000000000 # # cat /proc/mtd dev: size erasesize name mtd0: 00040000 00020000 "awboot" mtd1: 00040000 00020000 "dtb" mtd2: 00780000 00020000 "kernel" mtd3: 07800000 00020000 "rootfs" # # mount ubi0:rootfs on / type ubifs (rw,relatime,assert=read-only,ubi=0,vol=0) devtmpfs on /dev type devtmpfs (rw,relatime,size=49900k,nr_inodes=12475,mode=755) proc on /proc type proc (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=666) tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777) tmpfs on /tmp type tmpfs (rw,relatime) tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755) sysfs on /sys type sysfs (rw,relatime) # # df -h Filesystem Size Used Available Use% Mounted on ubi0:rootfs 102.9M 3.5M 99.5M 3% / devtmpfs 48.7M 0 48.7M 0% /dev tmpfs 57.2M 0 57.2M 0% /dev/shm tmpfs 57.2M 24.0K 57.2M 0% /tmp tmpfs 57.2M 16.0K 57.2M 0% /run # # time dd if=/dev/zero of=test.bin bs=1M count=64 conv=fsync 64+0 records in 64+0 records out real 0m 1.26s user 0m 0.00s sys 0m 0.48s # # # reboot # Stopping network: OK Saving random seed: OK Stopping klogd: OK Stopping syslogd: OK umount: devtmpfs busy - remounted read-only [ 123.118531] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops The system is going down NOW! Sent SIGTERM to all processes Sent SIGKILL to[ 125.165719] reboot: Restarting system

      编译启动能够如此顺利必定少不了各位大佬的付出,特此感谢 big_smile

      1
    • hqdz8

      华秋电子亮相2022深圳集成电路峰会
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      41 Views

      No one has replied

      0
    • hqdz8

      PCB线路板中的阻焊油墨,你了解多少?
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      36 Views

      No one has replied

      0
    • jinxiangwzh

      TinaLinux4.9在进行全编的时候为什么不编译uboot?
      编译和烧写问题专区 • Posted at • jinxiangwzh

      0 Votes
      1 Replies
      101 Views

      WhycanService Replied at

      因为没有u-boot-2013,所以跳过了

      1
    • B

      求助親幫幫忙
      其它全志芯片讨论区 • Posted at • bossctwboss

      0 Votes
      6 Replies
      198 Views

      W Replied at

      DragonFrace v2.6.1.zip

      只能打开修改安卓的固件,Linux固件不支持.

      6
    • jinxiangwzh

      V536H用的哪个uboot
      编译和烧写问题专区 • Posted at • jinxiangwzh

      0 Votes
      6 Replies
      90 Views

      W Replied at

      @jinxiangwzh
      其他不清楚,没有用过V536.

      6
    • jinxiangwzh

      更改了DRAM,代码配置需要修改吗
      编译和烧写问题专区 • Posted at • jinxiangwzh

      0 Votes
      4 Replies
      183 Views

      jinxiangwzh Replied at

      @kelsey 大哥 你也阳了吗?还盼望着你的回复呢。

      4
    • q1215200171

      【FAQ】全志V853芯片 适配双目GC2053的操作步骤
      其它全志芯片讨论区 • v853 faq 技术支持 • Posted at • budbool

      1 Votes
      20 Replies
      1339 Views

      C Replied at

      @lipeitong 您好 请问这个问题您解决了吗? 是双目GC2053是吧?

      20
    • B

      請問大大們哪裡可以下載drangonface最新版本
      其它全志芯片讨论区 • Posted at • bossctwboss

      0 Votes
      0 Replies
      44 Views

      No one has replied

      0
    • T

      T509的资料哪里能下载到?
      其它全志芯片讨论区 • Posted at • tmkdeT509

      0 Votes
      0 Replies
      73 Views

      No one has replied

      0
    • Y

      T113-S3 ARM 及 DSP Benchmark
      其它全志芯片讨论区 • Posted at • yao0718

      0 Votes
      10 Replies
      1285 Views

      audiomonster Replied at

      @yuzukitsuru 全志

      10
    • hqdz8

      中国晶振市场规模将增长至2026年的263.21亿元?
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      47 Views

      No one has replied

      0
    • hqdz8

      为什么线路板厂的孔偏这么容易导致PCB板报废了?
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      57 Views

      No one has replied

      0
    • hqdz8

      SMT工厂及PCB工程师的福音——可视化BOM交互焊接工具
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      49 Views

      No one has replied

      0
    • jinxiangwzh

      固件烧录原理
      编译和烧写问题专区 • Posted at • jinxiangwzh

      0 Votes
      0 Replies
      77 Views

      No one has replied

      0
    • X

      T507烧写后启动还是Forlinx桌面
      编译和烧写问题专区 • Posted at • xinqian_kb

      0 Votes
      1 Replies
      65 Views

      xiaowenge Replied at

      看看log,确认一下有没有烧进去,以及烧到哪个存储介质去了

      1
    • jinxiangwzh

      DragonHD工具使用问题
      灌水区 • Posted at • jinxiangwzh

      0 Votes
      1 Replies
      69 Views

      C Replied at

      @jinxiangwzh 没有这个测试项

      1
    • J

      V853无法烧写固件
      编译和烧写问题专区 • Posted at • jeffersonchou

      0 Votes
      10 Replies
      186 Views

      J Replied at

      @whycan 可以了,感谢指点

      10
    • jinxiangwzh

      求助,自己做的V536H板子无法下载程序
      代码下载问题专区 • Posted at • jinxiangwzh

      0 Votes
      10 Replies
      125 Views

      jinxiangwzh Replied at

      @whycan 不是 换了,固件配置是不是需要修改?

      10
    • H

      萌新基于全志V3s自制GBA游戏机
      其它全志芯片讨论区 • Posted at • hsinyuwang

      4 Votes
      11 Replies
      463 Views

      H Replied at

      @whycan 已加

      11
    • jinxiangwzh

      V536H加入python3编译出错
      编译和烧写问题专区 • Posted at • jinxiangwzh

      0 Votes
      2 Replies
      108 Views

      jinxiangwzh Replied at

      @yixiuge buildroot是个啥

      2
    • Y

      lvgl官方表盘项目指针和刻度没有对准,对我这种有严重强迫症的人来说看起来就心痛,不是难受,有能力的大佬修复一下这个bug?
      灌水区 • lvgl 表盘 clock • Posted at • yixiuge

      1 Votes
      3 Replies
      185 Views

      aldfaaa Replied at

      官方例程lv_example_meter_3.c的钟表里指针采用的是贴图方式, 所以解决思路有两个:

      针对屏幕分辨率, 优化贴图文件(img_hand.c)的样式 将贴图指针换成普通线段(粗细可调), 只要比的刻度粗一丁点或者把刻度覆盖掉就舒服多了.

      贴出第二种方法变动:(基于lv_port_linux_frame_buffer.git)

      --- a/examples/widgets/meter/lv_example_meter_3.c +++ b/examples/widgets/meter/lv_example_meter_3.c @@ -32,8 +32,9 @@ void lv_example_meter_3(void) LV_IMG_DECLARE(img_hand) /*Add a the hands from images*/ - lv_meter_indicator_t * indic_min = lv_meter_add_needle_img(meter, scale_min, &img_hand, 5, 5); - lv_meter_indicator_t * indic_hour = lv_meter_add_needle_img(meter, scale_min, &img_hand, 5, 5); + lv_meter_indicator_t * indic_min = lv_meter_add_needle_line(meter, scale_min, 5, lv_color_black(), 5); + lv_meter_indicator_t * indic_hour = lv_meter_add_needle_line(meter, scale_min, 3, lv_color_black(), 5);

      效果:
      3d5e542e-7738-4d83-9e75-42e0077bbc40-9051d8bca54d37bfb0faaf114e7ea2e.jpg
      结帖撒花✿✿ヽ(°▽°)ノ✿

      3
    • q1215200171

      【开发板试用】米尔电子MYC-YT507开发板试用申请开启
      其它全志芯片讨论区 • Posted at • budbool

      0 Votes
      1 Replies
      148 Views

      H Replied at

      已提交申请😲

      1
    • J

      执行打包(pack命令)v833的SDK出错: ERROR: merge_full_img failed
      编译和烧写问题专区 • Posted at • jungle

      0 Votes
      3 Replies
      235 Views

      F Replied at

      @yuzukitsuru 请问我也碰到了这个问题,改了,还是这个错误,请问大佬有没有可以解决的方法
      d368f43f-f991-4b69-92a3-d965bcd10af5-image.png

      3
    • L

      全志SDK怎么本地管理
      其它全志芯片讨论区 • Posted at • lgkgkfg

      0 Votes
      1 Replies
      81 Views

      xiaowenge Replied at

      是的,git + repo + gerrit都有上
      还有一些列的代码检测、编译检测、实体BSP烧写检测等工具

      1
    • F

      使用T113的tina系统内置rtc 功能求助
      其它全志芯片讨论区 • Posted at • fenglichaoa

      0 Votes
      0 Replies
      47 Views

      No one has replied

      0
    • K

      tina如何配置recovery系统
      编译和烧写问题专区 • Posted at • kelsey

      0 Votes
      0 Replies
      48 Views

      No one has replied

      0
    • YuzukiTsuru

      安装全志USB驱动那些事
      编译和烧写问题专区 • Posted at • 柚木 鉉

      0 Votes
      3 Replies
      606 Views

      M Replied at

      @whycan 嗯,也是个办法。
      我最后是在一个低版本的win10虚拟机里搞的。

      3
    • q1215200171

      【FAQ】全志R329如何在平台修改uboot阶段CPU频率?
      其它全志芯片讨论区 • r329 r328 r818 faq 技术支持 • Posted at • budbool

      0 Votes
      1 Replies
      253 Views

      G Replied at

      @q1215200171
      这样修改后,发现cpu电压对了,但是CPU的启动频率还是没变,是哪里有问题???

      1
    • M

      cryptoengine TRNG模块内存泄露
      其它全志芯片讨论区 • Posted at • mengxp

      0 Votes
      1 Replies
      68 Views

      M Replied at

      @mengxp 看了下r328上使用的v3代码,关键字alloc,我发现有

      ss_rng_start buf 内存泄露 (kmalloc without kfree)

      目前就发现这一个

      1
    • F

      T113的rtc是什么工作逻辑?
      其它全志芯片讨论区 • Posted at • fenglichaoa

      0 Votes
      0 Replies
      57 Views

      No one has replied

      0
    • hqdz8

      你知道吗?完整的PCB生产工艺到底是怎样的?
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      49 Views

      No one has replied

      0
    • hqdz8

      走线层的可制造性都有那些问题?你都知道吗
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      44 Views

      No one has replied

      0
    • X

      A133编译报错
      编译和烧写问题专区 • Posted at • xvyifan

      0 Votes
      0 Replies
      64 Views

      No one has replied

      0
    • D

      a40i reboot卡在Requesting system reboot
      其它全志芯片讨论区 • Posted at • dql2016

      0 Votes
      0 Replies
      45 Views

      No one has replied

      0
    • Q

      问问各位大佬,屏幕做旋转时有点小BUG怎么解决!!
      编译和烧写问题专区 • Posted at • q2022

      0 Votes
      1 Replies
      93 Views

      H Replied at

      @q2022 不能用一张图片,uboot里头,用旋转前的,然后kernel加载旋转后的,不然切fb必然引起这个问题。我已经实现了,就是这样改的

      1
    • C

      F1C100S/200S 低功耗问题
      其它全志芯片讨论区 • Posted at • cfxcfx

      0 Votes
      0 Replies
      69 Views

      No one has replied

      0
    • K

      编译打包TINA固件PACK的问题
      其它全志芯片讨论区 • Posted at • Kiyan10

      0 Votes
      3 Replies
      325 Views

      C Replied at

      @kiyan10 请问你这个问题怎么解决的?

      3
    • B

      t507 ubuntu系统是否有gstreamer硬件编解码插件
      其它全志芯片讨论区 • Posted at • Blowind

      0 Votes
      0 Replies
      56 Views

      No one has replied

      0
    • L

      T113现在有在DDR启动完整Linux的案例吗?
      编译和烧写问题专区 • xfel t113 ddr xboot linux • Posted at • ltrsunny

      0 Votes
      0 Replies
      81 Views

      No one has replied

      0
    • B

      v831 sipeed家的开发板编译后启动没反应
      其它全志芯片讨论区 • Posted at • baijunran

      0 Votes
      1 Replies
      80 Views

      B Replied at

      我是直接用tf卡刷的固件,插到开发板的

      1
    • C

      f1c100s/200s 外接mcu屏(i8080)问题
      其它全志芯片讨论区 • Posted at • cfxcfx

      0 Votes
      4 Replies
      119 Views

      C Replied at

      @whycan
      找到可以可以使用 rgb模式控制lcd,文档没看全,多谢多谢

      4
    • L

      安装USB烧录驱动失败
      编译和烧写问题专区 • Posted at • lingzijian

      0 Votes
      1 Replies
      83 Views

      DAIZEBIN Replied at

      @lingzijian
      试一下直接管理员身份运行安装这个驱动,
      全志USB烧录驱动20201229.zip

      再不行的话下载全志的APST量产中心,里面也有一个USB驱动,把那个装上去试一下
      1fed6f6b-6acc-47bf-a375-da5c4b777f59-image.png
      d40817c0-4ac7-4384-a4eb-5b632eaa4235-image.png

      1
    • Z

      Tina下使用dhcp自动获取ip
      其它全志芯片讨论区 • Posted at • zznzzn

      0 Votes
      1 Replies
      68 Views

      bayche Replied at

      udhcpc eth0

      开机自动跑ifconfig eth0 up和udhcpc eth0可以参考这里:https://v853.docs.aw-ol.com/soft/soft_start/

      1
    • livpo

      T113交叉编译QT libudev.so.1报错,但路径下有该文件
      其它全志芯片讨论区 • Posted at • livpo

      0 Votes
      3 Replies
      89 Views

      livpo Replied at

      参照这里 :https://blog.csdn.net/qq_28877125/article/details/127098767
      把udev关掉了,我的这个配置是yes,关掉就可以了

      QQ图片20221209155016.jpg

      3
    • q1215200171

      【FAQ】全志系列芯片如何把flash擦成空片?
      其它全志芯片讨论区 • v853 d1 r329 faq 技术支持 • Posted at • budbool

      0 Votes
      0 Replies
      92 Views

      No one has replied

      0
    • hqdz8

      湃睿PMDS-Fx传感器在电动牙刷上的应用
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      56 Views

      No one has replied

      0
    • hqdz8

      PCB生产工艺:正片工艺、负片工艺,到底哪个更好用?
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      47 Views

      No one has replied

      0
    • hqdz8

      内层的电源平面、地平面如何设计?
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      47 Views

      No one has replied

      0
    • ftwtwzy

      和萌新一起制作基于T113-S3的 Snail Pi(蜗牛PI)
      其它全志芯片讨论区 • Posted at • ftwtwzy

      1 Votes
      25 Replies
      1520 Views

      xiaowenge Replied at

      @ftwtwzy 在 和萌新一起制作基于T113-S3的 Snail Pi(蜗牛PI) 中说:

      Linux主线适配完毕,基于Linux-6.0.1

      那只熟悉的蜗牛回来了

      这个牛逼 是我见过最高版本的内核了

      25
    • E

      T113 电阻触摸屏 如何配置,
      其它全志芯片讨论区 • Posted at • eddardzhu

      1 Votes
      6 Replies
      361 Views

      D Replied at

      请教这部分有文档吗?我并没有找到相关部分的文档,还麻烦帮帮忙告诉一下,谢谢

      6
    • X

      A133移植AW869的驱动,insmod的时候报错
      其它全志芯片讨论区 • Posted at • xvyifan

      0 Votes
      0 Replies
      85 Views

      No one has replied

      0
    • C

      请问flash的宏是在哪里控制的?
      编译和烧写问题专区 • Posted at • cruise33

      0 Votes
      1 Replies
      103 Views

      C Replied at

      找到了,在uboot的defconfig里定义

      1
    • Q

      t113-s3,usb开启虚拟网卡问题请教
      其它全志芯片讨论区 • Posted at • qqqlb

      0 Votes
      0 Replies
      84 Views

      No one has replied

      0
    • R

      请教各位大佬全志V3S从SPI FLASH启动失败问题
      其它全志芯片讨论区 • Posted at • RySz123

      0 Votes
      4 Replies
      126 Views

      R Replied at

      @rysz123
      制作烧录镜像步骤如下

      10e129fa-59ed-4bc2-afcf-87e22fa25aee-image.png

      烧录指令
      sudo sunxi-fel -p spiflash-write 0 flashimg.bin

      4
    • q1215200171

      稚晖君又整活啦!基于全志F1C200s的超迷你&低成本开发板开源
      其它全志芯片讨论区 • Posted at • budbool

      1 Votes
      2 Replies
      1187 Views

      L Replied at

      你的网盘都失效了啊

      2
    • cube_work

      各位大佬,问一个问题,5G模组的设备节点是ttyUSB0、ttyUSB1、ttyUSB2、ttyUSB3,但是开发板上使用了一个FTDI232的USB转串口的方案,它的对应的设备节点是ttyUSB0,怎们能够避免这个问题
      其它全志芯片讨论区 • Posted at • cube_work

      0 Votes
      2 Replies
      206 Views

      A Replied at

      @cube_work 可以修改 usb转串口驱动,把FTDI232的串口号改成其他的

      2
    • hqdz8

      什么是滑动开关?Nidec尼得科滑动开关CL-SB了解下
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      41 Views

      No one has replied

      0
    • W

      接入ec20 4g模块,设备树如何使能?
      其它全志芯片讨论区 • Posted at • wanglang

      0 Votes
      0 Replies
      77 Views

      No one has replied

      0
    • hqdz8

      如何保证PCB孔铜高可靠?华秋教你一个小窍门
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      44 Views

      No one has replied

      0
    • hqdz8

      PCB布局、电磁兼容性分析(EMC)、电源完整性分析
      灌水区 • Posted at • hqdz8

      0 Votes
      0 Replies
      48 Views

      No one has replied

      0
    • C

      A133适配AMOLED屏幕,LCD时序参数过小导致无法进入U-Boot
      其它全志芯片讨论区 • Posted at • ceoifung

      1 Votes
      9 Replies
      312 Views

      A Replied at

      @ceoifung

      lcd_dclk_freq = <38>;
      lcd_x = <720>;
      lcd_y = <800>;

      lcd_hbp = <52>;
      lcd_ht = <774>;
      lcd_hspw = <32>;
      lcd_vbp = <16>;
      lcd_vt = <828>;
      lcd_vspw = <4>;

      不行的话,lcd_ht以2为挡位慢慢网上加试试

      9
    • Z

      各位大佬,求一下全志a83t的安卓7.0rom包
      其它全志芯片讨论区 • Posted at • zyh666

      0 Votes
      0 Replies
      44 Views

      No one has replied

      0
    • G

      SDK TINA-D1-H 勾选systemd报错,请问怎么配置
      其它全志芯片讨论区 • Posted at • GONGWEIJIE

      0 Votes
      0 Replies
      39 Views

      No one has replied

      0
    • C

      A133 board.dts中触摸IC中twi配置i2c地址的问题
      其它全志芯片讨论区 • Posted at • ceoifung

      0 Votes
      7 Replies
      276 Views

      C Replied at

      @ceoifung 参考这样的配置:ctp_wakeup = <&pio PD 22 1 0xffffffff 0xffffffff 1>;

      7

    精华推荐

    • 关于D1的SPI通讯问题
    • MangoPi Dual T113 主线内核编译记录
    • MQ-Quad H616 主线内核编译调试记录(u-boot、kernel、buildroot)
    • 【加精】D1 tina Docker 编译环境制作和使用
    • Tina Linux 存储介质切换:eMMC,SPI NAND,SPI NOR,SD Card,SD NAND
    • 【资料】V853&&V851 硬件参考设计
    • 【小白入手xr806】helloworld踩坑”月“记
    • 【资料汇总】V853资料汇总
    • 全志芯片Tina Linux 修改 UART 引脚、UART端口
    • 【硬核干货】V853 Sample MPP软件包,MPP 摄像头测试包
    • 【入门必看】全志V853开发板——构建编译与固件烧篇
    • 【羊毛福利】凡在哇酷淘店购买V853开发板者在社区分享开发经验,最高可返还全部购买费用
    • 【硬核干货】D1-H / D1 与D1s 比较图 ,一眼看出区别
    • 【资料汇总】D1-H和D1s的芯片手册,开发资料文档
    • 【开源开发板】D1s-Nezha开发板全全开源上架(内含购买链接和全部软硬件资料)
    换一批

    随便看看

    • littlevgl8 移植源码可在openwrt中添加编译
    • D1s同时启用TVD和DVP接口摄像头,图像显示黑白
    • A133 tplayerdemo 播放视频出错。。。
    • 按键驱动问题
    • 五一劳动节,画个V8发动机小板,哪个好看呢?
    • 手持两把锟斤拷,口中疾呼烫烫烫
    • f1c100s tina系统怎么制作SD量产卡?
    • helloworld编译出错
    • 拆拆苹果手机专用U盘
    • v853和d1
    • D1-H 信號完整性
    • a40i芯片 pwm的寄存器地址信息
    • 【R329开发板评测】基于R2329-AIPU的动态手势识别及实机部署运行
    • 全志V853 jpg怎么直接显示屏幕上
    • 关于ubuntu18.04下的编辑环境配置
    • 1
    • 2
    • 3
    • 4
    • 5
    • 8
    • 9
    • 1 / 9

    精华推荐

    • 关于D1的SPI通讯问题
    • MangoPi Dual T113 主线内核编译记录
    • MQ-Quad H616 主线内核编译调试记录(u-boot、kernel、buildroot)
    • 【加精】D1 tina Docker 编译环境制作和使用
    • Tina Linux 存储介质切换:eMMC,SPI NAND,SPI NOR,SD Card,SD NAND
    • 【资料】V853&&V851 硬件参考设计
    • 【小白入手xr806】helloworld踩坑”月“记
    • 【资料汇总】V853资料汇总
    • 全志芯片Tina Linux 修改 UART 引脚、UART端口
    • 【硬核干货】V853 Sample MPP软件包,MPP 摄像头测试包
    • 【入门必看】全志V853开发板——构建编译与固件烧篇
    • 【羊毛福利】凡在哇酷淘店购买V853开发板者在社区分享开发经验,最高可返还全部购买费用
    • 【硬核干货】D1-H / D1 与D1s 比较图 ,一眼看出区别
    • 【资料汇总】D1-H和D1s的芯片手册,开发资料文档
    • 【开源开发板】D1s-Nezha开发板全全开源上架(内含购买链接和全部软硬件资料)
    换一批

    随便看看

    • littlevgl8 移植源码可在openwrt中添加编译
    • D1s同时启用TVD和DVP接口摄像头,图像显示黑白
    • A133 tplayerdemo 播放视频出错。。。
    • 按键驱动问题
    • 五一劳动节,画个V8发动机小板,哪个好看呢?
    • 手持两把锟斤拷,口中疾呼烫烫烫
    • f1c100s tina系统怎么制作SD量产卡?
    • helloworld编译出错
    • 拆拆苹果手机专用U盘
    • v853和d1
    • D1-H 信號完整性
    • a40i芯片 pwm的寄存器地址信息
    • 【R329开发板评测】基于R2329-AIPU的动态手势识别及实机部署运行
    • 全志V853 jpg怎么直接显示屏幕上
    • 关于ubuntu18.04下的编辑环境配置