install 8139 nic|gcc|headers

I'm trying to compile my rf driver (8139D chipset).

I did install SWFgcc.

But when i'm trying to make the rf module, it says that mac.h isn't available.

So i did download it from the opensolaris project, and put it into the /usr/include/sys/ directory.

But i got errors like:

gem.h:170: error: syntax error before"mac_t"

gem.h:170: warning: no semicolon at end of struct or union

gem.h:246: error: syntax error before':' token

gem.h:247: error: syntax error before':' token

gem.h:248: error: syntax error before':' token

gem.h:249: error: syntax error before':' token

.....

Other people who are running solaris on x86 didn't have any problems with it?

Is the support really that bad, or did i something wrong?

[940 byte] By [grezlysun] at [2007-11-26 10:46:57]
# 1

This is a discussion forum for hardware issues

as experienced with Sun Microsystems' branded Workstations.

Which model Sun computer do you have ?

Your question, at first glance, seems to be for an issue with Solaris

as it is installed to a PC.

Realtek 8139 NICs do not work in Sun's SPARC architecture,

but they do work with Solaris as it has been ported to

x86 architecture and as can be installed to a PC.

Perhaps it would be more apprpriate for you to post your question

into the [url=http://forum.sun.com/jive/forum.jspa?forumID=291]Solaris on x86 Forum[/url],

or maybe into the [url=http://forum.sun.com/jive/forum.jspa?forumID=255]Network Configurations Forum[/url],

or even over in the [url=http://www.opensolaris.org/jive/index.jspa?categoryID=1]OpenSolaris Forums[/url] for that beta edition of the OS.

However, a hint...

If you get the drivers from the manufacturer

http://www.realtek.com.tw/downloads/ ( a painfully slow web site, be very very patient)

they're installed via a simple "INSTALL" executable file

and you don't have to compile a darn thing.

See the README in their 27KB zipfile download.

rukbat at 2007-7-7 2:59:09 > top of Java-index,Sun Hardware,Workstations - General Discussion...
# 2

Sorry for the misunderstandig, but i'm playing with solaris on a sparc architecture.

But like you said that realtek 8139 nic doesn't work on a sparc, i have to search for an other nic.

But i found a driver on the internet that claims that this open-source driver would work with SPARC systems. (http://homepage2.nifty.com/mrym3/taiyodo/eng/)

But i managed now to create the module.

I tried the following:

Remove the option -DGEM_CONFIG_GLDv3 and -DGEM_CONFIG_GDLv3_LATEST from de Makefile.config file.

Then it i have a positive result of the compilation.

But when i tried to load it i get the following:

[CODE]

modload rf

Oct 14 :14:27:21 openssollie krtld: 'gld_mac_alloc'

" " /usr/local/RF-2.2/RF/sparcv9/rf: undefined symbol

" " 'gld_close'

" " /usr/local/RF-2.2/RF sparcv9/rf: undefined symbol

..

..

..

[/CODE]

So GLD is the bad person in this case.

It has something to do with Generic LAN driver, but like i said before, i never worked before with solaris

Message was edited by:

grezlysun

grezlysun at 2007-7-7 2:59:09 > top of Java-index,Sun Hardware,Workstations - General Discussion...
# 3

I am aware of the words on that page that say ...

"Tested OS version: Solaris8 10/00 x86, Solaris9 12/02 x86, Solaris9 sparc, Solaris10 build72 x86/amd64"

However the source files available for download specify x86 only.

I would have expected that source files would be specific to the architecture

and they would offer SPARC files and offer x86 files, but they do not.

I have not ever heard that the Realtek cards work on SPARC.Ever.

-

You have still not told us what model computer you are working on.

I suggest you would save yourself a lot of time and frustration

if you just go get a used Sun-qualified Ethernet card.

rukbat at 2007-7-7 2:59:09 > top of Java-index,Sun Hardware,Workstations - General Discussion...
# 4

Well i'll work on a sparc 64 bits ultra 10.

Solaris 10 is installed to it.

There is an onboard nic available, but that one doesn't recognise the card right. (It is 'official' sun hardware)

If i'm plugging the cable into the card, it get messages like:

SUNW,hme0 : Internal Transceiver Selected.

SUNW,HME0 : Auto-Negotiated 100 Mbps Full-Duplex Link Up

plumbing etc doesn't help.

grezlysun at 2007-7-7 2:59:09 > top of Java-index,Sun Hardware,Workstations - General Discussion...
# 5

Ultra-10 systems have an Ethernet chipset integrated to the systemboard.

the functionality of its chipset has nothing to do with any add-on card.

Your quoted excerpt from your MESSAGES file tells us the onboard circuit is working fine.

Did you install the OS to this system, or was it already there when you got the computer ?

Do the installation again, with the system connected to a valid network.

The old install may have been done in such a way that when prompted

for "are you networked or not?" the choice made for "not networked".

Next time, say "yes, I am networked", then go through the additional prompts

that will be given to you for networking details (static vs DHCP, and more).

If software packages were omitted, they'd get installed this second time.

Alternatively you could just run sys-unconfig and answer all the

system reconfiguration questions after it reboots,

and hope that all essential software packages are there already.

Then consider using the [url=http://forum.sun.com/jive/forum.jspa?forumID=255]Network Configuration Forum[/url] or perhaps

the [url=http://forum.sun.com/jive/forum.jspa?forumID=298]General Solaris 10 Discussion Forum[/url] for fine tuning your setup.

rukbat at 2007-7-7 2:59:09 > top of Java-index,Sun Hardware,Workstations - General Discussion...
# 6

You could also consider ignoring this forum's discussion completely,

and just proceding with your post at the other web site.

http://www.linuxquestions.org/questions/showthread.php?t=491199

You started that thread three days before this one and

are in good hands with the person that is trying to help you over there.

rukbat at 2007-7-7 2:59:09 > top of Java-index,Sun Hardware,Workstations - General Discussion...