Need some advice. Simple problem you guys can assist with. - G1 Q&A, Help & Troubleshooting

Hey guys,
I have a problem that I know you can assist with. I recently rooted my G1. I installed the CryogenMod 4.2 OS. I then decided to give the Dizzy's White Champion V2 OS a whirl. I wasn't too impressed with it due to the lag and slowness. I then did a wipe and installed the CryogenMod 4.2 OS again. This time around I am stuck on the G1 screen. I can enter the recovery mode by pressing home and power. I know I am missing something easy. Can you guys tell me what I should do? I can supply more information if needed.
I appreciate you guys.
Ira

iraqmilner said:
Hey guys,
I have a problem that I know you can assist with. I recently rooted my G1. I installed the CryogenMod 4.2 OS. I then decided to give the Dizzy's White Champion V2 OS a whirl. I wasn't too impressed with it due to the lag and slowness. I then did a wipe and installed the CryogenMod 4.2 OS again. This time around I am stuck on the G1 screen. I can enter the recovery mode by pressing home and power. I know I am missing something easy. Can you guys tell me what I should do? I can supply more information if needed.
I appreciate you guys.
Ira
Click to expand...
Click to collapse
Sounds Drizzy's ROM left some crud on your ext partition..
Open the command line in recovery..
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r /dalvik-cache/*
reboot recovery
then wipe and reflash. That should fix it, otherwise you will need to delete your apps too :-(
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r /app/*
rm -r /app-private/*
reboot recovery

Thank you brother, Adrian.
I will give that a shot right now and I will let you know how it goes.
Thanks again
Ira

Alright,
I just followed the steps that you provided. My G1 said that I couldn't remove the following files because they weren't there. Something along those lines. I reformatted my sd card right before I attempted to reinstall cryogenmod. Maybe that has something to do with it. Any other ideas?
Thanks again.

iraqmilner said:
Alright,
I just followed the steps that you provided. My G1 said that I couldn't remove the following files because they weren't there. Something along those lines. I reformatted my sd card right before I attempted to reinstall cryogenmod. Maybe that has something to do with it. Any other ideas?
Thanks again.
Click to expand...
Click to collapse
Ah, right, I assumed your card had an ext partition which was set up for Apps2SD and some files got left behind. Sorry, I really should have asked before making suggestions >< Not really sure in that case :-/

I believe I did do that. I followed these steps originally:
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 3420
mkpartfs primary ext2 3420 3932
mkpartfs primary linux-swap 3932-3964
Then I installed Champion V2. I am at a loss right now. If you have any questions please fire away.

did you format the entire ext3 partition or just folder like was already suggested? if you just did folders then try rm -r /app_s/*. non hero roms will not boot up if you still have all the hero apps on your ext2/3/4.

I think the problem is that I had to create the 3 partitions in order to run the Hero rom. I am trying to return to the CyanogenMod now and that isn't needed. So, how I can I delete the partitions that I created for Hero. I think once those guys are gone then I will be good to go. Any ideas how I can do that?

Problem solved!
This is what I did:
I loaded the recovery flasher and entered the terminal. Keyed in the following:
parted /dev/block/mmcblk0
print
rm 1
rm 2
rm 3
rm 4
rm 5
quit
upgrade_fs
recovery
Wiped the data, reinstalled OS and she loaded up like a charm.

Seeing as you removed your ext3 partition and are now only using Fat, there must have been something left on your ext3. As David said, I think it was the /app_s/ folder which I forgot to mention. Oh well, you should be able to remake all your partitions and have all the apps on your internal memory moved to ext3.

iraqmilner said:
This is what I did:
I loaded the recovery flasher and entered the terminal. Keyed in the following:
parted /dev/block/mmcblk0
print
rm 1
rm 2
rm 3
rm 4
rm 5
quit
upgrade_fs
recovery
Wiped the data, reinstalled OS and she loaded up like a charm.
Click to expand...
Click to collapse
Just out of curiosity, why did you have 5 partitions?

Related

How do i enable compcache on CM 3.9.2 and higher? [SOLVED]

I have been searching for a clear guide to enabling compcache on 3.9.2, but there is so much info about swap and compcache in this forum i feel like im running around like a chicken with its head cut off.
so far i have pushed 3 different userinit.sh files into my /system/sd with no change.
#free shows 0 swap , #cat /proc/ramzswap says doesnt exist , #cat /proc/swaps comes up blank.
So i searched more and ended up making a 32mb linuxswap partition on my sd and cant figure out how to get that moving either.
Im bogged down with information and have no idea where to start.
Someone point me in the right direction please. Im a swap/compcache noob...
i would like to run them both together, but as i said i need a noob setup guide
Your /system/sd is a mounted ext filesystem, correct?
Push the userinit.sh from here:
http://forum.xda-developers.com/showthread.php?t=542304
Then run it as root and report back any results:
# /system/sd/userinit.sh
i pushed userinit.sh to /system/sd/ with adb
then put in console
su
# /system/sd/userinit.sh and got /system/sd/userinit.sh: permission denied
should i be doing this in the recovery console?
and what did u mean by: is my system/sd/ a mounted ext filesystem?
i did adb remount to mount /system/ as r/w if thats what you meant.
let me apologize once again. i have almost no knowledge of linux commands. a step by step would really save some time. the only thing i hate more than not understanding something, is wasting others time while i do it.
ShatBag1105 said:
and what did u mean by: is my system/sd/ a mounted ext filesystem?
Click to expand...
Click to collapse
sounds like you did not set up a second partition (or a 3rd for that matter) on your sdcard.
there are many different ways to do this (I prefer gparted in linux), but here's one guide that uses parted in cyanogen's 1.4 recovery image:
http://forum.xda-developers.com/showthread.php?t=534714
hit me up if you hit a snag
gl
im pretty sure you are right. My mmcblk0p2 exists (of course) but when I check # /dev/block/mmcblk0p3 it says not found. And if I # ls /dev/block/mmcbl0p3 it says no such file or directory.
Im guessing i botched something in paragon partition 9. if i remember correctly i put the 32mb linuxswap partition between my fat32 and ext3.
Do u think i should create a new linuxswap partition after my ext3 with paragon9, or is there a workaround for my mistake? does the phone even recognize my poorly placed partition as anything?
thanks so much for your help. after a few hours of reading all these threads Ive come to realize you are the resident expert in swap compcache scripts. as for myself.... not so much
ext should be 2nd partition.
...and linux swap 3rd if you're using it (but it's not needed for compcache -- only as a backing swap).
I'd kill them both and readd with some variant of parted -- i've read that some are having trouble w/ paragon partitioning
Very well then. Ill reformat today and report back.
First of all! Paragon Partition Manager is a FARCE!
Gparted Live CD was awesome. Paragon had my sdcard looking pretty bad. I had 32mb of unallocated space between my FAT32 and EXT3. Even though paragon was telling me it was formatted to linuxswap.
I moved my ext3 over and created a 32mb linuxswap at the end of the sdcard with no loss of data. wow
But sadly, i pushed the userinit.sh #free shows 0 swap and #cat /proc/swaps shows nothing.
Im going to try this >> http://forum.xda-developers.com/showthread.php?t=542899 <<<WORKED!!
What ive learned:
Use Gparted to create a linuxswap partition AFTER your EXT3. Paragon is pure ****.
Get the user.conf and userinit.sh file from the link in above post.
Put them in the root of your sd card
I DID THIS WITH TERMINAL
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/userinit.sh /system/sd
cp /sdcard/user.conf /system/sd
chmod 755 /system/sd/user.conf
chmod 755 /system/sd/userinit.sh
type #sh /system/sd/userinit.sh into console to activate the script.
type #sh /system/sd/userinit.sh -s to get a pretty well detailed report of the goings on.
OOOh being a linux noob is much headache.
Alpapa Thanks for giving me your time and pointing me in the right directions. Thanks man.
ShatBag1105 said:
Use Gparted to create a linuxswap partition AFTER your EXT3. Paragon is pure ****.
push the user.conf file (from link in above post) to /system/sd along with your userinit.sh.
type #sh /system/sd/userinit.sh into console to activate the script.
type #sh /system/sd/userinit.sh -s to get a pretty well detailed report of the goings on.
OOOh being a linux noob is much headache.
Alpapa Thanks for giving me your time and pointing me in the right directions. Thanks man.
Click to expand...
Click to collapse
I'm a newb as well... so did you chmod either of those files after moving them to ext2/3?
Yes. You have to chmod both of them.
And this works on 3.9.4.
V 0.1 files work best.
http://forum.xda-developers.com/showthread.php?t=542899
And these files come with everything disabled, so you have to edit both of them and enable what u want before putting them on your sd.
0=disabled
1=enabled

new vision and apps2sd?

just wondering if im doing something wrong? got NV installed with all 3 partitions and I had 77mb of internal mem. when I install new apps it takes away mem, am I doing something wrong, did I not config something right? I have read that apps2sd are automatic and to do nothing or it will break the system. dont mind the 77mb but would like to have my apps on my sd. any help would be great.
Do you have ext3? Drizzy expressly says you need it. So I assume if you only have ext2 there might be probs with your a2sd.
If that's not it. Did you follow all of these steps before flashing?...
This is how I installed without any problems:
: rename to update.zip
: place in the root of sd card
: shut off device
: boot into recovery
: wipe
: go to console and hit enter
(enter)
# mount -o rw /dev/block/mmcblk0p2 /system/sd
# cd /system/sd
# rm -rf /system/sd/*
# reboot recovery
: now wipe again
: repair ext system
: flash
Enjoy!!
"DO NOT RUN ANY OTHER APPS TO SD IT WILL BREAK YOUR SYSTEM"
JUST EXT3 & LINUX-SWAP 32MB
kree said:
just wondering if im doing something wrong? got NV installed with all 3 partitions and I had 77mb of internal mem. when I install new apps it takes away mem, am I doing something wrong, did I not config something right? I have read that apps2sd are automatic and to do nothing or it will break the system. dont mind the 77mb but would like to have my apps on my sd. any help would be great.
Click to expand...
Click to collapse
your apps are going to the sd..your dalvik-cache is not
yup. checked thru the the console that in fact I do have an ext3 partition. I went thru an infinate loop with out it, also followed all the steps as best as an old newb could, I mean Im not new to flashing roms coming from the herald and wing, but concidering ow these android roms are becoming like full linux distro installs its getting a little hard to keep up, but still willing to try. gonna look up the dav thing to see where that leads me. definately an adventure! thanks!

Unsure on procedure for partitioning SD/flashing new rom

So i have JACheroski installed and it looks great.. but god is it slow. I probably didnt partition my sd card correctly.... so help me out here guys.
I dont know what exactly i want either..(fat32/ext 2 or 3/linux-swap)
Now can i just go into recovery, type in the 5 or 6 lines of code givin in the guide on here and have my card partitioned the way i want? Or do i have to download the apps2sd app and install it and THEN go type in the code.
Or lets say I use http://forum.xda-developers.com/showthread.php?t=534714 do i have to install apps2sd then follow his guide and my phone will be set up for all these hero roms??
And do i really need adb?
You need all 3 (fat32/ext2 or 3/linux-swap) this is the guide I used because it gives you they way to do it for each card size (8gb,4gb,2gb) Just make sure you follow it exactly as described, make sure when you do the linux-swap you do the - inbetween the numbers, not just a space like with the fat32 and ext2.
justanothercrowd said:
You can use the recovery console and parted to format SDcards with 1.31 folks, no more going through hassles you have the tools on you G1!...here is an example of how to do this in recovery console using parted. DO NOT USE MORE THAN 32MB SWAP!!!
Example for 8GB card (this example plays it safe and will leave a small amount leftover regardless of the 8GB card)
Reboot and enter recovery
Enter console
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 7200
mkpartfs primary ext2 7200 7700
mkpartfs primary linux-swap 7700 7732
#print (to verify we have the 3 partitions)
Example for my 4GB card
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 3420
mkpartfs primary ext2 3420 3932
mkpartfs primary linux-swap 3932-3964
Example for a 2GB card playing it safe
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 1200
mkpartfs primary ext2 1200 1700
mkpartfs primary linux-swap 1700-1732
"End?" you need to place the last value for the linux swap eg.3964 for my 4GB card
#print (to verify we have the 3 partitions)
Next we need to "quit" parted and upgrade our ext2 partition to ext3
#upgrade_fs
Swap value is set to 30 currently, you can change this by modifying the "echo" value for swappiness in the a2sd.sh script
For a longer more detailed parted turorial read this
Click to expand...
Click to collapse
Now do i need apps2sd installed now? or after i partition everything?
that rom does apps2sd automatically so dont install any script for it or you will screw it up. Making the ext2/3 partition is what makes it work, basically no you dont need to do anything other then partition correctly, maybe wipe and reflash after but you shouldnt have to.
Thanks man!
Ill do it right away and see what happens.
Ignore that last bit.
Ok... it takes me to GNU parted 1.8.8.1.179.
i typed print and it gave me a huge list of info but i type rm 1 and it says unrecognised disk label
Actually its not recognizing any of my disk labels
prolly because you didnt make any partitions yet, and when you type print dont put a # just type print then you will see if you have any partitions, if it doesnt show any you dont need to do the rm 1 or rm 2
crpercodani said:
prolly because you didnt make any partitions yet, and when you type print dont put a # just type print then you will see if you have any partitions, if it doesnt show any you dont need to do the rm 1 or rm 2
Click to expand...
Click to collapse
Awesome i got it i think.
So now my phone should just run faster? Or is there more i need to do? And im i safe to swap to any other hero rom now?
nevermind.... it says damaged sd card now...
If i format will i have to repartition it?
It wont format now... this is frustrating haha
Yea you can switch roms but you need to wipe the ext2/3 partition, it says how to somewhere, hold on I will find it and edit it into here. Damn that sucks, when did it say damaged? Was it on the phone or when you mounted it to your pc? If you format it from your windows it will only find the fat32 partition, you need to go back into console and do rm 1
rm 2
rm 3
then re-do the partitions.
when you switch roms goto console and type this (hit enter after each line)
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
My windows f's up sometimes when I mount it so if it is working on the phone I would just try a diff usb port, try unplugging it a few times.
Its on the phone, after i rebooted from partitioning. The phone will not reformat it, i go through the steps but nothing happens.
I cant format from console can i?
what happens when you do the rm commands? you when into gnu first right? (parted /dev/blcok/mmcblk0)
yeah it welcomes me to gnu but then tells me all commands are invalid, including print and rm1 rm 2 rm 3 etc.
when i start the phone up it first says the card is blank, then damaged.
hmmm you know I really have no idea, do you have any type of linux distrto like debian or ubuntu/kubuntu?
Nope... I dont even know what that is lol.
Weird.. I took it out and put it back in and it read it.. 3,882 mb left.
So do i format....or go into console and make sure all partitions are still there or what?
Im not lookin to ruin my new card
Oh its a OS for your computer. My only idea is to google for a program that will find linux partitions on a sd card cuz windows only sees the fat32 one so you cant format it on there. Hopefully someone else on here might have another idea for how to do it from console but if it is giving you invalid commands then I have no clue.
How many gb is your card? 2,4,8?

Bootloop all JACxHeroSkiv1.6+ & Twisted 4.5r5+

Ok so i have no clue what to do to get this fixed and what i don't get is i see all these ppl with there G1s and the versions being able to boot without problems. I have done a full format of the SD card. I partition it in parted
mkpartfs primary fat32 0 3420
mkpartfs primary ext2 3420 3932
mkpartfs primary linux-swap 3932-3964
print (to make sure all went ok)
quit
upgrade_fs
reboot recovery
wipe
repair
apply update.zip
I can do this i dont know how many times and I still get a bootloop. If I flash any build before the ones listed in the title it boots fine. All of Drizzys roms boot fine. I would stay on Drizzys Elite v0.5 if it didn't have the text problems but i need my texting so I hope the new builds fix that. Any ideas how to fix this.
do u have the right spl?
Both my radio and SPL are from here
http://code.google.com/p/sapphire-port-dream/
did you make sure to see that the radio,spl were actually applied, check the versions
it looks like they are. I held the cam and power button and this is what it says
DREAM PVT 32B ENG S-OFF
HBOOT-1.33.2005 (DREA100000)
CPLD-4
RADIO-2.22.19.26I
Apr 20 2009, 15:30:43
via fastboot and command prompt =
fastboot erase system -w
fastboot erase boot
then use console in recovery mode to format EXT3 partition on SD card
# mount -o rw /dev/block/mmcblk0p2 /system/sd
# cd /system/sd
# rm -rf /system/sd/*
# reboot recovery
In recovery mode "repair ext filesystems"
and then try reflashing rom again!
or just use this command from the console of recovery
mke2fs -j /dev/block/mmcblk0p2
gtrplr71 said:
or just use this command from the console of recovery
mke2fs -j /dev/block/mmcblk0p2
Click to expand...
Click to collapse
lol seems easier that way...
Prod1702 said:
Ok so i have no clue what to do to get this fixed and what i don't get is i see all these ppl with there G1s and the versions being able to boot without problems. I have done a full format of the SD card. I partition it in parted
mkpartfs primary fat32 0 3420
mkpartfs primary ext2 3420 3932
mkpartfs primary linux-swap 3932-3964
print (to make sure all went ok)
quit
upgrade_fs
reboot recovery
wipe
repair
apply update.zip
I can do this i dont know how many times and I still get a bootloop. If I flash any build before the ones listed in the title it boots fine. All of Drizzys roms boot fine. I would stay on Drizzys Elite v0.5 if it didn't have the text problems but i need my texting so I hope the new builds fix that. Any ideas how to fix this.
Click to expand...
Click to collapse
I can't actually help you with this, but I just wanted to point out that your linux-swap partition should be around ~96MB for the new Hero ROMs to run smoothly.
thanks for the replys guys but that didnt work milesman I still get a bootloop on them. I did find out that i can get JACs 1.6r2b to work but not r2a. So there has to be something that was moved over that makes it so i am having problems booting.
anyone else have any ideas. i am starting to think that there might be some kinda of problem with the build but am not sure what it could be.
wipe your ext3. hero roms need a clear ext3 in order to boot properly.
heres the commands
go to console
hit enter
type this with no quotes "mount -o rw /dev/block/mmcblk0(thats a zero, dont type this) /system/sd hit enter
then type " rm -rf /system/sd/* (yes you need that) hit enter
"reboot recovery"
and that will take you to the recovery screen then apply the update and repair the extensions and your good to go
Oshizzle1991 hmm i dont know how many times i have done this, but like i said. I have formated the whole SD card more then 10 times and repartitioned it so that pretty much wipes my ext3 since the SD car is being formated. Still a no go. I am pretty much giving up right now unless there is something i havent done that wasnt been said in the other posts.
lol might be a dumb question but did you wipe the phone too? you know, alt w? lol. some people forget to do that because they only remember the ext2/3 partitions.
downgrade to RC29/RC7 and start the process over again if you reallllllly want it. That's basically guaranteed to get it to work...
oshizzle1991 yea i have wiped also the commands that milesman has said to use with adb in fastboot erases all data from the phone its self. so that is pretty much wiping everything. I don't really feel like I should have to start the root all over again going back to RC29 since all hero roms work but these newer ones. I am trying JACs 1.8 right now to see if that works but if that doesn't work I think i am going to give up on hero and stick with CM roms.
edit: JACs 1.8 loads fine for me so i don't know what he changed from 1.6r2a and 1.7r2 to 1.8 but all is fine now thanks for all the reapplies. Mod you can close this thread.
ME TOO!!!!!!!
i dont know why, but i had (kind of) the same problem too. all my rooting life, i used JAC's hero roms, then when i tried to use drizzy's or someone else's, it always goes into a bootloop.
Yea i spent hours and hours trying to get them to work. not sure what it is but it seems to be fine now with the 1.8. I am sure it was my erorr somewhere in the line. I have flash roms on my phone over 50 times now and i know how to do all this as if my life depended on it.

Switchrom and Wipe ext3

I am using the Switchrom script with CY recovery. I have successfully made backups and switched between roms using the script. Now I want to try the new Drizzy Hero rom. To install the rom I will have to wipe the ext3 partition. My question is, If I wipe the ext3 partition, will I loose the script? If yes, can I copy the script in system/sd later on for it to work again?
PS: Before someone posts "search the thread" answer, I tried doing it and couldn't find anything.
Thanks
bole_to said:
I am using the Switchrom script with CY recovery. I have successfully made backups and switched between roms using the script. Now I want to try the new Drizzy Hero rom. To install the rom I will have to wipe the ext3 partition. My question is, If I wipe the ext3 partition, will I loose the script? If yes, can I copy the script in system/sd later on for it to work again?
PS: Before someone posts "search the thread" answer, I tried doing it and couldn't find anything.
Thanks
Click to expand...
Click to collapse
The only thing that is stored on your ext3 partition is your apps. So when you clear that only your apps will get cleared.
supremeteam256 said:
The only thing that is stored on your ext3 partition is your apps. So when you clear that only your apps will get cleared.
Click to expand...
Click to collapse
Thanks man. Wiping now.
To clear this up for other reader who might stumble on this thread, the above comment is not true. If you wipe you ext 2/3 you might end up wiping more stuff than just apps. I realized it the hard way lol. However you can push back switchrom.sh in /system/sd and you will be good to go. The alternate method to do this is to delete just the following folders:
mount /dev/block/mmcblk0p2 /system/sd
rm -rf /system/sd/app*
rm -rf /system/sd/dalv*
bole_to said:
To clear this up for other reader who might stumble on this thread, the above comment is not true. If you wipe you ext 2/3 you might end up wiping more stuff than just apps. I realized it the hard way lol. However you can push back switchrom.sh in /system/sd and you will be good to go. The alternate method to do this is to delete just the following folders:
Code:
mount /dev/block/mmcblk0p2 /system/sd
rm -rf /system/sd/app*
rm -rf /system/sd/dalv*[/QUOTE]
You can do that or you can wipe buy doing this
Code:
mount /system/sd
mount /sdcard
rm -rf /system/sd/*
cp /sdcard/switchrom.sh /system/sd/switchrom.sh
That's how i've been doing it. And I like to do it this way to make sure the my EXT2/3 is completely clean. I've had problems where doing a partial wipe gives me issues. But yes if you wipe your EXT2/3 drive it will get rid of everything (including the switchrom.sh)
Click to expand...
Click to collapse
when you wipe your internal phone memory and ext3 you will lose the script. once you get the rom you flashed up and running again, just repush switchrom.sh and you are good to go again. wiping the ext 3 or the internal memory WILL NOT wipe out your backups. when i use switchrom i dont even wipe all of ext3...
this is what i do... flash a new rom. get it setup the way i want. install all apps and extra settings i want. reboot into recovery, run switchrom.sh and let it do its thing. now when you have created your back up and want to flash a NEW ROM, not one of your backups, wipe internal memory of course but instead of wiping all of ext 3 drop down to recovery console and do the following
Code:
# mount /system/sd
# rm -rf /system/sd/app*
# rm -rf /system/sd/dalv*
this will prepare your ext3 for a new install of a new rom. when you are going back and forth between your backups you do not need to wipe ext3 at all. the script takes care of all of that. if you have any more questions PM me or hit me up on gtalk - palosjr
NOTE- this script is case sensitive as i found out the hard way... when bookmarking and tagging ROMs be sure to use all lowercase. if you use uppercase the script will fail. hope this helps bro.
thanks guys, i got it to work.

Categories

Resources