1. Download our Official Android App: Forums for Android!

Root New to this phone, not Android tho :P

Discussion in 'Android Devices' started by Castigate, Jul 26, 2016.

  1. Castigate

    Castigate Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    2
    Joined:
    Jul 15, 2016

    Jul 15, 2016
    2
    2
    6
    Male
    So I see we don't have a lot of dev's for this phone and I'm kinda looking to at least +1 to what we have, if anyone would be willing to upload a vm image of a dev enviroment or some tips to getting it all setup i'd appreciate it
     

    Advertisement

    mjhealy1978 and andMego like this.
  2. Brad N

    Brad N Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    80
    Joined:
    Dec 12, 2015

    Dec 12, 2015
    80
    16
    38
    I installed gentoo on an SD card (ext4, make sure to create lots of inodes in mkfs.ext4 for portage and source trees) for my volt... the stock kernel has everything it takes to run it, and you even have fuse for doing sshfs and stuff like that.

    If you want to go that route, here are the scripts I use to set up gentoo environment, and start a gentoo shell:

    /system/bin/gon:

    Code (Text):
    1. #!/system/bin/sh
    2. if [ ! -e /system/gentoo/bin ]; then
    3. echo Setting up gentoo...
    4. busybox mount /dev/block/mmcblk1p3 /system/gentoo
    5. busybox swapon /dev/block/mmcblk1p2
    6. mkdir /dev/shm
    7. busybox mount -t tmpfs shm /dev/shm
    8. busybox ln -sf /proc/self/fd/ /dev/fd
    9. busybox mount --rbind /dev /system/gentoo/dev
    10. busybox mount --rbind /proc /system/gentoo/proc
    11. busybox mount --rbind /sys /system/gentoo/sys
    12. busybox mount --rbind /data /system/gentoo/mnt/data
    13. busybox mount --bind /system /system/gentoo/mnt/system
    14. busybox mount --rbind /storage/emulated/0 /system/gentoo/mnt/intsd
    15. busybox mount --rbind /storage/external_SD /system/gentoo/mnt/sd
    16. echo Gentoo is ready... Type gen to start shell
    17. else
    18. echo Gentoo environment already set up.
    19. fi
    /system/bin/gen:

    Code (Text):
    1. #!/system/bin/sh
    2. echo Starting gentoo shell...
    3. (unset LD_PRELOAD; unset SHELL; unset SHELLOPTS; unset PS1; export HOME=/root; export TERM=linux; busybox chroot /system/gentoo /bin/bash --login)
    4. echo Gentoo shell has exited.
    I've built a whole system with X libraries, lxde, and firefox and it runs okay. I strongly recommend doing some memory mangement tweaks (I just did a post in the pokemans thread describing my way).

    Other notes: Set FEATURES="-userfetch" in make.conf or you won't be able to download packages.
     
Tags:

Share This Page

Loading...