MichaelZhuxx 2 роки тому
батько
коміт
7c2c225560
1 змінених файлів з 50 додано та 66 видалено
  1. 50 66
      README.md

+ 50 - 66
README.md

@@ -38,10 +38,10 @@ fail because certain dependencies don't have the best git hosting.
 Once the submodules are initialized, 4 submodules `buildroot`, `HiFive_U-boot`,
 `linux` and `opensbi` need checkout to corresponding branches manually, seeing `.gitmodule`
 
-	$ cd buildroot && git checkout --track origin/starlight_multimedia && cd ..
-	$ cd HiFive_U-Boot && git checkout --track origin/Fedora_JH7100_upstream_devel && cd ..
-	$ cd linux && git checkout --track origin/beaglev-5.13.y_multimedia && cd ..
-	$ cd opensbi && git checkout --track origin/master && cd ..
+	$ cd buildroot && git checkout starlight_multimedia && cd ..
+	$ cd HiFive_U-Boot && git checkout Fedora_JH7100_upstream_devel && cd ..
+	$ cd linux && git checkout beaglev-5.13.y_multimedia && cd ..
+	$ cd opensbi && git checkout master && cd ..
 
 ## Build Instructions ##
 
@@ -73,37 +73,59 @@ make buildroot_initramfs-menuconfig   # initramfs menuconfig
 make buildroot_rootfs-menuconfig      # rootfs menuconfig
 ```
 
-## Display Framework Switch Instructions
 
-The default display framework is `Framebuffer`. If switch to `DRM` display framework (`drm to hdmi` pipeline):
+## Running on Starlight Board ##
 
-```
-1. Disable the below kernel config
-   CONFIG_FB_STARFIVE
-   CONFIG_FB_STARFIVE_HDMI_TDA998X
-   CONFIG_FB_STARFIVE_VIDEO
-   CONFIG_NVDLA
-   CONFIG_FRAMEBUFFER_CONSOLE
-
-2. Enable the below kernel config:
-   CONFIG_DRM_I2C_NXP_TDA998X
-   CONFIG_DRM_I2C_NXP_TDA9950
-   CONFIG_DRM_STARFIVE
-
-Note: when use DRM to hdmi pipeline, please make sure CONFIG_DRM_STARFIVE_MIPI_DSI is disable, or will cause color abnormal.
-```
+After the Starlight is properly connected to the serial port cable, network cable and power cord turn on the power from the wall power socket to power on the Starlight and you will see the startup information as follows:
+
+	bootloader version: 210209-4547a8d
+	ddr 0x00000000, 1M test
+	ddr 0x00100000, 2M test
+	DDR clk 2133M,Version: 210302-5aea32f
+	2
+Press any key as soon as it starts up to enter the **upgrade menu**. In this menu, you can update uboot
+
+	bootloader version: 210209-4547a8d
+	ddr 0x00000000, 1M test
+	ddr 0x00100000, 2M test
+	DDR clk 2133M,Version: 210302-5aea32f
+	0
+	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+	xxxxxxxxxxxFLASH PROGRAMMINGxxxxxxxxx
+	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+	
+	0:update boot
+	1: quit
+	select the function:
+
+Type **"0"**  to update the uboot file fw_payload.bin.out via Xmodem mode,
+and then Type **"1"** to exit Flash Programming.
+
+After you will see the information `Starlight #` when press the "f" button, select the installation path
+and install image.fit through TFTP:
+
+Step1: set enviroment parameter:
+
+	setenv bootfile vmlinuz;setenv fdt_addr_r 0x88000000;setenv fdt_high 0xffffffffffffffff;setenv fdtcontroladdr 0xffffffffffffffff;setenv initrd_high 0xffffffffffffffff;setenv kernel_addr_r 0x84000000;setenv fileaddr a0000000;setenv ipaddr 192.168.xxx.xxx;setenv serverip 192.168.xxx.xxx
+
+Step2: upload image file to ddr:
+
+	tftpboot ${fileaddr} ${serverip}:image.fit;
+
+Step3: load and excute:	
+
+	bootm start ${fileaddr};bootm loados ${fileaddr};booti 0x80200000 0x86100000:${filesize} 0x86000000
+
+When you see the `buildroot login:` message, then congratulations, the launch was successful
+
+	buildroot login:root
+	Password: starfive
 
-If switch to `DRM` display framework (`drm to mipi` pipeline):
 
-```
-based on the above drm to hdmi pipeline config, enable the below kernel config:
-CONFIG_PHY_M31_DPHY_RX0
-CONFIG_DRM_STARFIVE_MIPI_DSI
-```
 
 ## Build SD Card Booting Image
 
-If want to generate the sd card booting image, please modify the following file.
+If you don't already use a local tftp server, then you probably want to make the sdcard target; the default size is 16 GBs. NOTE THIS WILL DESTROY ALL EXISTING DATA on the target sdcard; please modify the following file.
 
 conf/beaglev_defconfig_513:
 
@@ -139,41 +161,3 @@ make -jx
 make buildroot_rootfs -jx
 sudo make DISK=/dev/sdX format-nvdla-rootfs && sync
 ```
-
-## Running on Starlight Board ##
-
-After the Starlight is properly connected to the serial port cable, network cable and power cord turn on the power from the wall power socket to power on the Starlight and you will see the startup information as follows:
-
-	bootloader version: 210209-4547a8d
-	ddr 0x00000000, 1M test
-	ddr 0x00100000, 2M test
-	DDR clk 2133M,Version: 210302-5aea32f
-	2
-Press any key as soon as it starts up to enter the **upgrade menu**. In this menu, you can update uboot
-
-	bootloader version: 210209-4547a8d
-	ddr 0x00000000, 1M test
-	ddr 0x00100000, 2M test
-	DDR clk 2133M,Version: 210302-5aea32f
-	0
-	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-	xxxxxxxxxxxFLASH PROGRAMMINGxxxxxxxxx
-	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-	
-	0:update boot
-	1: quit
-	select the function:
-
-Type **"0"**  to update the uboot file fw_payload.bin.out via Xmodem mode,
-and then Type **"1"** to exit Flash Programming.
-
-After you will see the information `StarFive #`,select the installation path
-and install image.fit through TFTP:
-
-	setenv fileaddr a0000000; setenv serverip 192.168.xxx.xxx;tftpboot ${fileaddr}  ${serverip}:image.fit;bootm start ${fileaddr};bootm loados ${fileaddr};booti 0x80200000 0x86100000:${filesize} 0x86000000
-
-When you see the `buildroot login:` message, then congratulations, the launch was successful
-
-	buildroot login:root
-	Password: starfive
-