Rich Freeman <ri...@gentoo.org> writes:

> Well, that would be a different approach, but I imagine you could
> build for prefix-style install using something like Catalyst and
> cross-compile.  I have no idea how much tweaking that would require.
> The main issue is that unless you use qemu you're only going to get
> one pass.  If you are going to use qemu then you could just build it
> all in an emulator and copy it over.

qemu-user with binfmt on a powerful workstation was my option, until I
actually tried it out (around 2013).  It was much slower (5x? 10x?) than
running native on a phone.  Not sure if the emulation of qemu-user
significantly improved over the years.

> You definitely could create a squashfs of /usr/portage and then just
> mount that on your phone.  You could also nfs mount it I suppose, or
> use something like iSCSI (you might need kernel modules for both).  Or
> use something like sshfs.  I've also used a compressed ram filesystem
> for this purpose in the past (basically like a tmpfs only compressed,
> often used as a high-priority swap).
>
> And of course if you can spare the RAM you can build in tmpfs.
>
> So, there are definitely some "easy" options though some of them will
> cost performance.

Indeed.  Nice hints.  Actually we have zram documented in our wiki[1].

> Another option might be USB OTG.  I think the 6P supports that with
> the right drivers.  As long as it isn't noexec I'd think you could
> install Prefix on that.

Nexus should have no problem.  The only paranoid vendor was Samsung
with a subset of their products.

Benda

1. 
https://wiki.gentoo.org/wiki/Asus_Transformer_Infinity_%28TF700T%29/Install#RAM_and_SWAP_considerations

Reply via email to