Old 09-01-2010, 02:47 PM   #1 (permalink)
Untangler
 
Join Date: Aug 2010
Posts: 52
bgeorge is on a distinguished road
Default D-link DFE-538TX drivers won't compile

Hello everyone,


I recently purchased a D-link DFE-538TX for my Untangle box, in hopes of creating a transparent firewall.

I have installed the card into my box, but Untangle does not recognize it.

I have used this link forums.untangle.com/hardware/1233-how-install-nic-driver.html[/url] to install the necessary dependencies for compiling a new kernel module.

All of the dependencies have been installed successfully however, when i try to compile the drivers using the tar ball included in the installation CD i get the following errors:

/tmp/src # make install [root @ hostname]
make -C /lib/modules/2.6.26-2-untangle-686/build SUBDIRS=/tmp/src modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-2-untangle-686'
CC [M] /tmp/src/rhine_main.o
/tmp/src/rhine_main.c: In function ârhine_found1â:
/tmp/src/rhine_main.c:681: error: implicit declaration of function âSET_MODULE_OWNERâ
/tmp/src/rhine_main.c: In function ârhine_receive_frameâ:
/tmp/src/rhine_main.c:1229: error: âstruct sk_buffâ has no member named âmacâ
/tmp/src/rhine_main.c:1229: error: âstruct sk_buffâ has no member named âmacâ
/tmp/src/rhine_main.c:1229: error: âstruct sk_buffâ has no member named âmacâ
/tmp/src/rhine_main.c:1229: error: âstruct sk_buffâ has no member named âmacâ
/tmp/src/rhine_main.c: In function ârhine_openâ:
/tmp/src/rhine_main.c:1587: error: âSA_SHIRQâ undeclared (first use in this function)
/tmp/src/rhine_main.c:1587: error: (Each undeclared identifier is reported only once
/tmp/src/rhine_main.c:1587: error: for each function it appears in.)
/tmp/src/rhine_main.c:1587: warning: passing argument 2 of ârequest_irqâ from incompatible pointer type
/tmp/src/rhine_main.c: In function ârhine_xmitâ:
/tmp/src/rhine_main.c:1737: error: âCHECKSUM_HWâ undeclared (first use in this function)
/tmp/src/rhine_main.c:1738: error: âstruct sk_buffâ has no member named ânhâ
/tmp/src/rhine_main.c: In function ârhine_init_moduleâ:
/tmp/src/rhine_main.c:1954: error: implicit declaration of function âpci_module_initâ
make[2]: *** [/tmp/src/rhine_main.o] Error 1
make[1]: *** [_module_/tmp/src] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-untangle-686'
make: *** [default] Error 2



Any help would be greatly appreciated.
bgeorge is offline  
Old 09-01-2010, 03:12 PM   #2 (permalink)
Untangle Ninja
 
mrunkel's Avatar
 
Join Date: Jul 2008
Posts: 2,496
mrunkel is on a distinguished road
Default

Start over, those instructions are almost two years old.

Look here:

http://wiki.untangle.com/index.php/B...Kernel_Modules

But seriously, start over first.
__________________
m.


Big Frickin Disclaimer:
While I'm pretty sure, I can't guarantee that I know what I'm doing. There might be a better way to do this, and this way might actually suck. Make sure you understand the implications of what you're doing before trying to follow these directions.

It often helps troubleshooting if you have a good network map. Look here if you want my advice on how to draw one.
Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com
mrunkel is offline  
Old 09-01-2010, 06:32 PM   #3 (permalink)
Untangler
 
Join Date: Aug 2010
Posts: 52
bgeorge is on a distinguished road
Default

Hello mrunkel,

By start over do you mean reinstall Untangle?

I have followed the documentation on the Wiki link you provided, however i still revive the exact same errors while trying to compile the drivers.

I also remember executing this command "ln -s /usr/src/linux-headers-`uname -r` /usr/src/linux" which I found on another form for compiling drivers. Do you think this could be the reason why i am getting the same errors after installing the new linux headers from the Wiki?
bgeorge is offline  
Old 09-02-2010, 01:22 PM   #4 (permalink)
Untangler
 
Join Date: Aug 2010
Posts: 52
bgeorge is on a distinguished road
Default

So i have reinstalled untangle, and installed the kernel development package and headers as per the Wiki documentation.

Now when i try to create the kernel module i receive the following error:

/tmp/src # make install [root @ hostname]
Makefile:16: *** Linux kernel source not found. Stop.
bgeorge is offline  
Old 09-02-2010, 02:53 PM   #5 (permalink)
Untangle Ninja
 
proactivens's Avatar
 
Join Date: Sep 2008
Location: Greensburg, Pa
Posts: 2,304
proactivens is on a distinguished road
Send a message via Skype™ to proactivens
Default

try

make KSRC=/usr/src/linux-headers-2.6.26-2-untangle-686 TARGET=x86

You may not need the TARGET=x86 part.
__________________
www.untangleappliances.com
Toll Free: 866-794-8879
UNTANGLE PLATINUM PARTNER
Follow us at spiceworks!
proactivens is offline  
Old 09-02-2010, 03:12 PM   #6 (permalink)
Untangler
 
