Bootloader recovery and updater tool for StarFive JH7100 SoCs.
-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.
gcc -o jh7100-recover jh7100-recover.c
- Update second stage bootloader.
$ ./jh7100-recover -D /dev/ttyUSB0 \
-r jh7100_recovery_boot.bin \
-b bootloader-BEAGLEV-buildroot.bin.out
- Update DRAM initialization firmware.
$ ./jh7100-recover -D /dev/ttyUSB0 \
-r jh7100_recovery_boot.bin \
-d ddrinit-2133-buildroot.bin.out
- Update both second stage bootloader and DRAM initialization firmware.
$ ./jh7100-recover -D /dev/ttyUSB0 \
-r jh7100_recovery_boot.bin \
-b bootloader-BEAGLEV-buildroot.bin.out \
-d ddrinit-2133-buildroot.bin.out
-
A very nice tutorial by Lakshantha Dissanayake from Seeed.
Update bootloader, ddr init boot, u-boot and recover bootloader.