Patching SOMAFI

download Patching SOMAFI

If you can't read please download the document

Transcript of Patching SOMAFI

Patching the SOMAFIIt may be necessary to patch the SOMAFI file, located in the SCMANA directory in the root directory of the disk file system, if the incorrect or corrupt SW is used and the system is in a reset loop.POSIX Nokia Oyj 33 (67)

This procedure is used to revert back to an old software package when a new default package doesnt come up (OMU is down). This is done by patching the file SOMAFIGX.IMG to set a previously working package back to Default. Procedure: 1. Start mini-debugger session 2. Load Posix Subsystem Tool00-MAN> ZLP:P,POM

3. Change working directory00-MAN> ZPS:chdir,/shadows/SCMANA

4. Create backup copy of SOMAFIGX.IMG00-POM> S:cp,SOMAFIGX.IMG,SOMAFIGX.BAK

Note: If there are any problems, you can later copy back the old SOMAFI file by giving the command: 00-POM> S:cp,SOMAFIGX.BAK,SOMAFIGX.IMG 5. Display contents of SOMAFIGX.IMG on screen and take note of the location (in hex) of the current default package (e.g., NW) and the previously working package (e.g., BU)00-POM> S:hexdump,SOMAFIGX.IMG,,1530

1530=size in bytes of the file0: 08 05 00 00 11 00 11 00 47 17 5C 8A B4 00 00 00 .....G.\.. 10: 00 00 00 00 53 4F 4D 41 46 49 47 58 2E 50 41 43 .SOMAFIGX.PAC 20: 20 33 2E 32 2D 30 20 39 39 2F 30 39 2F 31 34 20 3.2-0 99/09/14 30: 20 20 20 50 4C 41 45 4E 56 43 32 2E 50 41 43 20 PLAENVC2.PAC 40: 37 2E 31 35 2D 31 20 43 49 44 30 30 30 51 58 20 7.15-1 CID000QX 50: 31 2E 31 2D 30 20 31 2E 32 35 2D 30 00 00 00 00 1.1-0 1.25-0. . . . 130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............. 140: 00 00 00 00 78 00 4E 57 FF FF 00 00 00 00 00 00 .x.NW..... 150: 00 00 03 00 03 00 51 31 20 31 2E 32 35 2D 32 20 ...Q1 1.25-2 160: 20 20 20 20 20 20 20 20 20 20 51 31 30 31 32 35 Q10125 170: 30 32 00 00 00 44 49 52 00 51 31 30 31 32 35 30 02DIR.Q101250 180: 32 01 51 31 20 31 2E 32 35 2D 32 20 20 20 43 49 2.Q1 1.25-2 CI 190: 44 30 30 30 51 58 20 31 2E 31 2D 30 20 20 20 20 D000QX 1.1-0 1A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............. . . . 310: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............. 320: 00 00 00 00 78 00 42 55 00 00 00 00 00 00 00 00 .x.BU..... 330: 00 00 03 00 03 00 51 31 20 31 2E 32 35 2D 31 20 ...Q1 1.25-1 340: 20 20 20 20 20 20 20 20 20 32 46 42 31 32 35 30 2FB1250

350: 360: 370: 380: . .

31 00 44 61

00 01 30 15

00 51 30 24

00 31 30 12

00 20 51 30

44 31 58 08

49 2E 20 01

52 32 31 20

00 35 2E 01

46 2D 31 00

42 31 2D 00

31 20 30 00

32 20 20 00

35 20 20 00

30 43 20 00

31 49 20 00

1.DIR.FB12501 ..Q1 1.25-1 CI D000QX 1.1-0 a.$.0.. ........

6. Load SOMAFIGX.IMG to memory location G40.000-POM> S:file2mem,SOMAFIGX.IMG,G40.0,1530

7. Set previously working package to default (replace 00 with FF)00-POM> S:memset,G40.328,0xFF,2

Note: G40.328 is just an example. Actual value will depend on the HEXDUMP for each specific SOMAFI file. The right value can be calculated 320: 00 00 00 00 78 00 42 55 00 00 00 00 00 00 00 00 .x.BU..... 140: 00 00 00 00 78 00 4E 57 FF FF 00 00 00 00 00 00 .x.NW.....FF 4E 46 55 FF 57 42 44 = = = = default 00 00 = not as default NW 42 55 = BU FB 55 54 = UT UD

8. Remove default flag from current package (replace FF with 00)00-POM> S:memset,G40.148,0x00,2

Note! The memory offset G40.148 is just an example. Actual value will depend on the HEXDUMP for each specific SOMAFI file. 9. Recalculate checksum00-POM> ZSSAI:G40

10. Overwrite SOMAFIGX.IMG from memory to file00-SYS> ZPS:mem2file,SOMAFIGX.IMG,G40,1530

11. Check that modifications are correctly done00-POM> S:hexdump,SOMAFIGX.IMG,,1530

12. Restart system00-POM> ZAUL