Skip to content
tools to help hacking Allwinner A10 devices
C Assembly Makefile Shell C++
Latest commit aff86a5 May 28, 2016 @n1tehawk n1tehawk Merge pull request #52 from n1tehawk/20165227_issue48
fel-sdboot: Fix header corruption workaround
Failed to load latest commit information.
bin fel-sdboot: Fix header corruption workaround, implement in assembly May 28, 2016
include Move list declarations from common.h into a separate list.h May 4, 2016
.gitignore Makefile: Prefix most tools with sunxi- Oct 23, 2015
.travis.yml travis-ci: Be more strict on build checks May 4, 2016
COPYING Relicensed as GPLv2+ Jun 15, 2012
Makefile fel-sdboot: Fix header corruption workaround, implement in assembly May 28, 2016
README.md README: Improve on (markdown) formatting May 4, 2016
adb-devprobe.sh Add copyright headers to various files. Jul 1, 2014
boot_head.S boot_head, a little boot header to work around broken bootloaders Oct 11, 2012
boot_head.lds Fix compatibility with Linaro toolchains for building ARM binaries May 6, 2016
bootinfo.c Get rid of two "unused parameter" warnings May 4, 2016
common.h Move list declarations from common.h into a separate list.h May 4, 2016
fel-copy.c fel: Correct fel write operation on files > 8K Aug 10, 2012
fel-gpio Makefile: Prefix most tools with sunxi- Oct 23, 2015
fel-pio.c fel-pio.bin: Add a jump table in the beginning to ease usage Sep 4, 2012
fel-pio.lds Fix compatibility with Linaro toolchains for building ARM binaries May 6, 2016
fel-sdboot.S fel-sdboot: Fix header corruption workaround, implement in assembly May 28, 2016
fel-sdboot.lds Fix compatibility with Linaro toolchains for building ARM binaries May 6, 2016
fel-to-spl-thunk.S fel: Make the SPL load address configurable instead of hardcoded 0x0 Sep 8, 2015
fel-to-spl-thunk.h fel: Make the SPL load address configurable instead of hardcoded 0x0 Sep 8, 2015
fel.c fel: Add fel spl command support for Allwinner A64 May 12, 2016
fexc.c fexc: Clarify intent of opt_string adjustment May 4, 2016
fexc.h fexc: add `uboot` output Sep 29, 2012
jtag-loop.S jtag-loop: correct build instructions Aug 15, 2012
jtag-loop.c jtag-loop: correct build instructions Aug 15, 2012
jtag-loop.lds Fix compatibility with Linaro toolchains for building ARM binaries May 6, 2016
meminfo.c meminfo: add sun6i register printing Sep 6, 2014
nand-common.h nand-part: added/updated open source copyright headers Sep 19, 2013
nand-part-a10.h nand-part: create one nand-part program to handle both A10 and A20 Sep 19, 2013
nand-part-a20.h nand-part: create one nand-part program to handle both A10 and A20 Sep 19, 2013
nand-part-main.c nand-part: fixed error in -f usage message Sep 19, 2013
nand-part.c nand-part: Avoid Linux-only ioctl() on other platforms May 3, 2016
phoenix_info.c phoenix_info: avoid -Wsometimes-uninitialized compiler warning May 4, 2016
pio.c Get rid of two "unused parameter" warnings May 4, 2016
progress.c fel: support FEL progress gauge via dialog utility Dec 16, 2015
progress.h fel: support FEL progress gauge via dialog utility Dec 16, 2015
script.c fexc: script: add script_find_entry() helper Oct 1, 2012
script.h Move list declarations from common.h into a separate list.h May 4, 2016
script_bin.c fexc: Regroup code in script_decompile_bin() Apr 20, 2016
script_bin.h fexc: Improve script_decompile_bin() safeguards Apr 20, 2016
script_extractor.c script_extractor: Remove unnecessary size argument Dec 8, 2015
script_fex.c fexc: accept negative values in .fex files May 25, 2013
script_fex.h Relicensed as GPLv2+ Jun 15, 2012
script_uboot.c fexc: uboot: update code output Jan 28, 2014
script_uboot.h fexc: add `uboot` output Sep 29, 2012

README.md

sunxi-tools

License Build Status

Copyright (C) 2012 Alejandro Mery amery@geeks.cl

Tools to help hacking Allwinner A10 (aka sun4i) based devices and possibly it's successors, that's why the 'x' in the package name.

sunxi-fexc

.fex file (de)compiler

Usage: ./sunxi-fexc [-vq] [-I <infmt>] [-O <outfmt>] [<input> [<output>]]

infmt:  fex, bin  (default:fex)
outfmt: fex, bin  (default:bin)

bin2fex

compatibility shortcut to call sunxi-fexc to decompile a script.bin blob back into .fex format used by Allwinner's SDK to configure the boards.

fex2bin

compatiblity shortcut to call sunxi-fexc to compile a .fex file into the binary form used by the legacy 3.4 kernel ("linux‑sunxi").

sunxi-fel

script interface for talking to the FEL USB handler built in to the CPU. You activate FEL mode by pushing the uboot / recovery button at poweron. See http://linux-sunxi.org/FEL/USBBoot for a detailed usage guide.

fel-gpio

Simple wrapper (script) around fel-pio and sunxi-fel to allow GPIO manipulations via FEL

fel-sdboot

ARM native sdcard bootloader forcing the device into FEL mode

fel-pio

ARM native helper (binary) for fel-gpio

sunxi-pio

Manipulate PIO register dumps

sunxi-nand-part

Tool for manipulating Allwinner NAND partition tables

jtag-loop.sunxi

ARM native boot helper to force the SD port into JTAG and then stop, to ease debugging of bootloaders.

sunxi-bootinfo

Dump information from Allwinner boot files (boot0 / boot1)

--type=sd   include SD boot info
--type=nand include NAND boot info (not implemented)

phoenix_info

gives information about a phoenix image created by the phoenixcard utility and optionally extracts the embedded boot code & firmware file from their hidden partitions.

sunxi-meminfo

Tool for reading DRAM settings from registers. Compiled as a static binary for use on android and other OSes. To build this, get a toolchain and run:

make CROSS_COMPILE=arm-linux-gnueabihf- sunxi-meminfo

sunxi-script_extractor

A simple tool, which can be executed on a rooted Android device to dump the script.bin blob from RAM via reading /dev/mem. To build this, get a toolchain and run:

make CROSS_COMPILE=arm-linux-gnueabihf- sunxi-script_extractor

License

This software is licensed under the terms of GPLv2+ as defined by the Free Software Foundation, details can be read in the COPYING file.

Something went wrong with that request. Please try again.