hi,
my device is p3700(diamond gsm), and i'm trying to cook a rom.
I had used nbhtool.exe to get the os.nb from the os.nbh which is shippd with offical successfully. and then used the "Platformrebuilder - New ROM Kitchen " toolset (the list of toolsets which can be found here, or download the zip file from the attachment which is the mht file of that url. ) to get a os.nb.payload file. but I met a prompt in the end which said the imgfs.bin is refused to access.
i've searched the forum and can't find the answer. can anyone help to solve this? thank you.
Didn't take a look at your files, but check the bat file for paths.
Maybe it's expecting the file somewhere else?
adwinp said:
Didn't take a look at your files, but check the bat file for paths.
Maybe it's expecting the file somewhere else?
Click to expand...
Click to collapse
hi, adwinp, thank you for you reply.
i look the dump_800.bat, and try the following codes ONE BY ONE(SPLIT THE .BAT INTO TWO .BAT:
FIRST(TO CREATE THE IMGFS.BIN):
Code:
@ECHO OFF
if "%~1"=="" goto :error
set path_exe=%~d0%~p0
set path_arg=%~d1%~p1
cd /D %path_arg%
"%path_exe%bin\NBSPLIT" -data 2048 -extra 8 "%~1"
del "%~1.extra"
"%path_exe%bin\IMGFSFROMNB" "%~1.PAYLOAD" IMGFS.BIN
pause
goto:EOF
and the results:
Code:
NBSplit 2.1rc2
Using data chunk size = 0x800 and extra chunk size = 0x8
on file D:\MyROMs\[MyCooking]\Windows.nb
Done.
ImgfsFromNb 2.1rc2
Sector size is 0x800 bytes
ImgFs partition starts at 0x00780000 and ends at 0x07fa0000
Dumping IMGFS at offset 0x007c0000 (size 0x077e0000)
Done!
SECOND(TO GET DUMP FROM THE IMGFS.BIN):
Code:
@ECHO OFF
if "%~1"=="" goto :error
set path_exe=%~d0%~p0
set path_arg=%~d1%~p1
cd /D %path_arg%
"%path_exe%bin\IMGFSTODUMP" IMGFS.BIN
REM del "IMGFS.BIN"
del "dump_MemoryMap.txt"
REM rename "dump" IMGFS
pause
goto :EOF
and i don't see the error any more, but i'm not sure if the following results seems the right one while the bat command finished.
Code:
Header type: FFFFFFFF, Addr: 064FD688
Empty header
Header type: FFFFFFFF, Addr: 064FD6BC
Empty header
Header type: FFFFFFFF, Addr: 064FD6F0
Empty header
Header type: FFFFFFFF, Addr: 064FD724
Empty header
Header type: FFFFFFFF, Addr: 064FD758
Empty header
Header type: FFFFFFFF, Addr: 064FD78C
Empty header
Header type: FFFFFFFF, Addr: 064FD7C0
Empty header
and if directly use the dump_800.bat, then get the error:
Code:
Header type: FFFFFFFF, Addr: 064FD688
Empty header
Header type: FFFFFFFF, Addr: 064FD6BC
Empty header
Header type: FFFFFFFF, Addr: 064FD6F0
Empty header
Header type: FFFFFFFF, Addr: 064FD724
Empty header
Header type: FFFFFFFF, Addr: 064FD758
Empty header
Header type: FFFFFFFF, Addr: 064FD78C
Empty header
Header type: FFFFFFFF, Addr: 064FD7C0
Empty header
D:\MyROMs\[MyCooking]\IMGFS.BIN
access refused.
and i synchronize the two imgfs foder generated by above 2 method by totoal commander, it seems all the files are the same...
so does it mean i can ignore the error?
ok. now it works since i change the bat as follow, the error maybe generated by the del cmd. see the REMs:
Code:
@ECHO OFF
if "%~1"=="" goto :error
set path_exe=%~d0%~p0
set path_arg=%~d1%~p1
cd /D %path_arg%
"%path_exe%bin\NBSPLIT" -data 2048 -extra 8 "%~1"
del "%~1.extra"
"%path_exe%bin\IMGFSFROMNB" "%~1.PAYLOAD" IMGFS.BIN
pause
cd /D %path_exe%
cd /D %path_arg%
"%path_exe%bin\IMGFSTODUMP" IMGFS.BIN
pause rem this command used to judge if the imgfstodum works or not. it seems work normally
cd /D %path_arg% rem add this to change the dir again distinctly
pause
del "IMGFS.BIN" rem the previous error should be generated by this. after the change dir cmd above, the error is gone.
del "dump_MemoryMap.txt"
rename "dump" IMGFS
pause
goto :EOF
:error
echo Usage: Dump_xxx.bat "nba file"
pause
Related
So I downloaded pandora's naked rom and started putting in my own programs.
When I hit the BuildOS button, near the end, it gives me an error:
'Error building default.hv and user.hv!
Anybody help?
When errors occur in creating registry process, the window says:”error building default.hv and user.hv!” they are mostly rgu file errors. Please enter temp folder, open log.txt to check which rgu file has problems.
i have the same problem: i've saw the log, and it tells me about a key from a package that i've created. the rgu looks like this:
REGEDIT4
[HKEY_CLASSES_ROOT\.smv]
"Default"="smvfile"
[HKEY_CLASSES_ROOT\smvfile\shell\open\command]
@=""\Storage Card\Program Files\CorePlayer\player.exe" "%1""
[HKEY_CLASSES_ROOT\smvfile\DefaultIcon]
@="\Storage Card\Program Files\CorePlayer\player.exe,0"
[HKEY_CLASSES_ROOT\.sma]
"Default"="smafile"
[HKEY_CLASSES_ROOT\smafile\shell\open\command]
@=""\Storage Card\Program Files\CorePlayer\player.exe" "%1""
[HKEY_CLASSES_ROOT\smafile\DefaultIcon]
@="\Storage Card\Program Files\CorePlayer\player.exe,0"
and in the log i have this ending message:
Failed to parse value name HKEY_CLASSES_ROOT\smvfile\shell\open\command!!!
InitRegistry FAILED in file ".\Registry\f99d2910-9559-4c48-99d0-ea80a73f7659.rgu" within a few lines of line 5.
ImportFromPackageListStrict: (RGUComp) !ERROR failed importing ".\Registry\f99d2910-9559-4c48-99d0-ea80a73f7659.rgu"
wmain: (RGUComp) !ERROR failed building DEFAULT hives
I think,
First, the path should be "\\", not "\", so the main problem is that line 6 should be @=""\\Storage CARD\\Pro..............
Second, the rgu file should be saved as "unicode" code.
And, you should add a blank line at the bottom of the rgu files.
ady_uaic said:
i have the same problem: i've saw the log, and it tells me about a key from a package that i've created. the rgu looks like this:
REGEDIT4
[HKEY_CLASSES_ROOT\.smv]
"Default"="smvfile"
[HKEY_CLASSES_ROOT\smvfile\shell\open\command]
@=""\Storage Card\Program Files\CorePlayer\player.exe" "%1""
[HKEY_CLASSES_ROOT\smvfile\DefaultIcon]
@="\Storage Card\Program Files\CorePlayer\player.exe,0"
[HKEY_CLASSES_ROOT\.sma]
"Default"="smafile"
[HKEY_CLASSES_ROOT\smafile\shell\open\command]
@=""\Storage Card\Program Files\CorePlayer\player.exe" "%1""
[HKEY_CLASSES_ROOT\smafile\DefaultIcon]
@="\Storage Card\Program Files\CorePlayer\player.exe,0"
and in the log i have this ending message:
Failed to parse value name HKEY_CLASSES_ROOT\smvfile\shell\open\command!!!
InitRegistry FAILED in file ".\Registry\f99d2910-9559-4c48-99d0-ea80a73f7659.rgu" within a few lines of line 5.
ImportFromPackageListStrict: (RGUComp) !ERROR failed importing ".\Registry\f99d2910-9559-4c48-99d0-ea80a73f7659.rgu"
wmain: (RGUComp) !ERROR failed building DEFAULT hives
Click to expand...
Click to collapse
something like this?
REGEDIT4
[HKEY_CLASSES_ROOT\.smv]
"Default"="smvfile"
[HKEY_CLASSES_ROOT\smvfile\shell\open\command]
@=""\\Storage Card\\Program Files\\CorePlayer\\player.exe" "%1""
[HKCR\smvfile\DefaultIcon]
@="\\Storage Card\\Program Files\\CorePlayer\\player.exe,0"
[HKEY_CLASSES_ROOT\.sma]
"Default"="smafile"
[HKCR\smafile\shell\open\command]
@=""\\Storage Card\\Program Files\\CorePlayer\\player.exe" "%1""
[HKCR\smafile\DefaultIcon]
@="\\Storage Card\\Program Files\\CorePlayer\\player.exe,0"
blank space.
(blank space without nothing, or an empty key?)
i have the same problem. still persists the error. and what do you mean "to be saved as unicode"? it's saved with win ce cab manager.
i've tried also with "default" instead of @. still same problem.
Hi
I've been following this tutorial in order to dump my original telus ROM for another user here that have asked me.
http://forum.xda-developers.com/showthread.php?t=327073
However, when I get this step:
check for real size
D:\_ROM>pdocread -w -d TrueFFS -p Part02 -t
real nr of sectors: 132752 - 64.82Mbyte (0x40d2000)
I get the following error:
ERROR: ITTFFSGetInfo - The device is not ready for use.
WARNING: using default 512 bytes for sectorsize
CopyTFFSToFile(0x0, 0x43e0000, Part02.raw)
ERROR: ITReadDisk: outbuf==NULL
- The device is not ready for use.
Any clues?
Thanks
Ok I got the device name point but now when I try to read the partition size, with all the names OK, it gives me the default 512bytes...
Aloha
Any way to execute the commands hidden in the hboot.nb0 file ?
When i look in it with a text editor i see things like:
Usage: savemem2sd <memory offset> <length> <file name>
ex: savemem2sd 85cd0000 2c000 mem.bin invalid parameters!
<addr> is invalid!
unsupported <width>
failed to write. <addr> must be aligned
failed to write. <value> is invalid
memory dump
%X: - %X: %B %B | %s
%B %X: %H %H | %s
%H %X: %X %X | %s
%X | %s
Usage: saveprt2sd <partition name> <-n> <file name> <-a>
<partition name> - Partition name want to save
<-n> <file name> - File name to store in(optional)
<-a> - Save whole blocks even read empty page(optional)
ex: saveprt2sd hboot hboot.bin
(use listpartition command get all partition name)
-a -n
Click to expand...
Click to collapse
I ran all the required commands and noticed that the chmod did not do anything. So I decided to run the temp root command abd I get permission denied.
Sent from my T-Mobile G2 using XDA App
Please anyone? I run this command "adb shell chmod 755 /data/local/tmp/*" but it does not do anything, is there something I have to change on that line?
Been trying to root for 2 days now but unsuccessful.
you're not supposed to see any return on the command prompt. Just continue with the procedure.
Thanks for giving me a reply, waited many hours. THANK you though.
When I run the temp root command, I get this.
"C:\android-sdk-windows\platform-tools>adb shell /data/local/tmp/psneuter
mmap() failed. Operation not permitted
C:\android-sdk-windows\platform-tools>adb shell
"
C:\android-sdk-windows\platform-tools>adb shell
#
#
# cd /data/local/tmp
cd /data/local/tmp
# ./busybox md5sum /dev/block/mmcblk0p18
./busybox md5sum /dev/block/mmcblk0p18
b532ca54a073f0c4043bd7be69ebce8d /dev/block/mmcblk0p18
# cd /data/local/tmp
cd /data/local/tmp
# ./gfree -f -b hboot-eng.img
./gfree -f -b hboot-eng.img
--secu_flag off set
--cid set. CID will be changed to: 11111111
--sim_unlock. SIMLOCK will be removed
--hboot set. hboot image hboot-eng.img will be installed in partition 18
Section header entry size: 40
Number of section headers: 44
Total section header table size: 1760
Section header file offset: 0x00015384 (86916)
Section index for section name string table: 41
String table offset: 0x000151cb (86475)
Searching for .modinfo section...
- Section[16]: .modinfo
-- offset: 0x000011cc (4556)
-- size: 0x000000cc (204)
Kernel release: 2.6.32.17-g9ab3677
New .modinfo section size: 204
Attempting to power cycle eMMC... OK.
Write protect was successfully disabled.
Searching for mmc_blk_issue_rq symbol...
- Address: c029c72c, type: t, name: mmc_blk_issue_rq, module: N/A
Kernel map base: 0xc029c000
Kernel memory mapped to 0x40002000
Searching for brq filter...
- Address: 0xc029c72c + 0x34c
- 0x2a000012 -> 0xea000012
Backing up current partition 18 and installing specified hboot image...
Backing up current partition 7 and patching it...
patching secu_flag: 0
Done.
# ./flash_image recovery recovery.img
./flash_image recovery recovery.img
# cd /data/local/tmp
cd /data/local/tmp
# ./flash_image recovery recovery.img
./flash_image recovery recovery.img
# ./root_psn
./root_psn
# sync
sync
#
Did these commands run right?
# cd /data/local/tmp
# ./gfree -f -b hboot-eng.img
# ./flash_image recovery recovery.img
# ./root_psn
# sync
All looks good to me.... When yoh restart the phone do you have s off?
Sent from my HTC Vision using XDA App
Hey everyone, I'm new here and I finally decided to root my g2. I'm using the cyanogenmod wiki entry. I am at the point where it says to write "./gfree -f -b hboot-eng.img -y recovery.img" though every time I do this it says:
# ./gfree -f -b hboot-eng.img -y recovery.img
./gfree -f -b hboot-eng.img -y recovery.img
--secu_flag off set
--cid set. CID will be changed to: 11111111
--sim_unlock. SIMLOCK will be removed
--hboot set. hboot image hboot-eng.img will be installed in partition 18
--recovery set. recovery image recovery.img will be installed in partition 21
Section header entry size: 40
Number of section headers: 44
Total section header table size: 1760
Section header file offset: 0x000138b4 (80052)
Section index for section name string table: 41
String table offset: 0x000136fb (79611)
Searching for .modinfo section...
- Section[16]: .modinfo
-- offset: 0x00000a14 (2580)
-- size: 0x000000cc (204)
Kernel release: 2.6.32.17-g814e0a1
New .modinfo section size: 204
Attempting to power cycle eMMC... OK.
Write protect was successfully disabled.
Searching for mmc_blk_issue_rq symbol...
- Address: c02a8d44, type: t, name: mmc_blk_issue_rq, module: N/A
Kernel map base: 0xc02a8000
Kernel memory mapped to 0x40002000
Searching for brq filter...
- Address: 0xc02a8d44 + 0x34c
- ***WARNING***: Found fuzzy match for brq filter, but conditional branch isn't
. (0xea000012)
Backing up current partition 18 and installing specified hboot image...
Backing up partition /dev/block/mmcblk0p18 to /sdcard/part18backup-1313372731.bi
n ...
Writing image hboot-eng.img to partition /dev/block/mmcblk0p18 ...
Error opening input image.
is this normal? if it helps, I continue on to write
./root_psn
sync
and nothing happens. Thanks ahead of time for any help.
Nevermind. I just went through every step again and it worked.