a problem happened in flashing the rom of my SDAmusic - HTC Typhoon

originally I thought that it is dangerous to flash the phone with .bin file. So I planned to export the os.nb from the .bin file and make a .nbf file only using the os.nb. but after I created the .bf file with perl typhoonnbfdecode.pl, and use patch_RUU to flash the phone, patch_RUU displayed the message as the following picture saying that "invalid vender ID"
could somebody tell me what did I do wrong? (the original .bin is usable for flashing the phone)
the following is my failure process
1. exporting os. nb from .bin rom:
perl typhoonnbfdecode.pl -x 585yscn30w.bin
I got several .nb files
2. convert os.nb to nk.nbf:
perl typhoonnbfdecode.pl -s -r os=OS.nb -p device=SP3i -p language=ENGLISH -p magic=HTC -p operator=CDL___02 -p flags=17 -p version=2.0.33.21 -p blversion=2.0.3.23 -c nk.nbf
I also tried again getting the "-s" off:
perl typhoonnbfdecode.pl -r os=OS.nb -p device=SP3i -p language=ENGLISH -p magic=HTC -p operator=CDL___02 -p flags=17 -p version=2.0.33.21 -p blversion=2.0.3.23 -c nk1.nbf
3.use the .nbf rom and patch_ruuto flash the phone, but patch_ruu showed me the error page, how to solve this, please?

Related

Howto extract .dll files from WM2005 ROM?

