[WEBTOP] GenTop2-20120509 (Beta) - Next Generation Gentoo Webtop Replacement

xdej

Senior Member
Oct 17, 2012
108
44
0
Nice to know, I'd be eager to try it and help once you have the uploading sorted.
Thank you for you offer. I have chosen sourceforge to distribute the starting kit in .tar.bz2. The first version is already there, although even bash is not working. Please do not use it yet.

What I need now: an access to files in memory (tmpfs, like /dev/shm) and a short /data/data/ld.so/ directory. I will manage without them but it would be nicer with.

I plan to use github to disribute the tbz2 that I needed myself (binary packages used by emerge).
I know your app terminal ide and like it much.
I am not the author of terminal ide.

I do not yet plan to be a google play developper.
I take it you don't have X working within gentoo in it
No indeed.
ou tried with vnc and such? I myself tried those things some time ago but it was buggy
I unfortunately wil rely on vnc apps.

and slow... Another question, armv6l for compatibility reasons and does it have a fully working portage/compile system so we could recompile it for armv7 with hardfloat and neon (out of my experience that makes it much faster)
I now have
Code:
FEATURES=-sandbox emerge -G perl
working, and am now wokring to make
Code:
FEATURES=-sandbox emerge screen
.

. Thanks
As others suggested Google drive should be Ok for first testing purposes
I want to remain anonymous except in private messages.

I have hard access to xda-developers: firefox app and vanilla browser fails after login on xda:(

---------- Post added at 09:02 PM ---------- Previous post was at 08:53 PM ----------

I have hard access to xda-developers: firefox app and vanilla browser fails after login on xda:(
Even lynx failed.

I am using the UC browser HD app.

I would very much like the author of terminal ide or the author of terminal emulator to make their app working as a widget or a floating app (like the "I'm sleeping" google App).

I would also very much like to know how the author of terminal ide remapped the physical zerty keyboard :) and . exchanged, ...) to also exchange 'control' with '$', 'alt' with '^' and 'shift' with '<'
 
Last edited:

BigJeff

Senior Member
Jun 4, 2011
835
177
0
Stanwood
Having seen the /osh/bin/ps output is definetrly an improvement.
As for lack of Xorg it should be there, upper-case letters have more priority, so they should be more close to the begining of the listing.

Anyway looks like the binaries are in the right places.
Try to launch "ubuntu.sh" in the / directory.
Also log-files in the "/data/var/log/" folder can give an insight what's gone wrong.
Code:
[email protected]:/home/jeff/Android/sdk/platform-tools# ./adb shell /ubuntu.sh
mount: wrong fs type, bad option, bad superblock on /dev/block/mmcblk0p17,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

mkdir: cannot create directory `/mnt/gentoo': File exists
mount: /dev/block/mmcblk1p2 already mounted or /mnt/gentoo busy
mount: according to mtab, /dev/block/mmcblk1p2 is already mounted on /mnt/gentoo
rm: cannot remove `/d': No such file or directory
chmod: changing permissions of `/system/usr/keychars/Motorola_Bluetooth_Wireless_Keyboard.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/evfwd.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_ara_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_br_abnt2.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_ca_fr.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_de_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_dk_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_es_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_fi_fi.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_fr_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_gb_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_gr_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_il_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_it_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_latam_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_no_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_pl_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_ru_common.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_se_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_tr_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_us_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_us_intl.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/qwerty.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/qwerty2.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/tegra-kbc.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/usb_keyboard_102_en_us.kcm.bin': Read-only file system

   OpenRC 0.9.8.4 is starting up Gentoo Linux (armv7l)

 * /proc is already mounted, skipping
 * Caching service dependencies ... [ ok ]
mkdir: cannot create directory `/sys/fs/cgroup/cpu': File exists
mount: cpu already mounted or /sys/fs/cgroup/cpu busy
mount: according to mtab, cpu is already mounted on /sys/fs/cgroup/cpu
mkdir: cannot create directory `/sys/fs/cgroup/cpuacct': File exists
mount: cpuacct already mounted or /sys/fs/cgroup/cpuacct busy
mount: according to mtab, cpuacct is already mounted on /sys/fs/cgroup/cpuacct
mkdir: cannot create directory `/sys/fs/cgroup/devices': File exists
mount: devices already mounted or /sys/fs/cgroup/devices busy
mount: according to mtab, devices is already mounted on /sys/fs/cgroup/devices
mkdir: cannot create directory `/sys/fs/cgroup/freezer': File exists
mount: freezer already mounted or /sys/fs/cgroup/freezer busy
mount: according to mtab, freezer is already mounted on /sys/fs/cgroup/freezer
mkdir: cannot create directory `/sys/fs/cgroup/bfqio': File exists
mount: bfqio already mounted or /sys/fs/cgroup/bfqio busy
mount: according to mtab, bfqio is already mounted on /sys/fs/cgroup/bfqio
 * ERROR: sysfs failed to start
 * /dev is already mounted
 * ERROR: cannot start udev as sysfs would not start
 * Checking local filesystems  ... [ ok ]
 * Updating /etc/mtab ... [ ok ]
 * Mounting local filesystems ... [ ok ]
