[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux1394-devel
Subject:    Re: Configuration ROM pretty printer
From:       Stefan Richter <stefanr () s5r6 ! in-berlin ! de>
Date:       2010-02-18 22:00:41
Message-ID: 4B7DB889.4030908 () s5r6 ! in-berlin ! de
[Download RAW message or body]

> I wrote a little utility which reads a config ROM from stdin and writes
> an annotated human-readable representation of it to stdout.

I now added
  - decoding of protocol version IDs,
  - annotation of protocol-specific ROM entries of the following
    unit architectures: DPP, IICP, IIDC 1.04...1.31, SBP-2...3,
  - lookup of names of organizations from OUI-24 values in GUIDs,
    specifier IDs and vendor IDs,
  - CRC-16 verification.

The tool can be downloaded from
http://user.in-berlin.de/~s5r6/linux1394/utils/.
(Current is crpp_v20100218).

Attached are example outputs of the tool, generated from the config ROMs
of an IIDC device and an SBP-3 device.
-- 
Stefan Richter
-=====-==-=- --=- =--=-
http://arcgraph.de/sr/

["fire-i.txt" (text/plain)]

               ROM header and bus information block
               -----------------------------------------------------------------
400  04217a8e  bus_info_length 4, crc_length 33, crc 31374 (should be 63419)
404  31333934  bus_name "1394"
408  20ff4000  irmc 0, cmc 0, isc 1, bmc 0, cyc_clk_acc 255, max_rec 4 (32)
40c  08144361  company_id 081443     | UNIBRAIN S.A.
410  0263186c  device_id 610263186c  | EUI-64 081443610263186c

               root directory
               -----------------------------------------------------------------
414  0004980f  directory_length 4, crc 38927
418  03081443  vendor: UNIBRAIN S.A.
41c  06070198  (immediate value)
420  8d000002  --> eui-64 leaf at 428
424  d1000004  --> unit directory at 434

               eui-64 leaf at 428
               -----------------------------------------------------------------
428  00024e92  leaf_length 2, crc 20114 (should be 63417)
42c  08144361  company_id 081443     | UNIBRAIN S.A.
430  0263186c  device_id 610263186c  | EUI-64 081443610263186c

               unit directory at 434
               -----------------------------------------------------------------
434  0003d7fe  directory_length 3, crc 55294
438  1200a02d  specifier id: 1394 TA
43c  13000100  version: IIDC 1.04
440  d4000001  --> dependent info directory at 444

               dependent info directory at 444
               -----------------------------------------------------------------
444  00039e47  directory_length 3, crc 40519
448  403c0000  --> IIDC 1.04 command_regs_base at fffff0f00000
44c  81000002  --> IIDC 1.04 vendor name leaf at 454
450  82000008  --> IIDC 1.04 model name leaf at 470

               IIDC 1.04 vendor name leaf at 454
               -----------------------------------------------------------------
454  00064b14  leaf_length 6, crc 19220
458  00000000
45c  00000000
460  556e6962  "Unib"
464  7261696e  "rain"
468  00000000  
46c  00000000  

               IIDC 1.04 model name leaf at 470
               -----------------------------------------------------------------
470  0005d448  leaf_length 5, crc 54344
474  00000000
478  00000000
47c  46697265  "Fire"
480  2d692031  "-i 1"
484  2e320000  ".2"


["little-disk.txt" (text/plain)]

               ROM header and bus information block
               -----------------------------------------------------------------
400  04042bb6  bus_info_length 4, crc_length 4, crc 11190
404  31333934  bus_name "1394"
408  00ff5123  irmc 0, cmc 0, isc 0, bmc 0, pmc 0, cyc_clk_acc 255,
               max_rec 5 (64), max_rom 1, gen 2, spd 3 (S800)
40c  00d04b8b  company_id 00d04b     | LA CIE GROUP S.A.
410  09050039  device_id 8b09050039  | EUI-64 00d04b8b09050039

               root directory
               -----------------------------------------------------------------
414  0007a08f  directory_length 7, crc 41103
418  0c0083c0  node capabilities per IEEE 1394
41c  0300d04b  vendor: LA CIE GROUP S.A.
420  8100002b  --> descriptor leaf at 4cc
424  0400f934  hardware version
428  81000030  --> descriptor leaf at 4e8
42c  d1000002  --> unit directory at 434
430  d1000011  --> unit directory at 474

               unit directory at 434
               -----------------------------------------------------------------
434  0007390c  directory_length 7, crc 14604
438  1200d04b  specifier id: LA CIE GROUP S.A.
43c  13484944  version
440  3c030305  (immediate value)
444  3a000003  (immediate value)
448  3b000001  (immediate value)
44c  17004136  model
450  81000001  --> descriptor leaf at 454

               descriptor leaf at 454
               -----------------------------------------------------------------
454  000735f8  leaf_length 7, crc 13816
458  00000000  textual descriptor
45c  00000000  minimal ASCII
460  6c697474  "litt"
464  6c652064  "le d"
468  69736b20  "isk "
46c  28627574  "(but"
470  746f6e29  "ton)"

               unit directory at 474
               -----------------------------------------------------------------
474  000dc4f5  directory_length 13, crc 50421
478  1200609e  specifier id: INCITS
47c  13010483  version: SBP-2
480  3c000110  SBP-2 firmware revision 000110
484  5400c000  --> SBP-2 management agent CSR at fffff0030000
488  3a003c08  SBP-2 unit char.: mgt_ORB_timeout 30s, ORB_size 8 quadlets
48c  3800609e  SBP-2 command set spec id: INCITS
490  390104d8  SBP-2 command set: SCSI Primary Commands 2 and related standards
494  3b000000  SBP-2 command set revision
498  3d000003  SBP-2 reconnect timeout: max_reconnect_hold 4s
49c  21000001  SBP-2 revision 1 = SBP-3
4a0  144e0000  SBP-2 logical unit number: ordered 1, type RBC, lun 0000
4a4  17000000  model
4a8  81000001  --> descriptor leaf at 4ac

               descriptor leaf at 4ac
               -----------------------------------------------------------------
4ac  000714e2  leaf_length 7, crc 5346
4b0  00000000  textual descriptor
4b4  00000000  minimal ASCII
4b8  6c697474  "litt"
4bc  6c652064  "le d"
4c0  69736b00  "isk"
4c4  00000000  
4c8  00000000  

               descriptor leaf at 4cc
               -----------------------------------------------------------------
4cc  00062642  leaf_length 6, crc 9794
4d0  00000000  textual descriptor
4d4  00000000  minimal ASCII
4d8  4c614369  "LaCi"
4dc  65000000  "e"
4e0  00000000  
4e4  00000000  

               descriptor leaf at 4e8
               -----------------------------------------------------------------
4e8  000499f0  leaf_length 4, crc 39408
4ec  00000000  textual descriptor
4f0  00000000  minimal ASCII
4f4  4f783933  "Ox93"
4f8  34445341  "4DSA"



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
mailing list linux1394-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux1394-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic