Subscribe to our RSS news feed
AAPL 199.94 (-1.25)

35 Pages V   1 2 3 > »   
Reply to this topic Start new topic
Realtek 8168/8111 solution
*****
  • Group: Members
  • Posts: 327
  • Joined: 20-September 06
  • From: Kiev, Ukraine
  • Member No.: 56,692
Hi guys.
More than one weak ago I\'ve started writing driver for Realtek controllers. At this time I have some results, I've not tested all features, cause I have no such opportunity, but MacOS successfully communicate with WinXP system through my driver.
It works on RTL8169, RTL8168, RTL8110, RTL8111, RTL8100, RTL8101 chips and their modifications.

I have some driver programming skills under WinXP, but MacOS and IOKit are new things for me, so be careful when using my driver. You can freely load it and unload, but only once at one system boot (cause more loads may cause system crash, I\'m planning to fix it). Use sh scenarios for loading/unloading driver.

Now I\'m planing to add such features:
- Manual MTU control (now it fixed at 1500).
- Jumbo frame support.
- Wake on magic packet.

Thanks to the:
- author of Linux R1000 driver.
- NeoPheus for installer. Great job, thanks.

Share your knowledge so much as you can.

Compiled with XCode 2.4 on OSX 10.4.6 JaS Install DVD.
Visit to project page for the latest driver and installer.
https://sourceforge.net/projects/realtekr1000/

This post has been edited by DaemonES: Jan 31 2007, 03:48 PM
PM Profile Card
Go to the top of the page
+ Quote Post
*****
  • Group: Members
  • Posts: 327
  • Joined: 20-September 06
  • From: Kiev, Ukraine
  • Member No.: 56,692
Ok, version 1.01.
- Minor fixes to avoid memory leaks.
- Fixed bug with multiple loading/unloading.
- Fixed bug with ouput packet dropping.
- Implemented some features, like link status and speed reporting.

Dynamic MTU implemented, but not active.

First you must load debug version (in terminal type sh loaddebug). If everything is OK type sh unloaddebug. After that install release version (sh installrelease). Release version faster, that debug, cause debug version logging every packet and every OS system call.

See attachment in head post.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 35
  • Joined: 7-May 06
  • Member No.: 38,092
Great work, we all appriciate it. This is exactly what I needed. It will get tested over the weekend.
PM Profile Card
Go to the top of the page
+ Quote Post
*****
  • Group: Members
  • Posts: 357
  • Joined: 23-March 06
  • Member No.: 30,343
Thanks DaemonEs,
I just tried debug version, and it recognized the RTL8111B. Way cool, dude.
Now, where is that long ethernet cable?

EDIT: I will add more info as I get more testing done.
PM Profile Card
Go to the top of the page
+ Quote Post
*****
  • Group: Members
  • Posts: 327
  • Joined: 20-September 06
  • From: Kiev, Ukraine
  • Member No.: 56,692
QUOTE
Now, where is that long ethernet cable?
What exactly do you mean?
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 2
  • Joined: 8-October 06
  • Member No.: 59,268
Thanks ^^

it works fine^^

when i use sh senario, there is some error message (about permission/ownership)
so i try to do step by step.

before "sudo kextload -t RealtekR1000.kext"...
type "cd /System/Library/Extensions"
and...everythings gonna be happy^^


ASROCK ConroeXfire eSata2 ... onboard Realtek Lan card ^^
PM Profile Card
Go to the top of the page
+ Quote Post
*****
  • Group: Members
  • Posts: 357
  • Joined: 23-March 06
  • Member No.: 30,343
QUOTE (DaemonES @ Oct 8 2006, 07:21 AM) *
What exactly do you mean?

It was kind of joke to myself.
I have been using wireless connection to my router. So I gave away cables to friends. Now, I have to get some back to test out wired LAN, or move my router closer to my workstation.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 24
  • Joined: 8-October 06
  • Member No.: 59,285
Ok, I'm really new with this so don't eat me biggrin.gif

I loaded the driver and nothing bad happens, the network utility tells me the interface en0 is rtl8168/8111b so this is good

nothing runs though; link status says "inactive" and there's no led activity

I also noticed that in system profiler the realtekr1000 extension has an unsatisfied dependency (com.apple.iokit.IONetworkingFamily no valid version can be found)... I have version 1.5.0 running...

am i missing something?
PM Profile Card
Go to the top of the page
+ Quote Post
*****
  • Group: Members
  • Posts: 327
  • Joined: 20-September 06
  • From: Kiev, Ukraine
  • Member No.: 56,692
hoooah Fine smile.gif
TopazBar ok waiting for results.

sunriis try to unload kext, and than load it with ket -t:
sudo -s
cd /System/Library/Extensions
kextunload RealtekR1000.kext
kextload -t RealtekR1000.kext

Terminal will show you additional info.
PM Profile Card
Go to the top of the page
+ Quote Post
Group Icon
  • Group: X Lab Developers
  • Posts: 644
  • Joined: 14-December 05
  • From: Germany
  • Member No.: 18,041
QUOTE (DaemonES @ Oct 8 2006, 09:47 PM) *
hoooah Fine smile.gif
TopazBar ok waiting for results.

sunriis try to unload kext, and than load it with ket -t:
sudo -s
cd /System/Library/Extensions
kextunload RealtekR1000.kext
kextload -t RealtekR1000.kext

Terminal will show you additional info.


I only can say: IT WORKS FOR ME!!!!
This is great, thank you very very very much!
Its a RTL8111B!
Wow this is amazing! biggrin.gif
PM Profile Card
Go to the top of the page
+ Quote Post
*******
  • Group: Members
  • Posts: 950
  • Joined: 22-August 05
  • Member No.: 7,438
please may i have step by step installing instructions..
THANKS!!!

(i can't select the directory to start from i think...)
PM Profile Card
Go to the top of the page
+ Quote Post
*****
  • Group: Members
  • Posts: 327
  • Joined: 20-September 06
  • From: Kiev, Ukraine
  • Member No.: 56,692
aberracus open teriminal window, than open RealtekR1000 dir from terminal and type sh installrelease
PM Profile Card
Go to the top of the page
+ Quote Post
***********
  • Group: Members
  • Posts: 2,885
  • Joined: 19-April 06
  • From: United States Of Israel
  • Member No.: 35,151
Wow, great work man, i just bough ta new board for another Conroe of mine and it had 8111B now it works biggrin.gif
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 24
  • Joined: 8-October 06
  • Member No.: 59,285
QUOTE (NeoPheus @ Oct 8 2006, 11:14 PM) *
I only can say: IT WORKS FOR ME!!!!
This is great, thank you very very very much!
Its a RTL8111B!
Wow this is amazing! biggrin.gif

still no go for me...

I tried to reload with -t option, it says loaded succesfully, but it still says link status inactive
PM Profile Card
Go to the top of the page
+ Quote Post
*****
  • Group: Members
  • Posts: 357
  • Joined: 23-March 06
  • Member No.: 30,343
DaemonES,

I finally got the cable I needed, and I'm posting this message using your driver thru RTL8111B chip.

Man, this is way COOL. Good job !!!!

EDIT: I just open up a terminal and typed "./installrelease". Then after about 20 seconds later, OSX configured network, and I'm online.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 24
  • Joined: 8-October 06
  • Member No.: 59,285
btw, I have an Asus a6ja
PM Profile Card
Go to the top of the page
+ Quote Post
*****
  • Group: Members
  • Posts: 327
  • Joined: 20-September 06
  • From: Kiev, Ukraine
  • Member No.: 56,692
Good news, it seems that RTL8111B works well, updating HCL wiki page.
sunriis have you another network equipment to test your network connection on OSX?
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 24
  • Joined: 8-October 06
  • Member No.: 59,285
not really; I have a intel 3945ABG wich has no support yet

and FYI the NIC works well in windows

and thanks for your help happy.gif
PM Profile Card
Go to the top of the page
+ Quote Post
*****
  • Group: Members
  • Posts: 327
  • Joined: 20-September 06
  • From: Kiev, Ukraine
  • Member No.: 56,692
OK. Let's try something else...
1. Open terminal window:
tail -f /var/log/system.log
And then ok.
2. Open new terminal shell and load debug version of kext.
3. After few minutes copy all info from first terminal and send it to me DaemonES at gmail dot com.
PM Profile Card
Go to the top of the page
+ Quote Post
**
  • Group: Members
  • Posts: 74
  • Joined: 28-August 06
  • Member No.: 53,266
is anybody able to port the Sound Blaster Live! drivers from Linux to Mac OS?

http://www.euronet.nl/~mailme/

what I really need is a SPDIF out, and I own this card (which is now really cheap to buy, too, so it could be a great choice for those who need SPDIF like me).
PM Profile Card
Go to the top of the page
+ Quote Post
35 Pages V   1 2 3 > » 
Reply to this topic Start new topic

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 21st November 2009 - 10:51 AM