mkdir: cannot create directory `/var': File exists
 * failed to create needed directory /var/log
 [ !! ]
 * ERROR: bootmisc failed to start
 * Setting hostname to atrix ... [ ok ]
 * Bringing up interface lo
 *   Caching network module dependencies
 *   127.0.0.1/8 ... [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127.0.0.1 ... [ ok ]
mkdir: cannot create directory `/sys/fs/cgroup/cpu': File exists
mount: cpu already mounted or /sys/fs/cgroup/cpu busy
mount: according to mtab, cpu is already mounted on /sys/fs/cgroup/cpu
mkdir: cannot create directory `/sys/fs/cgroup/cpuacct': File exists
mount: cpuacct already mounted or /sys/fs/cgroup/cpuacct busy
mount: according to mtab, cpuacct is already mounted on /sys/fs/cgroup/cpuacct
mkdir: cannot create directory `/sys/fs/cgroup/devices': File exists
mount: devices already mounted or /sys/fs/cgroup/devices busy
mount: according to mtab, devices is already mounted on /sys/fs/cgroup/devices
mkdir: cannot create directory `/sys/fs/cgroup/freezer': File exists
mount: freezer already mounted or /sys/fs/cgroup/freezer busy
mount: according to mtab, freezer is already mounted on /sys/fs/cgroup/freezer
mkdir: cannot create directory `/sys/fs/cgroup/bfqio': File exists
mount: bfqio already mounted or /sys/fs/cgroup/bfqio busy
mount: according to mtab, bfqio is already mounted on /sys/fs/cgroup/bfqio
 * ERROR: sysfs failed to start
 * ERROR: cannot start udev as sysfs would not start
chown: cannot access `/var/tmp': No such file or directory
chown: cannot access `/var/lock': No such file or directory
chmod: cannot access `/var/tmp': No such file or directory
chmod: cannot access `/var/lock': No such file or directory
mkdir: cannot create directory `/var': File exists
 * failed to create needed directory /var/log
 [ !! ]
 * ERROR: bootmisc failed to start
 * Starting D-BUS system messagebus ...mkdir: cannot create directory `/var/run/dbus': No such file or directory
Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
 * start-stop-daemon: failed to start `/usr/bin/dbus-daemon'
 [ !! ]
 * ERROR: dbus failed to start
 * ERROR: cannot start consolekit as dbus would not start
mkdir: cannot create directory `/var': File exists
 * ERROR: sshd failed to start
 * Setting up xdm ... [ ok ]
 * Starting xinetd ... * start-stop-daemon: /usr/sbin/xinetd is already running
 [ !! ]
 * ERROR: xinetd failed to start
 * Starting local
