A few weeks ago, i kinda got angry at the command line parser of
sunxi-nand-part and its inability to figure out on what kind of device
it is running. What started as a simple hack to at least make it figure
out the current partition scheme of the device became a complete rewrite.
My version can create, delete, and insert partitions, it can create a
brand new MBR on the device, it can work on image file directly. It can
do silly things like creating a SUN4I partition on a SUN7I device. It
can backup or restore MBR, and it can figure out the current type of
partition.
Since that went well, i told myself, that i could probably make the
build process a little bit more user friendly, So i rewrote it to work
with autoconf/automake (forgetting that i already did that about 3 years
ago and it was already in another branch of the official sunxi-tools).
But did it more wisely this time.
Each tool is built by its own set of tools. The main builder just try to
figure out what tools can be build and chain them, It can cross-compile
almost everything (the only tool that can't be cross-compiled is
sunxi-fel, because of its dependency with libusb). It will avoid doing
silly things (like build an x86 version of sunxi-pio).
The main drawback of the new modular build system is its speed. It take
a whooping 2m7s on a Cubetruck to configure and build everything (tools
and bare metal tools).
Another thing that bugged me was the lack of man pages, so i wrote a
bunch of man pages to document a bit each tools.
To continue on what has been done, i added a sunxi- prefix to all the
tools that didn't had one. Even fex2bin and bin2fex are now prefixed
with sunxi- (sunxi-fexc now just check if bin2fex or fex2bin appear in
its executable name to select its mode, no longer an exact match).
Since theses changes ended up with something very different than the
current tools, and after a little chat with Siarhei Siamashka, i think
the best thing to do is just keep all this as a fork of sunxi-tools and
not submit many many many patches and try to have this merge with the
official sunxi-tools.
Everything is available on my fork if you want to play with it:
https://github.com/armStrapTools/sunxi-tools
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.