1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00
- Fix SiFive HiFive Unleashed board booting failure problem.
- Enable SiFive fu540 PWM driver.
- Support SiFive fu540: SPI boot.
- Update OpenSBI used for RISC-V CI testing.
- Revert "riscv: Allow use of reset drivers".
- Revert "Revert "riscv: sifive: fu540: Add gpio-restart support"".
- sysreset: syscon:
        - Don't assume default value for offset and mask property.
        - Support value property.
- qemu: Add syscon reboot and poweroff support.
- Fix SIFIVE debug serial dependency.
- Fix linking error when building u-boot-spl with no SMP support.
- AE350 use fdtdec_get_addr_size_auto_noparent to parse smc reg.
- Make memory node available to SPL in hifive-unleashed-a00-u-boot.dtsi
- SiFive fu540 avoid using hardcoded ram base and size.
This commit is contained in:
Tom Rini
2020-07-24 08:43:08 -04:00
20 changed files with 178 additions and 51 deletions

View File

@@ -533,3 +533,44 @@ Sample boot log from HiFive Unleashed board
type: 0fc63daf-8483-4772-8e79-3d69d8477de4
type: linux
guid: 9faa81b6-39b1-4418-af5e-89c48f29c20d
Booting from SPI
----------------
Use Building steps from "Booting from MMC using U-Boot SPL" section.
Partition the SPI in Linux via mtdblock. (Require to boot the board in
SD boot mode by enabling MTD block in Linux)
Use prebuilt image from here [1], which support to partition the SPI flash.
.. code-block:: none
# sgdisk --clear \
> --set-alignment=2 \
> --new=1:40:2087 --change-name=1:loader1 --typecode=1:5B193300-FC78-40CD-8002-E86C45580B47 \
> --new=2:2088:10279 --change-name=2:loader2 --typecode=2:2E54B353-1271-4842-806F-E436D6AF6985 \
> --new=3:10536:65494 --change-name=3:rootfs --typecode=3:0FC63DAF-8483-4772-8E79-3D69D8477DE4 \
> /dev/mtdblock0
Program the SPI (Require to boot the board in SD boot mode)
Execute below steps on U-Boot proper,
.. code-block:: none
tftpboot $kernel_addr_r u-boot-spl.bin
sf erase 0x5000 $filesize
sf write $kernel_addr_r 0x5000 $filesize
tftpboot $kernel_addr_r u-boot.itb
sf erase 0x105000 $filesize
sf write $kernel_addr_r 0x105000 $filesize
Power off the board
Change DIP switches MSEL[3:0] are set to 0110
Power up the board.
[1] https://github.com/amarula/bsp-sifive