Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
rt-smart
rt-smart 内核编译以后,文件系统找不到
发布于 2023-09-01 17:12:21 浏览:825
订阅该版
[tocm] # rt-smart ## 说明 整理流程很像 linux, 先 load 内核,再加载 rootfs ## 步骤 ### 配置 toolchain 下载 ```sh http://117.143.63.254:9012/www/rt-smart/aarch64-linux-musleabi_for_x86_64-pc-linux-gnu_latest.tar.bz2 ``` ```sh export RTT_CC="gcc" export RTT_EXEC_PATH="/opt/aarch64-linux-musleabi/bin/" export RTT_CC_PREFIX="aarch64-linux-musleabi-" export PATH="$RTT_EXEC_PATH:$PATH" ``` ### 编译内核 ```sh git clone https://github.com/RT-Thread/rt-thread cd bsp/qemu-virt64-aarch64 scons --menuconfig ``` ```sh RT-Thread Kernel ---> [*] Enable RT-Thread Smart (microkernel on kernel/userland) ``` ```sh scons -c; scons ``` ### rootfs #### 编译用户态程序 ```sh git clone https://github.com/RT-Thread/userapps.git cd userapps; source env.sh cd apps ``` 先编译 ```sh xmake -j8 ``` 如果报错,则导出 toolchain ```sh xmake smart-rootfs --export=all ``` 重新 make ```sh xmake -j8 ``` #### 生成 rootfs 在 `apps/build/` 下会生成一个 rootfs 目录 ```sh xmake smart-rootfs ``` #### 生成磁盘镜像 ```sh xmake smart-image -o ../prebuilt/qemu-virt64-aarch64/ext4.img ``` #### 运行应用 新编译的内核复制到 prebuilt/qemu-virt64-aarch64 以后 ```sh ls / ``` 结果为空,用原来的内核加载ext4.img能看到文件,请问编译内核的时候需要注意什么吗?
查看更多
张世争
2023-09-01
学以致用
文件系统挂载成功了吗?
3
个回答
默认排序
按发布时间排序
921742079
2023-09-01
这家伙很懒,什么也没写!
怎么查看文件系统挂载成功与否? 这是用build的内核替换预编译的rtthread.bin ```sh $ sh ./run.sh [I/libcpu.aarch64.cpu] Using MPID 0x0 as cpu 0 [E/libcpu.aarch64.cpu] Cannot read method from cpu node [E/libcpu.aarch64.cpu] Failed to find hardware id of CPU 1 [E/libcpu.aarch64.cpu] Failed to find hardware id of CPU 2 [E/libcpu.aarch64.cpu] Failed to find hardware id of CPU 3 \ | / - RT - Thread Smart Operating System / | \ 5.0.1 build Sep 1 2023 21:39:39 2006 - 2022 Copyright by RT-Thread team [E/libcpu.aarch64.cpu] No cpu_ops was probed for CPU 1. Try to configure it or use fdt [E/libcpu.aarch64.cpu] No cpu_ops was probed for CPU 2. Try to configure it or use fdt [E/libcpu.aarch64.cpu] No cpu_ops was probed for CPU 3. Try to configure it or use fdt hello rt-thread msh />mount filesystem device mountpoint ---------- ------ ---------- devfs (NULL) /dev msh />ls No such directory msh />ls / No such directory ``` 自带的内核 ```sh $ sh run.sh \ | / - RT - Thread Smart Operating System / | \ 5.0.1 build Jun 21 2023 13:52:00 2006 - 2022 Copyright by RT-Thread team lwIP-2.0.3 initialized! [I/sal.skt] Socket Abstraction Layer initialize success. file system initialization done! hello rt-thread msh />mount filesystem device mountpoint refcount ---------- ------ ---------- -------- ext virtio / 3 devfs (NULL) /dev 2 msh /> ``` 对比看似乎是virtio没有加载成功,但是默认的virtio的blk和input等都是选中的。 ```sh [*] Using VirtIO BLK [ ] Using VirtIO NET [*] Using VirtIO Console [*] Using VirtIO GPU [*] Using VirtIO Input ```
bernard
2023-09-02
这家伙很懒,什么也没写!
```text msh />mount filesystem device mountpoint refcount ---------- ------ ---------- -------- ext virtio / 3 devfs (NULL) /dev 2 ``` 看起来似乎成功了
撰写答案
登录
注册新账号
关注者
0
被浏览
825
关于作者
921742079
这家伙很懒,什么也没写!
提问
42
回答
145
被采纳
3
关注TA
发私信
相关问题
1
rt-smart发布时间
2
rt-smart qemu-vexpress-a9 编译报错
3
rt-smart分支编译rasp4-32bsp报错
4
rt-smart qemu-vexpress-a9 win10编译脚本问题
5
rt-smart qemu-vexpress-a9 linux 下crtl+c
6
rt-smart + pthread 编译报错
7
rt-smart的rt_channel实现问题
8
关于rt-smart的musl-libc
9
RT-Smart Windows 编译 qemu-vexpress-a9 出错
10
用户程序在RT-Smart存在的方式
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【RT-Thread】【ci】【scons】将ci.attachconfig.yml和scons结合使用
2
Rt-thread中OTA下载后,bootloader不搬程序
3
ulog 日志 LOG_HEX 输出时间改为本地日期时间
4
在RT-Thread Studio中构建前执行python命令
5
研究一了一段时间RTT,直接标准版上手太难,想用nano,但又舍不得组件
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
I2C_IIC
ESP8266
UART
WIZnet_W5500
ota在线升级
cubemx
PWM
flash
freemodbus
BSP
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
flashDB
GD32
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
SFUD
msh
keil_MDK
ulog
C++_cpp
MicroPython
本月问答贡献
出出啊
1518
个答案
343
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
813
个答案
177
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
5
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
3
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
2
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部