Hello,
I would like to extract the T9 DLLs from a WM2005 image (WM2k5_1.60a_XDA2_HIMALAYA).
I found some related links:
http://forum.xda-developers.com/viewtopic.php?t=19569
http://www.xs4all.nl/~itsme/projects/xda/dumprom.html
http://www.xs4all.nl/~itsme/projects/xda/spv-romlayout.html
None of these links has helped me though. I did get the nk.nba file. Dumprom doesn't seem to support extracting files from this type of rom, and I don't understand what additional steps I need to go through to do this. Can anyone give some additional clues how I can extract T9*.dll?
I've tried the search function to find this, but didn't find anything really useful. It surprises me, as I thought it would be a common question. Please let me know if there is some description of this that I didn't find when searching.
see http://nah6.com/~itsme/cvs-xdadevtools/dumprom/rdmsflsh.pl
it is not yet completely finished, i still have to figure out how to decompress data.
you have to fiddle a bit with the parameter of the script i think
and you have to extract the mflsh50 image to a separate file first.
the script does not automatically find the starting offset of the msflsh50 filesystem.
and see http://www.xs4all.nl/~itsme/projects/perl/ for nbfutils.
willem
thanks for your help. sadly to say, this is a new area for me. I'd appriciate some more help if possible.
itsme said:
it is not yet completely finished, i still have to figure out how to decompress data.
Click to expand...
Click to collapse
Does that mean it's not yet possible to extract the dlls I asked for?
itsme said:
you have to fiddle a bit with the parameter of the script i think
and you have to extract the mflsh50 image to a separate file first.
the script does not automatically find the starting offset of the msflsh50 filesystem.
Click to expand...
Click to collapse
I think you lost me here . Should I first extract this msflsh50 file? (how?) Then proceed working with this file? A step-by-step guide would be much appriciated
i wrote a wiki page describing how to analyze the rom:
http://wiki.xda-developers.com/index.php?pagename=TyphoonWM2005_RomStructure
will make something similar for himalaya.
In this page , you wrote :
then you can extract the contents of the xip files using DumpRom
mkdir files1 files2
dumprom -5 -d files1 xip1.nb
dumprom -5 -d files2 xip2.nb
Click to expand...
Click to collapse
the "-5" option is in a new version of dumprom ?
TofClock said:
the "-5" option is in a new version of dumprom ?
Click to expand...
Click to collapse
Thanks! However it didn't work as I thought.
Here's what I did:
1. Downloaded "WM2k5_1.60a_XDA2_HIMALAYA.rar", and extracted "nk.nbf"
2. xda2nbftool -x NK.nbf NK.nba 0x20040304
3. dumprom -d files -5 -v nk.nba
Code:
img 00000000 : hdr=900c898c base=900c0000 commandlineoffset=9007ffc0
img 00180000 : hdr=80307a2c base=80040000 commandlineoffset=7fffffc0
block 1 added buf=00440020 02000040
NOTE: removing 941651ee from e32 struct for nk.exe
NOTE: section at 00082000 iso 00009000 for nk.exe
NOTE: section at 0000c000 iso 00009000 for nk.exe
ERROR: could not find pointer for ofs 80307a2c
invalid romhdr ofs 80307a2c
9007ffc0 - 90080000 L00000040 unknown
90080000 - 900c0000 L00040000 NUL
900c0000 - 900c0000 L00000000 rom_00 start
900c0000 - 900c0004 L00000004 JUMP to kernel start
900c0004 - 900c0040 L0000003c NUL
...
So this doesn't appear to work very well. Is nk.nba the same as nk.bin? What am I doing wrong?
THATS TOTALLY AWESOME itsme THANKS FOR CREATING THIS Script .. it is really COOL .. TNX ..
logan said:
TofClock said:
the "-5" option is in a new version of dumprom ?
Click to expand...
Click to collapse
So this doesn't appear to work very well. Is nk.nba the same as nk.bin? What am I doing wrong?
Click to expand...
Click to collapse
for the meantime you can successfully extract the kernel Files of Wm2005 using dumprom -5 .. and you can analyze and extract some files of MSFLASH section of Wm2005 using the rdmsflsh.pl and -t HIMA parameter
-toe
problem is that dumprom does not handle multiple XIP sections in one rom very well.
that is why you should first extract them using
Code:
dump wm2005.img -o 0x400 -e 0x200400 xip1.nb
dump wm2005.img -o 0x210000 -e 0x3e3278 xip2.nb
other than that, dumprom says 'ERROR' maybe a bit too often, when it is not really an error.
toenailed said:
logan said:
TofClock said:
the "-5" option is in a new version of dumprom ?
Click to expand...
Click to collapse
So this doesn't appear to work very well. Is nk.nba the same as nk.bin? What am I doing wrong?
Click to expand...
Click to collapse
for the meantime you can successfully extract the kernel Files of Wm2005 using dumprom -5 .. and you can analyze and extract some files of MSFLASH section of Wm2005 using the rdmsflsh.pl and -t HIMA parameter
-toe
Click to expand...
Click to collapse
My dumprom.exe does'nt support the "-5" option ....
A new version ?
tnx so much for the info .. itsme ..
anyway .. how about in himalaya .. this is wat i done .. using the nk.nba
Code:
dump nk.nba -o 0x40040 -e 0x80040 ipl.nb
dump nk.nba -o 0x80040 -e 0x1c0040 MSFLSH50_1.nb
dump nk.nba -o 0x1c0040 -e 0x500040 kernel.nb
dump nk.nba -o 0x500040 -e 0x2000040 MSFLSH50_2.nb
mkdir files1 files2
dumprom -5 -d files1 kernel.nb
rdmsflsh.pl -t HIMA -d files2 MSFLSH50_2.nb >MSFLSH50_2.log
... did i do it right?? ..
tnx
-toe
toenailed said:
anyway .. how about in himalaya .. this is wat i done .. using the nk.nba
Code:
dump nk.nba -o 0x40040 -e 0x80040 ipl.nb
dump nk.nba -o 0x80040 -e 0x1c0040 MSFLSH50_1.nb
dump nk.nba -o 0x1c0040 -e 0x500040 kernel.nb
dump nk.nba -o 0x500040 -e 0x2000040 MSFLSH50_2.nb
mkdir files1 files2
dumprom -5 -d files1 kernel.nb
rdmsflsh.pl -t HIMA -d files2 MSFLSH50_2.nb >MSFLSH50_2.log
...
-toe
Click to expand...
Click to collapse
Ok , i use this but ...
dump nk.nba -o 0x40040 -e 0x80040 ipl.nb --> OK , it makes a 256 Kb file
dump nk.nba -o 0x80040 -e 0x1c0040 MSFLSH50_1.nb --> OK , it makes a 1280 KB file
dump nk.nba -o 0x1c0040 -e 0x500040 kernel.nb --> OK , it makes a 3328 Kb file
dump nk.nba -o 0x500040 -e 0x2000040 MSFLSH50_2.nb --> OK , it makes a 27648 Kb file
mkdir files1 files2 --> OK for this
dumprom -5 -d files1 kernel.nb --> NOT OK , my version of dumprom.exe does not suppor the -5 option ... when i try to use it ,, i've got a screen 'help' that show me all available options :/
Where can i find the dumprom that use the '-5' option ?
Thanks
TofClock said:
Where can i find the dumprom that use the '-5' option ?
Click to expand...
Click to collapse
info: http://www.xs4all.nl/~itsme/projects/xda/dumprom.html
exe: http://www.xs4all.nl/~itsme/projects/xda/dumprom/dumprom.exe
logan said:
TofClock said:
Where can i find the dumprom that use the '-5' option ?
Click to expand...
Click to collapse
info: http://www.xs4all.nl/~itsme/projects/xda/dumprom.html
exe: http://www.xs4all.nl/~itsme/projects/xda/dumprom/dumprom.exe
Click to expand...
Click to collapse
Great thranks man
It works fine .... i'll try to cook the 1.60a rom of WM2005
TofClock said:
It works fine .... i'll try to cook the 1.60a rom of WM2005
Click to expand...
Click to collapse
Are you saying you managed to extract all files from "WM2k5_1.60a_XDA2_HIMALAYA.rar"? It didn't work for me
xda2nbftool -x NK.nbf NK.nba 0x20040304
dump nk.nba -o 0x40040 -e 0x80040 ipl.nb
dump nk.nba -o 0x80040 -e 0x1c0040 MSFLSH50_1.nb
dump nk.nba -o 0x1c0040 -e 0x500040 kernel.nb
dump nk.nba -o 0x500040 -e 0x2000040 MSFLSH50_2.nb
mkdir files_ipl files_MSFLSH50_1 files_kernel files_MSFLSH50_2
Click to expand...
Click to collapse
This works fine, at least no error indications.
dumprom -5 -d files_ipl ipl.nb
Click to expand...
Click to collapse
This extracts nk.exe (not sure if it's valid or not).
dumprom -5 -d files_kernel kernel.nb
Click to expand...
Click to collapse
This extract a bunch of files, they seem valid (I can see some exports from the dlls etc)
dumprom -5 -d files_MSFLSH50_1 MSFLSH50_1.nb
Click to expand...
Click to collapse
This gives an error message: unable to determine loading offset for MSFLSH50_1.nb
dumprom -5 -d files_MSFLSH50_2 MSFLSH50_2.nb
Click to expand...
Click to collapse
This just hangs forever eating all my CPU
Any ideas? Can anyone share the T9 dlls?
files_MSFLSH50_2 MSFLSH50_2.nb
is not a XIP type rom section.
you can extract it partially using rdmsflsh.pl, but rdmsflsh.pl is not entirely finished. it cannot extract compressed files.
toenailed said:
dump nk.nba -o 0x40040 -e 0x80040 ipl.nb
dump nk.nba -o 0x80040 -e 0x1c0040 MSFLSH50_1.nb
dump nk.nba -o 0x1c0040 -e 0x500040 kernel.nb
dump nk.nba -o 0x500040 -e 0x2000040 MSFLSH50_2.nb
Click to expand...
Click to collapse
Why i can't use dump? dump=dumprom?
I have try
dump nk.nba -o 0x40040 -e 0x80040 ipl.nb
and
dumprom nk.nba -o 0x40040 -e 0x80040 ipl.nb
but it is error
itsme , can yu help me on how to instal the XdaDev::NbfUtils module ...
it's necessary to use the rdmsflsh.pl ...
i've been look your site but i don't understand :/
khengvantha said:
toenailed said:
dump nk.nba -o 0x40040 -e 0x80040 ipl.nb
dump nk.nba -o 0x80040 -e 0x1c0040 MSFLSH50_1.nb
dump nk.nba -o 0x1c0040 -e 0x500040 kernel.nb
dump nk.nba -o 0x500040 -e 0x2000040 MSFLSH50_2.nb
Click to expand...
Click to collapse
Why i can't use dump? dump=dumprom?
I have try
dump nk.nba -o 0x40040 -e 0x80040 ipl.nb
and
dumprom nk.nba -o 0x40040 -e 0x80040 ipl.nb
but it is error
Click to expand...
Click to collapse
dump is not same as dumprom ....
you can download dump.exe HERE
and dumprom.exe with the "-5" option usable HERE
Ok , i've succefully installed the XdaDev::NbfUtils package
But i'm unable to extract files from MSFLSH50_2.nb
The script says to me
00000200: magic =00000000 != 2f5314ce
at M:\Qtek\MAGNETO\WM2k5_1.50i.96_XDA2_HIMALAYA\rdmsflsh.pl line 123
Click to expand...
Click to collapse
but no file in files2 :/
@TofClock
im so sorry if i mislead you ..
it should be "-t hima" not "-t HIMA" not capital letter as
Code:
perl rdmsflsh.pl -t hima -d files2 MSFLSH50_2.nb >MSFLSH50_2.log
make sure also to run the vcvars32.bat .. ..
-toe

A programe about XIP.BIN of Blue Angle?

I'm learning rom building.
I used Rommaster.exe to extract XIP.BIN from nk.nba.But nothing (had not xip.bin-no thing).I made Bat file with code:
Code:
RomMaster.exe -w 5 -b 0x001C0080 nk.nba -x -o xip.bin >nul
mkdir XIP
dumprom xip.bin -5 -d XIP >nul
But only XIP Folder was made.In XIP folder- no thing.
=>>>Please help me how to extract XIP.BIN From nk.nba???
Thanks a lot.
Please help me how to extract XIP.BIN From nk.nba???
I made XIP.BIN successfully.

Vogue Android in depth Rom Building guide requested

Hi all , i am a new android user and would like to have a go a biulding some custom roms, Now i have no experiene with linux.. well the last 3days.. lol, and i have read the how to make a hero rom txt from the vogue - hero site and while that maybe suffucient for others to get up and away with rom building its not for me, So i am wondering if there is a more in depth step by step guide for not only a new android user but a new linux user also, would be very much appreciated
ok so there hasnt been much of a respone so ill share the steps i have so far
1. I installed Ubuntu linux ( Dual Boot with win 7 )
2. Needed to know how to install Squashfs did a search on google found this
A) open terminal window ( Ubuntu start menu, accessories )
B) type: sudo aptitude search squashfs , u will be prompted for password
this is what happened with mine:
[email protected]:~$ sudo aptitude search squashfs
[sudo] password for ali3nfr3ak:
i squashfs-tools - Tool to create and append to squashfs filesystems
C) type this command:sudo apt-get install squashfs-tools
My Dialog ( ihad to uninstall and then reinstall to get this so mine will be alittle different to
yours
[email protected]:~$ sudo apt-get install squashfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
squashfs-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/122kB of archives.
After this operation, 319kB of additional disk space will be used.
Selecting previously deselected package squashfs-tools.
(Reading database ... 115049 files and directories currently installed.)
Unpacking squashfs-tools (from .../squashfs-tools_1%3a4.0-1_i386.deb) ...
Processing triggers for man-db ...
Setting up squashfs-tools (1:4.0-1) ...
[email protected]:~$
C) all done close terminal i type: exit
3: Next for testing purposes download this Google-Android-Ion-v1.5-2009-10-23-sdcard-not-google-apps and etract this and placed a copy of system.sqsh into it s own directory
4: i then opened another terminal window ( easier to copy and paste show you what my window looks like
[email protected]:~$ dir
Desktop Documents Downloads examples.desktop HERO Music Pictures Public Templates Videos
[email protected]:~$ cd HERO
[email protected]:~/HERO$ dir
Testing
[email protected]:~/HERO$ cd Testing
[email protected]:~/HERO/Testing$ dir
system.sqsh
[email protected]:~/HERO/Testing$ unsquashfs system.sqsh
Parallel unsquashfs: Using 2 processors
650 inodes (1408 blocks) to write
[=====================================================================================================================================================-] 1408/1408 100%
created 650 files
created 45 directories
created 0 symlinks
created 0 devices
created 0 fifos
[email protected]:~/HERO/Testing$ dir
squashfs-root system.sqsh
[email protected]:~/HERO/Testing$
basicially u can use the same commands as windows but with out the / and the spelling and Capitial letters have to be exact
Windows
/dir
/cd hero
Linux
dir
cd HERO
A new folder is created called squashfs-root which has all the files/ folders from the system.sqsh u just decompressed ( my description )
and that is a far as i have got so far
ali3nfr3ak said:
Hi all , i am a new android user and would like to have a go a biulding some custom roms, Now i have no experiene with linux.. well the last 3days.. lol, and i have read the how to make a hero rom txt from the vogue - hero site and while that maybe suffucient for others to get up and away with rom building its not for me, So i am wondering if there is a more in depth step by step guide for not only a new android user but a new linux user also, would be very much appreciated
Click to expand...
Click to collapse
If you still have that txt, would you mind hosting or pasting it here? I've been asking around for a copy and everyone seems to have lost it.
clockworx said:
If you still have that txt, would you mind hosting or pasting it here? I've been asking around for a copy and everyone seems to have lost it.
Click to expand...
Click to collapse
same here. trying to make my first rom also
How-To-Make-A-Hero-ROM.TXT attached
MUCH appreciated!
updated 1st post with my very linux noob steps lol
having alittle trouble anyone can someone shed some light please
[email protected]:/home/ali3nfr3ak/Downloads/HERO2# genext2fs -d ./system -b 180000 -a system.ext2
genext2fs: invalid option -- 'a'
genext2fs: Note: options have changed, see --help or the man page.
[email protected]:/home/ali3nfr3ak/Downloads/HERO2# genext2fs -help
Usage: genext2fs [options] image
Create an ext2 filesystem image from directories/files
-x, --starting-image <image>
-d, --root <directory>
-D, --devtable <file>
-b, --size-in-blocks <blocks>
-i, --bytes-per-inode <bytes per inode>
-N, --number-of-inodes <number of inodes>
-m, --reserved-percentage <percentage of blocks to reserve>
-g, --block-map <path> Generate a block map file for this path.
-e, --fill-value <value> Fill unallocated blocks with value.
-z, --allow-holes Allow files with holes.
-f, --faketime Set filesystem timestamps to 0 (for testing).
-q, --squash Same as "-U -P".
-U, --squash-uids Squash owners making all files be owned by root.
-P, --squash-perms Squash permissions on all files.
-h, --help
-V, --version
-v, --verbose
and
[email protected]:/home/ali3nfr3ak/Downloads/HERO2# mkdir rootfs-mount
[email protected]:/home/ali3nfr3ak/Downloads/HERO2# mount -o loop rootfs.img
mount: can't find rootfs.img in /etc/fstab or /etc/mtab
ali3nfr3ak said:
having alittle trouble anyone can someone shed some light please
[email protected]:/home/ali3nfr3ak/Downloads/HERO2# genext2fs -d ./system -b 180000 -a system.ext2
genext2fs: invalid option -- 'a'
genext2fs: Note: options have changed, see --help or the man page.
[email protected]:/home/ali3nfr3ak/Downloads/HERO2# genext2fs -help
Usage: genext2fs [options] image
Create an ext2 filesystem image from directories/files
-x, --starting-image <image>
-d, --root <directory>
-D, --devtable <file>
-b, --size-in-blocks <blocks>
-i, --bytes-per-inode <bytes per inode>
-N, --number-of-inodes <number of inodes>
-m, --reserved-percentage <percentage of blocks to reserve>
-g, --block-map <path> Generate a block map file for this path.
-e, --fill-value <value> Fill unallocated blocks with value.
-z, --allow-holes Allow files with holes.
-f, --faketime Set filesystem timestamps to 0 (for testing).
-q, --squash Same as "-U -P".
-U, --squash-uids Squash owners making all files be owned by root.
-P, --squash-perms Squash permissions on all files.
-h, --help
-V, --version
-v, --verbose
and
[email protected]:/home/ali3nfr3ak/Downloads/HERO2# mkdir rootfs-mount
[email protected]:/home/ali3nfr3ak/Downloads/HERO2# mount -o loop rootfs.img
mount: can't find rootfs.img in /etc/fstab or /etc/mtab
Click to expand...
Click to collapse
first no -a it doesn't work
[CODEgenext2fs -d ./system -b 180000 system.ext2[/CODE]
then mount it for me i made the directory /mnt/system
Code:
sudo mkdir /mnt/system
sudo mount -o loop /whereever/system.ext2 /mnt/system
then make sure you do not have squashfs-tools 4.0 it wont work
make the sqsh file
Code:
sudo mksquashfs /mnt/system system.sqsh
say rootfs.img was on your desktop
Code:
sudo mkdir /mnt/rootfs
sudo mount -o loop /home/king0fkings/desktop/rootfs.img /mnt/rootfs
jamezelle said:
first no -a it doesn't work
[CODEgenext2fs -d ./system -b 180000 system.ext2[/CODE]
then mount it for me i made the directory /mnt/system
Code:
sudo mkdir /mnt/system
sudo mount -o loop /whereever/system.ext2 /mnt/system
then make sure you do not have squashfs-tools 4.0 it wont work
make the sqsh file
Code:
sudo mksquashfs /mnt/system system.sqsh
say rootfs.img was on your desktop
Code:
sudo mkdir /mnt/rootfs
sudo mount -o loop /home/king0fkings/desktop/rootfs.img /mnt/rootfs
Click to expand...
Click to collapse
Ok thank you very kindly.. just got in from milking the cows, so ill give this a blast
Code:
genext2fs -d ./system -b 180000 -a system.ext2
the -a does work when you use the right genext2fs from the sdk or from pulling the android source and building it. the genext2fs i had uploaded uses the -a but you need to have it in your path before the generic genext2fs gets used or directly execute it. i keep it in /root/bin and execute it from there.
Code:
~/bin/genext2fs -d ./system -b 180000 -a system.ext2
the -a is for making android specific images and sets correct permissions
http://dl.dropbox.com/u/2888561/porting/genext2fs
make sure you set it to executable
Code:
chmod 755 genext2fs
zenulator said:
Code:
genext2fs -d ./system -b 180000 -a system.ext2
the -a does work when you use the right genext2fs from the sdk or from pulling the android source and building it. the genext2fs i had uploaded uses the -a but you need to have it in your path before the generic genext2fs gets used or directly execute it. i keep it in /root/bin and execute it from there.
Code:
~/bin/genext2fs -d ./system -b 180000 -a system.ext2
the -a is for making android specific images and sets correct permissions
http://dl.dropbox.com/u/2888561/porting/genext2fs
make sure you set it to executable
Code:
chmod 755 genext2fs
Click to expand...
Click to collapse
hey there thanks for the info , i cannot get this command to work :
Code:
~/bin/genext2fs -d ./system -b 180000 -a system.ext2
i worked out how to get root on linux, copied genext2fs into /root/bin did this command
Code:
chmod 755 genext2fs
i dunno what to try now
[email protected]:~/Downloads/HERO2# ~/bin/genext2fs -d ./system -b 180000 -a system.ext2
bash: /root/bin/genext2fs: No such file or directory
[email protected]:~/Downloads/HERO2# chmod 755 genext2fs
[email protected]:~/Downloads/HERO2# ~/bin/genext2fs -d ./system -b 180000 -a system.ext2
bash: /root/bin/genext2fs: No such file or directory
im lost
ali3nfr3ak said:
hey there thanks for the info , i cannot get this command to work :
Code:
~/bin/genext2fs -d ./system -b 180000 -a system.ext2
i worked out how to get root on linux, copied genext2fs into /root/bin did this command
Code:
chmod 755 genext2fs
i dunno what to try now
[email protected]:~/Downloads/HERO2# ~/bin/genext2fs -d ./system -b 180000 -a system.ext2
bash: /root/bin/genext2fs: No such file or directory
[email protected]:~/Downloads/HERO2# chmod 755 genext2fs
[email protected]:~/Downloads/HERO2# ~/bin/genext2fs -d ./system -b 180000 -a system.ext2
bash: /root/bin/genext2fs: No such file or directory
im lost
Click to expand...
Click to collapse
1 go to package manager and remove genext2fs
2 login as root and copy zens genext2fs to /bin/
3 open terminal and type in
Code:
chmod 755 /bin/genext2fs
4 logout, then login as normal
5 it should work like so
Code:
genext2fs -d ./system -b 180000 -a system.ext2
I JUST DID IT SO I KNOW IT WORKS!!1
jamezelle said:
1 go to package manager and remove genext2fs
2 login as root and copy zens genext2fs to /bin/
3 open terminal and type in
Code:
chmod 755 /bin/genext2fs
4 logout, then login as normal
5 it should work like so
Code:
genext2fs -d ./system -b 180000 -a system.ext2
I JUST DID IT SO I KNOW IT WORKS!!1
Click to expand...
Click to collapse
ok thank you ill try that, thanks for all the help to by the way, its been a trying process learning how to use linux and build android roms, so thank u
ok got everything working and managed to create a system.sqsh to load, using msmisson ext2 method i tried to load it but has error:
mount: mounting /dev/block/loop1 on/sdcard/temp failed Invalid argument
failed
failed to mount /system
/bin/still (maybe ??? cant read properly) can't access tty: job control turned off
im basicially dumping Ion bundle and remaking it with no changes
big problem!!!!!!!
Selecting previously deselected package squashfs-tools.
(Reading database ... 115049 files and directories currently installed.)
Unpacking squashfs-tools (from .../squashfs-tools_1%3a4.0-1_i386.deb) ...
Processing triggers for man-db ...
Setting up squashfs-tools (1:4.0-1) ...
[email protected]:~$
4.0 will not work!!!!!!!!
1 do
Code:
sudo apt-get remove squashfs-tools
2 download this HERE
zenulator said:
Code:
genext2fs -d ./system -b 180000 -a system.ext2
the -a does work when you use the right genext2fs from the sdk or from pulling the android source and building it. the genext2fs i had uploaded uses the -a but you need to have it in your path before the generic genext2fs gets used or directly execute it. i keep it in /root/bin and execute it from there.
Code:
~/bin/genext2fs -d ./system -b 180000 -a system.ext2
the -a is for making android specific images and sets correct permissions
http://dl.dropbox.com/u/2888561/porting/genext2fs
make sure you set it to executable
Code:
chmod 755 genext2fs
Click to expand...
Click to collapse
damn zen i bet that has been half my battle with the power wake ups. i just ported a rom last night and got the power wakeups.
recreated it today with your genext2fs with -a and it booted right up thanks
I wanted to try testing some stuff using the emulator (not hardware related, obviously). Does anyone know if there a standalone tool for making yaffs2 filesystems (for system.img), or is my only option to install android source and compile it all?
jamezelle said:
big problem!!!!!!!
Selecting previously deselected package squashfs-tools.
(Reading database ... 115049 files and directories currently installed.)
Unpacking squashfs-tools (from .../squashfs-tools_1%3a4.0-1_i386.deb) ...
Processing triggers for man-db ...
Setting up squashfs-tools (1:4.0-1) ...
[email protected]:~$
4.0 will not work!!!!!!!!
1 do
Code:
sudo apt-get remove squashfs-tools
2 download this HERE
Click to expand...
Click to collapse
ok i see that , i saw that i had 4 but i guess when you said squashfs 4 wouldnt i guess i literally took it as it wouldnt work lol, not that the command would still work but the .sqsh not load , sorry bout that, but also once again thank you
woohoo got a booting image ,lol keeps telling me process android.process.acore has stopped unexpectedly, lots of times probably all those google packages i removed ...oh well i have a start now thanks jamezelle without your help wouldnt have happened
Thought you might want to take a look at this little script I made: ROM porting

Backup and restore HP Ipaq 614

Today, I was trying to backup my HP Ipaq 614. To do so, I found this thread:
http://forum.xda-developers.com/showthread.php?t=427507
and this post:
http://forum.xda-developers.com/showpost.php?p=2832898&postcount=2
But the problem is that I don't get the parts. Everything seems to work fine, no errors or something, but no raw files.
I'm working on a Windows 7 and I used CMD in administrator mode.
An other question is what I have to do with those raw files. Do I have to put them in a kitchen and if so, which kitchen do I have to use?
Thanks in advance
Solution
After a lot of research I found a solution.
In this topic I found that there is a tool to dump the rom to diskimage_ver.nb0. This file have to be renamed to flash.dio and then it's just the normal way of flashing with an SD card.
About the first problem, not necessary but anyway, you have to typ
Code:
CD /D C:\itsutilsbin\
pdocread.exe -w -d TRUEFFS -p Part00 0 0x14fc00 Part00.raw
pdocread.exe -w -d TRUEFFS -p Part01 0 0x1e0000 Part01.raw
pdocread.exe -w -d TRUEFFS -p Part02 0 0x4cbc000 Part02.raw
And not C:\itsutilsbin\pdocread.exe -w -d TRUEFFS -p Part00 0 0x14fc00 Part00.raw etc.

Flashing TWRP (and more) using emmcdl (Linux/Win)

emmcdl is a command line utility allowing all sorts of manipulations in EDL mode using Sahara/Firehose protocol and a device-specific "programmer" file :
Code:
$ emmcdl
Version 2.10
Usage: emmcdl <option> <value>
Options:
-l List available mass storage devices
-info List HW information about device attached to COM (eg -p COM8 -info)
-MaxPayloadSizeToTargetInBytes The max bytes in firehose mode (DDR or large IMEM use 16384, default=8192)
-SkipWrite Do not write actual data to disk (use this for UFS provisioning)
-SkipStorageInit Do not initialize storage device (use this for UFS provisioning)
-MemoryName <ufs/emmc> Memory type default to emmc if none is specified
-SetActivePartition <num> Set the specified partition active for booting
-disk_sector_size <int> Dump from start sector to end sector to file
-d <start> <end> Dump from start sector to end sector to file
-d <PartName> Dump entire partition based on partition name
-d [email protected]<start> <size> Dump size of logbuf to the console
-e <start> <num> Erase disk from start sector for number of sectors
-e <PartName> Erase the entire partition specified
-s <sectors> Number of sectors in disk image
-p <port or disk> Port or disk to program to (eg COM8, for PhysicalDrive1 use 1)
-o <filename> Output filename
[<-x <*.xml> [-xd <imgdir>]>...] Program XML file to output type -o (output) -p (port or disk)
-f <flash programmer> Flash programmer to load to IMEM eg MPRG8960.hex
-i <singleimage> Single image to load at offset 0 eg 8960_msimage.mbn
-t Run performance tests
-b <prtname> <binfile> Write <binfile> to GPT <prtname>
-g GPP1 GPP2 GPP3 GPP4 Create GPP partitions with sizes in MB
-gq Do not prompt when creating GPP (quiet)
-r Reset device
-ffu <*.ffu> Download FFU image to device in emergency download need -o and -p
-splitffu <*.ffu> -o <xmlfile> Split FFU into binary chunks and create rawprogram0.xml to output location
-protocol <s|f> Can be <s>(STREAMING), default is <f>(FIREHOSE)
-gpt Dump the GPT from the connected device
-raw Send and receive RAW data to serial port 0x75 0x25 0x10
-wimei <imei> Write IMEI <imei>
-v Enable verbose output
Examples: emmcdl -p ttyUSB0 -info
emmcdl -p ttyUSB0 -gpt
emmcdl -p ttyUSB0 -SkipWrite -SkipStorageInit -MemoryName ufs -f prog_emmc_firehose_8994_lite.mbn -x memory_configure.xml
emmcdl -p ttyUSB0 -f prog_emmc_firehose_8994_lite.mbn -x rawprogram0.xml -SetActivePartition 0
emmcdl -p ttyUSB0 -f prog_emmc_firehose_8994_lite.mbn -x rawprogram0.xml -xd imagedir -SetActivePartition 0
emmcdl -p ttyUSB0 -f prog_emmc_firehose_8994_lite.mbn -ffu wp8.ffu
emmcdl -p ttyUSB0 -f prog_emmc_firehose_8994_lite.mbn -d 0 1000 -o dump_1_1000.bin
emmcdl -p ttyUSB0 -f prog_emmc_firehose_8994_lite.mbn -d SVRawDump -o svrawdump.bin
emmcdl -p ttyUSB0 -f prog_emmc_firehose_8994_lite.mbn -b SBL1 c:\temp\sbl1.mbn
emmcdl -p ttyUSB0 -f prog_emmc_firehose_8994_lite.mbn -e 0 100
emmcdl -p ttyUSB0 -f prog_emmc_firehose_8994_lite.mbn -e MODEM_FSG
emmcdl -p ttyUSB0 -f prog_emmc_firehose_8994_lite.mbn -raw 0x75 0x25 0x10
Checking in tools/ subdirectory Sugar QCT_SP v11.1.2 (after installation), there are Idol35_5_NPRG7627.bin and Idol34_7_NPRG7627.bin files (among many other models). Trying :
Code:
emmcdl -p ttyUSB0 -f Idol35_5_NPRG7627.bin -b recovery twrp-3.2.1-0-idol3.img
indeed installed TWRP 3.2.1
It also works for dumping partitions (didn't try restore) :
Code:
emmcdl -p ttyUSB0 -f Idol35_5_NPRG7627.bin -d recovery -o backup-recovery.img
I guess it should be possible to even replace MobileUpgradeQ if we can catch the files and write an Sahara XML file.
The OTUUpgrade log made by MUQ could help a lot for this...
GNU+Linux :
The latest revision from the linked Git repo above won't build (missing files) I had to use previous revision :
Code:
git checkout 05a9615a5b70334d14f95fd194b0f34d482d3803
and correct symlinks for newer automake and probably running "autoreconf".
Windows :
I don't know what the primary download site would be, there are emmcdl.exe around the Net...
And there's this Sahara GUI tool, but seems to require writing a XML file just for writing a partition...
By the way, one can use adb to switch the phone to EDL (no more crushing volume buttons while inserting USB cable) :
Code:
sudo adb reboot edl
after flashing recovery i want the phone to boot to system again. i get Status: 6 then handle is invalid when i add -r.
my vivo v9 bootloader is lock and until now, no one manage to unlock it. i have even send to repair shop to unlock bootloader. they using mrt dongle, but unsuccessful
if i obtained firehose for my phone and dump the boot.image using emmcdl,
can i modify the boot.img using magisk and flash back using emmcdl.
will it work?
i have tried to dump devinfo.img successfully.
ahhl said:
my vivo v9 bootloader is lock and until now, no one manage to unlock it. i have even send to repair shop to unlock bootloader. they using mrt dongle, but unsuccessful
if i obtained firehose for my phone and dump the boot.image using emmcdl,
can i modify the boot.img using magisk and flash back using emmcdl.
will it work?
i have tried to dump devinfo.img successfully.
Click to expand...
Click to collapse
If the bootloader accepts the modified boot.img I guess it could work.
Switching between SailfishOS and LineageOS works here by writing their respective boot.img without requiring fastboot, rooting or unlocking OEM in Android.
Difficult to say in advance what will work on each specific device...
Make sure you backup first, and have a way to reset/reinstall the phone if things go wrong.
Could i read and write any qualcomm phone with emmcdl..??
emmcdl (or more modern and maintained edl tool) should be able to flash any qcom device for which you have a suitable "flash programmer" file.
"Suitable" meaning that the device recognizes it as correctly signed by the OEM/vendor, or that signature verification is disabled in which case you can use a generic programmer file adapted to the SoC of the device.
Hi all, I wrote a 2022 update on how to put the phone into a fastboot state using the edl tool mentioned by vknecht above (btw, thank you so much for all your hard work over the years!)
You can find it here:
[TOOL] Sahara & Firehose Test (Alcatel Flasher oncoming ...)
Let me introduce some new tool for you. This is my first practice in learning and understanding "How to work with Sahara & Firehose?" and as an owner of Alcatel Idol 3 4.7" firsts test of this app were made on my Idol 3 6039Y. What is this...
forum.xda-developers.com

Categories

Resources