[英]Documantation error at U-boot for qemu mips
I am trying to emulate some router I found online (just for practice), and this router runs u-boot as a bootloader.我正在尝试模拟我在网上找到的一些路由器(仅供练习),并且该路由器将 u-boot 作为引导加载程序运行。 I want to understand how to use qemu and u-boot to create a linux-embedded machine.
我想了解如何使用 qemu 和 u-boot 来创建一个 linux 嵌入式机器。
Inside u-boot there's a doc that explains exactly how to run a linux-embedded system using qemu and u-boot.在 u-boot 中有一个文档,它准确地解释了如何使用 qemu 和 u-boot 运行 linux 嵌入式系统。 (u-boot/doc/board/emulation/qemu_mips.rst).
(u-boot/doc/board/emulation/qemu_mips.rst)。
The following quote is stage 6 of that documentation:以下引用是该文档的第 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
To be clear, this is a copy paste from the documentation file.需要明确的是,这是文档文件中的复制粘贴。
The problem is, that sfdisk does not have a -C argument, so that the sfdisk command is invalid.问题是,sfdisk 没有 -C 参数,因此 sfdisk 命令无效。 Has anyone encountered that and has a solution?
有没有人遇到过并有解决方案?
Thanks!谢谢!
You can use the following commands to create the partitioned disk image:您可以使用以下命令来创建分区磁盘映像:
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
I have posted a patch to correct the documentation:https://lists.denx.de/pipermail/u-boot/2020-January/395133.html我已经发布了一个补丁来更正文档:https ://lists.denx.de/pipermail/u-boot/2020-January/395133.html
You can download it via the mbox link from https://patchwork.ozlabs.org/patch/1216937您可以通过https://patchwork.ozlabs.org/patch/1216937的 mbox 链接下载它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.