Jump to content

Recommended Posts

Posted

I need to get my friends phone back to the original stock saunalahti rom. We didn't backup the original rom, and the stock rom hosting is seemingly still down. However i managed to find a complete dump of the stock rom from from the forums, but i can't get it flashed to the phone.

The dump contains all the .img files, and i got the boot.img flashed with fastboot. However on system.img fastboot complains that the file is too big. I've tried to create my own CWM-compaptible update.zip, but so far i haven't succeeded. The current script is:

assert(package_extract_file("system.img",

"/tmp/system.img"),

write_yaffs2_image("/tmp/system.img", "system"),

delete("/tmp/system.img"));

But it gives error status 6 when i try to flash it.

So how can i get this system.img flashed into the phone? Can someone correct my script or tip of an alternative flashing method.

(This is my first time posting so please forgive me if i break some unwritten (or very written) rule or convention with this thread)

Guest Phoenix Silver
Posted

i think you can do this with fastboot (or am i wrong ?)

fastboot flash recorery recovery.img

fastboot flash boot boot.img

not sure never tried

Posted
i think you can do this with fastboot (or am i wrong ?)

fastboot flash recorery recovery.img

fastboot flash boot boot.img

not sure never tried

If i try to flash system.img with fastboot it says that the file is too big. ( Something that ends with FAILED (remote: data too large) )

Guest Phoenix Silver
Posted

you have made fastboot flash system system.img ?

Posted (edited)
you have made fastboot flash system system.img ?

Yes, that's when i the error "FAILED (remote: data too large)"

I think there is a size limit for applying stuff with fastboot. The system.img is like 130 megabytes

I even tried using the flash_image from the phones terminal. It did something, threw some errors of bad blocks and then failed to boot back to android after i rebooted it. That however didn't really matter since i can use CWM to flash a custom rom anyways. The problem just is getting back to stock.

Edited by Migzu
Guest Phoenix Silver
Posted

oki :unsure:

i think you should erase before flash

fastboot erase system

fastboot erase userdata

.

.

.

.

fastboot flash system system.img

fastboot flash userdata ......

.

.

.

.

Posted (edited)
oki :unsure:

i think you should erase before flash

fastboot erase system

fastboot erase userdata

.

.

.

.

fastboot flash system system.img

fastboot flash userdata ......

.

.

.

.

That seems a good trick to try. I can't test it instantly since i don't have the phone now, but i will try when i get it. Though it wouldn't hurt to have another trick in my sleeve in case that fails.

EDIT:

Did some googling and found out that the size limit is around 128 Megabytes, so it goes a little bit over that. (http://android.modaco.com/content-page/324648/new-updated-froyo-2-2-build-kernal-system-files-dump/page/140/)

Seems that i'm going to have to look into the update.zip script more.

Edited by Migzu
Guest Arr Too
Posted
However on system.img fastboot complains that the file is too big.

Yeah, fastboot doesn't handle big images. Don't know why -- maybe someone is able to update it?

If all you have is a system.img file then you could try making the normal sort of update.zip by using unyaffs to extract the system directory as a set of files. But then you'll need to faff with all those symlinks to the toolbox/busybox and set all the permissions properly. But you should be able to get a good head start by borrowing the script from a different update.zip.

Posted (edited)

Yeah, just did that by myself. I borrowed the script from the hungarian stock rom. Zipped the rom and sent for the phone's holder. I'll keep my fingers crossed.

Thanks for the tips everyone!

Edited by Migzu
  • 2 weeks later...
Guest novoiperkele
Posted
Yeah, just did that by myself. I borrowed the script from the hungarian stock rom. Zipped the rom and sent for the phone's holder. I'll keep my fingers crossed.

Thanks for the tips everyone!

Im trying to flash mine to stock rom cause the touchscreen dont work. Is there a fix for this?

fastboot-linux flash system system.img

sending 'system' (136081 KB)... FAILED (remote: data too large)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.