tekkamanninja / JH71xx-tools

Bootloader recovery and updater tool for StarFive JH17x0 SoCs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JH71xx-tools

Bootloader recovery and updater tool for StarFive JH7100 SoCs.

Screenshot

Command Line Parameters

-D, --device <tty device>      : Serial tty device path.
-r, --recovery <filename>      : Bootloader recovery firmware.
-b, --bootloader <filename>    : Second stage bootloader.
-d, --ddrinit <filename>       : DRAM initialization firmware.
-h, --help                     : Show this help.

Build

gcc -o jh7100-recover jh7100-recover.c

Examples

  1. Update second stage bootloader.
$ ./jh7100-recover -D /dev/ttyUSB0 \
-r vic_second_boot.bin \
-b bootloader-BEAGLEV-buildroot.bin.out
  1. Update DRAM initialization firmware.
$ ./jh7100-recover -D /dev/ttyUSB0 \
-r vic_second_boot.bin \
-d ddrinit-2133-buildroot.bin.out
  1. Update both second stage bootloader and DRAM initialization firmware.
$ ./jh7100-recover -D /dev/ttyUSB0 \
-r vic_second_boot.bin \
-b bootloader-BEAGLEV-buildroot.bin.out \
-d ddrinit-2133-buildroot.bin.out

Tutorial

  1. A very nice tutorial by Lakshantha Dissanayake from Seeed.

    Update bootloader, ddr init boot, u-boot and recover bootloader.

About

Bootloader recovery and updater tool for StarFive JH17x0 SoCs.

License:MIT License


Languages

Language:C 90.1%Language:Shell 7.7%Language:Makefile 2.2%