您尚未登录。

楼主 # 2022-10-09 11:05:06

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 54
积分: 90

T113-S3 Tina系统独立编译Qt,但是无法拷贝Qt文件夹到启动卡,根文件系统分区的inodes耗尽!!求救啊!

我的启动卡rootfs分区是1GB,文件系统格式为ext4,这个是在TinaSDK里面配置的,另外还重新配置了sys_partition.fex文件:

我拷贝Qt5安装文件夹的压缩包到启动卡里面去,再把压缩包解压出来,就出现了大量的

Cannot mkdir: No space left on device

报错

部分错误:

tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/SplineSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/LineSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/PolarAreaSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/StackedBarSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/AreaSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/BoxPlotSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/HorizontalPercentBarSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/BarSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/PolarSplineSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/PolarLineSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/PolarScatterSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/ScatterSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/libqtchartsqml2.so: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/plugins.qmltypes: Cannot open: No such file or directory
tar: Exiting with failure status due to previous errors

我直接拷贝Qt安装文件到启动卡也是会报错,所以我就先压缩,把压缩包拷贝到启动卡里面去没有问题,然后解压的时候才出现。

这是我使用GParted软件查看SD卡分区的截图,/dev/sdb5是1GB的ext4分区。
360截图17860531262561.png

如下是我查看的结果,/dev/sdb5分区就是rootfs分区。奇怪的是1GB的分区大小只有6016个inodes,有没有大佬知道?

liefyuan@ubuntu:/media/liefyuan/57f8f4bc-abf4-655f-bf67-946fc0f9f25b/opt/qt5.12.9-arm-t113/examples$ df -i
Filesystem      Inodes   IUsed   IFree IUse% Mounted on
udev           1784537     520 1784017    1% /dev
tmpfs          1792228     786 1791442    1% /run
/dev/sda1      6496256 2324896 4171360   36% /
tmpfs          1792228       9 1792219    1% /dev/shm
tmpfs          1792228       5 1792223    1% /run/lock
tmpfs          1792228      17 1792211    1% /sys/fs/cgroup
tmpfs          1792228      35 1792193    1% /run/user/1000
/dev/sdb1            0       0       0     - /media/liefyuan/Volumn
/dev/sdb5         6016    6016       0  100% /media/liefyuan/57f8f4bc-abf4-655f-bf67-946fc0f9f25b
/dev/sdb7         6288      11    6277    1% /media/liefyuan/280c157f-8c2e-4d5e-a838-c73b3e13d956
liefyuan@ubuntu:/media/liefyuan/57f8f4bc-abf4-655f-bf67-946fc0f9f25b/opt/qt5.12.9-arm-t113/examples$ df -k
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             7138148        0   7138148   0% /dev
tmpfs            1433784     9588   1424196   1% /run
/dev/sda1      102094168 72437412  24447568  75% /
tmpfs            7168912      252   7168660   1% /dev/shm
tmpfs               5120        4      5116   1% /run/lock
tmpfs            7168912        0   7168912   0% /sys/fs/cgroup
tmpfs            1433784       76   1433708   1% /run/user/1000
/dev/sdb1           8151       42      8109   1% /media/liefyuan/Volumn
/dev/sdb5        1046968   248480    782104  25% /media/liefyuan/57f8f4bc-abf4-655f-bf67-946fc0f9f25b
/dev/sdb7          21586       14     21081   1% /media/liefyuan/280c157f-8c2e-4d5e-a838-c73b3e13d956
/dev/sdb8       28473856       24  28457448   1% /media/liefyuan/fcb51570-6dd7-4b8d-b0f7-2c15b18cac56

在Tina系统中的文件系统配置:
360截图1848110687106137.png

sys_partition.fex文件的配置:

;---------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
;---------------------------------------------------------------------------------------------------


;---------------------------------------------------------------------------------------------------
;                                   固件下载参数配置
;---------------------------------------------------------------------------------------------------
;***************************************************************************************************
;    mbr的大小, 以Kbyte为单位
;***************************************************************************************************
[mbr]
size = 16384

;***************************************************************************************************
;                                              分区配置
;
;
;  partition 定义范例:
;    [partition]                ;  //表示是一个分区
;    name        = USERFS2      ; //分区名称
;    size        = 16384        ; //分区大小 单位: 扇区.分区表示个数最多2^31 * 512 = 2T
;    downloadfile = "123.fex"   ; //下载文件的路径和名称,可以使用相对路径,相对是指相对于image.cfg文件所在分区。也可以使用绝对路径
;    keydata     = 1            ; //私有数据分区,重新量产数据将不丢失
;    encrypt     = 1            ; //采用加密方式烧录,将提供数据加密,但损失烧录速度
;    user_type   = ?            ; //私有用法
;    verify      = 1            ; //要求量产完成后校验是否正确
;
; 注:1、name唯一, 不允许同名
;     2、name最大12个字符
;     3、size = 0, 将创建一个无大小的空分区
;     4、align to logical block size(504 sectors), leb size = 2*(1 nand phy block size - 1 phy page size)
;***************************************************************************************************
[partition_start]

