3 spl_tool is a jh7110 signature tool used to generate spl header information and generate u-boot-spl.bin.normal.out.
5 spl_tool can also fix the issue of emmc booting.
9 Install required additional packages:
12 $ sudo apt-get install gcc make git
33 -c, --creat-splhdr creat spl hdr
34 -i, --fix-imghdr fixed img hdr for emmc boot.
35 -a, --spl-bak-addr set backup SPL addr(default: 0x200000)
36 -v, --version set version (default: 0x01010101)
37 -f, --file input file name(spl/img)
38 -h, --help show this information
41 Generate uboot-spl.bin.normal.out
44 $./spl_tool -c -f $(Uboot_PATH)/spl/u-boot-spl.bin
45 ubsplhdr.sofs:0x240, ubsplhdr.bofs:0x200000, ubsplhdr.vers:0x1010101 name:$(Uboot_PATH)/spl/u-boot-spl.bin
46 SPL written to $(Uboot_PATH)/spl/u-boot-spl.bin.normal.out successfully.
49 Fix the emmc boot issue
52 $ ./spl_tool -i -f sdcard.img
53 IMG sdcard.img fixed hdr successfully.