This commit consolidates all BSP support files into the Buildroot standard board/ directory. The concept of selectable boards in menuconfig remains as-is but now lives in board/ instead. Drop support for board-specific post-build.sh scripts, not needed atm. and we should really use Buildroot _POST_INSTALL_HOOKS in the board .mk files instead. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Starfive VisionFive2
The VisionFive2 is a low-cost RISC-V 64-bit based platform, powered by the Starfive JH7110 processor.
Infix runs from either SD card or eMMC, this guide only covers SD card.
How to Build
$ make visionfive2_defconfig
$ make
Once the build has finished you will have output/images/sdcard.img
which you can flash to an SD card.
$ sudo dd if=output/images/sdcard.img of=/dev/mmcblk0 bs=1M status=progress oflag=direct
WARNING: ensure
/dev/mmcblk0really is the correct device for your SD card, and not used by the system!
Bootstrap Mode
Ensure the correct bootstrap mode for booting from SD card. From factory the board is preset to start from QSPI flash, which also has a U-Boot that tries to load a Linux system from SD card, or fail-over to load from the network.
| Mode | RGPIO_1 |
RGPIO_0 |
|---|---|---|
| QSPI NOR | 0 (L) | 0 (L) |
| SD card | 0 (L) | 1 (H) |
| eMMC | 1 (H) | 0 (L) |
| UART | 1 (H) | 1 (H) |
Note: the DIP switches are flipped 180° so don't get confused by the socket's
ONlabel. Look at the L and H markings on the board!
Booting the Board
- Connect a TTL UART cable to pin 6 (GND), 8 (TX) and 10 (RX)
- Insert your SD card
- Power-up the board using an USB-C cable
You need a stable power source! If you get the following on the console at power on, try to power cycle the device again:
dwmci_s: Response Timeout.
dwmci_s: Response Timeout.
BOOT fail,Error is 0xffffffff