[partition]
    name         = boot-resource
    size         = 504
    downloadfile = "boot-resource.fex"
    user_type    = 0x8000


[partition]
    name         = env
    size         = 504
    downloadfile = "env.fex"
    user_type    = 0x8000

[partition]
    name         = env-redund
    size         = 504
    downloadfile = "env.fex"
    user_type    = 0x8000

[partition]
    name         = boot
    size         = 8064
    downloadfile = "boot.fex"
    user_type    = 0x8000

[partition]
    name         = rootfs
    size         = 2097152
    downloadfile = "rootfs.fex"
    user_type    = 0x8000

;[partition]
;    name         = dsp0
;    size         = 2048
;    downloadfile = "dsp0.fex"
;    user_type    = 0x8000

;[partition]
;    name         = recovery
;    size         = 16128
;    ;downloadfile = "recovery.fex"
;    user_type    = 0x8000

[partition]
    name         = private
    size         = 10240
    user_type    = 0x8000

[partition]
    name         = rootfs_data
    size         = 50400
    user_type    = 0x8000

[partition]
    name         = UDISK
    user_type    = 0x8100

离线

#1 2022-10-09 11:11:14

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,226
积分: 1897
个人网站

Re: T113-S3 Tina系统独立编译Qt,但是无法拷贝Qt文件夹到启动卡,根文件系统分区的inodes耗尽!!求救啊!

resize2fs





离线

楼主 #2 2022-10-09 21:23:01

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 54
积分: 90

Re: T113-S3 Tina系统独立编译Qt,但是无法拷贝Qt文件夹到启动卡,根文件系统分区的inodes耗尽!!求救啊!

360截图1848110687106137.png

360截图1733101761100104.png

Tina配置这里,ext4的选项里面将节点数由6000改到100000就可以了

完结了!

最近编辑记录 liefyuan (2022-10-09 21:58:06)

离线

#3 2023-01-15 17:15:10

blizzard_chen
会员
注册时间: 2021-10-16
已发帖子: 2
积分: 3

Re: T113-S3 Tina系统独立编译Qt,但是无法拷贝Qt文件夹到启动卡,根文件系统分区的inodes耗尽!!求救啊!

liefyuan 说:

https://whycan.com/files/members/6625/360截图1848110687106137.png

https://whycan.com/files/members/6625/360截图1733101761100104.png

Tina配置这里,ext4的选项里面将节点数由6000改到100000就可以了

完结了!

更改100000, 会报如下的错误

Creating filesystem with parameters:
    Size: 50331648
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 100000
    Inode size: 256
    Journal blocks: 0
    Label:
    Blocks: 12288
    Block groups: 1
    Reserved blocks: 0
    Reserved block group size: 7
error: ext4_allocate_best_fit_partial: failed to allocate 412 blocks, out of space?
Makefile:249: recipe for target 'mkfs-ext4-root' failed
make[5]: *** [mkfs-ext4-root] Error 1
make[5]: Leaving directory '/home/chengqi/Projects/Tina-Linux/target/allwinner/generic/image'
Makefile:26: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/chengqi/Projects/Tina-Linux/target/allwinner/t113-mq_r'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/chengqi/Projects/Tina-Linux/target/allwinner'
target/Makefile:21: recipe for target 'target/allwinner/install' failed
make[2]: *** [target/allwinner/install] Error 2
make[2]: Leaving directory '/home/chengqi/Projects/Tina-Linux'
target/Makefile:17: recipe for target '/home/chengqi/Projects/Tina-Linux/out/t113-mq_r/staging_dir/target/stamp/.target_install' failed
make[1]: *** [/home/chengqi/Projects/Tina-Linux/out/t113-mq_r/staging_dir/target/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/chengqi/Projects/Tina-Linux'
Build failed - please re-run with -j1 to see the real error message
/home/chengqi/Projects/Tina-Linux/build/toplevel.mk:304: recipe for target 'world' failed
make: *** [world] Error 1
[4]+  Done                    $T/tools/build/buildserver --path $T 2> /dev/null 1>&2

#### make failed to build some targets (01:07 (mm:ss)) ####

最近编辑记录 blizzard_chen (2023-01-15 17:44:35)

离线

#4 2023-01-18 21:59:29

blizzard_chen
会员
注册时间: 2021-10-16
已发帖子: 2
积分: 3

Re: T113-S3 Tina系统独立编译Qt,但是无法拷贝Qt文件夹到启动卡,根文件系统分区的inodes耗尽!!求救啊!

inodes问题已经解决,编译出来的qt5.12.9-arm-t113拷贝到了T113的tf卡的root_fs下,新建了个/opt的目录。并按照要求增加了/etc/profile文件
关于QT部分的内容。现在的问题是./analogclock,屏幕没有任何变化,但是也没有报错。
请各位大神支持。

离线

页脚

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

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