Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,198 Members 47,821 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
kholk
Old
(Last edited by kholk; 15th January 2012 at 02:38 PM.) Reason: Fixed Links
#1  
Recognized Developer - OP
Thanks Meter 3,800
Posts: 2,247
Join Date: May 2007
Location: Torino

 
DONATE TO ME
Default [GSM/CDMA] EternityProject GenTop -- Full Gentoo on your RAZR --

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
The Following 3 Users Say Thank You to kholk For This Useful Post: [ Click to Expand ]
 
shady_lanem
Old
#2  
Senior Member
Thanks Meter 515
Posts: 488
Join Date: Aug 2010
Location: Borneo

 
DONATE TO ME
EternityProject Team FTW! ^_^
Motorola Razr -> The Arctic ROM -- The EternityProject, Gingerbread theme, Honeycomb theme

Motorola Atrix -> Shady's Arctic Blue, Yin Yang, Royal Gold, Orange Taste, Yellow GB

If you appreciate and would like to support my work,



Or please hit the Thanks button
 
kholk
Old
#3  
Recognized Developer - OP
Thanks Meter 3,800
Posts: 2,247
Join Date: May 2007
Location: Torino

 
DONATE TO ME
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
Old
#4  
Member
Thanks Meter 4
Posts: 96
Join Date: 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.
 
kholk
Old
#5  
Recognized Developer - OP
Thanks Meter 3,800
Posts: 2,247
Join Date: May 2007
Location: Torino

 
DONATE TO ME
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
Old
#6  
Member
Thanks Meter 4
Posts: 96
Join Date: 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...
 
kgb2000
Old
#7  
Member
Thanks Meter 0
Posts: 33
Join Date: Mar 2011
Looking forward to try it out.
 
Topgun966
Old
#8  
Senior Member
Thanks Meter 22
Posts: 288
Join Date: Jun 2010
Location: Chicago

 
DONATE TO ME
broken links got my hopes up here i miss gentoo
 
kholk
Old
#9  
Recognized Developer - OP
Thanks Meter 3,800
Posts: 2,247
Join Date: May 2007
Location: Torino

 
DONATE TO ME
Oh, my bad, links fixed.
 
nailll
Old
#10  
nailll's Avatar
Member
Thanks Meter 2
Posts: 40
Join Date: 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)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes