[Toybox] Toybox on Google play. Was: Fw: [Aboriginal] Aboriginal Linux on Google play.
Rob Landley
rob at landley.net
Wed Jun 11 04:22:41 PDT 2014
On 06/10/14 10:44, David Seikel wrote:
> Now that the name and logo are sorted, time to write code. I'm keeping
> the source here -
>
> https://github.com/onefang/toyboxInstaller
>
> I intend to take what ever Android tells me is the CPU, tack that onto
> the end of
> http://landley.net/code/toybox/downloads/binaries/latest/toybox- and
> use that as the binary to install. First problem, I noticed that you
> don't always build an armv7l binary, and naturally enough, that's
> exactly what my phone reports as CPU. Current binaries/latest is
> missing an armv7l binary.
You should be able to use armv5l, it's like using original pentium code
on a pentium III. It's backwards compatable, not quite the optimal
-mtune but eh. (armv4 to armv5 was a 25% speedup using the new
instructions instead of the older ones. armv6 was mostly about adding
SMP support. armv7 was another speedup but I haven't benched it, and it
runs the old code.)
The problem is the last gplv2 releases of binutils and gcc were slightly
before armv7 support was added. You can ./configure the old gcc/binutils
to build for armv7l and it won't complain, but doing so is a NOP and
when the kernel tries to build inline assembly using the new
instructions the toolchain doesn't recognize them and barfs.
I fished the last gplv2 commit of binutils out of source control (right
before the new license files went in), and fixed it up a bit, and that
has armv7 support in it (and a new build flag musl needed).
I've looked at doing the same for gcc a while back
(http://landley.net/notes-2012.html#12-12-2012) but it's got side
packages (MPFR and GMP) that I'd have to glue back on, which is
nontrivial. (It's on the todo list...)
(Yeah, that link is from 2012. Time flies when $DAYJOB eats it...)
What I really want to do is switch toolchains to ellcc.org or similar,
but last I checked it _really_ wasn't ready for primetime:
http://landley.net/notes-2014.html#20-01-2014
http://landley.net/notes-2014.html#08-03-2014
Rob
1402485761.0
More information about the Toybox
mailing list