README.md 2.5 KB
Newer Older
1
2
3
4
# sunxi-tools
[![License](http://img.shields.io/badge/License-GPL-green.svg)][COPYING]
[![Build Status](https://travis-ci.org/linux-sunxi/sunxi-tools.svg?branch=master)](https://travis-ci.org/linux-sunxi/sunxi-tools)

5
6
Copyright (C) 2012  Alejandro Mery <amery@geeks.cl>

Alejandro Mery's avatar
Alejandro Mery committed
7
8
9
Tools to help hacking Allwinner A10 (aka sun4i) based devices and possibly
it's successors, that's why the 'x' in the package name.

10
<pre>
11
sunxi-fexc:
12
13
	`.fex` file (de)compiler

14
	Usage: ./sunxi-fexc [-vq] [-I &lt;infmt>] [-O &lt;outfmt>] [&lt;input> [&lt;output>]]
15
16
17
18

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

Alejandro Mery's avatar
Alejandro Mery committed
19
bin2fex:
20
	compatibility shortcut to call `sunxi-fexc` to decompile a script.bin
21
22
	blob back into `.fex` format used by allwinner's SDK to configure
	the boards.
Alejandro Mery's avatar
Alejandro Mery committed
23
24

fex2bin:
25
26
	compatiblity shortcut to call `sunxi-fexc` to compile a `.fex` file
	into the binary form used by the sun4i kernel.
Alejandro Mery's avatar
Alejandro Mery committed
27

28
sunxi-fel:
29
30
	script interface for talking to the FEL USB handler built in to
	th CPU. You activate FEL mode by pushing the usboot/recovery
31
32
	button at poweron. See http://linux-sunxi.org/FEL/USBBoot for
	a detailed usage guide.
33

34
35
36
fel-gpio:
	Simple wrapper around fel-pio and fel to allos GPIO manipulations
	via FEL
37
	
38
39
40
fel-sdboot:
	ARM native sdcard bootloader forcing the device into FEL mode

41
fel-pio:
42
43
	ARM native helper for fel-gpio

44
sunxi-pio:
45
46
	Manipulate PIO register dumps

47
sunxi-nand-part:
48
49
50
51
52
53
	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.

54
sunxi-bootinfo:
55
	Dump information from Allwinner boot files (boot0/boot1)
56
57
	--type=sd	include SD boot info
	--type=nand	include NAND boot info (not implemented)
58

59
60
61
62
63
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.

64
sunxi-meminfo:
65
66
67
	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:
68
		make CROSS_COMPILE=arm-linux-gnueabihf- sunxi-meminfo
69

70
sunxi-script_extractor:
71
72
	A simple tool, which can be executed on a rooted Android device
	to dump the script.bin blob from RAM via reading /dev/mem.
73
74
	To build this, get a toolchain, and run:
		make CROSS_COMPILE=arm-linux-gnueabihf- sunxi-script_extractor
75
</pre>
76

Alejandro Mery's avatar
Alejandro Mery committed
77
This software is licensed under the terms of GPLv2+ as defined by the
78
79
80
Free Software Foundation, details can be read in the [COPYING][] file.

[copying]: COPYING