-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RT-smart + bsp/qemu-virt64-riscv 无法和 userapps 制作的 rootfs 启动 (TEST 4) #64
Comments
挂载 fat.img 后发现文件系统做的有问题,缺少 etc。而同样 rootfs 制作的 ext4.img 挂载后确是好的。 u@u:~/ws/duo$ sudo mount ./userapps/apps/build/fat.img ./temp
[sudo] password for u:
u@u:~/ws/duo$ ls temp
bin dev lib mnt proc root run sbin services tc usr var
u@u:~/ws/duo$ ls temp/
bin dev lib mnt proc root run sbin services tc usr var
u@u:~/ws/duo$ ls temp -l
total 28
drwxr-xr-x 2 root root 6144 1月 1 1980 bin
drwxr-xr-x 3 root root 2048 1月 1 1980 dev
drwxr-xr-x 2 root root 2048 1月 1 1980 lib
drwxr-xr-x 2 root root 2048 1月 1 1980 mnt
drwxr-xr-x 2 root root 2048 1月 1 1980 proc
drwxr-xr-x 2 root root 2048 1月 1 1980 root
drwxr-xr-x 2 root root 2048 1月 1 1980 run
drwxr-xr-x 2 root root 2048 1月 1 1980 sbin
drwxr-xr-x 2 root root 2048 1月 1 1980 services
drwxr-xr-x 2 root root 2048 1月 1 1980 tc
drwxr-xr-x 3 root root 2048 1月 1 1980 usr
drwxr-xr-x 3 root root 2048 1月 1 1980 var
u@u:~/ws/duo$ sudo umount ./temp
u@u:~/ws/duo$ sudo mount ./userapps/apps/build/ext4.img ./temp
u@u:~/ws/duo$ ls ./temp -l
total 60
drwxrwxr-x 2 root root 4096 11月 13 17:30 bin
drwxrwxr-x 3 root root 4096 11月 13 17:30 dev
drwxrwxr-x 2 root root 4096 11月 13 17:30 etc
drwxrwxr-x 2 root root 4096 11月 13 17:30 lib
drwx------ 2 root root 4096 1月 1 1970 lost+found
drwxrwxr-x 2 root root 4096 11月 13 17:30 mnt
drwxrwxr-x 2 root root 4096 11月 13 17:30 proc
drwxrwxr-x 2 root root 4096 11月 13 17:30 root
drwxrwxr-x 2 root root 4096 11月 13 17:30 run
drwxrwxr-x 2 root root 4096 11月 13 17:30 sbin
drwxrwxr-x 2 root root 4096 11月 13 17:30 services
drwxrwxr-x 2 root root 4096 11月 13 17:30 tc
drwxrwxr-x 2 root root 4096 11月 13 17:30 tmp
drwxrwxr-x 4 root root 4096 11月 13 17:30 usr
drwxrwxr-x 2 root root 4096 11月 13 17:30 var |
unicornx
changed the title
RT-smart + bsp/qemu-virt64-riscv 无法和 userapps 制作的 rootfs 启动
RT-smart + bsp/qemu-virt64-riscv 无法和 userapps 制作的 rootfs 启动 (TEST 4)
Nov 13, 2024
目前定位是默认 image 空间不够导致文件 cp 失败 xmake smart-image -f fat -s 500M 后可以解决该问题。 附件是 xmake smart-image -f fat -v 的 log,其中 “res = 7” 说明镜像空间不够,所以后面的文件都拷不进去了 fat 格式会将所有符号链接全部展开成文件,导致 image 文件体积变大。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参考 RT-Thread/rt-thread#9623 (comment) 上的 TEST 4. 请问目前 userapps 主线上做出来的 rootfs 和 prebuild 的 rt-smart 是不是不匹配?
构建命令 history,供参考:
另外,应用 #60 后依然不行,控制台输出进入死循环:
The text was updated successfully, but these errors were encountered: