andreiw / uboot_jh7100

Rebase / updates of https://github.com/starfive-tech/u-boot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

U-Boot for StarFive JH7100-based boards

This is a private rebase of https://github.com/starfive-tech/u-boot on top of latest U-Boot, with further fixes/work.

Tested on the Starlight aka BeagleV.

See https://www.youtube.com/watch?v=_gZ98c7Nf_k for a demo.

screenshot of U-Boot on BeagleV with USB and HDMI video

Why

Maybe you want:

  • Newer U-Boot code than 2022.01-rc4?
  • Working ethernet?
  • Working i2c?
  • USB3 boot?
  • USB keyboard?
  • HDMI video? (1080p, 1024x768)
  • A clkgen driver?
  • EFI console fixes for vidconsole?
  • All known fixes pulled from https://github.com/starfive-tech pull requests and branches.

Building

export BUILD_PLATFORM=starlight # starlight for BeagleV, visionfive for VisionFive V1
pushd uboot_jh7100
make starfive_jh7100_${BUILD_PLATFORM}_smode_defconfig ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu-
make u-boot.bin u-boot.dtb ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu-
popd
pushd opensbi
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- PLATFORM=generic FW_PAYLOAD_PATH=../uboot_jh7100/u-boot.bin FW_FDT_PATH=../uboot_jh7100/u-boot.dtb
cp build/platform/generic/firmware/fw_payload.bin ../fw_payload.bin
popd
 ./fsz.sh fw_payload.bin fw_payload.bin.out

Flashing

Follow https://starfivetech.com/uploads/VisionFive%20Single%20Board%20Computer%20Quick%20Start%20Guide.pdf

Now what?

On first boot, interrupt the booting by pressing 'v', and:

# env default -a
# saveenv

To boot the live image Ubuntu via USB3, you'll need to somehow update the initramfs. This is easiest to do if you first boot the same system from SD card, chroot and update-initramfs.

The live installer image does not work at the moment.

About

Rebase / updates of https://github.com/starfive-tech/u-boot


Languages

Language:C 94.8%Language:Python 2.7%Language:Assembly 0.9%Language:Makefile 0.6%Language:Perl 0.4%Language:Shell 0.2%Language:ASL 0.2%Language:C++ 0.1%Language:Yacc 0.0%Language:SmPL 0.0%Language:Lex 0.0%Language:Smarty 0.0%Language:Dockerfile 0.0%Language:POV-Ray SDL 0.0%Language:Batchfile 0.0%Language:Roff 0.0%Language:GDB 0.0%Language:Awk 0.0%Language:sed 0.0%Language:CSS 0.0%Language:Tcl 0.0%