chmod: cannot access `/bin/chvt': No such file or directory
insmod: can't read '/system/lib/hw/aev.ko': No such file or directory
insmod: can't read '/system/lib/hw/evfwd.ko': No such file or directory
mkdir: cannot create directory `/var/log/Rotate': No such file or directory
chmod: cannot access `/var/log/Rotate': No such file or directory
chmod: cannot access `/tmp/androidfb': No such file or directory
chgrp: invalid group: `system'
chown: invalid user: `root.system'
chmod: cannot access `/usr/share/hal/fdi/policy/20thirdparty/90-x11-moto_extkbd.fdi': No such file or directory
chgrp: cannot access `/usr/share/hal/fdi/policy/20thirdparty/90-x11-moto_extkbd.fdi': No such file or directory
mount: /proc already mounted or /osh/proc busy
mount: according to mtab, /proc is already mounted on /osh/proc
FATAL: Could not load /lib/modules/2.6.32.56-MB860-faux123-GB-024/modules.dep: No such file or directory
mkdir: cannot create directory `/dev/shm': File exists
chmod: cannot access `/data/home/adas/.prism': No such file or directory
chmod: cannot access `/data/home/adas/.webapps': No such file or directory
 [ ok ]
mkdir: cannot create directory `/sys/fs/cgroup/cpu': File exists
mount: cpu already mounted or /sys/fs/cgroup/cpu busy
mount: according to mtab, cpu is already mounted on /sys/fs/cgroup/cpu
mkdir: cannot create directory `/sys/fs/cgroup/cpuacct': File exists
mount: cpuacct already mounted or /sys/fs/cgroup/cpuacct busy
mount: according to mtab, cpuacct is already mounted on /sys/fs/cgroup/cpuacct
mkdir: cannot create directory `/sys/fs/cgroup/devices': File exists
mount: devices already mounted or /sys/fs/cgroup/devices busy
mount: according to mtab, devices is already mounted on /sys/fs/cgroup/devices
mkdir: cannot create directory `/sys/fs/cgroup/freezer': File exists
mount: freezer already mounted or /sys/fs/cgroup/freezer busy
mount: according to mtab, freezer is already mounted on /sys/fs/cgroup/freezer
mkdir: cannot create directory `/sys/fs/cgroup/bfqio': File exists
mount: bfqio already mounted or /sys/fs/cgroup/bfqio busy
mount: according to mtab, bfqio is already mounted on /sys/fs/cgroup/bfqio
 * ERROR: sysfs failed to start
 * ERROR: cannot start udev as sysfs would not start
