当前位置: 首页 > article >正文

【virtiofs】ubuntu24.04+qemu7.0调试virtiofs

文章目录

    • 编译qemu
    • 编译buildroot
    • 编译linux-6.8.1
    • 编译virtiofsd
    • 启动脚本
    • qemu调试方法

环境:
win11 + vmware17
ubuntu24.04
buildroot git clone git://git.busybox.net/buildroot
linux-6.8.1 https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.8.1.tar.gz
virtiofsd https://gitlab.com/virtio-fs/virtiofsd
virtio-fs-qemu https://gitlab.com/virtio-fs/qemu/-/tree/dax-2022-05-17-qemu7.0?ref_type=tags
aarch64

编译qemu

dax-2022-05-17-qemu7.0会自带virtiofsd
编译后在build/tools/virtiofsd/virtiofsd

git clone git@gitlab.com:virtio-fs/qemu.git
git tag dax-2022-05-17-qemu7.0
mkdir build && build 
../configure --enable-debug
sudo make qemu_aarch64_virt_defconfig 


编译buildroot

  • 下载 配置 编译
 git clone git://git.busybox.net/buildroot
 make menuconfig
#配置好后编译
 make -j8
#编译好的结果会在output目录 
  • make menuconfig后选择配置
在弹出的配置界面中,
设置
Target option ---> Target Architecture为
AArch64 (little endian);
设置
Toolchain ---> Toolchain type为
External toolchain,这时我们可以看到
Toolchain ---> Toolchain的值为
linaro AArch64 xxxx.xx;
设置
System configuration ---> Enable root login with password开启,并设置
System configuration ---> Root password为
xxxx(任意的你喜欢的密码);
设置
System configuration ---> Run a getty (login prompt) after boot ---> TTY port的值为
#按i编辑
ttyAMA0(这一条非常重要,不然虚拟机可能启动不了);
表示使用树莓派上的串口设备ttyAMA0作为终端设备
设置
Target packages ---> Show packages that are also provided by busybox开启;设置

http://www.kler.cn/a/549080.html

相关文章:

  • 网络编程(24)——实现带参数的http-get请求
  • mac搭建环境
  • 【CSS进阶】CSS元素的水平、垂直居中方法
  • CPP集群聊天服务器开发实践(五):nginx负载均衡配置
  • linux软件编程-IO
  • 论文阅读_用于低频隔振的高负刚度新型阵列磁性弹簧的分析与设计_3
  • 基于Yolo11的无人机小目标检测系统的设计与性能优化改进项目实现
  • mysql索引为什么用B+树,不用二叉树
  • JavaScript系列(68)--运行时优化技术详解
  • 用大模型学大模型03-数学基础 概率论 条件概率 全概率公式 贝叶斯定理
  • Java语言在微服务架构中的应用研究
  • Leetcode 712. Minimum ASCII Delete Sum for Two Strings
  • Jvascript网页设计案例:通过js实现一款密码强度检测,适用于等保测评整改
  • 卓越设计彰显品质:福特中国“烈马宇宙”项目展示高质量标准
  • AI大模型学习(一)
  • Windows环境安装部署minimind步骤
  • 民用无人驾驶航空器操控员考试
  • 连锁企业管理系统的五大核心功能
  • Linux-ubuntu系统移植之Uboot作用以及相关命令
  • 蓝桥杯 Java B 组 之队列的应用(BFS 入门)