Problem interpreting pSOS Flash Filesystem - Page 1
Forum section: electronics / projects

author: sub205
author_rank: Newbie
timestamp: July 11, 2016, 11:32:34 am
content: Hello,i'm currently trying to fix a management card for a laser interconnect (1GBit WAN).The board is based on a i960, designed roughly around 2000 using a 28F160S5 (64k block, 2MiB)-Flash and running pSOS.Unfortunately, the manufacturer is no longer available and got sold. The new owner does not have any technical stuff.There are different variants of the management-card, i got a PoF-module (i think from a switch) and a dump from the flashrom of a correct one.The Bootrom is running, i can get into pROBE+ (loader/debugger) and upload stuff via Z-Modem.It beggs for some kind of Bootfile/Image, maybe the stage2.cof i'm trying to extract from the Flashdump.The Flash itself has 64k blocks with the last 10 byte looking like the organisation-information (wear leveling, bad block management etc)There 64k-block itself seems to be divided in 63x1k with some kind of 6-byte-per-entry "sector-list", containing 0x3f in every entry.Does someone know how to interpret and extract files from this filesystem or maybe has the pSOS developer tools ready?The Filesystem itself has a file called "filelist" which should be the "directory-index" according to some documents on the net.The footer of every 64k-Block looks this way:Code:0000fff0 b8 0f ff ff ff ff 03 00 00 00 01 00 fe ff ff c3 |¸.ÿÿÿÿ......þÿÿÃ|0001fff0 f4 0f ff ff ff ff 03 00 00 00 09 00 f6 ff ff c3 |ô.ÿÿÿÿ......öÿÿÃ|0002fff0 56 0c ff ff ff ff 02 00 00 00 02 00 fd ff ff c3 |V.ÿÿÿÿ......ýÿÿÃ|0003fff0 2f 0c ff ff ff ff 02 00 00 00 04 00 fb ff ff c3 |/.ÿÿÿÿ......ûÿÿÃ|0004fff0 fd 08 ff ff ff ff 03 00 00 00 06 00 f9 ff ff c3 |ý.ÿÿÿÿ......ùÿÿÃ|0005fff0 20 00 00 00 00 00 02 00 00 00 00 00 ff ff fe c3 | ...........ÿÿþÃ|0006fff0 ff ff ff ff ff ff 03 00 00 00 13 00 ec ff ff c3 |ÿÿÿÿÿÿ......ìÿÿÃ|0007fff0 ff ff ff ff ff ff 03 00 00 00 ff ff ff ff ff f3 |ÿÿÿÿÿÿ....ÿÿÿÿÿó|0008fff0 eb 0f ff ff ff ff 02 00 00 00 08 00 f7 ff ff c3 |ë.ÿÿÿÿ......÷ÿÿÃ|0009fff0 86 0d ff ff ff ff 05 00 00 00 03 00 fc ff ff c3 |..ÿÿÿÿ......üÿÿÃ|000afff0 ff ff ff ff ff ff 02 00 00 00 0a 00 f5 ff ff c3 |ÿÿÿÿÿÿ......õÿÿÃ|000bfff0 ff ff ff ff ff ff 04 00 00 00 0c 00 f3 ff ff c3 |ÿÿÿÿÿÿ......óÿÿÃ|000cfff0 ff ff ff ff ff ff 04 00 00 00 12 00 ed ff ff c3 |ÿÿÿÿÿÿ......íÿÿÃ|000dfff0 ff ff ff ff ff ff 04 00 00 00 14 00 eb ff ff c3 |ÿÿÿÿÿÿ......ëÿÿÃ|000efff0 ff ff ff ff ff ff 02 00 00 00 0e 00 f1 ff ff c3 |ÿÿÿÿÿÿ......ñÿÿÃ|000ffff0 ff ff ff ff ff ff 02 00 00 00 10 00 ef ff ff c3 |ÿÿÿÿÿÿ......ïÿÿÃ|0010fff0 ff ff ff ff ff ff 02 00 00 00 0d 00 f2 ff ff c3 |ÿÿÿÿÿÿ......òÿÿÃ|0011fff0 ff ff ff ff ff ff 03 00 00 00 0f 00 f0 ff ff c3 |ÿÿÿÿÿÿ......ðÿÿÃ|0012fff0 3f 10 ff ff ff ff 02 00 00 00 07 00 f8 ff ff c3 |?.ÿÿÿÿ......øÿÿÃ|0013fff0 ff ff ff ff ff ff 02 00 00 00 0b 00 f4 ff ff c3 |ÿÿÿÿÿÿ......ôÿÿÃ|0014fff0 ff ff ff ff ff ff 02 00 00 00 11 00 ee ff ff c3 |ÿÿÿÿÿÿ......îÿÿÃ|0015fff0 30 0d ff ff ff ff 02 00 00 00 05 00 fa ff ff c3 |0.ÿÿÿÿ......úÿÿÃ|0016fff0 ff ff ff ff ff ff 01 00 00 00 15 00 ea ff ff c3 |ÿÿÿÿÿÿ......êÿÿÃ|0017fff0 ff ff ff ff ff ff 01 00 00 00 16 00 e9 ff ff c3 |ÿÿÿÿÿÿ......éÿÿÃ|0018fff0 ff ff ff ff ff ff 01 00 00 00 17 00 e8 ff ff c3 |ÿÿÿÿÿÿ......èÿÿÃ|0019fff0 ff ff ff ff ff ff 01 00 00 00 18 00 e7 ff ff c3 |ÿÿÿÿÿÿ......çÿÿÃ|001afff0 ff ff ff ff ff ff 01 00 00 00 19 00 e6 ff ff c3 |ÿÿÿÿÿÿ......æÿÿÃ|001bfff0 ff ff ff ff ff ff 01 00 00 00 1a 00 e5 ff ff c3 |ÿÿÿÿÿÿ......åÿÿÃ|001cfff0 ff ff ff ff ff ff 01 00 00 00 1b 00 e4 ff ff c3 |ÿÿÿÿÿÿ......äÿÿÃ|001dfff0 ff ff ff ff ff ff 01 00 00 00 1c 00 e3 ff ff c3 |ÿÿÿÿÿÿ......ãÿÿÃ|001efff0 ff ff ff ff ff ff 01 00 00 00 1d 00 e2 ff ff c3 |ÿÿÿÿÿÿ......âÿÿÃ|001ffff0 ff ff ff ff ff ff 01 00 00 00 1e 00 e1 ff ff c3 |ÿÿÿÿÿÿ......áÿÿÃ|Here is one example sector-footer:Code:0000fee0 ff ff ff ff ff ff ff ff ff ff bf b3 f6 00 19 00 |ÿÿÿÿÿÿÿÿÿÿ¿³ö...|0000fef0 3f 9a f6 00 19 00 3f 81 f6 00 19 00 3f 68 f6 00 |?.ö...?.ö...?hö.|0000ff00 19 00 3f 4f f6 00 19 00 3f 36 f6 00 19 00 3f 1d |..?Oö...?6ö...?.|0000ff10 f6 00 19 00 3f 04 f6 00 19 00 3f eb f5 00 19 00 |ö...?.ö...?ëõ...|0000ff20 1f d2 f5 00 19 00 3f b9 f5 00 19 00 1f a8 f5 00 |.Òõ...?¹õ....šõ.|0000ff30 11 00 3f 8f f5 00 19 00 1f 7e f5 00 11 00 3f 48 |..?.õ....~õ...?H|0000ff40 f5 00 36 00 3f 12 f5 00 36 00 3f f9 f4 00 19 00 |õ.6.?.õ.6.?ùô...|0000ff50 3f e0 f4 00 19 00 3f c7 f4 00 19 00 3f ae f4 00 |?àô...?Çô...?®ô.|0000ff60 19 00 3f 95 f4 00 19 00 3f 7c f4 00 19 00 3f 63 |..?.ô...?|ô...?c|0000ff70 f4 00 19 00 3f 4a f4 00 19 00 3f 31 f4 00 19 00 |ô...?Jô...?1ô...|0000ff80 3f 88 e8 00 a9 0b 3f ef dd 00 99 0a 3f fe d3 00 |?.è.©.?ïÝ...?þÓ.|0000ff90 f1 09 3f 62 cf 00 9c 04 3f d8 c8 00 8a 06 3f 4c |ñ.?bÏ...?ØÈ...?L|0000ffa0 be 00 8c 0a 3f ed ae 00 5f 0f 3f 3f a0 00 ae 0e |Ÿ...?í®._.?? .®.|0000ffb0 3f d1 94 00 6e 0b 3f 9c 85 00 35 0f 3f cc 76 00 |?Ñ..n.?...5.?Ìv.|0000ffc0 d0 0e 3f 0f 69 00 bd 0d 3f 43 59 00 cc 0f 3f fb |Ð.?.i.œ.?CY.Ì.?û|0000ffd0 47 00 48 11 3f f7 38 00 04 0f 3f f5 2a 00 02 0e |G.H.?÷8...?õ*...|0000ffe0 3f 94 1e 00 61 0c 3f b8 0f 00 dc 0e 3f 00 00 00 |?...a.?ž..Ü.?...|0000fff0 b8 0f ff ff ff ff 03 00 00 00 01 00 fe ff ff c3 |ž.ÿÿÿÿ......þÿÿÃ|I would be very happy if anyone can help me. Have put many hours into this but did not solve the puzzle.Kind regards,Stephan