[Q] Phone reboots when using cp command - Optimus One, P500, V General

To start off with: I have an LG Optimus V and am using various forms of CM7 overclocked to a stable 825 mhz.
When I'm using cp to copy files from /sys/devices/platform to my sd-ext partition it errors out saying something like: cp can't stat "insert name here" no such file or directory. Then it just reboots without any warning and is too fast for me to get any more than a glimpse. The code I'm using is:
Code:
cp -aiv /sys/* /sd-ext/sys
Does anyone know of a reason why this might occur? Or better yet, how to fix this? I've heard somewhere that some CM7 kernels don't support loop devices, but that that can be fixed manually. I just don't know how to do it.
If someone knows how to fix this problem please help. Oh yeah, almost forgot... I don't have a computer so please make any help android compatible.
______________
If you've never gone too far, you'll never know how far you can go.

Why are you trying to copy that?
825 stable? Mine freezes above 806

trying to install Debian Linux onto my ext2 partition. I've got it working except for the file transfer, but it doesn't seem to need anything except the /etc files.
Oh and yes 825 stable, very stable. I haven't had any problems until this Debian install. And that only because I haven't even heard of linux until March 2011 and I'm just learning about the interesting stuff, lol

/sys is not just ordinary folder, do "mount -t sysfs sysfs /sd-ext/sys/".
BTW: http://forum.xda-developers.com/showthread.php?t=996746

To the OP:
where'd you find the info to installing debian linux to your ext2? Im interested in doing the same or looking into it
Sent from my LG-P500 using xda premium

Related

Cant run Debian

Hi there, i was trying to run Debian on my pro, but i cant install it! i try two methods, the Linux installer Beta 1.7 (say kernel dosnt have ext and loop support) and the SU terminal emulator way (cant chmod to 4755 any file, even using the su command - from here: http://www.talkandroid.com/android-forums/android-development/1091-install-debian-android.html )...
My pro is ROOTED with latest z4root, i even do a factory repair with pc companion...
Any advice???
Regards!
I tried this as well... no loop is no loop ( required for chroot type runs )
works on a Samsung i5700 I have at work tho...
thnx for the reply, so i can add loop and the ext thing? or we need a custom kernel? , what rom have the samsung?, in other hand i dont know why i cant chmod the files, even using root explorer! regards...
needs a new kernel yes.
i5700 is running samdroid cooked ( forget which version, but added multitouch )
damn :/
now why i cant chmod the files using su terminal emulator or root explorer? maybe is because my sdcard is formated in fat32, regards!
fat32 knows nothing about *nix style permissions, in a way though... all files on a fat32 are set 0777, but not really... heh
For what it's worth, I've just had Debian running in a chroot on my X10 Mini Pro, using the instructions at talkandroid.com, as mentioned by the original poster. Sorry, but as a new poster, I'm not allowed to link directly to those directions. This is with stock ROM, upgraded to Android 2.1, rooted with SuperOneClick.
A few modifications are necessary to make it work. I'm going to try to describe what I've done, but I am working backwards, so it's entirely possible that I'll leave something out and you could suffer disastrous consequences. So please be sure you back up all crucial data before proceeding, and be prepared to accept the possibility that your phone could be destroyed in the process.
First of all, the instructions tell you to run scripts from your SD card, which isn't going to work unless the card has a partition with a Linux-compatible file system. I suggest following the directions as far as step 4. Then replace the "bootdeb" file in the "debian" directory with the modified version attached to this post. Rename it "bootdeb". Then you will have to run the following commands manually, preferably using adb shell, but it can be done in a terminal on the phone. Either way, using the ash shell helps by providing command completion and history.
As root (su):
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
mkdir /data/local/mnt
cd /sdcard/debian
cp bootdeb /data/local/bin #note: you may need to mkdir /data/local/bin first
cd /data/local/bin/
chmod 4777 bootdeb
You should now be able to run the bootdeb script to start up Debian.
The installation file says, "Be sure to run /scripts/onetime.sh as root from the shell after your FIRST 'boot'." This will prompt you to set a root password.
At this point, the Debian installation is command line only and root only. The image file needs to be resized before much can be added.
The other files in the Debian directory may be useful, but they all need to be modified before they can be used.
This is only a beginning. I don't know that I'm likely to get very far with it, so anyone else who's inclined to jump in and make this work better is welcome to do so!
edit: correcting grammatical error
Just in case anyone else shares my obsession -- I mean interest in getting Debian to run on an X10 Mini Pro, I thought I should report my progress. Or lack thereof.
Actually, as I said in the previous post, command line Debian works, and that's a lot of power to have available. But it would be nice to get X working, despite the lack of video drivers.
There's a lot of information out there about setting up X with a VNC server on an Android phone, then running a VNC client to access the graphic environment. The source of most accounts seems to be a thread at the androidfanatic forums, with the title "Gnome, KDE, IceWM or LXDE Desktop on your Android!"
(Sorry, I'm still too new at this to be allowed to post links, so this is the only way I can indicate where to find the information.)
I've tried lots of variations on those directions, trying to adapt them to the X10 Mini Pro. And I've had a little success. I can get to the Icewm or LXDE desktop and run the terminal program, but I can't start any programs that use X. Invariably, I get this error:
Error: Can't open display: :1.0
I've run out of ideas, so I'm taking a break from the project. If anyone else is interested enough to try, good luck to you!
For what it's worth, the most recent and comprehensive account of running Debian with X on Android phones appears to be at lanrat.com, in the "android" directory, filename "debian".
@RobbH
Very interesting! I'm waiting a new 8gb card so that I try it! Should you come up with any new progress please report here

[REF] How to boot your SD build from magldr [quick guide]

This is a very short guide for all of you looking to dual boot android from the sd card now that you have windows phone 7 taking up the nand space. It's originally posted by letama and I added a bit to it.
It's actually quite simple. All you have to do is add nand_init to one line in the init.rc file. For most builds, you will need to use a linux distro and mount the rootfs.img file, then edit the init rc file, add nand_init to this line:
Code:
service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0
so it looks like this
Code:
service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0 nand_init
For builds that uses the cedesmith initrd method, you have to mount the system.ext2 file, everything else is the same.
Save your file. Make sure you haven't changed the permissions and unmount the image. Copy the build to your microsd, set magldr to boot from the directory you copied it to and boot ad sd, you should be good to go.
Problems: booting it this way does not read from your startup.txt, you have to wait for cotulla to add it in future magldr. I'm not sure if the old method of updating (dumping everything in a folder named root) still works.
Disclaimer: I've tried this with jdms, hd2one, superram, desire_hd2 and mdj rEVOlution 2.3 and they all work fine with my old data image, your mileage may vary. This is a very quick guide because that's all I know Anymore I'll have to search google, so you might as well do that yourself Anyone who have a better method of editing feel free to post it. I'll add it here if you post it in this thread.
Tip from aled99 to edit without linux.
Corias said:
I've managed to mount system.ext2 to Windows 7. Without VM and Linux at all.
What tools are needed:
1. Windows Ext2/Ext3 driver. You can get it from here.
2. Any software to mount image to virtual drive. I've used Gizmo Drive, but there are others also working.
Tip: Gizmo doesn't show ext2 as supportable image type, when you browse for image. So, manually type *.* filter.
Click to expand...
Click to collapse
Some files that are already edited:
CoreDroid HD 0.4 edited by ricola7
Desire_hd2 system.ext2 file
HD2ONE 0.3.5 system.ext2
JDMS 1.62
MDJ HD v4.6
MDJ rEVOlution 2.3 rootfs.img
NexusHD2-FRG83D v1.8 from nzxtneo
Superram 1.5 from letama
Builds that already work with magldr:
DL DesireZ v2.2 from dandiest
HD2 Gingerbread/CyanogenMod7 from copenhagen
Is this a method to boot a NAND Rom from SD Card without flashing?
blax123 said:
Is this a method to boot a NAND Rom from SD Card without flashing?
Click to expand...
Click to collapse
No it boots the sd builds from this subforum. Not the nand builds.
will this work if I have android in my nand, and want to run a different android off of sd card? Like if I wanna test drive gingerbread roms off the sd, while sticking with a froyo based rom in nand? I really want to do this.
izzy spun said:
will this work if I have android in my nand, and want to run a different android off of sd card? Like if I wanna test drive gingerbread roms off the sd, while sticking with a froyo based rom in nand? I really want to do this.
Click to expand...
Click to collapse
I haven't tried copenhagen's build but it should work the same way. Try it and let us know how it worked out
Edit: Actually I got curious and checked it out. Copenhagen's build does not require editing. You can boot it from sd using magldr as it is. Nice too. I think I'll play with that for a while
Sorry but I'm stuck on the first line. What is a linux distro? How do I edit the line? I'll be able to take care of the rest. This is the part that confuses me.
buzz killington said:
This is a very short guide for all of you looking to dual boot android from the sd card now that you have windows phone 7 taking up the nand space. It's originally posted by letama and I added a bit to it.
It's actually quite simple. All you have to do is add nand_init to one line in the init.rc file. For most builds, you will need to use a linux distro and mount the rootfs.img file, then edit the init rc file, add nand_init to this line:
Code:
service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0
so it looks like this
Code:
service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0 nand_init
For builds that uses the cedesmith initrd method, you have to mount the system.ext2 file, everything else is the same.
Save your file. Make sure you haven't changed the permissions and unmount the image. Copy the build to your microsd, set magldr to boot from the directory you copied it to and boot ad sd, you should be good to go.
Problems: booting it this way does not read from your startup.txt, you have to wait for cotulla to add it in future magldr. I'm not sure if the old method of updating (dumping everything in a folder named root) still works.
Disclaimer: I've tried this with jdms, hd2one, superram, desire_hd2 and mdj rEVOlution 2.3 and they all work fine with my old data image, your mileage may vary. This is a very quick guide because that's all I know Anymore I'll have to search google, so you might as well do that yourself Anyone who have a better method of editing feel free to post it. I'll add it here if you post it in this thread.
Click to expand...
Click to collapse
thanks.. so i must use linux? any tools available in win?
buzz killington said:
I haven't tried copenhagen's build but it should work the same way. Try it and let us know how it worked out
Edit: Actually I got curious and checked it out. Copenhagen's build does not require editing. You can boot it from sd using magldr as it is. Nice too. I think I'll play with that for a while
Click to expand...
Click to collapse
can you elaborate on this please.
can you give a step by step.
i am real interested in trying this.
thanks in advance.
Anthonayy said:
Sorry but I'm stuck on the first line. What is a linux distro? How do I edit the line? I'll be able to take care of the rest. This is the part that confuses me.
Click to expand...
Click to collapse
It's just short for Linux distribution, such as ubuntu or redhat. I used ubuntu. Once you have it mounted you can use any text editor available.
vista1984 said:
thanks.. so i must use linux? any tools available in win?
Click to expand...
Click to collapse
Sorry, I don't know if there are. Maybe others can chime in. Anything that'll let you mount an ext2 image and edit its contents will do. Unfortunately I'm not familiar with any windows tools.
Will this hack enable me to run Android from my SD card, with WP7 installed on the phone?
I just want to make sure, because I've been searching around, and several indidual sources have said that WP7 doesn't recognize any SD cards, including compatible SD cards.
I would really love to try WP7, but without losing my android.
Sent from my HTC HD2 using XDA App
WOOZ!E said:
Will this hack enable me to run Android from my SD card, with WP7 installed on the phone?
I just want to make sure, because I've been searching around, and several indidual sources have said that WP7 doesn't recognize any SD cards, including compatible SD cards.
I would really love to try WP7, but without losing my android.
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Dude, it has nothing to do with WP7, You boot Android from MAGLDR not WP7. So you would either use a different SD card to boot into Android BEFORE booting windows or you would partition your SD card in a way that it allows you to use it for WP7 and Android at same time.
How can I mount the system.ext2 by using terminal?
Code:
[email protected]# mount -o loop system.ext2 /mnt
system.ext2: No such file or directory
asdfg2010 said:
How can I mount the system.ext2 by using terminal?
Code:
[email protected]# mount -o loop system.ext2 /mnt
system.ext2: No such file or directory
Click to expand...
Click to collapse
you have to specify where your file is and I believe you have to create a mount point, you can't just put it in /mnt. Somebody correct me if I'm wrong
Code:
cd /mnt
sudo mkdir sys
sudo mount -o loop -t ext2 /home/usr/Desktop/system.ext2 /mnt/sys
buzz killington said:
you have to specify where your file is and I believe you have to create a mount point, you can't just put it in /mnt. Somebody correct me if I'm wrong
Code:
cd /mnt
sudo mkdir sys
sudo mount -o loop -t ext2 /home/usr/Desktop/system.ext2 /mnt/sys
Click to expand...
Click to collapse
I try but not successful
windows ext2 editing
buzz killington said:
It's just short for Linux distribution, such as ubuntu or redhat. I used ubuntu. Once you have it mounted you can use any text editor available.
Sorry, I don't know if there are. Maybe others can chime in. Anything that'll let you mount an ext2 image and edit its contents will do. Unfortunately I'm not familiar with any windows tools.
Click to expand...
Click to collapse
I think you can edit an ext2 image with windows using the method in post #4 from this thread: http://forum.xda-developers.com/showthread.php?t=808169
Corias said:
I've managed to mount system.ext2 to Windows 7. Without VM and Linux at all.
What tools are needed:
1. Windows Ext2/Ext3 driver. You can get it from here.
2. Any software to mount image to virtual drive. I've used Gizmo Drive, but there are others also working.
Tip: Gizmo doesn't show ext2 as supportable image type, when you browse for image. So, manually type *.* filter.
Click to expand...
Click to collapse
I've tried editing the file and it seemed to save the changes, but I haven't tried booting android yet.
I am trying to do this method in super ram Rom but no success. I have successfully mount system.ext2 but there wasn't any init.rc file. After a lot Google search I have managed to discover that this file is in file initrd.gz and I made the change. But the build starts and hangs in first screen.any suggestion;
Sent from my HTC HD2 using Tapatalk
can anyone uploade the files? i dont have linux..
Cool, thanks! I seems to be working for me with MDJ FroYo HD v4.6. Has anyone had any success getting two Android ROMs running from their microSD card? I was doing this when booting from WM6.5 by putting them in different directories and modifying rel_path in the startup.txt for one of them, but obviously this method won't work until MAGLDR supports startup.txt...
clio94 said:
I am trying to do this method in super ram Rom but no success. I have successfully mount system.ext2 but there wasn't any init.rc file. After a lot Google search I have managed to discover that this file is in file initrd.gz and I made the change. But the build starts and hangs in first screen.any suggestion;
Sent from my HTC HD2 using Tapatalk
Click to expand...
Click to collapse
I didn't do the superram built myself, but letama posted a full version later in that magldr thread. Try to see if you can find it. If not I'm sure I still have it somewhere I can post it for you.
You can change Android folder on SD using MAGLDR
Enter Magldr
Select 9. Services
then 1. BootSettings
then 3. AD SD Dir

[DEV] Multiboot Menu

Hey devs, owain got a nice Dualboot Script, I modded it, added some lines and fixed some wrong ones, here it is:
IF YOU WANT TO MAKE ANY CHANGE, PLEASE CLICK ON MAKE A NEW VERSION OF THIS PASTE!
Recovery sucessfully modded, chargemon still bad...
And there's where we need help, thanks to everyone of you devs , tip, take a look @ xrecovery sources here, Thanks to zdzihu, im looking into that..
THIS IS A DEV THREAD PLEASE DON'T SPAM HERE
This will be good.. we can make it like reboot to xrec! and maybe we can try porting windows ME 6.0 or something! or maybe two ROM.. and final Question... Does this script really work.. means i really don't find problem in it.. but still asking!
newtron_b1 said:
This will be good.. we can make it like reboot to xrec! and maybe we can try porting windows ME 6.0 or something! or maybe two ROM.. and final Question... Does this script really work.. means i really don't find problem in it.. but still asking!
Click to expand...
Click to collapse
Im sorry, this is a dev related post, as you can see on [DEV] tag, but anyway, Script should work not tested yet, and windows mobile port it's almost impossible, this is made to dual boot 2 android roms
Hell yeah! can't wait for Multiboot.
so Froyo, and Gingerbread at the same time will be possible some times?
Quote myself:
THIS IS A DEV THREAD PLEASE DON'T SPAM HERE
Click to expand...
Click to collapse
And please don't reply saying im sorry... cuz that's spam no offends to nobody ofc
so Froyo, and Gingerbread at the same time will be possible some times? -> Yes, but dont ask more, this is a dev thread, if we got it we're gonna change [DEV] to script o whatever
btw: good night need 2 sleep some
DEV INFO: Discovered a way to make it but without interface, tomorrow will post more info
D4rKn3sSyS said:
Im sorry, this is a dev related post, as you can see on [DEV] tag, but anyway, Script should work not tested yet, and windows mobile port it's almost impossible, this is made to dual boot 2 android roms
Click to expand...
Click to collapse
uhm hell yeah it is tested
!for DEV's only (and people that know what they are doing)!
to make the images that are placed on the sdcard
make 3 ext2fs images
system.img size: 256 MB
data.img size: 512 MB
cache.img size: 256 MB
you van make them bigger or smaller but i recommand this sizes
make an NANDROID backup from the rom that you want on the sdcard
FACTORY RESET FIRST! THEN BACKUP!!!!!!!
user in the next lines is ofc your username
put the NANDROID images at /home/user/nandroid/dualboot/
and put the ext2fs images at /home/user/ext2fs/dualboot/
and make this dir /home/user/mountpoints/
now run all these lines!
you will need unyaffs on our pc!
Code:
sudo su
mv system.img /home/user/nandroid/dualboot/system/
cd /home/user/nandroid/dualboot/system/
unyaffs system.img
mv system.img ../.
mv data.img /home/user/nandroid/dualboot/data/
cd /home/user/nandroid/dualboot/data/
unyaffs data.img
mv data.img ../.
mv cache.img /home/user/nandroid/dualboot/cache/
cd /home/user/nandroid/dualboot/cache/
unyaffs cache.img
mv cache.img ../.
mount -t ext2 -o loop,rw,noatime,nodiratime /home/user/ext2fs/dualboot/system.img /home/user/mntpts/system/
mount -t ext2 -o loop,rw,noatime,nodiratime,nosuid,nodev /home/user/ext2fs/dualboot/data.img /home/user/mntpts/data/
mount -t ext2 -o loop,rw,noatime,nodiratime,nosuid,nodev /home/user/ext2fs/dualboot/cache.img /home/user/mntpts/cache/
cp -r -p /home/user/nandroid/dualboot/system/* /home/user/mntpts/system/
cp -r -p /home/user/nandroid/dualboot/data/* /home/user/mntpts/data/
cp -r -p /home/user/nandroid/dualboot/cache/* /home/user/mntpts/cache/
umount /home/user/mntpts/system/
umount /home/user/mntpts/data/
umount /home/user/mntpts/cache/
now all your information is in the ext2fs (damn i hate to type ext2fs -.-'')
extract the ramdisk from the rom that u want for dual boot rename it to "sdcardos1-ramdisk.tar"
and push it into the /system/bin from the rom you want to have on NAND! (so not the rom you just bakupped that would be silly nand and second the same ROM xD)
and chmod it to 0777
now when you want to try it
just do this in adb shell or mobiel terminal
Code:
touch /data/local/tmp/sdcardOS1
reboot
owain94 said:
uhm hell yeah it is tested
!for DEV's only (and people that know what they are doing)!
to make the images that are placed on the sdcard
make 3 ext2fs images
system.img size: 256 MB
data.img size: 512 MB
cache.img size: 256 MB
you van make them bigger or smaller but i recommand this sizes
make an NANDROID backup from the rom that you want on the sdcard
FACTORY RESET FIRST! THEN BACKUP!!!!!!!
user in the next lines is ofc your username
put the NANDROID images at /home/user/nandroid/dualboot/
and put the ext2fs images at /home/user/ext2fs/dualboot/
and make this dir /home/user/mountpoints/
now run all these lines!
you will need unyaffs on our pc!
Code:
sudo su
mv system.img /home/user/nandroid/dualboot/system/
cd /home/user/nandroid/dualboot/system/
unyaffs system.img
mv system.img ../.
mv data.img /home/user/nandroid/dualboot/data/
cd /home/user/nandroid/dualboot/data/
unyaffs data.img
mv data.img ../.
mv cache.img /home/user/nandroid/dualboot/cache/
cd /home/user/nandroid/dualboot/cache/
unyaffs cache.img
mv cache.img ../.
mount -t ext2 -o loop,rw,noatime,nodiratime /home/user/ext2fs/dualboot/system.img /home/user/mntpts/system/
mount -t ext2 -o loop,rw,noatime,nodiratime,nosuid,nodev /home/user/ext2fs/dualboot/data.img /home/user/mntpts/data/
mount -t ext2 -o loop,rw,noatime,nodiratime,nosuid,nodev /home/user/ext2fs/dualboot/cache.img /home/user/mntpts/cache/
cp -r -p /home/user/nandroid/dualboot/system/* /home/user/mntpts/system/
cp -r -p /home/user/nandroid/dualboot/data/* /home/user/mntpts/data/
cp -r -p /home/user/nandroid/dualboot/cache/* /home/user/mntpts/cache/
umount /home/user/mntpts/system/
umount /home/user/mntpts/data/
umount /home/user/mntpts/cache/
Click to expand...
Click to collapse
Owain discovered a easy coded way.. if a=1 open os1, if a=2, open os2, if a=3 mount xrecovery, if a=4 **** mount sdcard, being "a" any **** we could make ... next step user interface
good night owain, see ya 2moro, my eyes hurt need 2 sleep
D4rKn3sSyS said:
Owain discovered a easy coded way.. if a=1 open os1, if a=2, open os2, if a=3 mount xrecovery, if a=4 **** mount sdcard, being "a" any **** we could make ... next step user interface
good night owain, see ya 2moro, my eyes hurt need 2 sleep
Click to expand...
Click to collapse
edited post btw just that you know
and yeah why make it hard when we can keep it simple right
with the sizes i recommand the os wil be 1GB in size...
you can also try
system 128 MB
data 256 MB
cache 128 MB
then the size will be 512MB
but yeah sorry this is not only a ROM
the data and cache img's are empty when u download them but still this size
just don't complain about it or find a way yourself
@d4 good night bro
EDIT: michael (A.K.A MikevHL) got an boot menu for the milestone 2 he can probz help us
owain94 said:
edited post btw just that you know
and yeah why make it hard when we can keep it simple right
with the sizes i recommand the os wil be 1GB in size...
you can also try
system 128 MB
data 256 MB
cache 128 MB
then the size will be 512MB
but yeah sorry this is not only a ROM
the data and cache img's are empty when u download them but still this size
just don't complain about it or find a way yourself
@d4 good night bro
EDIT: michael (A.K.A MikevHL) got an boot menu for the milestone 2 he can probz help us
Click to expand...
Click to collapse
Nice, let's ask MikevHL.. and btw, the linux thing post, it's for linux... dont try it on another os ¬_¬" its obvious no ?.
This is because some people dont read and just do things... no offends to nobody
Lyk we can have 3 partitions on memory card, alter xRecovery to install update.zip which can be any rom running over the default rom, while the default rom is still in background, something lyk they did on cellfone running symbian n windows 7, while symbian being running in background...
p.s. I'm not talking about WP7 but Windows 7,
i dont want to question legendry zdzihu, but can u provide me the source code of xRecovery...
galvic said:
Lyk we can have 3 partitions on memory card, alter xRecovery to install update.zip which can be any rom running over the default rom, while the default rom is still in background, something lyk they did on cellfone running symbian n windows 7, while symbian being running in background...
p.s. I'm not talking about WP7 but Windows 7,
i dont want to question legendry zdzihu, but can u provide me the source code of xRecovery...
Click to expand...
Click to collapse
we just use 1 partition
and 1 os at the time
we got not enough RAM for running 2 roms
take a look at XDANDROID on windows 6.1-6.5 phones
not the NAND version of XDANDROID btw
it is damn slow coz windows mobile 6 is running in the background and android on the foreground
Hey owain i was thinking.. and what if we do a apk?, slade and me are good @ java, and im sure you too
Edit:
Got another fast idea
Can chargemon load another files?, if yes, we can do this
chargemon:
if a=1, load script os1
if a=2, load script os2
if a=3, load script xrecovery unified
if a=4, mount SD
and then we can do a java interface (Apk ?)
That's a nice approach, but I'm afraid loop devices will make the device considerably slower. Got two questions:
- How long does it take to boot?
- What's the performance overhead (e.g. some benchmark results)?
Other than that, I see no reason why this wouldn't work.
D4rKn3sSyS said:
Hey owain i was thinking.. and what if we do a apk?, slade and me are good @ java, and im sure you too
Edit:
Got another fast idea
Can chargemon load another files?, if yes, we can do this
chargemon:
if a=1, load script os1
if a=2, load script os2
if a=3, load script xrecovery unified
if a=4, mount SD
and then we can do a java interface (Apk ?)
Click to expand...
Click to collapse
why not just add it in reboot menu
and we can add as many entries as we want
nobodyAtall said:
That's a nice approach, but I'm afraid loop devices will make the device considerably slower. Got two questions:
- How long does it take to boot?
- What's the performance overhead (e.g. some benchmark results)?
Other than that, I see no reason why this wouldn't work.
Click to expand...
Click to collapse
when i got my mimmi back i will try to improve the script
boot time i can't tell you sorry
i used another script with sleep 5 everytime and a complete ext2fs check
to be sure my images were not broken or something
when my mimmi is back from repair i will try new script and report back to you
about the performance
well not that bad! it was a bit slower then stock i must say did not benchmark it but it felt like it was nto that much slower
again when i got my device back will report also a benchmark score back to you
owain94 said:
we just use 1 partition
and 1 os at the time
we got not enough RAM for running 2 roms
take a look at XDANDROID on windows 6.1-6.5 phones
not the NAND version of XDANDROID btw
it is damn slow coz windows mobile 6 is running in the background and android on the foreground
Click to expand...
Click to collapse
Yeah you're absolutely right it'll make the device slow, but if we are able to freeze the ROM running in background while the one running in foreground gets full access to RAM... Do you think it'll work it out? Or just burn this background- foreground thing?
Well i did some research and found out that device is called Fujitsu LOOX-F07C, has 1.2 ghz intel atom, nd 1 gb ram,
i got an idea how about creating a virtual machine? Thats able to load other OS? Virtual machine can be .apk,
well it'll need RAM lots of it, theres no way it'll work on stock, but legendary owain your ROM might be able to do it, i hope mighty d4rk can add his skills nd knowledge, shoult i try develop such vritual machine?
galvic said:
Well i did some research and found out that device is called Fujitsu LOOX-F07C, has 1.2 ghz intel atom, nd 1 gb ram,
i got an idea how about creating a virtual machine? Thats able to load other OS? Virtual machine can be .apk,
well it'll need RAM lots of it, theres no way it'll work on stock, but legendary owain your ROM might be able to do it, i hope mighty d4rk can add his skills nd knowledge, shoult i try develop such vritual machine?
Click to expand...
Click to collapse
Hard, loop device it's easier
Recently got this from zdzihu:
Hi D4rKn3sSyS,
ClockWorkMod recovery (which xRec bases on) is quite big project and I'm not 100% familiar with all the code Maybe looking into stock Android recovery could shed some light on "how it's made"? As far as I remember it was much much simplier to catch on.
Cheers,
z
Click to expand...
Click to collapse
I know a little that you can do(not in this code, but a algorithm), but my english is SO horrible, anyone dev here speaks portuguese? T.T
Carcass.br said:
I know a little that you can do(not in this code, but a algorithm), but my english is SO horrible, anyone dev here speaks portuguese? T.T
Click to expand...
Click to collapse
Give us a idea, im not native english speaker, i speak spanish, but im sure somebody will got you idea
So, I'll start at the point that i understand here...
You guys are trying to load 2 roms for after this the user can choose what rom he wants?
First i guess that you will really need a extra partition, not in the way that you REALLY NEED, but for a bit that i understand of android system a extra partition will be more easy to work...
So, you can have a system based on XOR not a case option, for a case option (you'll need to have all "OS's" read to be choose). If someone have patience to explain me how the chargemon works I can help you, a while ago I was trying to learn these things, but no one supports me(and all content that I found was in english or in other languages :s), i'm graduate in computer science and don't know so much about kernel of android, if some one explain me, i can help you more with codes, because my english is REALLY horrible, i really don't understand too much of english, is really hard to me try to explain something in a language that i don't understand...

[Q] Noob trying to save /data space (chrome)

G'day.
I have a Desire with it's fantastically small /data partition (~147mb - and no a hboot switch won't fix anything with my current rom). Running ICS and hence also have chrome installed except it has about 36mb of junk in /data/data which is not traditionally moved to SD for performance reasons.
You'll have to excuse me here - because this is where I get stupid - but I beleive what I'm trying to do is symlink /data/data/com.android.chrome to somewhere convenient in sd-ext.
Can someone clever please point me in the direction of the exact line I need and the best way to implement it?
Cheers!
M.
Just edit the manifest, add installLocation="auto" (I think, look at my patched version, it's in there) and it will enable moving to sd, and leave bugger all on internal.
Haven't updated the patched version because they removed the device check.
Edit:
Or if you don't wanna resign the apk, just type the following in the terminal (making sure chrome is closed beforehand)
mkdir -p /sd-ext/data
mv -f /data/data/com.android.chrome /sd-ext/data
ln -s /sd-ext/data/com.android.chrome /data/data/com.android.chrome
Thanks, I'll have a look at the install location options
As you've probably guessed I'm not a coder But happy to tinker and see what happens...
M.
Should ask, what do you use to decompile/compile? (if on windows)
APK Manager decompiles, found the line you mentioned and added that just fine, however it fails on compiling...
M.
I use autoapktool, using apktool v1.4.3
ICS apks can be a pain.
Had a couple requests via pm so I'll put out an update sometime soonish with move to sd enabled (follow link in sig)
http://www.mediafire.com/?uyjta1swtp0w459 should work
Thanks.
I'm going to continue trying to get it working myself for future releases / personal education.... but this works great for right now
M.
Sent from my HTC Desire using xda premium

[I9505] Ubuntu Touch Development

Ok guys, starting this theard also to find other devs that also are working on porting ubuntu touch to the same device and buildup a team, anyone interested?
So my 1st try was when CM wasn't final release and got stuck at boot, i could connect with adb, but i only got displayed ubuntu and kernel version, and only a few commands worked, this is my 2nd try, so let's hope it will work better this time, also i will put my work on github.
24.NOV.2013:
-Having issues with libstagefright: http://pastebin.com/C8cuCAYA
Not much at rom porting but I'm a strictly linux only user and will help anyway I can. Send me a pm or post where your git is.
Sent from my GT-I9505 using xda app-developers
JustSueMe said:
Not much at rom porting but I'm a strictly linux only user and will help anyway I can. Send me a pm or post where your git is.
Sent from my GT-I9505 using xda app-developers
Click to expand...
Click to collapse
Nice to have people interested in this project, I will get GIT up when I will have it running 1st 13.10 since its stable.
nyl said:
Nice to have people interested in this project, I will get GIT up when I will have it running 1st 13.10 since its stable.
Click to expand...
Click to collapse
Nice I have a dev build env for ubuntu touch but unsure how to pull repo for unknown device. But if u get a build that boots I'm more than eager to work on it
Sent from my GT-I9505 using xda app-developers app
I've tried a few times to get it going for the M919 but each time I can't get past the Samsung Splash screen. I wasn't even able to connect via adb. Granted, I don't exactly know what I'm doing, but I do have a build environment set up and do have a little experience building and debugging builds. I should have time to tinker with it again in a few weeks.
ubuntu build
nyl said:
Nice to have people interested in this project, I will get GIT up when I will have it running 1st 13.10 since its stable.
Click to expand...
Click to collapse
i have a build enviroment made up and pulled repos ect.. i just need to work a few things out before im ready to test it and post on here, if you can point in right direction (if yours boots)
need to do the audio part but can boot without sound in the alpha
neeed to add in apparmor later, can be done later ubuntu should boot without it
brightness, i dont think it matters so much as booting up is priority but i dont seem to have file it wants me to change "device/[manufacturer]/[codename]/init.[codename].rc"
problem with the way fstab has to be setup
within my android source my fstab is "void.fstab" which has lines that look like :
dev_mount sdcard /storage/sdcard1 auto /devices/platform/msm_sdcc.4/mmc_host/mmc2/ /devices/platform/msm_sdcc.2/mmc_host/mmc2/
ubuntu port guide for fstab asks to find a filename like "fstab.jfltexx" and have lines that look like:
/dev/block/platform/omap/omap_hsmmc.1/by-name/EFS /efs ext4 nosuid,nodev,barrier=1
help with fstab will be much appreciated.
then ill make my build ready for testing/debugging + suppose ill upload files output files for others that are interested to use
Try this
Code:
# Android fstab file.
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1,errors=panic wait
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,journal_async_commit wait,check
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,journal_async_commit,noauto_da_alloc,errors=panic wait,check,encryptable=footer,length=-16384
# recovery
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults recoveryonly
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults recoveryonly
# vold managed volumes
/devices/platform/msm_sdcc.2/mmc_host/mmc2 auto auto defaults voldmanaged=sdcard1:auto
/devices/platform/msm_hsusb_host/usb auto auto defaults voldmanaged=sda:auto
Yes I used part of that, problem now is compile errors, I have fixed a lot of them which involved discarding some features for the time being.
Boot is the main priority though
Im stuck on a compile errors for shared library, ill attempt this one after I've slept.
Hope fully this is the last error, then ill have a .zip to upload .
Thats some great news ^^
What is the rom size?
Sent from my GT-I9505 using XDA Premium 4 mobile app
coolnessQ said:
Thats some great news ^^
What is the rom size?
Sent from my GT-I9505 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Erm i haven't got a system to flash yet, possibly I could try just getting a boot.img and flashing a ubuntu filesystem but the system modified will be needed to boot fully, in theory I'd only get a shell. I did have a boot.img [seemed to have misplaced it :s , comes out at 7.3mb]
When I've got more time I will go bk to source code and try work out how to solve the errors so I can have boot.img and system.img.
If anyone else is working on this, share problems and solutions With me ti help further the progress.
JustSueMe said:
Erm i haven't got a system to flash yet, possibly I could try just getting a boot.img and flashing a ubuntu filesystem but the system modified will be needed to boot fully, in theory I'd only get a shell. I did have a boot.img [seemed to have misplaced it :s , comes out at 7.3mb]
When I've got more time I will go bk to source code and try work out how to solve the errors so I can have boot.img and system.img.
If anyone else is working on this, share problems and solutions With me ti help further the progress.
Click to expand...
Click to collapse
are you unsing tw stock sources for the kernel? with 7.3mb it almost looks like that.
I have tried porting it before and here is my advise, you really have to look at the errors that it gives you during compiling rather then skipping it, or ignoring it, this is the only way you will get it decently working. the rom itself is only around 100mb if i remember correctly. the ubuntu package is like 400mb on top, but thats all proprietary files so universal.
Im using ubuntu tool.
So sources come from cyanogen's clone with modifications (if thats correct)
Yes I have been fixing errors hence no nfc support, but atm it's a problem with libstagefright [hardware video decoder] I was advised to remove it as not needed to make 1st boot but seems to be hardcoded in there
$ grep -r -H "stagefright" *
JustSueMe said:
Im using ubuntu tool.
So sources come from cyanogen's clone with modifications (if thats correct)
Yes I have been fixing errors hence no nfc support, but atm it's a problem with libstagefright [hardware video decoder] I was advised to remove it as not needed to make 1st boot but seems to be hardcoded in there
$ grep -r -H "stagefright" *
Click to expand...
Click to collapse
Here is the reference :good:
Code:
[email protected] /media/broodplank/linuxdatanew/AOSP-KK/device/samsung $ grep -r 'stagefright' .
./qcom-common/qcom-common.mk: libstagefrighthw \
also if you need clean sources for some particular things just use my repos from AOSP 4.3 (https://github.com/aosp-s4). it only includes the needed commits for jf devices only. way less filled with potential compile breakers like the source of cm.
broodplank1337 said:
Here is the reference :good:
Code:
[email protected] /media/broodplank/linuxdatanew/AOSP-KK/device/samsung $ grep -r 'stagefright' .
./qcom-common/qcom-common.mk: libstagefrighthw \
also if you need clean sources for some particular things just use my repos from AOSP 4.3 (https://github.com/aosp-s4). it only includes the needed commits for jf devices only. way less filled with potential compile breakers like the source of cm.
Click to expand...
Click to collapse
Ah I see this seems to of cleared it up abit for me, im busy today but may get look in at code, if not then tomorrow and clean it up abit and try recompile.
If it looks like a lost cause ill jump over to your git and pull that repo.
Fingers crossed
Sent from my GT-I9505 using xda app-developers app
commit to github so we can all take a look at it
.
..
You need to copy some header files for libstagefright to compile:
cp hardware/qcom/media/mm-core/inc/QCMediaDefs.h frameworks/av/media/libstagefright/
cp hardware/qcom/media/mm-core/inc/QCMetaData.h frameworks/av/media/libstagefright/
cp hardware/qcom/media/mm-
core/inc/QOMX_AudioExtensions.h frameworks/av/media/libstagefright/
cp hardware/qcom/media/mm-core/inc/OMX_QCOMExtns.h frameworks/av/media/libstagefright/
cp hardware/qcom/media/mm-core/inc/QCMediaDefs.h frameworks/av/media/libmediaplayerservice
My cm compiled but it wont boot (after flashing .zip and ubuntu system)
hmm.. did you remove all unecessary APPS? that are only needed by android not ubuntu touch? at you it seems relating to mounting points, something in your source doesn't let the kernel mount the partitions, maybe find a different approach to mount and add it to the source tree.
http://e2fsprogs.sourceforge.net/
everyone with interest in using ubuntu
if your interested in ubuntu touch on jfltexx and want to help
your now in luck
go here http://forum.xda-developers.com/showthread.php?p=48344910#post48344910
there is the download links and a few fixes for connectivity
Here is the link to the AT&T/Tmobile rom download : http://www.androidfilehost.com/?fid=23252070760974893'
Here is the link to the how to site (now instead of the phablet download use the one above) : http://forum.xda-developers.com/showthread.php?t=2564187
Oh and you need to flash the lokidoki zip file if used for AT&T.
Had it working perfectly, it is in extreme alpha, I had the wifi working and sound only works when plugged into headphones.
This should be more than enough to get the rom started up and getting a nice UT running shortly where everything works :3
I am not responsible for whatever happens to you or your device before, during, or after this. :3

Categories

Resources