Okay, so I am trying to adapt this procedure to work on the Ace.
What I did so far on my Crunchbang Linux box (as root):
Code:
dd if=/dev/zero of=debian.img bs=1M count=2048
mkfs.ext2 -F debian.img
tune2fs -c0 debian.img
mkdir debian && mount -o loop debian.img debian
debootstrap --verbose --arch=armel --foreign squeeze debian http://ftp.de.debian.org/debian
mkdir debian/sdcard
umount debian && rmdir debian
(I hope this is correct because I typed it from memory without verification.)
Then I copied debian.img to the SD-Card and did the following via adb shell (I'm using the CF-Root kernel for Ace by ketut):
Code:
su
cd /sdcard
mkdir debian
busybox mount -o loop debian.img debian/ (for some reason the built-in mount binary does not work as expected)
busybox mount -t proc none debian/proc/
busybox mount -t sysfs sysfs debian/sys/
busybox mount -t devpts devpts debian/dev/pts
[COLOR="Red"]mount: mounting devpts on debian/dev/pts failed: No such file or directory[/COLOR]
I can create debian/dev/pts/ but that does not solve the problem:
Code:
mkdir debian/dev/pts
busybox mount -t devpts devpts debian/dev/pts
chroot debian/ /bin/bash
ls
[COLOR="red"]bash: ls: command not found[/COLOR]
I don't know anything about pseudo-interfaces and I don't even know what this part of the procedure is actually doing.
Does anyone see what is wrong? Any kind of help is greatly appreciated
I suggest to use Linux installer from Market. It's really simpler and works good on Ace.
dragonnn said:
I suggest to use Linux installer from Market. It's really simpler and works good on Ace.
Click to expand...
Click to collapse
Thank you, trying it right now. But I still kinda want to do it by myself...
linux installer gives problem with installing loop file
Sent from my GT-S5830 using xda premium
robinandroid said:
linux installer gives problem with installing loop file
Click to expand...
Click to collapse
Same here
why not try gentoo
http://distfiles.gentoo.org/releases/arm/autobuilds/current-stage3-armv6j/
https://forums.gentoo.org/viewtopic-t-873377.html
an0nym0us_ said:
why not try gentoo
http://distfiles.gentoo.org/releases/arm/autobuilds/current-stage3-armv6j/
https://forums.gentoo.org/viewtopic-t-873377.html
Click to expand...
Click to collapse
Thank you, I will try that tomorrow.
robinandroid said:
linux installer gives problem with installing loop file
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
What a problem exactly? Any screenshot. I tested it a long time ago and works perfectly. Oh I remember you must change the "Maximum loop dev" to 16 or 32.
an0nym0us_ said:
why not try gentoo
http://distfiles.gentoo.org/releases/arm/autobuilds/current-stage3-armv6j/
https://forums.gentoo.org/viewtopic-t-873377.html
Click to expand...
Click to collapse
you tried gentoo on ace??
i would love to have dual boot on my phone then
madman_amit said:
you tried gentoo on ace??
i would love to have dual boot on my phone then
Click to expand...
Click to collapse
I think it isn't dual boot, only chroot Linux. Making a dual boot is really hard, because you need to find and include all drivers for Ace, and the often are closed source or specially patched for Android. Making a chroot Linux is much simpler because you use the drivers the are included in the Android kernel.
no i havent.
its not dualboot actually, its just chroot. were still booting android, but chrooting into linux enviroment.
there are some dual boot enabled kernel for other devices that's why i raised that
ok other things fixed i am now stuck on this
Sent from my GT-S5830 using xda premium
robinandroid said:
ok other things fixed i am now stuck on this
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
And what problem did you have?? Now you have ruining debian on Ace. If you will get GUI on Debian you need to install and configure on it an VNC server + and user interface (I suggest to use LXDE). On Android you must install VNC client and connect to you your VNC server ruining one Debian.
dragonnn said:
And what problem did you have?? Now you have ruining debian on Ace. If you will get GUI on Debian you need to install and configure on it an VNC server + and user interface (I suggest to use LXDE). On Android you must install VNC client and connect to you your VNC server ruining one Debian.
Click to expand...
Click to collapse
can you tell excact steps?
i dont understand the tutorial
thats in the app
its too tiny letters
Sent from my GT-S5830 using xda premium
robinandroid said:
can you tell excact steps?
i dont understand the tutorial
thats in the app
its too tiny letters
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
http://news.metaparadigma.de/linux-setting-up-a-debian-vnc-server-237/ for example, only what you don't need to do is "VIII. Setup an SSH tunnel for VNC connections". And install lxde instant gnome. You must search for this in google, I don't have try to bring up an VNC server on debian and user interface because I don't need it but I know it's is possible.
Fixed the problem with:
Code:
export PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/usr/bin:/opt/usr/sbin
Proof:
milkytracker
Sent from my GT-S5830 using xda premium
Related
Booting Debian with X11 on the Google NexusOne
This howto can also be found on my blog.
http://www.irregular-expression.com/?p=30
Screenshots here
http://picasaweb.google.com/JairunCaloth/Debian?feat=directlink
This is a method to boot into Debian via fastboot on the nexus one from
your SD-card. This is NOT a chroot Debian image, it is honest to goodness
Debian running directly on the hardware. This is completely non destructive to
the android OS. Connectivity to the device can be provided by adbd, ssh, or
serial console. Wifi works perfectly. I have not tested bluetooth. Touchscreen
works, but needs tweaking. X11 works in framebuffer using the Debian
testing branch (squeeze). In order to get a full fledged X driver with
3D acceleration we'll need the driver from
https://www.codeaurora.org/index.php?xwinp which I haven't been able to get
to build. This doesn't mean it's broken. It just means I suck
at cross compiling .
Todo:
-Tweak settings to make X more usable.
-Find out how to use the soft keys.
-Get the CodeAurora MSM/QSD X driver working.
-Find decent method to input text.
-Test bluetooth
-Look into using the GSM radio.
-Audio
-Figure out how to configure adbd.
-Get someone who knows C and wants to hack on the recovery image to enable booting debian from there.
This how-to pulls heavily from the debian-arm install guide.
http://www.debian.org/releases/stable/arm/index.html.en
Requirements:
adb (android-sdk)
fastboot
chroot (on your phone)
sdcard with room for Debian - 2gigs seems to be sufficient for Debian + xfce.
I Had about a gig leftover. For this guide, I'm starting fresh with a 4GB sdcard
that I'm devoting completely to Debian. According to the Debian install guide,
you need at least 32MB of memory and 500MB of hard disk space. The guide
recommends at least 5GB of storage for a comfortable install. But since I'm
using the lighter XFCE4 desktop I haven't had any space issues.
http://www.debian.org/releases/stable/arm/ch03s04.html.en
1. Re size the SD card
(don't forget to backup your data before you go messing with partition tables!!)
(optional) Instead of using a partition on your main SD card, you could
simply use another sdcard and dedicate the entire thing to Debian.
Note: android didn't like me very much when I did this. I put in a
tiny (30MB) vfat partition right at the beginning of the blank sdcard
I mounted the sdcard on my Ubuntu system and used gparted to break
off 2 gigs to use for Debian. Make sure you keep the normal android
sdcard partition as the first partition otherwise android
will not be able to find it.
If you're using apps to SD or anything else like that. Debian should
probably have the last partition. I'm not 100% sure on this since I
don't use my sdcard for anything else.
2. Format the new partition.
ext2 is probably best. (least abusive on the sdcard. ext3 & 4 have
journaling which may be bad for the life of your sdcard)
I used Gparted for this part as well.
3. If you are installing from an Ubuntu or Debian desktop, install debootstrap
Code:
$ sudo apt-get install debootstrap
Users of other distros may be able to get debootstrap but I'm not sure.
4. Mount the sdcard on your desktop.
anywhere will do just remember where you put it
ex.
Code:
$ mount /dev/sde2 /mnt/android
5. debootstrap
run debootstrap
you can change to a mirror closer to you if you don't want to use the
US mirror - http://www.debian.org/misc/README.mirrors
I'm using the Debian testing release (squeeze). I had issues getting
X11 running in lenny, and have not tested sid.
(lenny is stable, squeeze is testing, and sid is unstable)
http://www.debian.org/releases/
debootstrap --arch armel --foreign <release> </path/to/debian> <mirror>
ex:
Code:
# debootstrap --arch armel --foreign squeeze /mnt/android http://ftp.us.debian.org/debian
6. debootstrap(part2)
Unmount the sdcard from your desktop.
Reboot the phone here since you've been mucking with the sdcard
file system. Android didn't like my sdcard until I did.
Code:
$ adb shell
mount the sdcard somewhere on the android file system.
look in /dev/block for the sdcard.
Typically mmcblk0p# where # is the partition number.
*note* the directory I use to mount mine does not exist under normal android.
If this is your first time you will need to create the directory.
Code:
mkdir -p /data/local/mnt
ex.
Code:
# mount -t ext2 /dev/block/mmcblk0p2 /data/local/mnt
chroot/debootstrap
Code:
# export PATH=/usr/bin:/usr/sbin:/bin:$PATH
# chroot /data/local/mnt/ /debootstrap/debootstrap --second-stage
this will take a while especially if you have a slower sdcard.
6. While that's working, now is a good time to get to work on your kernel
I used the open source android kernel 2.6.29
http://android.git.kernel.org/
Started with mahimahi_defconfig and starting customizing from there.
Things to note.
- file systems - don't forget to add support for whatever file systems
you need. Your root file system support cannot be built as a module.
- wireless driver config - You may want to change the location the
kernel looks for your wifi firmware (this is different from the
kernel module).
I stuck mine in /etc/firmware, default is /system/etc/firmware.
If you don't change this, you will have to put the firmware
in /system/etc/firmware
- wireless - Add in support for standard wifi extensions.
- networking - standard tcp/ip stuff... iptables if you want ect...
- I wasn't able to get the kernel to boot into Debian until I turned
off initramfs support.
(note. this was before I discovered the 'noinitrd' kernel
kernel cmdline option. So disabling initrd may not be required)
- If for some reason you are using ext4, it will fail to mount unless
you add in large devices and files support
- Default kernel command string - has no effect.
This gets overwritten when you boot with fastboot or make a boot.img
- Drivers - I left all the normal android drivers in.
-Changed the firmware path for wifi.
-Added in support for virtual terminal under character devices
-Enabled MSM serial support (if you don't have a serial cable
this is useless to you)
-You can build the wifi driver into the kernel if you want.
Link to the kernel config I used. Use at your own risk.
It works for me but I can't promise it's perfect or even good.
http://irregular-expression.com/tmp/config
I would love input on building a better kernel config.
If you don't want to build your own kernel, feel free to use mine http://irregular-expression.com/tmp/zImage
7. Chroot and configure Debian.
There are still some things that need configuring before we reboot into
Debian. Since fbconsole does not appear to be working, if you don't
have a serial cable you will be flying blind until Debian is fully
booted and you can connect with ssh. Since there are still things to do
before we reboot, we're going to chroot into Debian just like if we are
using a Debian chroot image.
For more information and examples of config files.
http://www.debian.org/releases/stable/arm/apds03.html.en
It's probably best to use wifi for your data on the phone for this.
If you're on Linux and connected to the same router as the phone, copy
over your resolv.conf
Code:
$ adb push /etc/resolv.conf /data/local/mnt/etc/resolv.conf
If you are not in Linux or are not connected to wifi you will need to
set up resolv.conf with something sane.
ex. from jay freeman's original Debian chroot.
Code:
$ echo 'nameserver 4.2.2.2' > /data/local/mnt/etc/resolv.conf
push wifi driver to the device
First we need to create a couple directories. Log into the phone with adb shell
Code:
$ adb shell
# mkdir -p /data/local/mnt/etc/firmware
# mkdir -p /data/local/mnt/lib/modules/2.6.29-droid-debian/kernel/drivers/bcm4329
# exit
Upload wifi kernel module and firmware. If you're using my prebuilt kernel, grab this one. http://irregular-expression.com/tmp/bcm4329.ko
Code:
$ adb push <kernelroot>/drivers/net/wireless/bcm4329/bcm4329.ko /data/local/mnt/lib/modules/2.6.29-droid-debian/kernel/drivers/bcm4329/
copy /system/etc/firmware/fw_bcm4329.bin to wherever you
specified in the kernel config.
Code:
# cp /system/etc/firmware/fw_bcm4329.bin /data/local/mnt/etc/firmware/
Setup environment variables, copy over adbd, and other stuff needed to
make things work. This should all be run from within an adb shell
Code:
# cp /sbin/adbd /data/local/mnt/sbin/adbd
# sysctl -w net.ipv4.ip_forward=1
# export PATH=/usr/bin:/usr/sbin:/bin:$PATH
# export TERM=linux
# export HOME=/root
Next chroot and setup mount points
Code:
# chroot /data/local/mnt /bin/bash
# mount -t devpts devpts /dev/pts
# mount -t proc proc /proc
# mount -t sysfs sysfs /sys
Welcome to Debian chroot that we all know and love.
Lets finish configuring this thing.
Configure adbd to run on boot and create a symlink so adbd can find bash.
Edit /etc/rc.local. Add adbd before exit 0
#add this to /etc/rc.local
Code:
/sbin/adbd &
Code:
# mkdir -p /system/bin/
# ln -s /bin/bash /system/bin/sh
Now we need to be able to install packages
don't forget if you are not using squeeze to change it here
Code:
# echo 'deb [url]http://ftp.us.debian.org/debian[/url] squeeze main' >> /etc/apt/sources.list
# apt-get update
You should see aptitude updating it's package list.
Install some needed packages
Code:
# apt-get install wpasupplicant wireless-tools udev ssh
Other packages
All up to your choice. Things like text editors, X, ect...
some suggested packages
Code:
# apt-get install locales vi
Wifi driver
When you try to load the wifi module, Linux will complain about not
being able to parse modprobe.d. To fix this run depmod. If it complains
a directory doesn't exist then create it.
Code:
# depmod -a
Edit /etc/modules and add the bcm4329 module
Code:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
bcm4329
Setup fstab - critical: don't forget to configure the root file system
or your system won't boot. If you like, mount your vfat sdcard partition
here too. Don't forget to mkdir for the mount point.
*note* after boot the memory card is located at /dev/mmcblk0p#.
Here is my /etc/fstab
Code:
# /etc/fstab: static file system information.
#
# file system mount point type options dump pass
/dev/mmcblk0p2 / ext2 defaults 1 1
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /media/sdcard vfat defaults 0 0
configure network
These two files will be tuned to what you need.
Here are a couple examples.
/etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
/etc/wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="myOpenNetwork"
scan_ssid=1
key_mgmt=NONE
}
network={
ssid="MyHomeNetwork"
scan_ssid=1
key_mgmt=WPA-PSK
psk="MyWifiPassword"
}
network={
ssid="MyFriendsWifi"
scan_ssid=1
key_mgmt=WPA-PSK
psk="MyFriendsWifiPassword"
}
SSH
If you want ssh to start on boot run this command.
*note* You will probably want to set a static IP address if you plan on accessing debian through ssh.
Code:
# update-rc.d ssh defaults
inittab
no need for getty so comment it out in /etc/inittab
if you have a serial cable, configure it here. something like this.
Code:
T0:23:respawn:/sbin/getty -L ttyMSM0 115200 linux
hostname
configure your system's hostname - you can set this to whatever you like
Code:
# echo DebianHostName > /etc/hostname
Set root password
Code:
# passwd
# useradd -m -G audio,dialout,floppy,video,staff username
Add user account
Code:
# useradd -m -G audio,dialout,floppy,video,staff yourusername -s /bin/bash
# passwd yourusername
8. Almost there!
Double check your configs and have your kernel handy.
The next step is to boot into Debian.
9. Boot Debian
put the device into fastboot mode
Code:
$ adb reboot bootloader
the '-c' flag specifies arguments to pass to the kernel for boot.
This is probably the bare minimum.
Format is "fastboot -c 'kernelcmdline' boot zImage"
Code:
$ fastboot -c 'root=/dev/mmcblk0p2 rw rootfs=ext2 init=/sbin/init rootwait noinitrd' boot zImage
Wait just a few minutes. DHCP is probably the longest part of this.
10. Connect via ADB.
If everything went well you should be able to log into the
phone via adb. adb push and pull work as well.
Code:
$ adb shell
11. Install X11
For a basic X11 install. This is probably not what you want.
Code:
# apt-get install xserver-xorg
You can install whatever window manager/desktop environment you like,
I used XFCE. Most window managers likely depend on xserver-xorg so it
will get pulled in when you install.
Code:
# apt-get install xfce4
After I installed xfce4 I was able to get X on the main display by
simply running startxfce4
Code:
# startxfce4
By default Debian is configured to only allow root to startx.
If you want to be able to run X as a user edit /etc/X11/Xwrapper.config
*note* even with this I haven't been able to run X as a normal user.
Only root.
Change
Code:
allowed_users=console
to
Code:
allowed_users=anybody
Currently touchscreen is a little weird. It feels almost like using a
laptop touchpad. The mouse moves much faster then your finger and tapping for
click isn't enabled by default but two finger tap will right click. You can
also move the mouse with the trackball. Clicking the trackball registers a
click. But you have to wiggle the trackball just a tiny bit after you click to
make it register. I am going to work on tweaking the fdi policy files to
make things a little more usable.
Text entry is a bit of a pain point currently. There are several on screen
keyboards out there. One interesting one I found is called cellwriter.
The touchscreen will need to be tweaked before it will work well with
onscreen keyboards.
For other ideas on window managers and other software check out this link
http://wiki.openmoko.org/wiki/Debian
@jairuncaloth
I was just reading about how you got debian + x11 working on your nexus. I think thats awsome how you got a fully oprerational linux OS on your phone. I just had a few questions on how everything worked.
You were saying it doesn't mess with the default android OS, is there like a duel boot option to chose what OS i want to boot into. I was reading on how you have to start an ssh session to get into debian, and was just currious on some more info. I would be intrested in trying this out some time after i did a little more reading to get a better understanding of how everything was working.
If this wasn't working out after i installed, is it a pain to remove.
Thanks,
Justin
Nice post, appreciate the thoroughness.
I'm going to pour through this when I get some free time. Whenever that is
Thanks!
~enom~
jjkwasnik said:
@jairuncaloth
I was just reading about how you got debian + x11 working on your nexus. I think thats awsome how you got a fully oprerational linux OS on your phone. I just had a few questions on how everything worked.
You were saying it doesn't mess with the default android OS, is there like a duel boot option to chose what OS i want to boot into. I was reading on how you have to start an ssh session to get into debian, and was just currious on some more info. I would be intrested in trying this out some time after i did a little more reading to get a better understanding of how everything was working.
If this wasn't working out after i installed, is it a pain to remove.
Thanks,
Justin
Click to expand...
Click to collapse
Hey Justin. The reason it doesn't mess with the default android OS is when you boot, you're booting with a kernel image living on your desktop/laptop's hard disk. fastboot allows you to boot images without acctually flashing them to your phone. Debian lives on the SDcard so no flashing required.
You can also use adb to connect to debian now. It's as simple as copying over the binary from android.
Removing is as simple as rebooting. When you reboot it will be like debian was never there.
enomther said:
Nice post, appreciate the thoroughness.
I'm going to pour through this when I get some free time. Whenever that is
Thanks!
~enom~
Click to expand...
Click to collapse
I would love to hear ideas for improvements you may have
This is still pretty raw.
now my question is can those devs good with the linux kernel use this to hack into the android OS and unlock the security on the device without bricking the phone?
-Charlie
@jairuncaloth
I understand what you mean, i have used fast boot a few times. I know how to use it, just haven't used it a lot. So with using fast boot, once Debian is booted can you disconnect the usb cable. Is the kernel copied in RAM, or does it still need to talk to the kernel that resides on the PC?
I like where you are going with this, i am experienced with Linux. Not super advanced, but i know more then i think i do sometimes. I would like to try this out sometime to, but i'm very busy with work and the little free time i have gets spent before i know it. So knowing a little about it before i get my feet wet, always helps.
Thanks!!
Great news guys! Glad to see progress is being made. Can't wait to see where this goes from here!
Cheers
this is so cool, i was trying to get the chroot version to run on my nexus one the other day like i had it on my g1 but it was giving me trouble so i gave up. if proper support for the radio and the touchscreen/keyboard is created this would truly be monumental.
kudos for you man awesome job!
jjkwasnik said:
@jairuncaloth
I understand what you mean, i have used fast boot a few times. I know how to use it, just haven't used it a lot. So with using fast boot, once Debian is booted can you disconnect the usb cable. Is the kernel copied in RAM, or does it still need to talk to the kernel that resides on the PC?
I like where you are going with this, i am experienced with Linux. Not super advanced, but i know more then i think i do sometimes. I would like to try this out sometime to, but i'm very busy with work and the little free time i have gets spent before i know it. So knowing a little about it before i get my feet wet, always helps.
Thanks!!
Click to expand...
Click to collapse
Should look something like this after you run the fastboot boot command
creating boot image...
creating boot image - 2240512 bytes
downloading 'boot.img'... OKAY
booting... OKAY
At this point it's safe to pull the usb cable. If you are using adb to connect, you'll still want it though
I got the code aurora X driver to build last night. I ended up building it in debian on the phone. I couldn't get it to build against AOSP kernel headers, but it does build with the code aurora kernel headers. X won't start when you tell it to use the driver. I suspect this is because I built the driver against a different kernel then the one the system is booting on. I have not been able to get the code aurora kernel to boot yet, but I'm working on it to see if X will start with this driver and the CA kernel.
Also, I've uploaded the kernel I've been using to my blog. In case someone wants to play with this, but doesn't want to build a kernel.
http://irregular-expression.com/tmp/zImage
Can anyone post any vids for this?
Would love to have a look at this and then maybe i'll have a try at it afterwards
No videos yet.. I've got some snapshots of X running though.
http://picasaweb.google.com/JairunCaloth/Debian?feat=directlink
jairuncaloth said:
No videos yet.. I've got some snapshots of X running though.
http://picasaweb.google.com/JairunCaloth/Debian?feat=directlink
Click to expand...
Click to collapse
Thank you for the pictures, it really feels good to see this kind of progress being made. I can not wait to try this out!
looks interesting, but scary to a new guy like me..im sure i will try it though..continue the work on streamlining the process !
so how is this running? by that i mean is everything running smooth/snappy?
looks good by the way, i may try this out
JHaste said:
so how is this running? by that i mean is everything running smooth/snappy?
looks good by the way, i may try this out
Click to expand...
Click to collapse
It's fast enough for you old man!
Really though, it runs pretty smoothly. Once we work out the kinks it could even be pretty nice.
One thing you could do, if you don't mind nuking the recovery partition, is flash your debian boot image to recovery -- then you can reboot into debian with "reboot recovery" from an android root shell, or by entering the bootloader and selecting recovery.
it will be great if it is more simple.
@jairuncaloth
I love the pics man!!!
I just came up with another question with running Debian, is there any software to still make phone calls through your cell provider? Or do you just have to reboot back into android?
Guys....
I need help on enabling EXT2 RFS Lag Fix.
I flashed Bionix Fusion 1.1 with the SSL Fix
I flashed Project Core v1 Kernel
I'm trying to enable the EXT2 RFS Lag Fix using the instructions on Team Whiskey's site.
adb shell --> DONE
su --> DONE
******Here's where I get stuck at********
mv /system/bin/userinit.sh /system/bin/used ---> Error saying "FAILED ON '/SYSTEM/BIN/USERINIT.SH' - NO SUCH FILE OR DIRECTORY
**********************************
Any ideas why this file isn't in the BIN folder? I checked via Root Directory and didnt find it at all.
Let me know.
Thank you
I'm having this same error as well. Anybody know how to proceed? Also running Bionix 1.1 with Project Core kernel. Thanks in advance.
Those instructions are to disable EXT2 lagfix, you should follow this:
adb shell
su
busybox dd if=/dev/zero of=/data/dataimg bs=1024 count=1048576 (this transfer takes roughly 3 minutes, be patient!)
busybox mknod /dev/loop0 b 7 0
busybox losetup /dev/loop0 /data/dataimg
busybox mkfs.ext2 /dev/loop0
mkdir /data/data1
mv /system/bin/used /system/bin/userinit.sh
reboot
Click to expand...
Click to collapse
Thanks StefanB86. I'll give it a shot! Just curious.. how can you see if this actually worked and if it actually running the lagfix?
m00nshake said:
Thanks StefanB86. I'll give it a shot! Just curious.. how can you see if this actually worked and if it actually running the lagfix?
Click to expand...
Click to collapse
Go to settings/sd card and phone storage. If your available space in application storage is less than 1gb then it worked. You can also run a quadrand test. Anything 1800 and up means its working.
^ what he said
Fantastic... quad score 2806. Thanks for all of the help.
Screen shot of quadrant score...
StefanB86 said:
Those instructions are to disable EXT2 lagfix, you should follow this:
Click to expand...
Click to collapse
i followed these, they are the same as they have been since the 2.1 releases (im on obsidian 4.2 stock kernel). i get up to:
mv /system/bin/used /system/bin/userinit.sh
but screen returns:
failed on 'system/bin/used' - no such file or directory
logic tells me i can create a file called used in system/bin but to be honest, i have no idea what the commands do and i really dont want to amplify any problems or create any for myself. so, any suggestions? See screen shot for adb.
http://screencast.com/t/9LNnqIHT6iOD
Can any one provide me with guidance as to how can i get ext2 / ext3 and loop mount support in my Xperia X10i
i have upgraded to baseband 54 and currently using a custom rom 2.2.1
I am kind of confused about this and have been searching the whole forum for past many days please help me.
is it possible to get these modules in kernel without bootloader crack if yes do anyone have them.
my ultilmate aim is to get a linux installed in a loop mount device where i can have my custom softwares...
Mod : if this is not the correct place, please shift it to correct place
Requires kernel support. Now possible right now.
Sent from my X10
I see people using debian / ubuntu on xperia x10...
so please help me if possible.
loop mount / ext2 / ext3 /ext4 what ever my task is i want ubuntu / debian on my andriod machine.
anantshri said:
I see people using debian / ubuntu on xperia x10...
so please help me if possible.
loop mount / ext2 / ext3 /ext4 what ever my task is i want ubuntu / debian on my andriod machine.
Click to expand...
Click to collapse
Yes its possible... that's how the freex10-alpha release had dual boot...
On phone right now... will post exact commands later...
sent from FreeX10_beta4+CM6 settings
anantshri said:
I see people using debian / ubuntu on xperia x10...
so please help me if possible.
loop mount / ext2 / ext3 /ext4 what ever my task is i want ubuntu / debian on my andriod machine.
Click to expand...
Click to collapse
the following is from the boot hijack file 'chargemon' in FreeX10-alpha (which was dual boot and was running off sdcard)...
Code:
# Mount system and data ext2 images
losetup /dev/block/loop1 /sd/FreeX10/system.img
sleep 5
losetup /dev/block/loop2 /sd/FreeX10/data.img
sleep 5
e2fsck -y /dev/block/loop1
e2fsck -y /dev/block/loop2
mount -t ext2 -o rw,noatime,nodiratime /dev/block/loop1 /system
sleep 5
mount -t ext2 -o rw,noatime,nodiratime,nosuid,nodev /dev/block/loop2 /data
sleep 5
thanks to zdzihu & jerpelea for their work on FreeX10...
always do a full backup by xrecovery/nandroid before proceeding and keep flashtool ready with the firmware files or ur choice before trying out wht u planned...
incase u need some help refer to http://forum.xda-developers.com/showthread.php?t=955703
anantshri said:
Can any one provide me with guidance as to how can i get ext2 / ext3 and loop mount support in my Xperia X10i
i have upgraded to baseband 54 and currently using a custom rom 2.2.1
I am kind of confused about this and have been searching the whole forum for past many days please help me.
is it possible to get these modules in kernel without bootloader crack if yes do anyone have them.
my ultilmate aim is to get a linux installed in a loop mount device where i can have my custom softwares...
Mod : if this is not the correct place, please shift it to correct place
Click to expand...
Click to collapse
something i found which might be useful... http://www.talkandroid.com/31994-installing-ubuntu-on-your-motorola-xoom-tablet/
Thanks a lot for the help DoomLord,,,, i am able to loopmount now..
the problem that i had was the ubuntu bootscript tried mounting on loop2 and i am using App2SD so loop2 was already booked.
finally customized script to use loop99 and now it works fine....
Hi,
I was wondering if OpenVPN is supported out of the box and if not, is there a possibility to make it work?
Searched the forum but couldn't find any specific info..
thanks in advance!
EDIT:
I created an update.zip which is posted in this thread
Not supported out of the box... it's baked into CM7 but obviously that's a custom rom! There's OpenVPN apps on the market but they require a rooted device. The one I've found to work the best was OpenVPN Settings (not the SGS2) but it requires the openvpn binary to be installed somehow first...
I'm using OpenVPN Settings on a CM based rom now (HTC Hero) From what I remember it needs tun.ko support in the kernel
Don't know if the default kernel has this..
Sent from my HTC Hero using Tapatalk
I had rooted my gs2 and installed openvpn binary, openvpn settings works.
but always see "FATAL: Linux ifconfig failed: could not execute external program".
Who can tell me why?
I remember I had the same issue a long time back before I was using CM based roms
Can't remember what but will try to look it up this weekend as I'm curious about the result
really need OpenVPN wheb I get my SGSII
Sent from my HTC Hero using Tapatalk
tux
Sent from my Nexus One
diesiren said:
ifconfig failed: could not execute external program
Click to expand...
Click to collapse
this seems to mean that OpenVPN is looking for ifconfig in the wrong place
you should connect your phone through usb and start adb shell
then type (change openvpn.conf to the conf file you are using)
Code:
openvpn --config /sdcard/openvpn/openvpn.conf
if you launch the command above there will some messages in the shell window
you should look for ifconfig
/system/xbin/bb/ifconfig tap0 192.168.1.40 netmask 255.255.255.0 mtu 1500 broadcast 192.168.1.255
Click to expand...
Click to collapse
now you know the path where OpenVPN is looking for ifconfig and where it can't find it (/system/xbin/bb/ifconfig)
now type the command below to locate where ifconfig is on your rom
Code:
which ifconfig
this could be for example
/system/xbin/ifconfig
Click to expand...
Click to collapse
now type the commands below in adb shell (ln -s <correct path> <incorrect path>)
Code:
cd /system/xbin
ln -s /system/xbin /system/xbin/bb
this will create a correct link for ifconfig and route commands
I have not tested it myself as I flashed a CM rom shortly after
but if you replace the values with your values it should work fine and not do any harm
if you get it to work could you please let me know?
thanks!
S2 is not in my hand right now. I'll try it tomorrow and thank you very much.
Sent from my Nexus One
OpenVPN works fine now and thx Gawis!!
This is my steps
1. Flashing Firmware with Odin (guide)
2. Root My S2, and busybox installed with SuperOneClick (guide)
3. Download OpenVPN File download and extract
4. Use adb tools
Code:
adb remount
adb push openvpn-static-2.1.1 /system/xbin/openvpn
adb shell
# chmod 775 /system/xbin/openvpn
# mkdir /system/xbin/bb
# ln -s /system/xbin/busybox /system/xbin/bb/ifconfig
# ln -s /system/xbin/busybox /system/xbin/bb/route
5. Download and install OpenVPN Settings From Android Market
6. Upload My config files to USBstorage.The path is /sdcard/openvpn/
7. Flashing StockKernel with Odin (guide)
over~
Sorry for my poor English~
Hi diesiren,
thanks for confirming and putting up the guide!
I'm really glad it works, hope to have my phone nex week or the week after and will try this one myself then!
diesiren said:
Code:
adb remount
adb push openvpn-static-2.1.1 /system/xbin/openvpn
adb shell
# chmod 775 /system/xbin/openvpn
# mkdir /system/xbin/bb
# ln -s /system/xbin/busybox /system/xbin/bb/ifconfig
# ln -s /system/xbin/busybox /system/xbin/bb/route
Click to expand...
Click to collapse
I just got my OpenVPN working on my SGSII!
I just rooted it with CF-Root 3.7 and then pushed the openvpn binary and executed the commands you posted
thanks for the guide!
I'm having problems getting openVPN to work.
I have adb pushed openvpn-static-2.1.1 to system/xbin already.
But when i adb shell, the result is "sh:applet not found"
I am 100% I am rooted. I am running root explorer, titanium backup, have busybox installed, and superuser.
Any advice would be extremely helpful.
Thanks!
Hmmm, haven't experienced any issues like that with adb yet so can't comment on that...
I created an update.zip for the whole thing a few days ago...
Are you running a custom rom? If so which one?
Am planning to post the update.zip here later...
I tested it with Cognition and CM7...
Sent from my GT-I9100 using Tapatalk
I just uploaded the update.zip in this thread
Gawis said:
Hmmm, haven't experienced any issues like that with adb yet so can't comment on that...
I created an update.zip for the whole thing a few days ago...
Are you running a custom rom? If so which one?
Am planning to post the update.zip here later...
I tested it with Cognition and CM7...
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
I'm on Exynos v3.6 ROM.
I saw your thread. Thanks for the zip, bro. Very much appreciated.
Thanks for the help! I found that I had to first remount in read/write mode the /system directory as mine was read-only.
Ran the code below to do this:
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Hey...
I have a similar issue. My SGS2 already is connected to the openVPN but i can't connect to an other client at the vpn. So no Ping, no tracerroute or (most important) telnet connection. I think it might be something about the routing but I don't find a hint on any forum.
Hi there, i installed a custom rom with dt a2sd and i still have problems installing apps from market that are too big. My cache partition is only 24mb and the market uses this partition to download apps... There's a way to increase or modify this partition?
Galaxy Ace 2.3.4 with Ginger Real 1.4
Thanks
Nope . Your only choice is to make a sd-ext partition and move all your apps and Dalvik-cache to it .
Forever living in my Galaxy Ace using XDA App
GingerReal did that for me, so i can install many apps now but not big apps?
Dante Smith said:
Hi there, i installed a custom rom with dt a2sd and i still have problems installing apps from market that are too big. My cache partition is only 24mb and the market uses this partition to download apps... There's a way to increase or modify this partition?
Galaxy Ace 2.3.4 with Ginger Real 1.4
Thanks
Click to expand...
Click to collapse
Just type these command in terminal emulator app
Code:
mkdir /mnt/sdcard/market-download
su
cd /cache
mv download download.bak
ln -s /mnt/sdcard/market-download download
ls -ahl
it should work for any rooted galaxy ace
Command
Code:
mv download download.bak
returns this
Code:
failed on 'download' - No such file or directory
And
Code:
ln -s /mnt/sdcard/market-download
Returns
Code:
ln [-s] <target> <name>
are you in /cache folder
type ls -ls in terminal and check for download folder if it is not there then just pass this command.
---------- Post added at 01:36 AM ---------- Previous post was at 01:33 AM ----------
Dante Smith said:
And
Code:
ln -s /mnt/sdcard/market-download
Returns
Code:
ln [-s] <target> <name>
Click to expand...
Click to collapse
my mistake it is
Code:
ln -s /mnt/sdcard/market-download download
mmmh...
i do this:
su
cd /cache
here i tried ls -ls and it says me:
-ls: No such file or directory
Where i'm wrong?
I'm using Terminal Emulator, not adb
same for
ls -ahl
Dante Smith said:
mmmh...
i do this:
su
cd /cache
here i tried ls -ls and it says me:
-ls: No such file or directory
Where i'm wrong?
I'm using Terminal Emulator, not adb
Click to expand...
Click to collapse
Don't know why it not working with you cause i already tried it on cm7 in terminal emulator app and it was working.
Anyway try this, rename the download folder to download.bak via root explorer and then type this
in cache folder
Code:
ln -s /mnt/sdcard/market-download download
/cache seems to be empty!
i can't find any file or directory there!
No now i see something...
I have:
lost+found
recovery
downloadfile-2.apk
downloadfile-3.apk
downloadfile.apk
EDIT: i suppose my download folder is directly /cache
Dante Smith said:
/cache seems to be empty!
i can't find any file or directory there!
Click to expand...
Click to collapse
ok then just type this command in emulator
Code:
su
cd /cache
mkdir /sdcard/market-download
ln -s /sdcard/market-download download
Check if this will work for you or not.
I had no error, i try do reboot and download something big
Dante Smith said:
No now i see something...
I have:
lost+found
recovery
downloadfile-2.apk
downloadfile-3.apk
downloadfile.apk
EDIT: i suppose my download folder is directly /cache
Click to expand...
Click to collapse
It's strange!!! I think your rom have some different folder structure. Are you using old market?
didn't work, i have new market
Dante Smith said:
didn't work, i have new market
Click to expand...
Click to collapse
What rom you are using?
Ginger Real 1.4
Android 2.3.4
S5830DDKQ5
SGA-GR-1.4 GINGERBREAD.DDKQ5
Dante Smith said:
Ginger Real 1.4
Android 2.3.4
S5830DDKQ5
SGA-GR-1.4 GINGERBREAD.DDKQ5
Click to expand...
Click to collapse
Maybe Ginger Real is using different folder structure but you can try these command with cache folder (Not guaranteed or may be a risk, don't know.).
I will google it again for some day, if i don't find what i'm looking for i will try your script again
Thank you for your help!!!