Join Date: Aug 2010
Posts: 52
bgeorge is on a distinguished road
Default

using your command to point the make file to my kernel directory worked, however I am reviving the same errors as I did before i reinstalled. Here are the errors:

/tmp/src # make KSRC=/usr/src/linux-headers-2.6.26-1-untangle-686 [root @ hostname]
make -C /usr/src/linux-headers-2.6.26-1-untangle-686 SUBDIRS=/tmp/src modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-1-untangle-686'
CC [M] /tmp/src/rhine_main.o
/tmp/src/rhine_main.c: In function ârhine_found1â:
/tmp/src/rhine_main.c:681: error: implicit declaration of function âSET_MODULE_OWNERâ
/tmp/src/rhine_main.c: In function ârhine_receive_frameâ:
/tmp/src/rhine_main.c:1229: error: âstruct sk_buffâ has no member named âmacâ
/tmp/src/rhine_main.c:1229: error: âstruct sk_buffâ has no member named âmacâ
/tmp/src/rhine_main.c:1229: error: âstruct sk_buffâ has no member named âmacâ
/tmp/src/rhine_main.c:1229: error: âstruct sk_buffâ has no member named âmacâ
/tmp/src/rhine_main.c: In function ârhine_openâ:
/tmp/src/rhine_main.c:1587: error: âSA_SHIRQâ undeclared (first use in this function)
/tmp/src/rhine_main.c:1587: error: (Each undeclared identifier is reported only once
/tmp/src/rhine_main.c:1587: error: for each function it appears in.)
/tmp/src/rhine_main.c:1587: warning: passing argument 2 of ârequest_irqâ from incompatible pointer type
/tmp/src/rhine_main.c: In function ârhine_xmitâ:
/tmp/src/rhine_main.c:1737: error: âCHECKSUM_HWâ undeclared (first use in this function)
/tmp/src/rhine_main.c:1738: error: âstruct sk_buffâ has no member named ânhâ
/tmp/src/rhine_main.c: In function ârhine_init_moduleâ:
/tmp/src/rhine_main.c:1954: error: implicit declaration of function âpci_module_initâ
make[2]: *** [/tmp/src/rhine_main.o] Error 1
make[1]: *** [_module_/tmp/src] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-1-untangle-686'
make: *** [default] Error 2

I have tried it with and without the TARGET=x86.

Any ideas?
bgeorge is offline  
Old 09-02-2010, 03:22 PM   #7 (permalink)
Untangle Ninja
 
proactivens's Avatar
 
Join Date: Sep 2008
Location: Greensburg, Pa
Posts: 2,304
proactivens is on a distinguished road
Send a message via Skype™ to proactivens
Default

according the the Dlink site, the drivers the realtek R8139 drivers. Going to realtek's site, they dont even have drivers for linux anymore, since the driver was added to source in 2007.

http://www.realtek.com.tw/downloads/...TL8139B%28L%29

I think the driver your trying is for an old kernel version 2.4 and has not been ported to 2.6, so I doubt you will have any luck.
__________________
www.untangleappliances.com
Toll Free: 866-794-8879
UNTANGLE PLATINUM PARTNER
Follow us at spiceworks!
proactivens is offline  
Old 09-02-2010, 03:24 PM   #8 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 14,698
sky-knight is on a distinguished road
Default

All this to get a VIA based nic to work? I'd just toss this and go get an intel. You have a proper build environment, something is up with the way the driver is written. Probably a language issue.

Jim, that code he's pasting says rhine, that's VIA's 10/100 not realtek.
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879
sky-knight is offline  
Old 09-02-2010, 03:32 PM   #9 (permalink)
Untangle Ninja
 
proactivens's Avatar
 
Join Date: Sep 2008
Location: Greensburg, Pa
Posts: 2,304
proactivens is on a distinguished road
Send a message via Skype™ to proactivens
Default

from the dlink website under the support resources tab:
Drivers
Download Version Operating System(OS) Date
[download Drivers] 3.00 Vista 32, Vista 64 3/29/2007
1. The new driver is not backward compatible with H/W v.Ax
[download Drivers] Linux 10/15/2004
¤ Uses Realtek 8139 chipset

http://www.dlink.ca/products/?pid=612

So either dlink did an undocumented revision, the driver is completely wrong, or the model listed in the post is wrong.
__________________
www.untangleappliances.com
Toll Free: 866-794-8879
UNTANGLE PLATINUM PARTNER
Follow us at spiceworks!
proactivens is offline  
Old 09-02-2010, 03:51 PM   #10 (permalink)
Untangler
 
Join Date: Aug 2010
Posts: 52
bgeorge is on a distinguished road
Default

the model number i posted, DFE-538TX is correct. I also saw on the D-link website that they say it uses the Realtek 8139 chipset.

The drivers i am trying to compile are from the CD that came with the NIC.

I have also tried using the drivers on D-links website, however they error out as well.
bgeorge is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 05:17 PM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0