Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
frankdrey
Old
(Last edited by frankdrey; 14th January 2012 at 10:54 PM.)
#1  
Senior Member - OP
Thanks Meter 174
Posts: 828
Join Date: Dec 2011
Default Frankdrey's Brick Adventure

Twas the night.......nah that's not gonna work...
Anyways, I had just compiled froyo from android source and wanted to flash it
But apparantly I needed a specific spl when I did "fastboot flashall -w" (one of them being 0.95.0000 or whatever, too lazy to remember..but it was one that didn't support fastboot....which is dumb lol since fastboot is saying to use it)...
So I decided to install engineering spl
I had danger spl and the 2.something radio it needs
I decided to flash it from recovery
BRICK!

So really g1s are impossible to brick...if you flash radio and spls from fastboot not recovery
(Most of this knowledge is from a thread about g1s and spls and bricking that I'm too lazy to link to)
What happens is that recovery FORCES the g1 to boot to recovery on next boot...even if you press buttons
And with a mismatched radio/spl recovery will not start
So you have a brick...
Moral: use fastboot not recovery

Anyways so my solution...
I had a really messed up rogers dream that had a cracked screen and bad ribbon cables...
Pretty much everything was broken except for the motherboard...
Well I decided to try and put this rogers motherboard into my tmobile g1
It worked!
Even booted up into the rom I used to have (biffmod) on the rogers dream before it got screwed up beyond usability
I am posting from my g1 with a rogers motherboard in it as I speak...post....
Moral 2: you can mix motherboards between dreams

One problem is that this ROM still has the keymap for the rogers dream and my home and call button don't work
Hopefully flashing a new rom it will detect the tmobile keyboard

Well this was fun...but I don't know if I'm gonna try to flash my aosp froyo or not again...

Comment please on how you manage to flash a compiled aosp froyo...maybe ill try flashing engineering spl again through fastboot this time

Edit: oh and I like this motherboards vibrate more:P
Its quieter...
The old one rattled like crazy
So this actually a very win situation
I got Frayo back on and everythings beautiful
Back to this nick.
 
mishamosher
Old
#2  
Senior Member
Thanks Meter 27
Posts: 103
Join Date: Jul 2010
In a rom's zip there is this file:

META-INF\com\google\android\updater-script

Try to open it and read the first lines, there are the asserts generally (the part that tells to the device that particular SPL/Radio/Files are needed to proceed the install)

Here's an example of an assert:

assert(getprop("ro.product.device") == "trout" || getprop("ro.build.product") == "trout" || getprop("ro.product.board") == "trout" ||
getprop("ro.product.device") == "sapphire" || getprop("ro.build.product") == "sapphire" || getprop("ro.product.board") == "sapphire");
assert(getprop("ro.bootloader") == "1.33.0013" ||
getprop("ro.bootloader") == "1.33.2013" ||
getprop("ro.bootloader") == "1.33.3013" ||
getprop("ro.bootloader") == "1.33.0013d");

This assert checks many things, with logical operators (|| that's or; == that's equal; "" that's a string; () that's an argument; etc). If you've ever programmed, you'll understand very fast how to change the assert to make it less agressive of checking this things and anothers and not let you install.

The previous assert cheched that the device, or product, ot board where "trout" or "sapphire". Also it needs an specific bootloader ("1.33.0013", or "1.33.2013", or"1.33.3013", or "1.33.0013d").

It's an good idea tho check the updater-script that's in your zip installation file, view what installs it, add/remove asserts and unwanted things, and then, proceed to install it safely from recovery and the SPL/Radio combo that you prefer. Also, it's an good idea to flash an alternative kernel (ezterry one's are very good).

Remember that the only thing that's really recommended to install from fastboot is the SPL and the Radio. Other things are installable from wherever you want (fastboot, OS, recovery) without an potential hard brick risk.

So, if you want to install an ROM (AOSP FroYo as you described), it's not needed to install it from fastboot, and it will not represent an brick risk if it really is only a ROM installer what you have.

---------- Post added at 06:16 PM ---------- Previous post was at 06:12 PM ----------

Oh, and if you can paste here the updater-script it would be usefull, more than one buddy will say you how to change it to let you install everithing by a correct and safe way.
 
frankdrey
Old
#3  
Senior Member - OP
Thanks Meter 174
Posts: 828
Join Date: Dec 2011
Yes yes I know all of that

I'm using fastboot because the compiled output is not an update.zip
Its all the image files and I am supposed to do "fastboot flashall"

Its alright though...I got cm6 source working
That will work

Sent from my HTC Dream using Tapatalk
Back to this nick.
 
mishamosher
Old
#4  
Senior Member
Thanks Meter 27
Posts: 103
Join Date: Jul 2010
It should be also fun to convert your images to a zip format.

When you flash those full images, you don't know if it will flash more things than needed. Zip files give you more control, and the updater-script also.

The "fastboot flashall" command is kinda risky with images that touchs radio/spl/partitions layouts/etc. It's really recommended to do a wipe of everithing from fastboot when you're installing this images, and also, of course, know what those images will install and be carefull to have the right pre-requisites to don't harm the device.

Good to know you got it working after all !
 
frankdrey
Old
#5  
Senior Member - OP
Thanks Meter 174
Posts: 828
Join Date: Dec 2011
Alright maybe putting images into zips will be an adventure for later
As of now, the AOSP froyo source and built images are in the deep dark room of a PC's deleted files

Thanks for the tip about flashall! :P
Back to this nick.
 
Scrip
Old
(Last edited by Scrip; 17th January 2012 at 08:49 AM.)
#6  
Account currently disabled
Thanks Meter 36
Posts: 119
Join Date: Nov 2011
Quote:
Originally Posted by frankdrey View Post
Alright maybe putting images into zips will be an adventure for later
As of now, the AOSP froyo source and built images are in the deep dark room of a PC's deleted files

Thanks for the tip about flashall! :P
No need for flashall

instead of using

Code:
make
use
Code:
make otapackage
You will find a zip ready for flashing
if you are building cm6 then use
Code:
squisher
to optimise the zip

have a look in the opticharger script to make improvements like replacing pngcrush with something better
The Following User Says Thank You to Scrip For This Useful Post: [ Click to Expand ]
 
frankdrey
Old
#7  
Senior Member - OP
Thanks Meter 174
Posts: 828
Join Date: Dec 2011
Quote:
Originally Posted by Scrip View Post
No need for flashall

instead of using

Code:
make
use
Code:
make otapackage
You will find a zip ready for flashing
if you are building cm6 then use
Code:
squisher
to optimise the zip

have a look in the opticharger script to make improvements like replacing pngcrush with something better
Thanks
And here I was about to go and start extracting the images and writing an updater-script:P

And I went back to AOSP
CM6 has too many missing files that I don't want to go through the trouble of finding
Back to this nick.
 
mishamosher
Old
#8  
Senior Member
Thanks Meter 27
Posts: 103
Join Date: Jul 2010
Quote:
Originally Posted by frankdrey View Post
...And here I was about to go and start extracting the images and writing an updater-script:P...
OTA packaging is easier and more simple, I agree... but something is true... fighting with those extractions and updater-script is kinda funnier

Happy source-compiling
 
frankdrey
Old
#9  
Senior Member - OP
Thanks Meter 174
Posts: 828
Join Date: Dec 2011
Alright I have the zip and all
It checks for the spls though
Should I just remove that from the script?
And try with DangerSPL?
DangerSPL is a port of the mytouch spl right?
Maybe I shoulda built for mytouch?
Also, it looks like it patches recovery after install.
Is that safe? Should I remove the entire folder and entry in the update script?
Back to this nick.
 
mishamosher
Old
#10  
Senior Member
Thanks Meter 27
Posts: 103
Join Date: Jul 2010
You must do a little change.

First, open the updater-script, then find the bootloader assert

It will be like this:

assert(getprop("ro.bootloader") == "1.33.0013" ||
getprop("ro.bootloader") == "1.33.2013" ||
getprop("ro.bootloader") == "1.33.3013" ||
getprop("ro.bootloader") == "1.33.0013d");

Just be shure to add the SPL version that you've installed on your phone already. For example, if I've a 1.33.2222 bootloader, then the change will be this:

assert(getprop("ro.bootloader") == "1.33.0013" ||
getprop("ro.bootloader") == "1.33.2013" ||
getprop("ro.bootloader") == "1.33.3013" ||
getprop("ro.bootloader") == "1.33.2222" ||
getprop("ro.bootloader") == "1.33.0013d");

It doesn't matter if you put the new bootloader assert on the beginning or at last or in the middle, it'll be the same. Also, you can delete some asserts if you want to. Be carefull to keep right the sintax.

And the recovery thing, it's better to delete that part, zip will give less troubles whithout that part. And better to delete it from the script and the zip!

I recommend you to use the 1.33.0013d SPL, it'll give you extra RAM and is fully compatible with AOSP FroYo. Just be shure that after flashing the ROM, you flash the right kernel to let the OS boot up.

And remember, if you use Amon_RA recovery, you'll need to re-sign the zip that you modify, if you don't do it, the verification part of the flashing will fail.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more

Boot Animation Paradise for your Android Device

The default boot animations on any device, no matter whichmanufacturer, are generally pretty … more