From 6ed2bc154f99d3c067775d8a83bcd42a44838dcf Mon Sep 17 00:00:00 2001 From: Atish Patra Date: Thu, 29 Aug 2019 15:19:14 -0700 Subject: 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 Reviewed-by: Anup Patel --- docs/platform/sifive_fu540.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'docs') diff --git a/docs/platform/sifive_fu540.md b/docs/platform/sifive_fu540.md index 7b0a178..6df904d 100644 --- a/docs/platform/sifive_fu540.md +++ b/docs/platform/sifive_fu540.md @@ -47,11 +47,10 @@ make PLATFORM=sifive/fu540 FW_PAYLOAD_PATH=/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.bin @@ -174,8 +173,11 @@ already part of the kernel or loaded from an external storage by kernel. ``` tftpboot ${ramdisk_addr_r} ``` - -7. Set the boot command-line arguments. +7. Load the pre-compiled device tree via tftpboot. +``` +tftpboot ${fdt_addr_r} /arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dtb +``` +8. Set the boot command-line arguments. ``` setenv bootargs "root= rw console=ttySIF0 earlycon=sbi" ``` @@ -184,12 +186,12 @@ setenv bootargs "root= 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} ``` -- cgit v1.2.3