No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

What is this?

These are a set of tools I wrote while hacking the Orange Pi 2G-IOT to run a custom linux distribution. There is a detailed guide/tutorial at

How do I use...

Run for help

This script analyzes an Android image used by the NAND update tool. If you supply a second argument, it extracts the file segments there.

Example Usage: ~/Downloads/OrangePi_2G-IOT_Nand_Startup_V1.3.bin /tmp/extracted

Run --help for help

This is a NAND flasher. It loads two extra bootloader stages (PDL1 and PDL2) and then tries to flash the given partitions using the given files. The partition table needs to be baked into PDL2. The partition loading code in PDL2 needs to be patched as well (see issue #1); if it is not patched you need to either format the flash using --format-flash or reboot the device once after loading PDL2.

I have a fork of U-Boot-RDA8810 suitable for creating a PDL2 as well as a NAND bootloader.

Example Usage: -p /dev/ttyACM0 --format-flash --pdl1 pdl1.bin --pdl2 pdl2.bin bootloader:u-boot.rda nandroot:ubi.img