mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-15 19:31:32 +00:00
docs: Update the fu540 platform guide as per U-Boot documents.
U-Boot readme for fu540 platform suggest that fdt_addr_r should be used as DT address after DT is copied via tftpboot. Update the OpenSBI docs to reflect that. Remove other stale informations as well. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
parent
7b7690ed9c
commit
6ed2bc154f
1 changed files with 12 additions and 10 deletions
|
@ -47,11 +47,10 @@ make PLATFORM=sifive/fu540 FW_PAYLOAD_PATH=<linux_build_directory>/arch/riscv/bo
|
|||
|
||||
The command-line example here assumes that U-Boot was compiled using the
|
||||
sifive_fu540_defconfig configuration and with U-Boot v2019.04 (or higher)
|
||||
having SMP support.
|
||||
having SMP support. From, Linux v5.2 (or higher) device tree is hosted in
|
||||
Linux kernel and compiled as a part of Linux kernel build process.
|
||||
|
||||
To use U-Boot which follows Linux v5.2 (or higher) DT bindings, we will
|
||||
need custom U-Boot with required driver changes which can be found in
|
||||
riscv_unleashed_mmc_spi_v2 branch of https://github.com/avpatel/u-boot.git
|
||||
The detailed U-Boot booting guide is avaialble at [U-Boot](https://gitlab.denx.de/u-boot/u-boot/blob/master/doc/board/sifive/fu540.rst)
|
||||
|
||||
```
|
||||
make PLATFORM=sifive/fu540 FW_PAYLOAD_PATH=<u-boot_build_dir>/u-boot.bin
|
||||
|
@ -174,8 +173,11 @@ already part of the kernel or loaded from an external storage by kernel.
|
|||
```
|
||||
tftpboot ${ramdisk_addr_r} <ramdisk path in tftpboot directory>
|
||||
```
|
||||
|
||||
7. Set the boot command-line arguments.
|
||||
7. Load the pre-compiled device tree via tftpboot.
|
||||
```
|
||||
tftpboot ${fdt_addr_r} <linux source>/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dtb
|
||||
```
|
||||
8. Set the boot command-line arguments.
|
||||
```
|
||||
setenv bootargs "root=<root partition> rw console=ttySIF0 earlycon=sbi"
|
||||
```
|
||||
|
@ -184,12 +186,12 @@ setenv bootargs "root=<root partition> rw console=ttySIF0 earlycon=sbi"
|
|||
** root=/dev/mmcblk0pX ** - If a rootfs is already on some other partition
|
||||
of sdcard)
|
||||
|
||||
8. Now boot into Linux.
|
||||
9. Now boot into Linux.
|
||||
```
|
||||
bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdtcontroladdr}
|
||||
bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
|
||||
or
|
||||
(If ramdisk is not loaded from network)
|
||||
bootm ${kernel_addr_r} - ${fdtcontroladdr}
|
||||
bootm ${kernel_addr_r} - ${fdt_addr_r}
|
||||
```
|
||||
|
||||
**U-Boot & Linux Kernel as a single payload**
|
||||
|
@ -197,5 +199,5 @@ bootm ${kernel_addr_r} - ${fdtcontroladdr}
|
|||
At U-Boot prompt execute the following boot command to boot Linux.
|
||||
|
||||
```
|
||||
bootm ${kernel_addr_r} - ${fdtcontroladdr}
|
||||
bootm ${kernel_addr_r} - ${fdt_addr_r}
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue