[英]Documantation error at U-boot for qemu mips
我正在尝试模拟我在网上找到的一些路由器(仅供练习),并且该路由器将 u-boot 作为引导加载程序运行。 我想了解如何使用 qemu 和 u-boot 来创建一个 linux 嵌入式机器。
在 u-boot 中有一个文档,它准确地解释了如何使用 qemu 和 u-boot 运行 linux 嵌入式系统。 (u-boot/doc/board/emulation/qemu_mips.rst)。
以下引用是该文档的第 6 阶段:
Generate Ide Disk
# dd of=ide bs=1k cout=100k if=/dev/zero
# sfdisk -C 261 -d ide
# partition table of ide
unit: sectors
ide1 : start= 63, size= 32067, Id=83
ide2 : start= 32130, size= 32130, Id=83
ide3 : start= 64260, size= 4128705, Id=83
ide4 : start= 0, size= 0, Id= 0
需要明确的是,这是文档文件中的复制粘贴。
问题是,sfdisk 没有 -C 参数,因此 sfdisk 命令无效。 有没有人遇到过并有解决方案?
谢谢!
您可以使用以下命令来创建分区磁盘映像:
dd of=ide bs=1k count=100k if=/dev/zero
# Create partion table
sudo sfdisk ide << EOF
label: dos
label-id: 0x6fe3a999
device: image
unit: sectors
image1 : start= 63, size= 32067, Id=83
image2 : start= 32130, size= 32130, Id=83
image3 : start= 64260, size= 4128705, Id=83
EOF
我已经发布了一个补丁来更正文档:https ://lists.denx.de/pipermail/u-boot/2020-January/395133.html
您可以通过https://patchwork.ozlabs.org/patch/1216937的 mbox 链接下载它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.