浏览代码

docs: add u-boot bootcommand

Woshiluo Luo 6 月之前
父节点
当前提交
83f707d79a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      docs/booting-openwrt-in-qemu-using-uboot-and-rustsbi.md

+ 1 - 0
docs/booting-openwrt-in-qemu-using-uboot-and-rustsbi.md

@@ -103,6 +103,7 @@ $ export OPENSBI=../prototyper/target/riscv64imac-unknown-none-elf/release/rusts
 ``` shell
 ``` shell
 # To generate .config file out of board configuration file
 # To generate .config file out of board configuration file
 $ make qemu-riscv64_spl_defconfig
 $ make qemu-riscv64_spl_defconfig
+$ sed -i.bak 's/CONFIG_BOOTCOMMAND=*/CONFIG_BOOTCOMMAND="scsi scan; fatload scsi 0:3 84000000 Image; setenv bootargs root=\/dev\/sda4 rw earlycon console=\/dev\/ttyS0 rootwait; booti 0x84000000 - ${fdtcontroladdr};"/' .config
 $ make -j$(nproc)
 $ make -j$(nproc)
 ```
 ```