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

【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开启;设置

相关文章:

  • 洗牌加速!车规MCU“冷热交加”
  • rust学习一、入门之搭建简单开发环境
  • 【人工智能】通过python练习机器学习中的8大算法
  • SpringMVC详解
  • 使用爬虫获取1688商品分类:实战案例指南
  • 【技术解析】MultiPatchFormer:多尺度时间序列预测的全新突破
  • 固高控制卡的几种运动模式
  • 洛谷 P3660 USACO17FEB Why Did the Cow Cross the Road III 题解
  • 云点SEO:外贸独立站谷歌SEO优化的五大优势
  • Python----PyQt开发(PyQt高级:界面切换,信号与槽功能pyqtSignal)
  • Java基础概念
  • 国产编辑器EverEdit - 上下翻滚不迷路(历史编辑位置、历史光标位置回溯功能)
  • Typora“使用”教程
  • SpringBoot开发——初步了解SpringBoot
  • UE_C++ —— UObject Instance Creation
  • AcWing——1571. 完美序列
  • 无人机航迹规划:互联银行系统优化(Connected Banking System Optimizer,CBSO)求解无人机路径规划MATLAB
  • JavaScript作用域与闭包
  • 数字内容体验优化策略:全渠道整合与高效转化实践
  • NVIDIA Jetson Orin Nano 刷机过程
  • 道指跌逾100点,特斯拉涨近5%
  • 庆祝上海总工会成立100周年暨市模范集体劳动模范和先进工作者表彰大会举行,陈吉宁寄予这些期待
  • 央行:下阶段将实施好适度宽松的货币政策
  • 优秀“博主”在上海杨浦购房最高补贴200万元,有何条件?
  • 2025柯桥时尚周启幕:国际纺都越来越时尚
  • 习近平同瑞典国王卡尔十六世·古斯塔夫就中瑞建交75周年互致贺电