doc: starfive: use jh7110_common.rst

To avoid duplicate maintenance just include jh7110_common.rst to describe
the usage of the different boot sources.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: E Shattow <e@freeshell.de>
This commit is contained in:
Heinrich Schuchardt 2025-04-24 14:13:14 +02:00 committed by Leo Yu-Chi Liang
parent 39b558c416
commit f0b86c4dd1
3 changed files with 3 additions and 66 deletions

View File

@ -57,13 +57,6 @@ environment
or the configuration variable CONFIG_DEFAULT_FDT_FILE can be used to set to
provide a default value.
Boot source selection
---------------------
The board provides the DIP switches MSEL[1:0] to select the boot device out of
SPI flash, eMMC, SD-card, UART. To select booting from SD-card set the DIP
switches MSEL[1:0] to 10.
Preparing the SD-Card
---------------------
@ -105,7 +98,4 @@ Copy U-Boot to the SD card
sudo cp jh7110-starfive-visionfive-2.dtb /mnt/
sudo umount /mnt
Booting
-------
Once you plugin the sdcard and power up, you should see the U-Boot prompt.
.. include:: jh7110_common.rst

View File

@ -55,19 +55,6 @@ environment
or the configuration variable CONFIG_DEFAULT_FDT_FILE can be used to set to
provide a default value.
Boot source selection
---------------------
Boot mode is selected by an MSEL-DIP marked S1804 and GPIO_0 position adjacent
to the 40pin GPIO header. ON/ONKE and number markings of the MSEL-DIP are
misleading; Instead refer to the ``L`` (0) and ``H`` (1) silkscreen for
accurate selection.
+ (QSPI) Flash: 00
+ SD: 01
+ EMMC: 10
+ UART: 11
Preparing the SD-Card
---------------------
@ -109,10 +96,7 @@ Copy U-Boot to the SD card
sudo cp jh7110-starfive-visionfive-2.dtb /mnt/
sudo umount /mnt
Booting
-------
Once you plugin the sdcard and power up, you should see the U-Boot prompt.
.. include:: jh7110_common.rst
Serial Number and MAC address issues
------------------------------------

View File

@ -132,13 +132,7 @@ Program the SD card
sudo cp jh7110-starfive-visionfive-2.dtb /mnt/
sudo umount /mnt
Booting
-------
The board provides the DIP switches MSEL[1:0] to select the boot device.
To select booting from SD-card set the DIP switches MSEL[1:0] to 10.
Once you plugin the sdcard and power up, you should see the U-Boot prompt.
.. include:: jh7110_common.rst
Sample boot log from StarFive VisionFive2 board
-----------------------------------------------
@ -479,34 +473,3 @@ Sample boot log from StarFive VisionFive2 board
Welcome to Buildroot
buildroot login:
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.
Program the SPI (Require to boot the board in SD boot mode)
Execute below steps on U-Boot proper,
.. code-block:: none
sf probe
fatload mmc 1:3 $kernel_addr_r u-boot.itb
sf update $kernel_addr_r 0x100000 $filesize
fatload mmc 1:3 $kernel_addr_r u-boot-spl.bin.normal.out
sf update $kernel_addr_r 0x0 $filesize
Power off the board
Change DIP switches MSEL[1:0] are set to 00, select the boot mode to flash
Power up the board.