debian question? - G1 Android Development

I successfully run debian on my phone. if I go to reenter the terminal after rebooting my phone and enter "bootdeb" I can't get back in?? I get a can not boot it and it reboots my phone. I've be taking the debian file off my sd card and putting it back on and going thru the setup process everytime I wanna use it... I'm sure I'm doin something wrong. Any suggestions??

Happened to me too - had to rerun installer.sh - after that, Debian boots every time.
/Mats

Related

SDcard for apps not possible

From what I can tell anyway. I was working on this, and I had it working up until installing a new app from the Market. Here's the tutorial I wrote:
Code:
Note1: This process can brick your phone, and it can crash the Android OS. Please use with caution, and know that you are responsible for your own actions, not me, nor anyone else.
Note2: If the Android OS does crash (signified by the Android loading screen, with the flashing Android logo) a factory reset is your best option. It saved me a few times when working on this process.
Note3: Note that a fresh start (factory reset phone) is best for this process, as it changes where all apps are going to be stored and used from.
Note4: Your SDcard cannot be accessed when the USB cable is plugged into your computer, so note the apps will not work/will not work well if you are connected to a PC.
Get root
In terminal:
1. su
2. cd data
3. mkdir /sdcard/data/app
4. mkdir /sdcard/data/app-private
5. mv app app2 (don't want to delete the directory terminal is running from, also kept for backup)
6. mv app-private app-private2
7. ln -s /sdcard/data/app app
8. ln -s /sdcard/data/app-private app-private
And bam! Done.
I then used adb push/pull to backup the app and app-private directories to the SDcard. (just in case, for the terminal app. And I tried this process with and without this step, so I know it isn't this messing it up)
Now Terminal Emulator runs, as well as everything else, but when I download/install a new app, my phone freezes as it goes to install it, and then crashed and goes to the Android OS loading screen forever.
I also worked on this and ran into the same problems you have...I know that there are some other folders that deal with the apps we download from android market.. One of the problems you may be having is that when installing there is an intitial setting up communication that is trying to occur between the downloaded apps, /sdcard/app, and other folders on the phone. When the sdcard/app trys to communicate back with the other party, your errors occur and you crash....I would suggest doing this again, hooking your phone up to DDMS and reproducing the crash again so that you can see what is throwing the errors...that may give you a better idea of what else needs to be done....
I would love to help in any way possible as I was working on this as well, btw, when you get stuck at the flashing android, there is no need to do a reboot, you can plug your phone into your computer and run the adb shell even though it isn't booting up. Since you can run the adb shell, you can fix the problem. Also, you could run DDMS to see what is keeping it from booting as well.
Me too!
I'm working on this as well, I will relay any progress I make, hope you will do the same.
Thanks!
Phromik said:
Now Terminal Emulator runs, as well as everything else, but when I download/install a new app, my phone freezes as it goes to install it, and then crashed and goes to the Android OS loading screen forever.
Click to expand...
Click to collapse
one question .. why are you trying to install apps to /sdcard??
This is an old thread that got bumped. This is not the way to go about getting apps to install to the sd-card.

Need Recovery Help–Screwed up my G1

I guess it was bound to happen sooner or later as I am a noob, but I can't figure out how to just reset the phone to a fresh install of JF 1.41.
Heres what I did: I was screwing around with the running apps off sd card scripts and after i copied the data/data file over i rebooted and all my user info was gone. So I reversed everything I thought I did, by coping the data file back to internal memory, then adb pushing the original mountd.conf and init.rc files to the phone. I restarted again and now when im in any android program my home button doesn't work anymore. So I figured I would just give up and reinstall a fresh version of JF 1.41 and start over, but when after I use the update.zip it just returns to the screwed up version ( i know because i erased maps from the home screen, and after running update.zip it doesn't return).
So now I don't know what to do. I did make a nandroid backup, but cant even figure out how to use it. I did get my phone to go into Flash mode, but I'm lost from there...
So can someone either tell me how to just start with a fresh install of JF, or give a noob very explicit instructions on how to use the nandroid backup. I dont believe I have busy box installed if that helps, but I do have root, and the HardSPL.
Did you perform a wipe from the update loader screen? If not you might want to give that a shot.
OMG. I think you guys have esp, and knew I was going to screw up my phone somehow. I didnt know that was even an option on the bootloader, even though I had read through the options a bunch of times.
Thanks for taking the time out to answer an easy one. You just made my night so much better, you have no idea.

Can't Access recovery mode

I don't know what's wrong with my phone. It is new, and well I've been having major issues when trying to root it.
At first I could not downgrade to RC29 (had RC33), I would get bootload update failure. I tried multiple Dreaimg.nbh, and reformatted my sd card to FAT32 multiple times. It finally worked when I gave up on it. It failed to succeed once so in frustration I ran it again, and it worked (with same Dreaimg.nbh that had failed previously)! After at least 20 tries...
Now is my next issue. I cannot make it reboot into recovery mode. This is after I flash the recovery.img (I have done this multiple times with different recovery.img and with different SD cards, I also tried using the install app to get the img directly to my phone).
It just keep reseting itself until I give up, and it then just boots regularly. Anybody know why this could be?
I have tried doing reboot recovery in telnet, and same results.
Please help me out. My phone is working now and well I don't want to risk bricking it again just so I can go get a new one from tmobile.
i know there are several posts about this, but i think what fixed it for the last guy i helped was to run the telnet step from the phone directly, get the telnet app and terminal emulator and try it that way, if you don't know what i am talking about send me a PM or email to tubaking182(at)gmail and i will walk you through it. also, when you download the recovery.img and put it on your sd card make sure you unmount the phone from the computer properly so that you know that EVERYTHING is actually done trying to read/write to the SD card. i don't remember if there is or not, but if the md5sum is given for the recovery.img then check that after you download it. might be any number of problems, but it shouldn't be that hard of a fix.
might wanna see if you can get to recovery after you flash the .nbh file, just to see if it works there. good luck

[Q] XT720: App2SD gets destroyed after Factory Reset?

Hey guys,
Can some one confirm this for me?
So i installed App2SD (as App2Card is a little panicky at times, it works when it feels like, and not when it doesn't like it), it works great until the point you decides to do a Factory Reset (because AOS will not allow you to delete the 1st account you used to sign up to the phone), and then if you try to reinstall the hundreds of apps that fit in properly before, now they don't go to the SD but instead they remains in the internal memory storage space.
That's understandable in a way, but the annoying thing is, if you try to install.sh again to re-apply App2SD then it complains that the ext2.ko file is already there and wont do anything.
the only way i've found to get around that is to reFlash the ROM, which is a major pain in the back. as you will need to reRoot, reOptimize, reEverything again...
Is there any easier way to reEnable App2SD after a Factory Reset?
Have anyone tried this?
Settings > Privacy > Factory Data Reset
after that, if you install apps from Market they will not get installed to SD, it'll just stay in the phone internal memory.
if you run the install.sh again from the App2SD script, it complains that the ext2.ko is already there and it wont do anything.
I'm very new to to this but my guess is that the files are still on the SD. I would try backing up anything you want to keep from the sd card & then reset up the SD card from scratch again before trying to run the script.
HTH
Flash your phone with RSDLite and then use the script. To answer your question, yes, factory reset does screw with APP2SD.
AG,
Have you tried sh install.sh -f
last time, it works for me. if it's not working for you, just open the install.sh file with a text editor and comment out the line that install the ext2.ko file. then, run the script again.
spiderx_mm said:
AG,
Have you tried sh install.sh -f
last time, it works for me. if it's not working for you, just open the install.sh file with a text editor and comment out the line that install the ext2.ko file. then, run the script again.
Click to expand...
Click to collapse
ohhh.. yeah -force, i'll try that again and see how it goes.
that is way better than having to Reflash the ROM every time, just to be able to do the App2SD
the XT720 is an awesome phone, the only flaw i can see in the phone is the boot up time is horribly looooong, it takes forever to boot up, everything else is perfect.
Update:
it did not work same error
Code:
Installing APPS2SD, please wait...
insmod: init_module '/system/lib/modules/ext2.ko' failed (File exists)
Error loading ext2.ko, exiting script ...
seems like the only way is to keep flashing the ROM then do everything from scratch
So just reflash then?

# Stuck when booting Froyo beta2 on Omnia 2 (i8000) #

Hello everybody,
I am completedly new to flashing roms and all that stuff, but in the last few days I have read a lot and introduced myself to Linux. Finally I tried to install froyo beta2 on Samsung Omnia 2. I think its installed correctly but however it crashed on every boot. The problem is different people always say different things, so here is the "How To" which I used:
###########################################
Step by step for other users..for manual installation [on SDCARD 8GB]
1. Format SD Card, both partitions as primary,
partition 1:Fat32:SDCARD
partition 2:Ext4:system
2. Mount SD Card under Ubuntu, got 2 partitions as mentioned by 1.
3. Copy ext4.tar.gz to /media/system
Unpack files from ext4.tar.gz in system with Terminal:
cd /media/system
sudo tar zxvf ext4.tar.gz -C /media/system
4. Copy haret.exe, zImage and startup.txt to the SD card
5. In startup.txt: root=/dev/mmcblk0p2, must be used because the 2nd partition redirects to your system.
6. Reboot or place sdcard back in phone and turn on the phone.
Run haret.exe from SDcard and Android will boot (it's normal that first screen is pink - just wait)
7. The Pink Screen will eventually go away and Android sign will appear..
######################################
I have found this post here in this forum, but I was not able to reply because I am "a new user", so I opened a new thread here.
Anyways I did that way and even the readme of froyobeta2 says pretty much the same.
Now my issue:
I got the Android Logo, and it's shining from left to right, but after a few seconds of shining, it suddenly stops and seems to crash, so there is no answer and I have to reinsert the battery to boot up windows mobile again.
I already tried the autoinstaller (maybe about 10-15 times^^), also no success, it always stucked at the pink screen and I had to reinsert the battery to switch it on again. So finally I have no more ideas what to do, maybe it's just that my mobile phone does not want any android ;D ; but however if you know anything I could try, then please let me know!
Cheers guys,
CroniXatoR
Solved the problem
Sooo guys I finally solved the problem.
Here my review:
Installation was correct, and boot startup.txt as well. My Mobile Phone was the problem, I dont know why, perhaps some apps from samsung app store fixed my phone somehow, but I resetted the complete phone and installed froyo beta2 again. Now it is working perfectly.
For all those of you, if the Android Sign pops out and shines your install should be correctly and your startup.txt as well (otherwise Android Sign wouldnt show up)! So the problem is your mobile phone or your usb-connection then... just try to reset the phone in windows mobile under settings... then it should all work!
I am in, finally! Thanks to all developers, great job!

Categories

Resources