[GSM/CDMA] EternityProject GenTop -- Full Gentoo on your RAZR --

Search This thread

kholk

Retired Recognized Developer
May 20, 2007
2,293
3,829
Torino
Welcome to the EternityProject's WebTop Modifications Thread for Motorola RAZR

...:: Unleash your Gentoo Power! ::...

What do we need?
A brain...... And willing to unleash the power of your device.... :°)

Download:
GenTop for Motorola RAZR - v0.2: HERE
domain_policy.conf: HERE
sudoers: HERE

Changelog:
Code:
v0.2:
- World has been updated (01/2012)
- Recompiled most things with NEON support
- Portage bug solved (can now emerge without tricks)
v0.1:
- First release

History:
GenTop for Motorola RAZR - v0.1: HERE

Instructions:
1. UnBz2/UnTar the archive
2. Copy the IMG file on the root of your external sdcard
3. Execute the scripts
4. Enjoy!

Script:
Only for the first time setup:
Code:
adb push domain_policy.conf /tmp/
adh push sudoers /tmp/
adb shell
su
cp domain_policy.conf /etc/tomoyo/
cp sudoers /etc/
chown root:root /etc/tomoyo/domain_policy.conf
chown root:root /etc/sudoers
chmod 440 /etc/sudoers
reboot

Then start WebTop and execute this:
Code:
su
/usr/bin/sudo -H -u adas bash
export DISPLAY=:0
xhost +
sudo -i
mknod -m640 /dev/loop94 b 7 94
mkdir /tmp/wtm
mount -o loop /sdcard-ext/eternitygentop.img /tmp/wtm
mount -o bind /proc /tmp/wtm/proc
mount -o bind /dev /tmp/wtm/dev
mount -o bind /dev/pts /tmp/wtm/dev/pts
mount -o bind /dev/shm /tmp/wtm/dev/shm
mount -o bind /proc/bus/usb /tmp/wtm/proc/bus/usb
mount -o bind /sys /tmp/wtm/sys
mount -o bind /tmp /tmp/wtm/tmp
mount -o bind /var/tmp /tmp/wtm/var/tmp
mount -o bind /var/run/dbus/ /tmp/wtm/var/run/dbus
mount -o bind /var/lib/dbus/ /tmp/wtm/var/lib/dbus
mount -o bind /sdcard /tmp/wtm/sdcard
mount -o bind /sdcard-ext /tmp/wtm/sdcard-ext
chroot /tmp/wtm /bin/bash
export DISPLAY=:0
xterm
The xterm window is acting on the new Gentoo system.

Replacing WebTop UI with Lightweight GNOME (only panels and metacity):
Code:
eprj_lightgnome

Replacing WebTop with Full GNOME:
Code:
eprj_fullgnome

Replacing WebTop UI with Lightweight GNOME (only panels and metacity -- manual):
Code:
kill $(ps -ef | grep 5000 | grep webtop-panel | cut -c10-15)
kill $(ps -ef | grep 5000 | grep apptray | cut -c10-15)
kill $(ps -ef | grep 5000 | grep metacity | cut -c10-15)
kill $(ps -ef | grep 5000 | grep xscreensaver | cut -c10-15)
sleep 3
gnome-panel &
metacity -c &

Replacing WebTop with Full GNOME (Manual):
Code:
kill $(ps -ef | grep 5000 | grep webtop-panel | cut -c10-15)
kill $(ps -ef | grep 5000 | grep apptray | cut -c10-15)
kill $(ps -ef | grep 5000 | grep metacity | cut -c10-15)
kill $(ps -ef | grep 5000 | grep webtop-wallpaper | cut -c10-15)
kill $(ps -ef | grep 5000 | grep xscreensaver | cut -c10-15)
sleep 3
gnome-session &

