View Single Post
  #1301 (permalink)  
Old 03-17-2009, 06:06 PM
inertiax3's Avatar
inertiax3
PPCGeeks Regular
Offline
 
Join Date: Mar 2009
Posts: 67
Reputation: 20
inertiax3 is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: WM 6.5 Kitchen QVGA and VGA Developer Edition

OK, here we go... the Samsung i780 is a QVGA device, 320 x 320 screen resolution with 128MB RAM and no officialy planned WM65 upgrade

I have a BIG problem cooking a WORKING W65 on this device (WM61 NO PROBLEM, all work 100%!!!). Can some GURU take a look at the following steps and tell me what I am doing wrong please? (already talked to Anryl and StevenH who pointed out a few things), this is a revised version.

Here's what I do:

1. I take an original ROM for the Samsung i780, dump it, get a directory called DUMP (.ROM,.VM and many modules and files).

2. Using PKGTOOL I create the corresponding OEM and SYS directories (PKGTool version 1.01 by bepe) and one more file that is not in the OEM or SYS dir (a427cbd...dsm) - I put it in the OEM directory under OEM_Other

3. Then I prepare the OEM dir with these directories:

OEM_DPI_128
OEMApps
OEMDrivers
OEMMisc
OEM.cer (this is a file)

--> !!IMPORTANT!! PKGTool doesent create the OEM_Lang_0409 directory with some original ROMs, if this directory is not present then PkgToolsBuildOS 5.3 throws up an error (somethinig with paramater s..).
--> Can I use this directory from other WM61 releases? It contains, amongst other, initflashfiles.dat and as such copies quite a lot of files, including welcome.lnk..
--> The OEM.cer file (certificate?) - is it important? It contains the word Samsung, I guess it must not be replaced by any other OEM.cer, right?

4. Now onto the SYS - I delete all directories from the ORIGINAL dump except .VM and metadata, these two will be used from the original dump

5. Then I copy the new SYS folders, either WM65 21176 or 21189, rename directories containing resh/resv to 320 (i780 is a 320x320 device). Nothing else is removed and .VM and metadata is kept from original ROM.

6. Now the XIP - port it, old XIP from my original dumped ROM (HL2 in my case, not sure about the build), the donor will be a 21176 or 21189 XIP, I use either XIP Kitchen beta 2 from LennySh or XIPPorterEx (build 32/35) - whichever produces a working XIP without any overlaps in map.txt.

--> !!IMPORTANT!! WinCE.nls is kept within the XIP - I've heard it's possible to integrate into the IMGFS but I think that the Samsung i780 doesen't like this.
--> !!IMPORTANT2!! WinCE.nls can ONLY be present in the XIP, not XIP and SYS at the same time, true?
--> !!IMPORTANT3!! Can WWE WinCE.nls be used on Chinese builds? (0804)

7. A working and ported XIP is the dumped via XIPPort, "write maps" just to make sure (again) there are no overlaps

8. The files obtained in step 7 are copied to ROM\XIP
(so I have all dll directories [eg.busenum.dll,cachefilt.dll...] and files [a few dsm, boot.hv, boot.rgu, wince.nls, mxip_lang.vol...]

--> !!IMPORANT!! - Which files should REALLY be in ROM\XIP? Is BOOT.RGU enough? I've seen some kitchens with BOOT.RGU and NK.EXE ?! What does this mean?

9. OK, so I have nice OEM, SYS and ROM directories, I run PkgToolsBuildOS5.3, press LOAD ROM, run COMPILE, the tool reads everything, RGUComp runs OK and a temp\dump directory is created - nice.. it's around 125 MB

10. Next I run WMReloc, version 1.04 for WM6.5, all files are relocated (no errors in log). Is this it for the relocation process? The tool only changes the imageinfo.txt in each dir, is this enough? G'reloc throws up errors with
some WM65, but WMReloc runs OK all the time. Should I use WMReloc or G'Reloc? Is WMReloc reliable?

11. Next some i780-specific stuff:

move temp\DUMP to the root, run RecreateBin.bat which contains:

imgfsfromdump imgfs_raw_data.bin new_imgfs.bin
del imgfs_raw_data.bin
ren new_imgfs.bin imgfs_raw_data.bin
make_imgfs i780.nb0.payload.body -nosplit
merge i780.nb0.payload.header i780.nb0.payload.body i780.nb0.payload
nbmerge -data 2048 -extra 8 i780.nb0 -conservative

12. I get i780.nb0 file

13. Export the XIP from i780.nb0

osnbtool -sp i780.nb0
osnbtool -d i780.Nb0.os.nb 1 xip.bin

14. Import the ported XIP (21176 or 21189, based on which SYS I use) into i780.Nb0 (also I change the PP or leave original, tried both)

osnbtool -ap xip.bin 16
osnbtool -c i780.Nb0.os.nb 1 xip.bin
osnbtool -extra i780.Nb0.os.nb.NEW
copy /b /y i780.Nb0.pre + i780.Nb0.os.new.EXA i780.Nb0.new
del i780.Nb0
ren i780.Nb0.pre i780.Nb0

15. And finally I convert the i780.Nb0 into a BIN:

conv3 input.txt > conv3_output.txt
ren i780.nb0.b000ff !!i780_flashable_bin.bin

16. And flash the whole thing.....

ET VOILAAAAAAA

First I see the Samsung logo, then Samsung animation but then either a black screen with a white pointer which I can't move (the i780 has a optical mouse) (which later goes dim and the the backlight turns off), or the Green WinMo 6.5 background (which later goes dim and the the backlight turns off) or Green Logo and DING sound (but no welcome center)... the keypad doesent react, neither does the power button, however the touchscreen does (tapping it brings up higher backlight).

Once the PDA screen turns off I can only power it up (resume from StandBy) by connecting a data cable, the PDA then wakes up (to the same black or green screen). Pressing the power button while the device is in StandBy sometime brings up the blue LED.. what a mess!!!

I've tried maybe 70-80 different variations, no luck .. I HATE flashing ! And because there is no easy kitchen for the i780 one ROM cooking+flashing takes ~25mins.. OMG

So please, can someone tell what am I doing wrong?!

Regards to every and THANX!!!
Reply With Quote