Skip to content

Commit

Permalink
Update u-boot submodule branch for initial tag
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelZhuxx authored Oct 16, 2021
1 parent cc02d04 commit 85e2f9f
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ 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 starlight_multimedia && cd ..
$ cd HiFive_U-Boot && git checkout Fedora_JH7100_upstream_devel && cd ..
$ cd HiFive_U-Boot && git checkout JH7100_Multimedia_V0.1.0 && cd ..
$ cd linux && git checkout beaglev-5.13.y_multimedia && cd ..
$ cd opensbi && git checkout master && cd ..

Expand Down Expand Up @@ -73,6 +73,46 @@ make buildroot_initramfs-menuconfig # initramfs menuconfig
make buildroot_rootfs-menuconfig # rootfs menuconfig
```

## Build TF Card Booting Image

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:

```
change
CONFIG_CMDLINE="earlyprintk console=tty1 console=ttyS0,115200 debug rootwait stmmaceth=chain_mode:1"
to
CONFIG_CMDLINE="earlyprintk console=tty1 console=ttyS0,115200 debug rootwait stmmaceth=chain_mode:1 root=/dev/mmcblk0p3"
```

HiFive_U-Boot/configs/starfive_jh7100_starlight_smode_defconfig:

```
change
CONFIG_USE_BOOTCOMMAND is not set
to
CONFIG_USE_BOOTCOMMAND=y
change
#CONFIG_BOOTCOMMAND="run mmcsetup; run fdtsetup; run fatenv; echo 'running boot2...'; run boot2"
to
CONFIG_BOOTCOMMAND="run mmcsetup; run fdtsetup; run fatenv; echo 'running boot2...'; run boot2"
```

Please insert the TF card and run command `df -h` to check the device name `/dev/sdXX`, then run command `umount /dev/sdXX`", then run the following instructions to build TF card image:

```
make buildroot_rootfs -jx
make -jx
make vpubuild_rootfs
make clean
make -jx
make buildroot_rootfs -jx
make DISK=/dev/sdX format-nvdla-rootfs && sync
```
Note: please also do not forget to update the `fw_payload.bin.out` which is built by this step.


## Running on Starlight Board ##

Expand All @@ -91,17 +131,17 @@ Press any key as soon as it starts up to enter the **upgrade menu**. In this men
DDR clk 2133M,Version: 210302-5aea32f
0
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxFLASH PROGRAMMINGxxxxxxxxx
xxxxxxxxxxxFLASH PROGRAMMINGxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

0:update boot
1: quit
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
After that, 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:
Expand All @@ -121,43 +161,3 @@ When you see the `buildroot login:` message, then congratulations, the launch wa
buildroot login:root
Password: starfive



## Build SD Card Booting Image

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:

```
change
CONFIG_CMDLINE="earlyprintk console=tty1 console=ttyS0,115200 debug rootwait stmmaceth=chain_mode:1"
to
CONFIG_CMDLINE="earlyprintk console=tty1 console=ttyS0,115200 debug rootwait stmmaceth=chain_mode:1 root=/dev/mmcblk0p3"
```

HiFive_U-Boot/configs/starfive_vic7100_evb_smode_defconfig:

```
change
CONFIG_USE_BOOTCOMMAND is not set
to
CONFIG_USE_BOOTCOMMAND=y
change
#CONFIG_BOOTCOMMAND="run mmcsetup; run fdtsetup; run fatenv; echo 'running boot2...'; run boot2"
to
CONFIG_BOOTCOMMAND="run mmcsetup; run fdtsetup; run fatenv; echo 'running boot2...'; run boot2"
```

Then insert the TF card, and run command `df -h` to check the TF card device name `/dev/sdXX`, then run command `umount /dev/sdXX`", then run the below instruction:

```
make buildroot_rootfs -jx
make -jx
make vpubuild_rootfs
sudo make clean
make -jx
make buildroot_rootfs -jx
sudo make DISK=/dev/sdX format-nvdla-rootfs && sync
```

0 comments on commit 85e2f9f

Please sign in to comment.