35 Commits

Author SHA1 Message Date
Ian Campbell
f1cb74d828 Makefile: Prefix most tools with sunxi-
Several of the tools here are too generic and/or short for distro packaging
purposes (which like to try and avoid naming clashes in $PATH). Prefix the
following with "sunxi-":
  - fexc
  - bootinfo
  - fel
  - pio
  - meminfo

Do not prefix any of the fel "payloads" or raw binaries since they would not
normally be installed in $PATH.

Do not prefix "phoenix_info", since "phoenix" already seems like an appropriate
prefix for this particular tool.

Update in-tree callers, README and .gitignore accordingly.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
2015-10-23 23:20:41 +03:00
Siarhei Siamashka
a69bbe9693 Makefile: 'fel' tool depends on fel-to-spl-thunk.h
Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
2015-09-08 13:44:29 +03:00
Luc Verhaegen
d4e34bcb5a meminfo: rename and add to build
* rename a10-meminfo to meminfo
* add static build to Makefile
* fix operand warning
* built binary verified on proper linux and android

Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-08-14 22:55:13 +02:00
Ian Campbell
227c7e031f Add copyright headers to various files.
I'd like to package sunxi-tools for Debian and therefore it is important for
the licensing information to be complete/accurate. I believe the intention was
for everything here to be GPL2+ by default, since that is the license on every
file which has one and COPYING contains GPL2.

Early on the license applied to this repo was GPLv3 however this was changed to
GPL2+ by Alejandro in 79ea14d4e050 at which point he had been the only
contributor.

This patch adds the standard GPL2+ stanza used already in sunxi-tools.git or
the MIT license stanza when requested by the copyright holder to various files
which were missing one as follows:

adb-devprobe.sh
fel-gpio
    According to git all of these were written by Henrik. Copyright years
    according to git. Henrik requested that these be put under an MIT license,
    so that is what has been done.

boot_head.lds
fel-pio.lds
fel-sdboot.lds
jtag-loop.lds
    According to git all of these were written by Henrik. Copyright years
    according to git. According to Henrik "These linker scripts are all GPLv2+
    as the C / ASM sources they refer to".

include/endian_compat.h
    The content of this file was originally added to fel.c (commit
    c71ff92c02d3), which had a GPL2+ stanza at the time, by Eric Molitor and later
    those lines were moved by Alejandro (commit bcde0fc72170) into this file.
    I originally added GPL2+ from fel.c and added Eric's copyright with the
    correct year according to git but Eric said "Ack but also would prefer
    MIT/Dual :)", so it has now been changed to MIT.

include/types.h:
    Henrik originally added some of these lines to bootinfo.c, along with a
    GPL2+ stanza, in the original version (commit c26e5ff80af6). Later on
    Alejandro moved them into this file (commit 329a13ed75e5) and added more.
    I've copied the stanza from bootinfo.c and added both copyrights with the
    years according to git. Authors:
      Henrik, who says "OK".
      Alejandro Mery

Makefile:
    GPL2+ with copyrights and years according to git. Authors are:
      Alejandro Mery
      Henrik Nordstrom, who says "Yes"
      Pat Wood, who says "Fine with me"

usb-boot:
    Henrik is the primary author, added MIT license on Henrik's request with
    his copyright and years according to git. Authors are:
      Henrik Nordstrom, who says "Yes, that too should be MIT"
      Alejandro Mery (typo fix)
      Michal Suchanek (typo fix)

Everyone affected by the above is CCd.

This probably seems pretty obvious to most people, sorry for being so pedantic
about it. It will save hassel when it comes to getting it into Debian though.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Cc: Henrik Nordstrom <henrik@henriknordstrom.net>
Cc: Eric Molitor <eric@molitor.org>
Cc: Alejandro Mery <amery@geeks.cl>
Cc: Pat Wood <Pat.Wood@efi.com>
Cc: Michal Suchanek <hramrach@gmail.com>
---
v2: Gathered feedback from the authors
 - Pat said "Fine with me"
 - Henrik asked that adb-devprobe.sh, fel-gpio and usb-boot be MIT, acked
   *.lds, types.h and Makefile
 - Explicitly listed authors of Makefile and usb-boot
 - Michal Suchanek make a typo fix to usb-boot but wasn't CCd, sorry.
 - Reworded commit message due to some bits now being MIT on request of the
   author.
