RE: Setting up a configuration ROM

From: Alex Shnitman <alexs_at_mangodsp.com>
Date: Tue 16 Nov 2004 - 15:07:28 CET
Message-ID: <43EC06B16C77D411AE7B00E018C28FE096A52C@Exchange.jerusalem.mangodsp.com>

Hi Steve,

> > > As far as I am aware, the serial EEPROM cannot be programmed via the
> > > link layer chip. Generally, you would have the EEPROM pre-programmed
> > > prior to installation on the board. If you want to be able to program
> > > it after installation, then you will need connect the programming pins
> > > to the processor in some other way and program it directly.
> >
> > I was just browsing the libraw1394 header and noticed a function called
> > "raw1394_update_config_rom". What does it do? Doesn't it update the
> EEPROM
> > in some way? I couldn't find any documentation on it.
>
> The IEEE 1394 Configuration ROM has nothing to do with the serial EEPROM
> that OHCI chips use. It is used by remote devices to determine the
> capabilities and services of the local node (and vice versa). The
> Configuation ROM is specified by IEEE 1212.

OK, that clears things up a little bit. :-)

> There is no software that
> will program the serial EEPROM via the OHCI chip. Please read the
> following documents:
> http://www-s.ti.com/sc/ds/tsb82aa2.pdf
> http://www-s.ti.com/sc/psheets/slla077/slla077.pdf
> http://developer.intel.com/technology/1394/download/ohci_11.pdf
> They all contain information about the serial EEPROM interface.
> Particularly note section 7 of the first document listed and all of the
> second document.

Thanks for the information. Specifically the second document is very much to
the point. However I find that the bit settings in PCI registers that the
document suggests doing in case of BIOS configuration are already done, even
though I haven't seen code that does them. So all that's left is the GUID,
which, for all I know, I'm setting correctly.

> > The device is still not recognized. Any ideas at all? Here is the dmesg
> > output:
> >
> > ohci1394: $Rev$ Ben Collins <bcollins@debian.org>
> > ohci1394: fw-host0: Remapped memory spaces reg 0xc1068800
> > ohci1394: fw-host0: GUID: 66a91cf929f15a5b
>
> I'd say that the chip is recognized. Compare the value of the GUID with
> what you wrote to OHCI_GUIDHi and OHCI_GUIDLo. If you are having other
> problems, I'd suggest describing what those problems are. There does
> not appear to be any problems with the FireWire chip itself or its
> configuration.

I'm sorry, I wasn't clear. By "device" I meant the device that I connect to
the 1394 port after the kernel boots. It's a portable hard disk from
EzQuest. Below are the messages that appear on the console when I plug it
in. What makes me suspicious of the ohci1394 itself is that the "Error in
reception of SelfID packets" message appears right away on bootup, without
connecting any device, when I use a slightly older version of the driver,
such as the one that's in kernel 2.6.9 or the one in 2.4.24. So it looks as
if the recent SVN source just delays the error to the moment a device is
connected.

Any insight into what's gone wrong here?

Thanks!

ohci1394: fw-host0: IntEvent: 00010010
ohci1394: fw-host0: Got RQPkt interrupt status=0x00008409
ohci1394: fw-host0: SelfID interrupt received (phyid 1, root)
ohci1394: fw-host0: Error in reception of SelfID packets
[0x804c0000/0x001fc05a] (count: 0)
ohci1394: fw-host0: PhyReqFilter=0000000000000000
ieee1394: selfid_complete called with successful SelfID stage ... irm_id:
0xFFFF node_id: 0xFFC1
ohci1394: fw-host0: Cycle master enabled
ieee1394: NodeMgr: Processing host reset for knodemgrd_0
ohci1394: fw-host0: IntEvent: 00020000
ohci1394: fw-host0: irq_handler: Bus reset requested
ohci1394: fw-host0: Cancel request received
ohci1394: fw-host0: Single packet rcv'd
ohci1394: fw-host0: Got phy packet ctx=0 ... discarded
ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...

--Alex

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
mailing list Linux1394-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux1394-user
Received on Tue Nov 16 15:13:11 2004

This archive was generated by hypermail 2.1.8 : Mon 02 May 2005 - 09:16:50 CEST