Hello:
I'm interested in creating and maintaining a custom rom for the Samsung Galaxy S. I've read a ton of tutorials and guides - on site and off - but I'm unable to get started due to one small problem.
After downloading the base firmware I'd like to use (specifically UGJK3 - firmware for Bell Canada) and opening it, I see a .tar file, and within that I see the following files:
param.lfs, zImage, modem.bin, cache.rfs, factoryfs.rfs.
I've mounted the .rfs files, but I'm still unable to cook the rom due to the absence of the system.img and boot.img files. I'm using the HTC Android kitchen to cook the rom, and it requires these files (or an update.zip file, etc) in order to start cooking.
I've searched far and wide, but I'm unable to find an answer on how to create these two .img files from the stock firmware provided by Samsung.
Any help is appreciated.
Thanks.
So, I've done a bit more research and apparently the way Samsung handles their firmware is different than other manufacturers. This leads me to believe that I must convert their rom into a usuable format before attempting to import it in the HTC Kitchen.
However, I'm unsure how to exactly do this.
I'm going to try flashing the stock firmware then performing a nandroid backup, then using that to create my custom rom. It'd be much, much easier if I knew how to just create the .IMG files from the Samsung firmware.
Anyone have an idea on how to do this?
Last bump before I give up.
My default browser went foobar on me when i tried to go into the about menu.
Could someone upload the 2.1 apk and odex pls.
Thanks
EDIT: Changed the topic name to reflect the newly found utility that helped me recover my files since. I had no current backup and did not want to start from scratch. Figured it could help if you ever find yourself in that situation or want to extract files from other rom backup.
nm 10 chars
Unyaffs
Did some digging around and found a nice utility to extract the files from the .img. Extracted the system.img from the stock rom unpackaged it with unyaffs.
Here's the utility
Code:
Usage: unyaffs name_of_file.img
WARNING **This will extract all the files in the working directory**
Hi guys, i searched lot, but did not find any proper solution for getting flashable files of smart flash from kdz..
Plz help guys..
Obviously you haven`t searched enough .
I think that you are looking for LGExtract 0.2.1
Tool is in it`s beginning, but from reading I think that it can extract smartflash files from kdz and it is tested on p990 (I haven`t tested it).
k, i tried that, now i got 13 files.
some are img, some fls etc.
but we need only 2 files for flashing with smartflash tool. bin and fls.
how to get them ?
As I said, I haven`t tried to do this, hence I can`t help you. You will must to read and ask for support in original thread, where the author of the tool is present.
If you are trying to flash kdz and since LG have changed their politics, try to read this thread too... http://forum.xda-developers.com/showthread.php?t=1473781
Hi all,
first, thank you Memhis, the tool is excellent. It works under Linux too in Wine environment.
But I have some observations and some questions
- first decrypt/decompile KDZ file only extract a CAB file - this CAB file can be extracted by cabextract utility
- after CAB file extraction, there is WDB file and machine specific DLL - this DLL file must be used for extraction of WDB, I try the newer one without success
- after performing extraction of WDB using DLL there are number of files which can be useful
AENEAS_FW.fls, psi.fls, R375_SIC.fls, slb.fls - these files are the baseband and can be flashed using smart flash tool - it must be flashed all, not only some
#_Split_Data.img - after joining this file to one, it contains Linux filesystem (now EXT3) with all data of /system partition and you can get lge-ril.so from this
The remaining files I don't identify and only speculate what is it
ext3_flashboot.img - this filesystem is used to boot for flashing???
fastboot.bin - ???
recovery.img - recovery partition - this images is used to replace ClockWorkMod I think
Once again, many thanks. I was searching for this similar tool about six moths ago.
can you tel me,how do you extract the split_data.img??
at this point i have no idea what i must do and find nothing about it.
cojo11 said:
can you tel me,how do you extract the split_data.img??
at this point i have no idea what i must do and find nothing about it.
Click to expand...
Click to collapse
+1
........
There is nothing to "extract" from split_data.img. It is a true EXT3 Linux filesystem. You have to use a Linux box or something to allow mount an Linux image to Windows environment. I can only point you to http://www.ext2fsd.com/ site which is free good ext2/3/4 filesystem driver, but I don't know, if it is usable - it can mount a Linux partition under Windows but don't know it can mount a image file as disk. Hope so.
Thanks for the information, but I can't extract Split_Data.img (it's the joined file of 4 .img files).
How can I extract this .img in Linux (virtual machine)?
Flix123 said:
Thanks for the information, but I can't extract Split_Data.img (it's the joined file of 4 .img files).
How can I extract this .img in Linux (virtual machine)?
Click to expand...
Click to collapse
You have to mount it, like it is a whole filesystem. Google it to find out how to mount img file. Once done, you'll open it like a hard drive.
Edit: Forget my question, it works now!
My last question: Is the file "ext3_flashboot" the same as the boot.img files in CWM roms?
OK, I managed to extract the kdz file and I made a rebuild of V20c without flashing the kdz, just with extracting!
I'll upload it in a few minutes!
For those who wants to extract KDZ I prepare a little manual...
Keltek said:
For those who wants to extract KDZ I prepare a little manual...
Click to expand...
Click to collapse
Hi Keltek, thanks for the manual. but i am getting some error, any ideas? I'm using Win 7 32-Bit. This is the error:
C:\>LGExtract -kdz V20F_00.kdz
Extracting:
KDZ: V20F_00.kdz
Failed to create cab file.
Error code: 00000005
Message: Access is denied.
Failed to extract file.
Please report this error with this file.
thanks
NEVER MIND: cmd.exe should "Run as Administrator", it works now.
The last question I have is how to join the 4 extracted baseband files to one file?
Does that work with copy /b command?
What i got from flashing basebands is that youre supposed to flash them one by one from largest to smallest file. so basically what you should be doing to "compress" the procedure is you unpack those 4 files, put the largest one in place and copy the others onto it, replacing duplicates. Then repackage what you merged, and try that, cant think of anything more logical than that.
That sounds logical, but I don't know how to extract the files.
But it's not very important, because it isn't a problem to flash 4 files instead of one.
Please extract Bb from v20h rohan
Sent from my LG-P990 using Tapatalk
If you give me the link to the kdz, I will extract the baseband for you.
spica1234 said:
Please extract Bb from v20h rohan
Click to expand...
Click to collapse
You should specify from which ROM file, coz there are many version with same identification but different content - I don't understand why LG do this - the V20q for Czech Republic is not the same as V20q for Italy...
I take a look at V20h and it contain 1035.21_20110725 BaseBand.
Hey guys im new on the huawei procedures to flash and i need some help here, the thing is that ive changed the cust to c432 and then i've flashed android 7 via dload method (placing the folder on the sdcard and leting the device flash normally).
My problem is that i just downloaded this rom EVA-L19C432B378 FullOTA-MF-PV.zip and when i decompress the zip file i've got The update app file (wich is used to flash the rom placing that file into the dload folder) and also meta inf folder and version among other files.
My question is: how to flash the rom?, should i put the update app into the dload folder on the sdcard and flash normally (ignoring the other files in the zip? or in this case with this rom file theres a different flashing process caused by the other files included in the zip file.
Thanks by advance, I know that i should try by myself ( with error and essay) but currently i dont have enough time to mess up with my phone and I rather ask someones that already knows this.
So, I unlocked the bootloader on my SM-G780G, downloaded the ROM that fits my model, region and all (triple checked it), however when I went to replace system.img, there is no system.img. I looked into all the files, AP and the others that I don't remember now, and the closest to system.img is super.img on AP, which is a huge file, as would system.img be I guess.
Any tips on what to do here?
You want to flash a custom ROM?
Also something about super.img:
Editing system.img inside super.img and flashing our modifications
I'm trying to modify my system.img (/system/build.prop) to include support for multi users. After struggling a lot, I've succeeded following your guide (that's an awesome work btw) to unpack, mount, modify, umount and repack super.img. Then...
forum.xda-developers.com
You need to run an Ubuntu Linux operating system virtual box (or use an online emulator of Ubuntu and transfer files via Google drive)
senpi0 said:
So, I unlocked the bootloader on my SM-G780G, downloaded the ROM that fits my model, region and all (triple checked it), however when I went to replace system.img, there is no system.img. I looked into all the files, AP and the others that I don't remember now, and the closest to system.img is super.img on AP, which is a huge file, as would system.img be I guess.
Any tips on what to do here?
Click to expand...
Click to collapse
files ending in .tar are archives you've got to open up. look in super for smaller archives.