2014-07-01 08:04:19 +01:00
Patrick Wood
5d0ee5037b nand-part: create one nand-part program to handle both A10 and A20
Build one nand-part program to handle both A10 and A20 mbr header formats.
Changed -f option to take an "a10" or "a20" argument to specify which mbr
format to force.

Signed-off-by: Patrick Wood <patrickhwood@gmail.com>
2013-09-19 02:24:25 +02:00
Pat Wood
dd94a2f117 build both A10 and A20 nand-part executables
allow setting of partition 1 size/offset
if -f option is used, force writing of MBR header, even if CRC or
header magic/version are incorrect (for recovery only)
2013-07-23 00:42:19 -04:00
Henrik Nordstrom
1d8769b44b Rename fel-boot to fel-sdboot to avoid confusion with new fel-boot FEL bootloader 2013-05-16 01:53:10 +02:00
Henrik Nordstrom
22c3e2768c Merge branch 'master' of github.com:amery/sunxi-tools 2012-10-11 17:16:17 +02:00
Henrik Nordstrom
985cea0433 Boot header to work around broken bootloaders 2012-10-11 17:04:14 +02:00
Alejandro Mery
987a169b75 fexc: add uboot output 2012-09-29 18:42:17 +02:00
Henrik Nordstrom
bcdc4cd7ec cleanup 2012-09-04 21:55:04 +02:00
Henrik Nordstrom
61abcd092a fel-boot: Add Makefile recipe 2012-09-04 21:52:56 +02:00
Henrik Nordstrom
71295c2b8a jtag-loop: Add Makefile recipe 2012-09-04 21:50:32 +02:00
Henrik Nordstrom
be2a89d975 fel-pio.bin: Add a jump table in the beginning to ease usage 2012-09-04 21:36:45 +02:00
Alejandro Mery
d382cfe3cb build: pass -Iinclude/ to start adding structure 2012-08-07 00:05:56 +00:00
Alejandro Mery
c7ea2b6e08 nand-part: rename mbr to a more meaningful name 2012-08-06 23:56:02 +00:00
Alejandro Mery
3fc53401f3 build: add mbr to Makefile 2012-08-07 00:38:23 +02:00
Alejandro Mery
0d2d96c484 pio: add pio print < PIO to turn a PIO dump into human readable 2012-07-31 16:01:46 +02:00
Alejandro Mery
3affc3bd5f build: fix make .gitignore 2012-07-31 16:00:34 +02:00
Henrik Nordstrom
c26e5ff80a bootinfo for dumping information from boot0/boot1 headers 2012-07-13 03:38:53 +02:00
Henrik Nordstrom
75005abcff phoenix_info dumping info on phoenix sdcard image parts 2012-07-02 08:54:42 +02:00
Henrik Nordstrom
e7a7c8554c Import FEL application for talking to FEL mode over USB 2012-06-15 22:45:18 +02:00
Alejandro Mery
650b1dfa79 script_fex: move parser from fex2bin.c and make fexc use it 2012-05-11 10:50:41 +02:00
Alejandro Mery
02a8f0abd2 fexc: use script_bin.o 2012-05-11 10:34:51 +02:00
Alejandro Mery
a2d5f0a42e fexc: use script.o 2012-05-11 09:22:47 +02:00
Alejandro Mery
2ed5673a9a build: making bin2fex and fex2bin mere symlinks to fexc 2012-05-11 00:51:54 +02:00
Alejandro Mery
90e67cba62 fexc: prepare for multitool support and validate input and output format options 2012-05-10 12:05:33 +02:00
Alejandro Mery
020f001c20 fexc: add do-nothing fexc tool 2012-05-10 09:55:10 +02:00
Alejandro Mery
352188a376 renamed sunxi-tools.h to common.h 2012-05-10 09:33:41 +02:00
Alejandro Mery
049f0daf13 fex2bin: refactored generate_bin() as calculate_bin_size() into script_bin.c 2012-05-07 09:39:02 +02:00
Alejandro Mery
25e78f0c2a script: moved script_bin_* structs from bin2fex.h to script.h 2012-05-06 21:57:07 +02:00
Alejandro Mery
38eadd514a fex2bin: allocate and delete an script tree 2012-05-04 11:32:40 +02:00
Alejandro Mery
fd07c54402 build: add .h and Makefile as dependencies of the tools 2012-05-04 00:48:46 +02:00
Alejandro Mery
81fa01b724 build: compile with -g and add .h files as dependencies 2012-05-03 14:42:59 +02:00
Alejandro Mery
290e0adf62 Initial structure 2012-05-02 09:35:52 +02:00