diff options
author | Atish Patra <atish.patra@wdc.com> | 2019-08-29 15:19:14 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-08-31 13:16:44 +0530 |
commit | 6ed2bc154f99d3c067775d8a83bcd42a44838dcf (patch) | |
tree | 662998f294c62daf3e4cf5ac71b84c0ec20a9956 /docs/platform | |
parent | 7b7690ed9c0e5990a8cda2511f4c438c9ad8c9dc (diff) |
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>
Diffstat (limited to 'docs/platform')
-rw-r--r-- | docs/platform/sifive_fu540.md | 22 |
1 files changed, 12 insertions, 10 deletions
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=<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} ``` |