Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531092 - dev-util/sunxi-tools-0.1 - tools to help hacking Allwinner Ax devices
Summary: dev-util/sunxi-tools-0.1 - tools to help hacking Allwinner Ax devices
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://linux-sunxi.org/Main_Page
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2014-11-29 07:40 UTC by Alexey Edelev
Modified: 2020-01-08 11:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sunxi-tools 0.1 ebuild (sunxi-tools-0.1.ebuild,1.72 KB, text/plain)
2014-11-29 07:40 UTC, Alexey Edelev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Edelev 2014-11-29 07:40:27 UTC
Created attachment 390550 [details]
sunxi-tools 0.1 ebuild

Hi!

Please find attached sunxi-tools-0.1.ebuild. Sunxi tools help hacking Allwinner A10 devices, contains following binaries:
fexc:
	`.fex` file (de)compiler

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

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

bin2fex:
	compatibility shortcut to call `fexc` to decompile an script.bin
	blob back into `.fex` format used by allwinner's SDK to configure
	the boards.

fex2bin:
	compatiblity shortcut to call `fexc` to compile a `.fex` file into
	the binary form used by the sun4i kernel.

fel:
	script interface for talking to the FEL USB handler built in to
	th CPU. You activate FEL mode by pushing the usboot/recovery
	button at poweron.

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.
pio:
	Manipulate PIO register dumps


I will maintain this ebuild.
Regards,
Alexey
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-29 11:45:52 UTC
Why not version 1.2?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-29 11:51:08 UTC
Comment on attachment 390550 [details]
sunxi-tools 0.1 ebuild

[Missing header]

>EAPI=5
>
>inherit toolchain-funcs
>
>SLOT="0"
>SRC_URI="http://openautomotive.semlanik.org/misc/sunxi-tools-0.1.tar.bz2"

That doesn't look like what you get from the HOMEPAGE at all.

Also, don't hard-code the package name and version:

sunxi-tools-0.1 => ${P} (short for ${PN}-${PV})

>KEYWORDS="~amd64 ~x86"
>
>IUSE="debug"
>
>DEPEND="dev-libs/libusb"
>RDEPEND="${RDEPEND}"
>
>RESTRICT="test strip"
>DESCRIPTION="Tools to help hacking Allwinner AX devices"
>HOMEPAGE="https://github.com/linux-sunxi/sunxi-tools"
>LICENCE="GPL-2+"
>
>check_debug(){
>    if use debug; then
>      echo "DEBUG=1"
>    fi

$(usex debug 'DEBUG=1' '') (see below)

>src_configure(){
>    #Do nothing
>    return

What changes if you run the default src_configure()? If nothing, then why define src_configure() at all?

>src_compile(){
>    emake tools CHOST="" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" $(check_debug) || die

$(check_debug) => $(usex debug 'DEBUG=1' '')

emake does die() on its own.

>}
>
>src_install(){
>    emake tools-install PREFIX=${D}/usr || die

emake does die() on its own.

>pkg_postinst(){
>    einfo "Installed applications:
>    fexc:
>	'.fex' file compiler/decompiler
>	Usage: ./fexc [-vq] [-I <infmt>] [-O <outfmt>] [<input> [<output>]]
>	infmt:  fex, bin  (default:fex)
>	outfmt: fex, bin  (default:bin)
>    bin2fex:
>	compatibility shortcut to call 'fexc' to decompile an script.bin
>	blob back into '.fex' format used by allwinner's SDK to configure
>	the boards.
>    fex2bin:
>	compatiblity shortcut to call 'fexc' to compile a '.fex' file into
>	the binary form used by the sun4i kernel.
>    fel:
>	script interface for talking to the FEL USB handler built in to
>	th CPU. You activate FEL mode by pushing the usboot/recovery
>	button at poweron.
>    nand-part:
>	Tool for manipulating Allwinner NAND partition tables
>    pio:
>	Manipulate PIO register dumps
>    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.

That looks like it should go into a README.
Comment 3 Alexey Edelev 2014-11-29 12:34:53 UTC
(In reply to Jeroen Roovers from comment #1)
> Why not version 1.2?

Hope it was sarcasm J. Anyway, there is no versioning for sunxi-tools at all. Probably it's better to use 9999 and git source instead. Anyway I would like to make it 0.1 if you don't mind.

Regards,
Alexey.
Comment 4 Alexey Edelev 2014-11-29 12:38:33 UTC
(In reply to Alexey Edelev from comment #3)
> (In reply to Jeroen Roovers from comment #1)
> > Why not version 1.2?
> 
> Hope it was sarcasm J. Anyway, there is no versioning for sunxi-tools at
> all. Probably it's better to use 9999 and git source instead. Anyway I would
> like to make it 0.1 if you don't mind.
> 
> Regards,
> Alexey.

OOPS, I found, that maintainers have versioning. Sorry will rework with all comments. Thank you!

Regards,
Alexey.