Get a Complete Set of Logs with Andy Log

The importance of proper logging is undeniable. No, we’re not talking about lumberjack work. … more

Try Some Android Lollipop Applications on Your Device

Android 5.0 Lollipop has been officially announced and lucky users of Google Nexus 5 … more

AutoCon Manages Your Connections to Perserve Battery Life

As we’ve talked about in the past, battery life is still somewhat of a sore … more

How to Unlock and Root a Nexus Device – XDA TV

It is official–Google has released the Nexus 6 and the Nexus 9. The Nexus family … more
Post Reply

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

OP kholk

21st December 2011, 01:15 AM   |  #1  
OP Recognized Developer
Flag Torino
Thanks Meter: 3,802
 
2,247 posts
Join Date:Joined: May 2007
Donate to Me
More
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 by kholk; 15th January 2012 at 02:38 PM. Reason: Fixed Links
The Following 4 Users Say Thank You to kholk For This Useful Post: [ View ]
21st December 2011, 01:35 AM   |  #2  
Senior Member
Flag Borneo
Thanks Meter: 515
 
488 posts
Join Date:Joined: Aug 2010
Donate to Me
More
EternityProject Team FTW! ^_^
21st December 2011, 01:42 AM   |  #3  
OP Recognized Developer
Flag Torino
Thanks Meter: 3,802
 
2,247 posts
Join Date:Joined: May 2007
Donate to Me
More
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
21st December 2011, 02:02 AM   |  #4  
Member
Thanks Meter: 4
 
96 posts
Join Date:Joined: Sep 2008
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.
21st December 2011, 02:43 AM   |  #5  
OP Recognized Developer
Flag Torino
Thanks Meter: 3,802
 
2,247 posts
Join Date:Joined: May 2007
Donate to Me
More
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.
21st December 2011, 02:49 AM   |  #6  
Member
Thanks Meter: 4
 
96 posts
Join Date:Joined: Sep 2008
Thanks. I'll do some self directed learning before my next question

I'll start here: http://developer.android.com/guide/d...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...
21st December 2011, 10:08 PM   |  #7  
Member
Thanks Meter: 0
 
33 posts
Join Date:Joined: Mar 2011
Looking forward to try it out.
22nd December 2011, 05:12 AM   |  #8  
Senior Member
Flag Chicago
Thanks Meter: 22
 
289 posts
Join Date:Joined: Jun 2010
Donate to Me
More
broken links got my hopes up here i miss gentoo
22nd December 2011, 01:53 PM   |  #9  
OP Recognized Developer
Flag Torino
Thanks Meter: 3,802
 
2,247 posts
Join Date:Joined: May 2007
Donate to Me
More
Oh, my bad, links fixed.
22nd December 2011, 02:36 PM   |  #10  
nailll's Avatar
Member
Thanks Meter: 2
 
40 posts
Join Date:Joined: Aug 2010
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)

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Droid RAZR Android Development by ThreadRank