Remove All Ads from XDA
Honor 9 Lite

Gentoo Linux base image

1 posts
Thanks Meter: 1
By aragonkm, Junior Member on 10th June 2014, 08:02 AM
Post Reply Email Thread
Hi everyone. Sorry if this doesn't belong here. I'm not allowed to post in the developers forum and this is my first post.

I am not trying to develop *for* my Galaxy Tab Pro 10.1... I'm trying to develop *ON* it. And Android itself has a very long way to go before it is worth anything as an OS to host a server dev environment. Terminal IDE and AIDE are cute and nice starts. But I need something more. So I installed a specialized Exynos 5240 optimized Gentoo image on mine. Since uboot (or any other open source bootloader) hasn't been deemed officially workable on the Tab Pro, I skipped even going down that road and am just running a chrooted environment with an X server.

I figured I'd upload the base image - it's just essentially a stage3 but with some more mobile dev friendly USE flags.

I started with this image for my custom environment but I figured without the bloat of my particular toolset (other than doc USE flag for case when I'm writing code on a plane and need a reference, which happens often), this might be useful for others.

Disclaimer: If you haven't rooted your Android or set up a chroot somewhere, if not android, this is neither the time nor the place to learn how. But if you got that part all figured out, here's a nice stage3 gentoo image optimized specifically for cortex-a15 processors.

Note that gcc didn't implement support for the cortex-a15.cortex-a7 tuning profile until gcc 4.9 which is still not ready for production on arm so this isn't as optimized as it can be once that happens. Please feel free to borrow this image, rebuild system appropriately tuned (and updated to latest versions) and upload here. I'm sure we'd all appreciate it.


By downloading this, you agree to
dubdubdub oracle com (technetwork/java/javase/terms/license/index.html)

I know the link is painful but read the license and complain about the inconvenience to the mods ... no parenthesis

Because the image includes the Oracle JDK since IcedTea can't do hardware float ABI on ARM

DOWNLOAD LINK: dubdubdub filedropper com (gentoo-cortex-a15imgtar)

(Sorry - can't post external links so copy and paste then fix without parens)

Thank you!

P.S. here's my little hacked together chroot launch script which I can only really execute by sourcing rather than executing. It's not a prod script but it works for my case. Gentoo is the directory inside the one that contains the script and is the root of the Gentoo chroot system.

export PATH=/system/xbin:/system/bin:/system/sbin:$PATH

if [ ! -d Gentoo/usr/ ]; then
    mount -t ext4 -o noatime,rw,seclabel /dev/block/mmcblk1p2 ./Gentoo
    swapon /dev/block/mmcblk1p3

    mount -t proc proc Gentoo/proc
    busybox mount --bind /dev Gentoo/dev
    mount -t devpts devpts Gentoo/dev/pts
    ln -s /proc/self/fd Gentoo/dev/fd
    mount -t sysfs sysfs Gentoo/sys
    mount -t tmpfs tmpfs Gentoo/dev/shm
    busybox mount --bind /sys/fs/selinux Gentoo/sys/fs/selinux

    busybox mount --bind /storage/sdcard0 Gentoo/mnt/storage/sdcard0
    busybox mount --bind /storage/extSdCard Gentoo/mnt/storage/extSdCard
    busybox mount --bind /data Gentoo/mnt/data

    busybox sysctl -w net.ipv4.ip_forward=1
cp /etc/resolv.conf Gentoo/etc/resolv.conf
chmod 644 Gentoo/etc/resolv.conf
chroot Gentoo /bin/bash --login

umount Gentoo/mnt/data
umount Gentoo/mnt/storage/extSdCard
umount Gentoo/mnt/storage/sdcard0
umount Gentoo/sys/fs/selinux
umount Gentoo/sys
umount Gentoo/dev/shm
umount Gentoo/dev/pts
umount Gentoo/dev
umount Gentoo/proc
swapoff /dev/block/mmcblk1p3

umount Gentoo
The Following User Says Thank You to aragonkm For This Useful Post: [ View ] Gift aragonkm Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes