一、编译环境说明
SDK版本:Hi3519DV500R001C01SPC003
Linux版本:$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
二、报错现象
2.1.参考smp/a55_linux/source/bsp里面的readme_cn.txt进行对bsp目录的编译;默认编译参数是make BOOT_MEDIA=emmc LIB_TYPE=musl CHIP=hi3519dv500 all
2.2.编译完成后将uboot、kernel、rootfs烧录到开发板
2.3.烧录成功后,开发板重启后挂载不上文件系统
2.4.返回去查看SDK的编译的过程,发现在制作emmc根文件系统时有异常,如下图所示:
2.5.在windows下使用Linux Reader工具查看rootfs_hi3516dv500_96M.ext4文件系统,发现基本是空的
三、排查原因
3.1主要报错有以下3种类型:
Unknown/unhandled file type ‘目录’ file: ../../../../../smp/a55_linux/source/bsp/pub/rootfs_musl_arm64/lib64
debugfs: sif lib64 mode 0x41c0
lib64: File not found by ext2_lookup
debugfs: sif lib64 uid 1000
lib64: File not found by ext2_lookup
debugfs: sif lib64 gid 1000
lib64: File not found by ext2_lookup
debugfs: cd /lib64/
/lib64/: File not found by ext2_lookup
Unknown/unhandled file type ‘符号链接’ file: ../../../../../smp/a55_linux/source/bsp/pub/rootfs_musl_arm64/lib64/libstdc++.so.6
debugfs: sif libstdc++.so.6 mode 0xa1ff
libstdc++.so.6: File not found by ext2_lookup
debugfs: sif libstdc++.so.6 uid 1000
libstdc++.so.6: File not found by ext2_lookup
debugfs: sif libstdc++.so.6 gid 1000
libstdc++.so.6: File not found by ext2_lookup
Unknown/unhandled file type ‘普通文件’ file: ../../../../../smp/a55_linux/source/bsp/pub/rootfs_musl_arm64/lib64/libsecurec.so
debugfs: sif libsecurec.so mode 0x81c0
libsecurec.so: File not found by ext2_lookup
debugfs: sif libsecurec.so uid 1000
libsecurec.so: File not found by ext2_lookup
debugfs: sif libsecurec.so gid 1000
libsecurec.so: File not found by ext2_lookup
四、各种可能的方式尝试解决
4.1尝试过重新编译Python的版本,未能解决
4.2尝试过重新make clean&&make distclean&&make all,未能解决
4.3尝试过重新安装一个干净的ubuntu编译,未能解决
4.4实在不行还想着使用以前Hi3519AV100制作emmc文件系统的方式来制作
五、终于发现根本原因
5.1功夫不负有心人,终于找到根本原因:其实就是不能把Ubuntu的系统语言改成中文,需要将Ubuntu的系统语言修改回英文成功解决并能打包出ok的rootfs_hi3516dv500_96M.ext4文件系统
5.2成功制作emmc根文件系统如下图所示:
5.3开发板重新烧录根文件系统后顺利跑起来如下图所示:
六、小结
其实也没有太多需要总结的东西,就是花费了大量的时间在排查为什么制作不了emmc根文件系统,但是却从来没有想过跟语言有关,以后还是使用英文语言就好了
- 分享
- 举报
-
2023-09-01 11:10:33
-
2023-09-01 10:50:44
-
浏览量:778次2023-03-20 14:39:03
-
2023-07-22 13:41:13
-
浏览量:877次2023-06-12 14:34:37
-
2023-10-05 22:07:30
-
浏览量:233次2023-09-11 13:45:06
-
浏览量:224次2023-11-09 16:39:11
-
浏览量:1542次2023-03-17 10:25:53
-
2023-10-10 12:37:57
-
浏览量:1722次2023-03-17 10:21:08
-
2023-07-21 09:13:37
-
浏览量:131次2023-11-23 15:47:07
-
浏览量:1826次2023-07-12 10:54:09
-
浏览量:3959次2023-03-20 13:32:44
-
2023-08-22 16:45:59
-
浏览量:3409次2023-03-20 14:01:27
-
浏览量:1217次2023-07-12 15:22:31
-
浏览量:1732次2023-07-11 11:25:40
-
浏览量:156次2023-12-02 14:17:30
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖
广东小6






举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明