How to emerge packages:
Code:
cd /root
emerge --pretend --fetchonly MYEBUILD | sed -r '/^(ht|f)tp:\/\//{s/ +/\n/g;p};d' >urllist
xargs wget -nc -nd -P /usr/portage/distfiles/ <urllist
emerge MYEBUILD
rm -rf /usr/portage/distfiles/*
Replace "MYEBUILD" with your package's name.

Status:
Note that it is an alpha version so, not everything will work flawlessly and easily. If your network doesn't work, check /etc/resolv.conf.



The EternityProject Team Manager & Main Developer,
-kholk
 
Last edited:

kholk

Retired Recognized Developer
May 20, 2007
2,293
3,829
Torino
Heh! When I promise something, I'll do. Unless you're a bad child. :p

Oh, forgetting to say and I didn't want to write that on first post, the GenTop image is intended to be used on a real MicroSD (first) ext4 partition if you want to install other things on it.
You know, Gentoo requires a lot of space when compiling ;)
 

tk76

Senior Member
Sep 13, 2008
102
4
Great work. Looking forward to unleashing the Gentop!

I'll try and keep my extreme noobie questions to a minimum, but:

1. Do I need to root my phone?

2. So I paste these 3 (uncompressed) files onto the root directory of my SD card and open the 3 files using a file explorer. Does this open a terminal window where I type in the scripts you listed (similar to if I have a DOS window open on my PC?)

3. When I plug the phone into the lapdock, will I get a choice of whether it opens into webtop vs gentop?

Thanks.
 

kholk

Retired Recognized Developer
May 20, 2007
2,293
3,829
Torino
1. Yup.
2. What a confusion... You should do the first time setup using a computer with ADB
3. No. It will simply boot WebTop, you'll replace it with GenTop later.
 

tk76

Senior Member
Sep 13, 2008
102
4
Thanks. I'll do some self directed learning before my next question :)

I'll start here: http://developer.android.com/guide/developing/tools/adb.html

Anyhow, I don't want to waste peoples time with too many overly basic questions. Your time is better spent developing this :) I still have to swap out my slightly defective phone, so probably won't get to installing this for about a week. In the mean time I'll read up on some of the basics...
 

nailll

Member
Aug 6, 2010
40
2
LG V50 ThinQ
ArchTop would be the best option here IMHO. No need to compile-recompile especially on SD card which I believe will be affecting sd card life (lots of reads/writes cycles is bad for cards)
 

kholk

Retired Recognized Developer
May 20, 2007
2,293
3,829
Torino
Yup, I know. I'm really sorry for this, my head is giving me some bad jokes today.

Link re-fixed and tested. Now it works :D
 

kholk

Retired Recognized Developer
May 20, 2007
2,293
3,829
Torino
Unless you mean you want to get the IMG on an sdcard partition (in this case you should use fdisk and dd, and you can find more infos HERE) ....

....it's all written on first post.
 
Apr 15, 2008
17
2
Perth
Code:
export PATH=/data/local/bin:$PATH
app_107@umts_spyder:/$ export PATH=/data/local/bin:$PATH
app_107@umts_spyder:/$ su
root@umts_spyder:/# /usr/bin/sudo -H -u adas bash
adas@localhost:/$ export DISPLAY=:0
adas@localhost:/$ xhost +
access control disabled, clients can connect from any host
adas@localhost:/$ sudo -i
-bash: getprop: command not found
root@localhost:~# mknod -m640 /dev/loop94 b 7 94
mknod: /dev/loop94: File exists
root@localhost:~# mount -o loop /sdcard-ext/gentop.img /tmp/wtm
mount: you must specify the filesystem type
root@localhost:~# mount -o loop /sdcard-ext/gentop.img /tmp/wtm -t ext4
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@localhost:~# mount -o loop -t auto /sdcard-ext/gentop.img /tmp/wtm
mount: you must specify the filesystem type
root@localhost:~# mount -o loop -t ext3 /sdcard-ext/gentop.img /tmp/wtm
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@localhost:~# mount -o loop -t ext4 /sdcard-ext/gentop.img /tmp/wtm
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@localhost:~# dmesg | tail
[ 1635.078918] HDCP: hdcp_ioctl() - QUERY 1335468
[ 1635.627441] 1 1429 679 0
[ 1636.224029] 1 850 234 1
[ 1636.291473] 1 850 234 0
[ 1636.829101] HDCP: hdcp_ioctl() - QUERY 1337226
[ 1637.243896] CPU1: shutdown
[ 1638.579315] HDCP: hdcp_ioctl() - QUERY 1338976
[ 1640.329528] HDCP: hdcp_ioctl() - QUERY 1340726
[ 1642.080322] HDCP: hdcp_ioctl() - QUERY 1342476
[ 1643.830505] HDCP: hdcp_ioctl() - QUERY 1344226
root@localhost:~#

No luck mounting the image.. any advice?
 

kholk

Retired Recognized Developer
May 20, 2007
2,293
3,829
Torino
mount -o loop -t ext4 /sdcard-ext/gentop.img /tmp/wtm


That works on my device.
OR...
....fsck.ext4 -f /sdcard-ext/gentop.img
and retry to mount.
 

gehrc

Senior Member
May 15, 2010
96
3
State College, PA
This looks awesome as well, but I'm having the same issue that was occurring with the ubuntop mod where my screen goes blank after a random interval of time.
 

kholk

Retired Recognized Developer
May 20, 2007
2,293
3,829
Torino
It's obvious. The problem comes from Moto's XServer and I cannot do anything right now for this as I'm looking to solve some other things and make something else to be easier.

Anyway this is solvable with some working (and it WILL be solved!) and you can avoid this to happen clicking sometimes on the mobile view window!
 

scorbut

Senior Member
Apr 8, 2009
72
2
GenTop looks much better then ubuntu but like really noob I don't know lot of things there. Like how to install apps(libreoffice, jdownloader,...), how to mount external drive, etc. I have also issue with MX video player when I switch it on full screen and back. On gentop mobile view stop working. And on ubuntu WebTop falls at all. But maybe it is caused by nebtop.
I think it looks very promising but there is lot of work to be done. I'll be glad to help you, if there is something that I could do.
Thanks.
EDIT:eek:n standard webtop with nebtop it works fine.

Sent from my XT910 using XDA App
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Welcome to the EternityProject's WebTop Modifications Thread for Motorola RAZR

    ...:: Unleash your Gentoo Power! ::...

    What do we need?
    A brain...... And willing to unleash the power of your device.... :°)

    Download:
    GenTop for Motorola RAZR - v0.2: HERE
    domain_policy.conf: HERE
    sudoers: HERE

    Changelog:
    Code:
    v0.2:
    - World has been updated (01/2012)
    - Recompiled most things with NEON support
    - Portage bug solved (can now emerge without tricks)
    v0.1:
    - First release

    History:
    GenTop for Motorola RAZR - v0.1: HERE

    Instructions:
    1. UnBz2/UnTar the archive
    2. Copy the IMG file on the root of your external sdcard
    3. Execute the scripts
    4. Enjoy!

    Script:
    Only for the first time setup:
    Code:
    adb push domain_policy.conf /tmp/
    adh push sudoers /tmp/
    adb shell
    su
    cp domain_policy.conf /etc/tomoyo/
    cp sudoers /etc/
    chown root:root /etc/tomoyo/domain_policy.conf
    chown root:root /etc/sudoers
    chmod 440 /etc/sudoers
    reboot

    Then start WebTop and execute this:
    Code:
    su
    /usr/bin/sudo -H -u adas bash
    export DISPLAY=:0
    xhost +
    sudo -i
    mknod -m640 /dev/loop94 b 7 94
    mkdir /tmp/wtm
    mount -o loop /sdcard-ext/eternitygentop.img /tmp/wtm
    mount -o bind /proc /tmp/wtm/proc
    mount -o bind /dev /tmp/wtm/dev
    mount -o bind /dev/pts /tmp/wtm/dev/pts
    mount -o bind /dev/shm /tmp/wtm/dev/shm
    mount -o bind /proc/bus/usb /tmp/wtm/proc/bus/usb
    mount -o bind /sys /tmp/wtm/sys
    mount -o bind /tmp /tmp/wtm/tmp
    mount -o bind /var/tmp /tmp/wtm/var/tmp
    mount -o bind /var/run/dbus/ /tmp/wtm/var/run/dbus
    mount -o bind /var/lib/dbus/ /tmp/wtm/var/lib/dbus
    mount -o bind /sdcard /tmp/wtm/sdcard
    mount -o bind /sdcard-ext /tmp/wtm/sdcard-ext
    chroot /tmp/wtm /bin/bash
    export DISPLAY=:0
    xterm
    The xterm window is acting on the new Gentoo system.

    Replacing WebTop UI with Lightweight GNOME (only panels and metacity):
    Code:
    eprj_lightgnome

    Replacing WebTop with Full GNOME:
    Code:
    eprj_fullgnome

    Replacing WebTop UI with Lightweight GNOME (only panels and metacity -- manual):
    Code:
    kill $(ps -ef | grep 5000 | grep webtop-panel | cut -c10-15)
    kill $(ps -ef | grep 5000 | grep apptray | cut -c10-15)
    kill $(ps -ef | grep 5000 | grep metacity | cut -c10-15)
    kill $(ps -ef | grep 5000 | grep xscreensaver | cut -c10-15)
    sleep 3
    gnome-panel &
    metacity -c &

    Replacing WebTop with Full GNOME (Manual):
    Code:
    kill $(ps -ef | grep 5000 | grep webtop-panel | cut -c10-15)
    kill $(ps -ef | grep 5000 | grep apptray | cut -c10-15)
    kill $(ps -ef | grep 5000 | grep metacity | cut -c10-15)
    kill $(ps -ef | grep 5000 | grep webtop-wallpaper | cut -c10-15)
    kill $(ps -ef | grep 5000 | grep xscreensaver | cut -c10-15)
    sleep 3
    gnome-session &

    How to emerge packages:
    Code:
    cd /root
    emerge --pretend --fetchonly MYEBUILD | sed -r '/^(ht|f)tp:\/\//{s/ +/\n/g;p};d' >urllist
    xargs wget -nc -nd -P /usr/portage/distfiles/ <urllist
    emerge MYEBUILD
    rm -rf /usr/portage/distfiles/*
    Replace "MYEBUILD" with your package's name.

    Status:
    Note that it is an alpha version so, not everything will work flawlessly and easily. If your network doesn't work, check /etc/resolv.conf.



    The EternityProject Team Manager & Main Developer,
    -kholk
    2
    GenTop v0.2 has been released!

    The changelog is available on the first post. However, I couldn't preinstall the apps you've asked because I'm having some personal problems and haven't had time to.
    Since I don't know how much time my problems will take (hope they'll be solved soon), I've decided to release the v0.2 without the new preinstalled applications, so that you can anyway enjoy it.

    I'm sorry if I've released something unfinished this time and I hope you'll anyway appreciate this release.



    The EternityProject Team Manager & Main Developer,
    --kholk
    1
    No thumb flag? Are you sure?!? It should be something like "-mthumb" ...and I'm almost sure I've included it!

    About Smplayer, well, it's a too strange error... it can't TOUCH ... can't create a file...
    But now something goes into my mind. Can you check if you've got enough inodes in your partition? :)

    (df -i)