cp: cannot stat `/sdcard/*.lic': No such file or directory
chmod: cannot access `/data/*.lic': No such file or directory
udevd: no process found
logcat: no process found
[email protected]:/home/jeff/Android/sdk/platform-tools#
Oh God why...
 

supRyze

Member
Nov 25, 2012
14
7
0
Code:
[email protected]:/home/jeff/Android/sdk/platform-tools# ./adb shell /ubuntu.sh
mount: wrong fs type, bad option, bad superblock on /dev/block/mmcblk0p17,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

mkdir: cannot create directory `/mnt/gentoo': File exists
mount: /dev/block/mmcblk1p2 already mounted or /mnt/gentoo busy
mount: according to mtab, /dev/block/mmcblk1p2 is already mounted on /mnt/gentoo
rm: cannot remove `/d': No such file or directory
chmod: changing permissions of `/system/usr/keychars/Motorola_Bluetooth_Wireless_Keyboard.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/evfwd.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_ara_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_br_abnt2.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_ca_fr.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_de_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_dk_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_es_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_fi_fi.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_fr_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_gb_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_gr_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_il_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_it_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_latam_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_no_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_pl_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_ru_common.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_se_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_tr_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_us_basic.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/kbd_us_intl.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/qwerty.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/qwerty2.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/tegra-kbc.kcm.bin': Read-only file system
chmod: changing permissions of `/system/usr/keychars/usb_keyboard_102_en_us.kcm.bin': Read-only file system

   OpenRC 0.9.8.4 is starting up Gentoo Linux (armv7l)

 * /proc is already mounted, skipping
 * Caching service dependencies ... [ ok ]
mkdir: cannot create directory `/sys/fs/cgroup/cpu': File exists
mount: cpu already mounted or /sys/fs/cgroup/cpu busy
mount: according to mtab, cpu is already mounted on /sys/fs/cgroup/cpu
mkdir: cannot create directory `/sys/fs/cgroup/cpuacct': File exists
mount: cpuacct already mounted or /sys/fs/cgroup/cpuacct busy
mount: according to mtab, cpuacct is already mounted on /sys/fs/cgroup/cpuacct
mkdir: cannot create directory `/sys/fs/cgroup/devices': File exists
mount: devices already mounted or /sys/fs/cgroup/devices busy
mount: according to mtab, devices is already mounted on /sys/fs/cgroup/devices
mkdir: cannot create directory `/sys/fs/cgroup/freezer': File exists
mount: freezer already mounted or /sys/fs/cgroup/freezer busy
mount: according to mtab, freezer is already mounted on /sys/fs/cgroup/freezer
mkdir: cannot create directory `/sys/fs/cgroup/bfqio': File exists
mount: bfqio already mounted or /sys/fs/cgroup/bfqio busy
mount: according to mtab, bfqio is already mounted on /sys/fs/cgroup/bfqio
 * ERROR: sysfs failed to start
 * /dev is already mounted
 * ERROR: cannot start udev as sysfs would not start
 * Checking local filesystems  ... [ ok ]
 * Updating /etc/mtab ... [ ok ]
 * Mounting local filesystems ... [ ok ]
mkdir: cannot create directory `/var': File exists
 * failed to create needed directory /var/log
 [ !! ]
 * ERROR: bootmisc failed to start
 * Setting hostname to atrix ... [ ok ]
 * Bringing up interface lo
 *   Caching network module dependencies
 *   127.0.0.1/8 ... [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127.0.0.1 ... [ ok ]
mkdir: cannot create directory `/sys/fs/cgroup/cpu': File exists
mount: cpu already mounted or /sys/fs/cgroup/cpu busy
mount: according to mtab, cpu is already mounted on /sys/fs/cgroup/cpu
mkdir: cannot create directory `/sys/fs/cgroup/cpuacct': File exists
mount: cpuacct already mounted or /sys/fs/cgroup/cpuacct busy
mount: according to mtab, cpuacct is already mounted on /sys/fs/cgroup/cpuacct
mkdir: cannot create directory `/sys/fs/cgroup/devices': File exists
mount: devices already mounted or /sys/fs/cgroup/devices busy
mount: according to mtab, devices is already mounted on /sys/fs/cgroup/devices
mkdir: cannot create directory `/sys/fs/cgroup/freezer': File exists
mount: freezer already mounted or /sys/fs/cgroup/freezer busy
mount: according to mtab, freezer is already mounted on /sys/fs/cgroup/freezer
mkdir: cannot create directory `/sys/fs/cgroup/bfqio': File exists
mount: bfqio already mounted or /sys/fs/cgroup/bfqio busy
mount: according to mtab, bfqio is already mounted on /sys/fs/cgroup/bfqio
 * ERROR: sysfs failed to start
 * ERROR: cannot start udev as sysfs would not start
chown: cannot access `/var/tmp': No such file or directory
chown: cannot access `/var/lock': No such file or directory
chmod: cannot access `/var/tmp': No such file or directory
chmod: cannot access `/var/lock': No such file or directory
mkdir: cannot create directory `/var': File exists
 * failed to create needed directory /var/log
 [ !! ]
 * ERROR: bootmisc failed to start
 * Starting D-BUS system messagebus ...mkdir: cannot create directory `/var/run/dbus': No such file or directory
Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
 * start-stop-daemon: failed to start `/usr/bin/dbus-daemon'
 [ !! ]
 * ERROR: dbus failed to start
 * ERROR: cannot start consolekit as dbus would not start
mkdir: cannot create directory `/var': File exists
 * ERROR: sshd failed to start
 * Setting up xdm ... [ ok ]
 * Starting xinetd ... * start-stop-daemon: /usr/sbin/xinetd is already running
 [ !! ]
 * ERROR: xinetd failed to start
 * Starting local
chmod: cannot access `/bin/chvt': No such file or directory
insmod: can't read '/system/lib/hw/aev.ko': No such file or directory
insmod: can't read '/system/lib/hw/evfwd.ko': No such file or directory
mkdir: cannot create directory `/var/log/Rotate': No such file or directory
chmod: cannot access `/var/log/Rotate': No such file or directory
chmod: cannot access `/tmp/androidfb': No such file or directory
chgrp: invalid group: `system'
chown: invalid user: `root.system'
chmod: cannot access `/usr/share/hal/fdi/policy/20thirdparty/90-x11-moto_extkbd.fdi': No such file or directory
chgrp: cannot access `/usr/share/hal/fdi/policy/20thirdparty/90-x11-moto_extkbd.fdi': No such file or directory
mount: /proc already mounted or /osh/proc busy
mount: according to mtab, /proc is already mounted on /osh/proc
FATAL: Could not load /lib/modules/2.6.32.56-MB860-faux123-GB-024/modules.dep: No such file or directory
mkdir: cannot create directory `/dev/shm': File exists
chmod: cannot access `/data/home/adas/.prism': No such file or directory
chmod: cannot access `/data/home/adas/.webapps': No such file or directory
 [ ok ]
mkdir: cannot create directory `/sys/fs/cgroup/cpu': File exists
mount: cpu already mounted or /sys/fs/cgroup/cpu busy
mount: according to mtab, cpu is already mounted on /sys/fs/cgroup/cpu
mkdir: cannot create directory `/sys/fs/cgroup/cpuacct': File exists
mount: cpuacct already mounted or /sys/fs/cgroup/cpuacct busy
mount: according to mtab, cpuacct is already mounted on /sys/fs/cgroup/cpuacct
mkdir: cannot create directory `/sys/fs/cgroup/devices': File exists
mount: devices already mounted or /sys/fs/cgroup/devices busy
mount: according to mtab, devices is already mounted on /sys/fs/cgroup/devices
mkdir: cannot create directory `/sys/fs/cgroup/freezer': File exists
mount: freezer already mounted or /sys/fs/cgroup/freezer busy
mount: according to mtab, freezer is already mounted on /sys/fs/cgroup/freezer
mkdir: cannot create directory `/sys/fs/cgroup/bfqio': File exists
mount: bfqio already mounted or /sys/fs/cgroup/bfqio busy
mount: according to mtab, bfqio is already mounted on /sys/fs/cgroup/bfqio
 * ERROR: sysfs failed to start
 * ERROR: cannot start udev as sysfs would not start
cp: cannot stat `/sdcard/*.lic': No such file or directory
chmod: cannot access `/data/*.lic': No such file or directory
udevd: no process found
logcat: no process found
[email protected]:/home/jeff/Android/sdk/platform-tools#
Oh God why...
I warned that would be a lot of messages, since this script should have being executed already.
The good sign is that this thing reported xdm to be started: "* Setting up xdm ... [ ok ]".

I compared the listing with the one I get from my Atrix, and I conclude the reason of misbehavior is not mounted /preinstall partition.

The first message concerns "/dev/block/mmcblk0p17" which is mounted by this line in the ubuntu.sh:
"/bin/mount -t ext3 /dev/block/mmcblk0p17 /preinstall"

The preinstall partition in gentop is used for "var" directory, as you can see /var is a symlink to /osh/var which is also symlink to /preinstall/var/.

If you would be able to mount it properly with that exact line as in ubuntu.sh I think it will be last hurdle.

Maybe the problem is that you formatted partition in ext2 filesystem. ext2, ext3, ext4 are a little bit different filesystems. Use mkfs.ext3 as was said in the guide instead of mke2fs.
There is a good command "blkid", you can see which partitions you have and what fs they are formatted to, you should have:
/ # blkid
blkid
/dev/block/mmcblk0p3: LABEL="pds" UUID="881ec34f-8e9f-458d-adc7-ea0dac50f6a2" TYPE="ext3"
/dev/block/mmcblk0p12: UUID="719cad73-7ad6-4991-b4b1-acd290678b17" SEC_TYPE="ext2" TYPE="ext3"
/dev/block/mmcblk0p13: UUID="74c8be8e-8d77-4038-8633-b654390ad1a6" TYPE="ext3"
/dev/block/mmcblk0p14: LABEL="Motorola" TYPE="iso9660"
/dev/block/mmcblk0p15: UUID="06c04d19-8d64-41e0-8a50-ad92d4211a43" TYPE="ext3"
/dev/block/mmcblk0p16: UUID="634137ed-bf1a-4354-9135-00419f564379" TYPE="ext3"
/dev/block/mmcblk0p17: UUID="bccec2d2-423a-4873-9f66-31ee87526773" TYPE="ext3"
/dev/block/mmcblk0p18: LABEL="MB860" UUID="402F-0F10" TYPE="vfat"
/dev/block/mmcblk1p1: UUID="9016-4EF8" TYPE="vfat"
/dev/block/mmcblk1p2: UUID="6ec490ef-08c0-4237-a639-c1dedebbcd3f" TYPE="ext2"

If /preinstall is in ext2, you can convert it to ext3 with tune2fs utility. Something like this:
# tune2fs -j /dev/block/mmcblk0p17
Which adds the journal to ext2 effectivly transforming it to ext3.
 
  • Like
Reactions: BigJeff

BigJeff

Senior Member
Jun 4, 2011
835
177
0
Stanwood
Code:
/ # blkid
/dev/block/mmcblk0p3: LABEL="pds" UUID="881ec34f-8e9f-458d-adc7-ea0dac50f6a2" TYPE="ext3" 
/dev/block/mmcblk0p12: LABEL="SYSTEM" UUID="7db36a57-560f-46d9-a670-ef4ba7b855c0" SEC_TYPE="ext2" TYPE="ext3" 
/dev/block/mmcblk0p13: UUID="64d26596-6b51-4d61-8774-9cb46d87583e" TYPE="ext3" 
/dev/block/mmcblk0p14: LABEL="Motorola" TYPE="iso9660" 
/dev/block/mmcblk0p15: LABEL="CACHE" UUID="49e64894-1f06-4ec9-ad9b-1e2656d48a89" TYPE="ext3" 
/dev/block/mmcblk0p16: LABEL="DATA" UUID="72a13ee7-d022-4f8e-90e8-d6dc60be2827" TYPE="ext3" 
/dev/block/mmcblk0p17: UUID="4779221a-885c-4a4f-bc79-eeb70b455929" TYPE="ext2" 
/dev/block/mmcblk0p18: LABEL="MOT" UUID="8824-1AF9" TYPE="vfat" 
/dev/block/mmcblk1p1: UUID="d98d1c16-3d86-418f-9140-dc16afa83ae4" TYPE="ext3" 
/dev/block/mmcblk1p2: UUID="b4dd7ab8-ec6b-4413-b546-a4acd44835a1" TYPE="ext3" 
/ #
Is mmcblk1 and p2 my sdcard then? Because those have different formats as well as mmcblk0p17.

I also ran "tune2fs -j /dev/block/mmcblk0p17" like you said and it ran correctly, because "blkid" now recognizes it as ext3 so that is good.

Also in the guide it says "# mke2fs -m 0 -i 2048 -j /dev/block/mmcblk0p17" not "mkfs.ext3" like you said. I ran exactly as the guide said.

HOWEVER I restarted my phone, plugged it into the lapdock and... You were right! It boots to the Welcome screen instead of the F****** RED M!! :)
Thank you soo much my man!
 

supRyze

Member
Nov 25, 2012
14
7
0
As for "mkfs.ext3" vs. "mke2fs -j" they are equal because ext3 is an ext2 with a journal, thus have backward compatibility. Looks like it was not your case.
Actually mkfs.ext2/3/4 are usually hard or symbolic links to the same mke2fs.
Using journal on the flash device is a little bit bad, as it can result in premature aging.
Yet I think the device will become obsolete much sooner than it would happen.

Still I'm glad that you have accomplished your quest. Congratulations.
 
  • Like
Reactions: BigJeff

crnkoj

Senior Member
Feb 16, 2011
1,833
397
103
Hey, glad you got it working, I was really busy the last few days and didn't come to upload the things for you... Assuming you have it working, do you still need those files?
 
  • Like
Reactions: BigJeff

BigJeff

Senior Member
Jun 4, 2011
835
177
0
Stanwood
Hey, glad you got it working, I was really busy the last few days and didn't come to upload the things for you... Assuming you have it working, do you still need those files?
Nope. But thanks for the offer. I was wondering how to enable the app "mobile view" on the root user. I wanted to do this because the account adas isn't capable of internet connection unless midori is launched with sudo, however in root mobile view refuses to launch... thanks for all the help btw guys.
 

supRyze

Member
Nov 25, 2012
14
7
0
Nope. But thanks for the offer. I was wondering how to enable the app "mobile view" on the root user. I wanted to do this because the account adas isn't capable of internet connection unless midori is launched with sudo, however in root mobile view refuses to launch... thanks for all the help btw guys.
That's very strange, I guess midori is misconfigured like some proxy-server is enabled.
Try to wipe configuration file in you home directory I mean like "/home/adas/.config/" "/home/adas/.cache/" and so on.
Midori is good but some site can be rendered in Firefox only. Of course Firefox is slow but it can be a solution to your problem. Also there is a text browser Links or Lynx.

Working as a root is a no-go:
1) it's dangerous, like nobody usually works under admin account persistently
2) /root is a symlink to /osh/root therefore it is on the /osh partition, so it is very restricted on the size while /home/adas (/data/home/adas) reside on the /data partition which have about 1-2Gb free.

Launching midori with a sudo command is not that dangerous, maybe when you lauched it with sudo first time it created config/cache files/folders so only root can write there. They should be deleted for a regular midori to be operational.
 

crnkoj

Senior Member
Feb 16, 2011
1,833
397
103
Weird midori works for me under a das, as does mobile view, there's an explanation in the thread how to get mobile view to work.
 

BigJeff

Senior Member
Jun 4, 2011
835
177
0
Stanwood
I used 'emerge -G1 comet' or whatever and like i said, mobile view works perfectly fine for adas. However midori refuses to connect. I checked under /data/home/adas and I deleted those configuration files. Any other suggestions? Thanks for the help, I'll check and see if it's application specific or if the terminal has internet permission....
 
Last edited:

BigJeff

Senior Member
Jun 4, 2011
835
177
0
Stanwood
I used 'emerge -G1 comet' or whatever and like i said, mobile view works perfectly fine for adas. However midori refuses to connect. I checked under /data/home/adas and I deleted those configuration files. Any other suggestions? Thanks for the help, I'll check and see if it's application specific or if the terminal has internet permission....
BUMP I got the system to recognize midori only by a full reinstallation of gentoo. Also I'm currently attempting to get Enlightenment 17 running because it is visually pleasing and in some cases lighter than lxde4. If anyone has had success replacing their desktop environment you could through me a bone
 

crnkoj

Senior Member
Feb 16, 2011
1,833
397
103
Enlightenment is terribly resource consumable. I found it best to use xfce4. Lxde is bugged on arm (or at least it was at the time I was setting it up). Besides, if I'm right gentoo isn't supporting softfp anymore and only supports hardfp in the newer versions/ebuilds. That's why I've set it up working and have stopped updating it after I had it all working. I have to admit, ubuntu might be a better choice nowadays (if you manage to get a recent version to work), as they still support both hardfp and softfp.
 

xdej

Senior Member
Oct 17, 2012
108
44
0
Besides, if I'm right gentoo isn't supporting softfp anymore and only supports hardfp in the newer versions/ebuilds.
I personnaly use hardfp for my EPREFIX installation.

Work still ongoing: I need to explain to glibc that /etc lives in $EPREFIX/etc.
 

crnkoj

Senior Member
Feb 16, 2011
1,833
397
103
I personnaly use hardfp for my EPREFIX installation.

Work still ongoing: I need to explain to glibc that /etc lives in $EPREFIX/etc.
i see, but if i understand you correctly you are basically making a chroot gentoo?
edit:
the point of this gentop is, is that it runs next to android and uses some of the same drivers and (im not sure here) probably some libs, thats why it has to be softfloat, as the android drivers and libs are softfloat, but since they run next to each other, you can fully use the linux portion as if it was a pc, hence the awesomness of the atrix.
Whilst chroot, as youknow runs so to say on top of android and it doesnt have all of the same access as a fully running system and it doesnt rely on the userspace libs/drivers of the "host" system, as it not using them, but uses its own, but due to that fact you cant use native hdmi outputs for instance etc...
if oyujust want a chroot gentoo, you should check into kholks work (for the razr), or just get yourself a severly better specced phone (like the s4), buy an UHS-1 64gb sdcard and make the system on it for chroot, than use vnc + mhl to connect to hdmi and have it working.
 
Last edited:

xdej

Senior Member
Oct 17, 2012
108
44
0
but due to that fact you cant use native hdmi outputs for instance etc...
I will use the google play "Xserver" app for that.
if oyujust want a chroot gentoo, you should check into kholks work (for the razr), or just get yourself a severly better specced phone (like the s4),
I use the padfone 2 (because it has an external screen, the padfone station).
buy an UHS-1 64gb sdcard
Unfortunately, the padfone 2 does not have an internal sdcard slot :(
and make the system on it for chroot,
I will not chroot in that directory, because I want to keep my phone unlocked and unrooted; gentoo EPREFIX is able to fake that chrooting, by adding the prefix to all paths.
than use vnc + mhl to connect to hdmi and have it working.
 

crnkoj

Senior Member
Feb 16, 2011
1,833
397
103
I will use the google play "Xserver" app for that.

I use the padfone 2 (because it has an external screen, the padfone station).

Unfortunately, the padfone 2 does not have an internal sdcard slot :(

I will not chroot in that directory, because I want to keep my phone unlocked and unrooted; gentoo EPREFIX is able to fake that chrooting, by adding the prefix to all paths.
I see, but it still basically is a chroot method? Or am I misunderstanding things? But yeah without root you can't chroot as you need access to /sys and /proc and more.
I have to check that xserver app from store, as I haven't encountered it yet. In the case you don't want to root, other options like the one from kholk with chrooted gentoo or the other chroot distros become unusable, as well as anything beyond simple browsing, writing documents, etc.
 

xdej

Senior Member
Oct 17, 2012
108
44
0
I see, but it still basically is a chroot method? Or am I misunderstanding things? But yeah without root you can't chroot as you need access to /sys and /proc and more.
I have to check that xserver app from store, as I haven't encountered it yet. In the case you don't want to root, other options like the one from kholk with chrooted gentoo or the other chroot distros become unusable, as well as anything beyond simple browsing, writing documents, etc.
/proc is still accesssible and is used by $EPREFIX/usr/bin/ps
Can you nname an application that you would need ?

I have glibc woring with $EPREFIX. Hence I have now ssh working with -L and, provided $EPREFIX/etc/resolv.conf is correct, with hostnames.

And I just discovered that xda-developers.com works with $EPREFIX/../system/bin/links.
 
Last edited:

xdej

Senior Member
Oct 17, 2012
108
44
0
Distributing Gentoo for unrooted unflashed locked Androids (also works when unlocked)

Sorry, you will have to wait more: there are still binaries depending on /lib ...

I chose sourceforge.
I have uploaded a working version in https://sourceforge.net/projects/gentooandroid/files/
Choose file gentoo_armv6l_unrooted_unlocked_android_v3.tar.gz
Follow then the installation instructions in https://sourceforge.net/p/gentooandroid/wiki/InstallingInstructions/

you can, after that, emerge vim, or any other application present on my sourceforge tree, with:
Code:
FEATURES=-sandbox PORTAGE_BINHOST=http://sourceforge.net/projects/gentooandroid/files/packages/packages emerge --autounmask-write -Gv vim
mv $EPREFIX/etc/portage/._cfg0000_package.accept_keywords $EPREFIX/etc/portage/package.accept_keywords
FEATURES=-sandbox PORTAGE_BINHOST=http://sourceforge.net/projects/gentooandroid/files/packages/packages emerge --autounmask-write -Gnv vim
emerge without -G is not yet working on android :(

Steps to follow if you want to have a package that is not available to emerge -G:
(1) create a user xdej on any arm-installed rooted linux (Gentoo if possible, I have a raspberry for that),
(2) create /data/data/com.spartacusrex.spartacuside/gentoo_armv6l there also as user xdej
(3) apply and update http://sourceforge.net/projects/gentooandroid/files/packages/packages/usr.portage.patch
(4)
Code:
emerge -bv vim
on the
(5) synchronize your two directories /data/data/com.spartacusrex.spartacuside/gentoo_armv6l/usr/portage/packages
(6) use
Code:
emerge -G vim
on your unrooted android

Please post here your first impressions and bugs.

To make sshfs work starting from this v3.tar.gz:
(a) emerge -Gv openssh following first instruction of this post,
(b) add /data/data/com.spartacusrex.spartacuside/gentoo_armv6l/etc/shadow with one line for user xdej and a strong password (copy the password field from a /etc/shadow of a real linux machine),
(c) set "UsePAM no" in /data/data/com.spartacusrex.spartacuside/gentoo_armv6l/etc/ssh/sshd_config
(d) use
Code:
ssh-keygen -t dsa -f /data/data/com.spartacusrex.spartacuside/gentoo_armv6l/etc/ssh/ssh_host_dsa_key
(IMPORTANT for security)
(e) execute /data/data/com.spartacusrex.spartacuside/gentoo_armv6l/usr/sbin/sshd
(f) from a linux box, use sshfs -p 10098 [email protected]:/data/data/com.spartacusrex.spartacuside/ ~/terminaIDEfiles
(g) sorry, the sshfs in the other way will never be possible without rooting (/dev/fuse: permission denied)

After that, you can delete /data/data/com.spartacusrex.spartacuside/gentoo_armv6l/00sshServer whose password was not really protected from local apps.

The new ssh server can be launched by executing /data/data/com.spartacusrex.spartacuside/gentoo_armv6l/usr/sbin/sshd
 
Last edited: