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


环境:
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 checkout 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开启࿱
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Yengi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值