DM365 booting from SD card(error?)


Content of the SD card to support boot from SD card:

 

Sector 0: MBR
Sector 1:
Byte 0x00~0x03: 00 ed ac a1 (RBL magic number)
Byte 0x04~0x07: 40 00 00 00 (entry address)
Byte 0x08~0x0b: 11 00 00 00 (UBL size:17 sectors)
Byte 0x0c~0x0f: 02 00 00 00 (UBL first sector: 2)
Byte 0x10~0x13: 54 4f 42 55 (uboot magic number)
Byte 0x14~0x17: 00 00 08 81 (uboot load address)
Byte 0x18~0x1b: 81 01 00 00 (uboot number of sectors)
Byte 0x1c~0x1f: 20 00 00 00 (uboot first sector)

Sector 2 to sector 18: UBL

Sector 32~: uboot

Sector 1024~: ext3 file system that contains Linux Kernel and rootfs

 

除更换QEMU版本外,还可以尝试以下方法解决虚拟机xv6编译`make qemu`后卡在“xv6 kernal is booting”的问题: #### 检查Makefile文件 若`make qemu`时提示找不到QEMU,可修改Makefile文件。Ubuntu系统内置了QEMU的各种版本,但没有叫`qemu`的版本,需将Makefile中类似`qemu-system-i386 -parallel stdio -hdb fs.img xv6.img`里的`qemu`改为`qemu-system-i386` [^1]。 #### 检查必要组件和依赖 确保系统安装了运行QEMU不可或缺的前置组件,可在命令行终端复制粘贴以下命令进行安装: ```bash sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ``` 同时,安装必要的编译和调试工具: ```bash sudo apt install git build-essential gdb-multiarch qemu-system-misc gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu libglib2.0-dev libpixman-1-dev gcc-riscv64-unknown-elf ``` 这些组件的安装可能与Ubuntu版本有关 [^2][^3][^4]。 #### 检查文件系统镜像 确保文件系统镜像`fs.img`和内核镜像`xv6.img`没有损坏。可以尝试重新生成这些镜像,先清除旧的镜像文件: ```bash make clean ``` 然后重新编译生成新的镜像: ```bash make ``` #### 检查硬件加速支持 如果系统支持KVM(Kernel-based Virtual Machine),可以尝试启用硬件加速。在Makefile中添加或修改相关选项以启用KVM支持。不过,若系统不支持KVM或配置有问题,可能会导致启动问题,可尝试禁用KVM: ```bash make qemu-nox-kvm ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值