Re: Interfacing with my NIC's hardware Help!!



On 29 Dec 2005 20:17:54 -0800, Jean-François Michaud staggered into the
Black Sun and said:

Include context when you post to Usenet. That never-to-be
sufficiently-damned G2 "permanent alpha" excuse for an NNTP client
doesn't do that by default, but read http://cfaj.freeshell.org/google/
for how to make it do the right thing.

>>On 29 Dec 2005 15:50:03 -0800, Jean-François Michaud staggered into
>>the Black Sun and said:
>>> I've been working on making my own OS and I have a Broadcom 570x
>>> NIC. The Tigon3 driver does the trick for interfacing with my
>>> controller under linux so I've been looking at the code trying to
>>> figure out how to talk to the hardware, but I can't seem to see
>>> where or how to access the NIC's hardware.
>>Looks like you do pci_write_config_dword() or writel() or readl() with
>>> Is it possible to access the device through ports directly, or do I
>>> have to use the PCI bus?
>>The tg3.c file contains quite a bit of code, and most of it looks like
>>gobbledegook to me--IANAKernelHacker though. There's also a series of
>>fairly small but necessary firmware files that have to be loaded into
>>the card for anything to work.

>>> I am not trying to make anything generic. Something very crude and
>>> very specific will do just fine.
>>It might help to know the exact model# of the card, since a lot of
>>what's in the tg3.c file appears to be card-specific if()s and
> Do you know where I can see the exact model of the card? Windows isn't
> much help as usual and I just don't know how to get the information
> under linux.

"/sbin/lspci -vv | grep -A6 Ether" may show useful info. If it reports
that the card is a "570x", then you may be stuck with hacking the tg3.c
file and putting in extra printk()s to determine which 570[0-5] it is.

> I'll try and look around what you pointed out.

If I were you, I'd contact the tg3 maintainer and ask nicely, since he
knows quite a bit more than I do about this particular hardware.

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL
.



Relevant Pages

  • It isnt what RHL 5.2 was
    ... Linux RHL 5.2 worked right after the installation. ... recognize this card. ... I guess stability also depends upon your hardware chosen. ...
    (Fedora)
  • Re: [SLE] Just installed 9.3 and having some problems with video card and monitor -- any ideas?
    ... eventually I just put the card back in the box. ... the general concensus seems to be that you'd better check the hardware ... PNY customer support does not speak Linux, ... > basic plain vanilla VESA compliant VGA mode, which every PC card made in the ...
    (SuSE)
  • Re: OT: hard drive limits Q
    ... What if he needs it to run legacy software or hardware? ... But truly MS DOS is quite dead, do not use it on a new system. ... Installed new firefox on Linux yesterday, ... Yeah, its dead, till you have to use an EISA card that only runs ...
    (sci.electronics.design)
  • Re: OT: hard drive limits Q
    ... What if he needs it to run legacy software or hardware? ... But truly MS DOS is quite dead, do not use it on a new system. ... Installed new firefox on Linux yesterday, ... Yeah, its dead, till you have to use an EISA card that only runs ...
    (sci.electronics.design)
  • Re: Why are Linux Applications So Unstable?
    ... Your description does suggest hardware issues. ... Linux is more sensitive to RAM issues. ... fault in the video card or issue between the driver configuration and the ... As far as applications -- Linux is coming from the technical and server side ...
    (comp.os.linux.misc)