readme.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Starfive VisionFive2
  2. ====================
  3. The VisionFive2 is a low-cost RISC-V 64-bit based platform, powered by a
  4. Starfive JH7110 processor.
  5. https://doc-en.rvspace.org/Doc_Center/visionfive_2.html
  6. How to build
  7. ============
  8. $ make visionfive2_defconfig
  9. $ make
  10. Once the build process is finished you will have two images
  11. in the output/images/ directory:
  12. - sdcard.img
  13. - spi-nor.img
  14. How to write the SPI NOR flash
  15. =============================
  16. If you have a booting device use u-boot and tftp:
  17. # tftpboot 0x82000000 spi-nor.img
  18. # sf probe
  19. # sf update 0x82000000 0x0 {filesize}
  20. Otherwise, follow the recovery instruction:
  21. https://doc-en.rvspace.org/VisionFive2/Quick_Start_Guide/VisionFive2_SDK_QSG/recovering_bootloader%20-%20vf2.html
  22. How to write the SD card
  23. ========================
  24. Copy the bootable "sdcard.img" onto an SD card with "dd":
  25. $ sudo dd if=output/images/sdcard.img of=/dev/sdX
  26. Preparing the board
  27. ===================
  28. Connect a TTL UART cable to pin 6 (GND), 8 (TX) and 10 (RX).
  29. Use the correct mode for booting:
  30. - SD card RGPIO_0=1, GRPIO_1=0
  31. - SPI NOR flash RGPIO_0=1, GRPIO_1=1
  32. Note that Buildroot puts the bootloader both in SPI NOR and on the SD card,
  33. so after flashing as instructed above, either boot mode should work.
  34. https://doc-en.rvspace.org/VisionFive2/Quick_Start_Guide/VisionFive2_SDK_QSG/boot_mode_settings.html
  35. Insert your SD card.
  36. Power-up the board using an USB-C cable.