0100-Add-readme.patch 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. From 13c570f2350f59a7994c26a51f749a50fa9b4726 Mon Sep 17 00:00:00 2001
  2. From: Hal Feng <[email protected]>
  3. Date: Tue, 20 Dec 2022 16:18:35 +0800
  4. Subject: [PATCH 100/122] Add readme
  5. ---
  6. README.md | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
  7. 1 file changed, 62 insertions(+)
  8. create mode 100644 README.md
  9. --- /dev/null
  10. +++ b/README.md
  11. @@ -0,0 +1,62 @@
  12. +## JH7110 Upstream Status ##
  13. +
  14. +To get the latest status of each upstreaming patch series, please visit
  15. +our RVspace.
  16. +
  17. +https://rvspace.org/en/project/JH7110_Upstream_Plan
  18. +
  19. +## Build Instructions ##
  20. +
  21. +1. Configure Kconfig options
  22. +
  23. +```shell
  24. +# Use default selections
  25. +make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- defconfig
  26. +```
  27. +
  28. +or
  29. +
  30. +```shell
  31. +# Select options manually
  32. +make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- nconfig
  33. +```
  34. +
  35. +To boot up the VisionFive 2 board, please make sure **SOC_STARFIVE**,
  36. +**CLK_STARFIVE_JH7110_SYS**, **PINCTRL_STARFIVE_JH7110_SYS**,
  37. +**SERIAL_8250_DW** are selected.
  38. +> If you need MMC and GMAC drivers, you should also select
  39. +**MMC_DW_STARFIVE** and **DWMAC_STARFIVE**.
  40. +
  41. +2. Build
  42. +```shell
  43. +make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu-
  44. +```
  45. +
  46. +## How to Run on VisionFive 2 Board via Network ##
  47. +
  48. +1. Power on, enter u-boot and set enviroment parameters
  49. +```
  50. +setenv fdt_high 0xffffffffffffffff; setenv initrd_high 0xffffffffffffffff;
  51. +setenv scriptaddr 0x88100000; setenv script_offset_f 0x1fff000; setenv script_size_f 0x1000;
  52. +setenv kernel_addr_r 0x84000000; setenv kernel_comp_addr_r 0x90000000; setenv kernel_comp_size 0x10000000;
  53. +setenv fdt_addr_r 0x88000000; setenv ramdisk_addr_r 0x88300000;
  54. +```
  55. +2. Set IP addresses for the board and your tftp server
  56. +```
  57. +setenv serverip 192.168.w.x; setenv gatewayip 192.168.w.y; setenv ipaddr 192.168.w.z; setenv hostname starfive; setenv netdev eth0;
  58. +```
  59. +3. Upload dtb, image and file system to DDR from your tftp server
  60. +```
  61. +tftpboot ${fdt_addr_r} jh7110-starfive-visionfive-2-v1.3b.dtb; tftpboot ${kernel_addr_r} Image.gz; tftpboot ${ramdisk_addr_r} initramfs.cpio.gz;
  62. +```
  63. +> If your VisionFive 2 is v1.2A, you should upload jh7110-starfive-visionfive-2-v1.2a.dtb instead.
  64. +4. Load and boot the kernel
  65. +```
  66. +booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
  67. +```
  68. +When you see the message "buildroot login:", the launch was successful.
  69. +You can just input the following accout and password, then continue.
  70. +```
  71. +buildroot login: root
  72. +Password: starfive
  73. +```