On Fri, Jan 17, 2020 at 6:16 PM Pragnesh Patel
wrote:
>
> This series add support for SPL to FU540. This series depends on
> https://patchwork.ozlabs.org/patch/1196703/
> (riscv: dts: Add hifive-unleashed-a00 dts from Linux)
>
> U-Boot SPL can boot from L2 LIM (0x0800_) and jump to
> OpenSBI(FW_DYNAMIC firmware) and U-Boot proper from MMC devices.
>
> How to test this patch:
> 1) Go to OpenSBI-dir : make PLATFORM=sifive/fu540 O=build_dir I=install_dir
> FW_DYNAMIC=y install
> 2) cp install_dir/platform/sifive/fu540/firmware/fw_dynamic.bin /
> 3) Change to u-boot-dir
> 4) make sifive_fu540_spl_defconfig
> 5) make all
> 6) SD card partition which contains "fw_payload.bin" previously
> /dev/sdc1 - SiFive bare-metal (or s ->5202)
>should be now of
> /dev/sdc1 - 8300 Linux filesystem.
The ZSBL loads next stage (i.e. FSBL or U-Boot SPL) from a
partition with GUID type 2e54b353-1271-4842-806f-e436d6af6985
You need to document how U-Boot SPL will detect a partition
containtaining u-boot.itb image.
I have same comment in your documentation patch as well.
Regards,
Anup
> 6) sudo dd if=spl/u-boot-spl.bin of=/dev/sdc4 bs=1M
> 7) sudo dd if=u-boot.itb of=/dev/sdc1 bs=1M
>
> Following are the boot messages on FU540 five cores SMP platform:
>
> U-Boot SPL 2020.01-00177-ga3fabe50f9 (Jan 17 2020 - 14:20:12 +0530)
> Trying to boot from MMC1
>
>
> U-Boot 2020.01-00177-ga3fabe50f9 (Jan 17 2020 - 14:20:12 +0530)
>
> CPU: rv64imafdc
> Model: SiFive HiFive Unleashed A00
> DRAM: 8 GiB
> MMC: spi@1005:mmc@0: 0
> In:serial@1001
> Out: serial@1001
> Err: serial@1001
> Board serial number should not be 0 !!
> Net:
> Warning: ethernet@1009 (eth0) using random MAC address - c6:3a:5b:53:64:8b
> eth0: ethernet@1009
> Hit any key to stop autoboot: 0
> => setenv serverip 172.16.35.74;setenv ipaddr 172.16.35.40;tftpboot
> 0x8300 fit.itb;bootm 0x8300
> ethernet@1009: PHY present at 0
> ethernet@1009: Starting autonegotiation...
> ethernet@1009: Autonegotiation complete
> ethernet@1009: link up, 100Mbps full-duplex (lpa: 0x41e1)
> Using ethernet@1009 device
> TFTP from server 172.16.35.74; our IP address is 172.16.35.40
> Filename 'fit.itb'.
> Load address: 0x8300
> Loading: #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
> #
>