Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129216 - ebuild for r1000 driver
Summary: ebuild for r1000 driver
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
: 150637 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-08 03:00 UTC by Pacho Ramos
Modified: 2009-09-14 12:29 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for r1000 kernel module (r1000-103-r1.ebuild,1.06 KB, text/plain)
2006-07-13 15:19 UTC, David Raison
Details
r1000-103.ebuild (fixed kernel version dependency) (r1000-103-r1.ebuild,1.07 KB, text/plain)
2006-07-14 00:06 UTC, David Raison
Details
realtek r1000 driver (r1000-103-r1.ebuild,1.05 KB, text/plain)
2006-07-17 11:47 UTC, David Raison
Details
ebuild for r1000-1.04 (r1000-1.04.ebuild,1.95 KB, text/plain)
2006-08-27 17:11 UTC, Sebastian Stammler
Details
r1000-fastcall.patch (r1000-fastcall.patch,705 bytes, patch)
2007-04-18 18:17 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2006-04-08 03:00:12 UTC
Realtek r1000 driver adds support for RTL8111(B) and RTL8168(B) cards. It can be downloaded from:

ftp://202.65.194.18/cn/nic/rtl8111brtl8168b/r1000-8111b(102).zip

It compiles and runs fine on my machine, I'm using gentoo-sources-2.6.15-r1 on a x86 arch.

Thanks a lot for adding an ebuild for this driver :)
Comment 1 Henrik Brix Andersen 2006-04-08 18:51:29 UTC
These looks like gigabit network cards to me, no reason to CC: mobile for those.
Comment 2 David Raison 2006-07-10 08:53:02 UTC
I second the request for a maintainer... got it running on my machine as well just now (gentoo-sources-2.6.16-r12)

If I'll find the time, I may deal with it myself... but my free time is spare :(
Comment 3 David Raison 2006-07-10 15:06:18 UTC
can anyone confirm that these do not work with kernel 2.6.17?
Comment 4 David Raison 2006-07-11 10:57:37 UTC
refer to this thread for the build error on kernel 2.6.17:
http://forums.gentoo.org/viewtopic-p-3438854.html#3438854
Comment 5 David Raison 2006-07-13 15:19:49 UTC
Created attachment 91661 [details]
ebuild for r1000 kernel module

This is a first ebuild for the r1000 driver from realtek
My ebuild is far from perfect though.
A few issues that you may help to resolve: 
-I couldn't figure out how to correctly escape the parentheses in the url, so I copied the file to my server, for the time being (bad idea though, I know)
-I had some trouble with where the source was unpacked and where the compiled modules finally where, if you know a better way, please feel free to improve my ebuild
Comment 6 David Raison 2006-07-14 00:06:23 UTC
Created attachment 91686 [details]
r1000-103.ebuild (fixed kernel version dependency)

I had a wrong kernel version dependency, so now it's fixed
Comment 7 David Raison 2006-07-17 11:47:44 UTC
Created attachment 92012 [details]
realtek r1000 driver

added a dependency (app-arch/unzip)

concerning the kernel 2.6.17 incompatibility, this: http://www.mail-archive.com/netdev@vger.kernel.org/msg13809.html
should answer that question.
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2006-08-13 02:39:06 UTC
Not that anyone has stepped up to maintain it, but I object to this being added to the tree. The in-kernel r8169 driver will support this hardware very soon, we just need some people to test it.

http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.18-rc2/r8169/0005-r8169-sync-with-vendor-s-driver.txt
Comment 9 Sebastian Stammler 2006-08-27 17:11:45 UTC
Created attachment 95235 [details]
ebuild for r1000-1.04

-new version 1.04.
-module_param_array is used instead of MODULE_PARM(obsolete for 2.6 kernels) -added ~amd64 to the KEYWORDS
Comment 10 Sebastian Stammler 2006-08-27 17:16:25 UTC
hi,
i just rewrote the ebuild so it works with the new version 1.04.
i also added a fix that module_param_array is used in the sources instead of MODULE_PARM. this is deprecated for 2.6 kernels... my 2.6.17 kernel didn't compile without this fix. now it works with 2.6.17. also added ~amd64 to the KEYWORDS.
Comment 11 David Raison 2006-08-28 00:32:40 UTC
Oh great! Btw, the r8169 driver that's included in the kernel also does the job if patched with Francois Romieu's changeset. (Just as Daniel pointed out in comment #8)
(see http://forums.gentoo.org/viewtopic-p-3454719.html#3454719)
Comment 12 Marijn Schouten (RETIRED) gentoo-dev 2006-09-28 08:54:21 UTC
There is another ebuild here: http://www.zugaina.org/gentoo/portage/net-misc/r1000/r1000-1.04.ebuild

8169 is supported in kernel 2.6.18, but this driver supports other chips too, such as 8168B. 
Comment 13 Daniel Drake (RETIRED) gentoo-dev 2006-09-28 10:15:30 UTC
gentoo-sources-2.6.18-r1 will include support for 8168 and other new chips
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-10-09 13:47:33 UTC
*** Bug 150637 has been marked as a duplicate of this bug. ***
Comment 15 Daniel Drake (RETIRED) gentoo-dev 2006-10-15 16:38:13 UTC
2.6.18-r1 is now in portage
Comment 16 Marijn Schouten (RETIRED) gentoo-dev 2006-10-18 04:58:14 UTC
(In reply to comment #13)
> gentoo-sources-2.6.18-r1 will include support for 8168 and other new chips

it only supports 8169.
Comment 17 Daniel Drake (RETIRED) gentoo-dev 2006-10-18 05:09:50 UTC
No, it supports 8169 plus the new hardware (8168, 8167, 8136)

$ grep 8168 drivers/net/r8169.c
        { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8168), 0, 0, RTL_CFG_2 },
Comment 18 Marijn Schouten (RETIRED) gentoo-dev 2006-10-18 12:16:18 UTC
I confirm that it works. Maybe the description can be changed to note the extended support?
Comment 19 Daniel Drake (RETIRED) gentoo-dev 2006-11-18 10:42:06 UTC
I'm going to close this as an equivalent driver is now shipped in gentoo-sources-2.6.18 (now stable) and the mainline kernel as of 2.6.19. If there are bugs in that driver I'll happily tend to them.
Comment 20 Tim Boundy 2007-01-03 03:10:06 UTC
The inbuilt kernel driver does not work with the 8101E chip in my Toshiba Satellite M110 laptop, kernel 2.6.19. Realtek has released version 1.05 of the r1000 driver, it would be nice if this ebuild remained under development for those users of the more obscure hardware supported by this driver that is not yet in the kernel.
Comment 21 Pacho Ramos gentoo-dev 2007-01-03 03:29:15 UTC
(In reply to comment #20)
> The inbuilt kernel driver does not work with the 8101E chip in my Toshiba
> Satellite M110 laptop, kernel 2.6.19. Realtek has released version 1.05 of the
> r1000 driver, it would be nice if this ebuild remained under development for
> those users of the more obscure hardware supported by this driver that is not
> yet in the kernel.
> 

Do you want that I reopen this bug?
Comment 22 Tim Boundy 2007-01-03 22:02:10 UTC
(In reply to comment #21)
I am using the 1.05 version of the r1000 driver with a 2.6.19 kernel, and it creates a soft-lock in the kernel when modprobing the module, however it only causes a ~1 second pause and everything functions correctly once loaded. I am unsure whether it would be better to continue with the r1000 ebuild or to file a new bug instead asking for 8101E support in the inbuilt kernel. What is your recommendation? 

Comment 23 Natanael Copa 2007-04-18 18:17:02 UTC
Created attachment 116656 [details, diff]
r1000-fastcall.patch

patch to make 1.05 build on a 2.6.18-hardened-r6 kernel. I removed the sed stuff (MODULE_PARM fix) in ebuild.

I think this bug could be reopened. Its nice to have r1000 as an alternative since there people have experienced problems with r8169. Some chipsets are not detected others have problems with bonding. If r1000 driver were available it would be possible to use the driver that works best for you.

Thanks.
Comment 24 Pacho Ramos gentoo-dev 2007-04-18 19:48:38 UTC
(In reply to comment #23)
> Created an attachment (id=116656) [edit]
> r1000-fastcall.patch
> 
> patch to make 1.05 build on a 2.6.18-hardened-r6 kernel. I removed the sed
> stuff (MODULE_PARM fix) in ebuild.
> 
> I think this bug could be reopened. Its nice to have r1000 as an alternative
> since there people have experienced problems with r8169. Some chipsets are not
> detected others have problems with bonding. If r1000 driver were available it
> would be possible to use the driver that works best for you.
> 
> Thanks.
> 

Could you please provide a link relating some of these problems?

r1000 drivers works in kernel 2.6.20?
Comment 25 Natanael Copa 2007-04-26 11:56:26 UTC
http://bugzilla.kernel.org/show_bug.cgi?id=6032(In reply to comment #24)
> (In reply to comment #23)
> > Created an attachment (id=116656) [edit]
> > r1000-fastcall.patch
> > 
> > patch to make 1.05 build on a 2.6.18-hardened-r6 kernel. I removed the sed
> > stuff (MODULE_PARM fix) in ebuild.
> > 
> > I think this bug could be reopened. Its nice to have r1000 as an alternative
> > since there people have experienced problems with r8169. Some chipsets are not
> > detected others have problems with bonding. If r1000 driver were available it
> > would be possible to use the driver that works best for you.
> > 
> > Thanks.
> > 
> 
> Could you please provide a link relating some of these problems?

Here is a quote from the email traffic with the user that reported those problems:

>> problem on ubuntu-6.10 too (IIRC its a 2.6.17.x kernel):
>> http://www.howtoforge.com/network_bonding_ubuntu_6.10#comment-3401
>> 
>> Suse have problems with ifdown on r8169 (afaik 2.6.18.2 kernel):
>> http://lists.opensuse.org/opensuse-bugs/2007-03/msg00503.html
>> 
>> The changelog for 2.6.20-rc3 does mention r8169 changes.
>> http://kerneltrap.org/node/7529
>> So there is hope that it might have get fixed.
>
> Looks like a driver bug:
>
> http://bugzilla.kernel.org/show_bug.cgi?id=6032
>
> If mac address can't be changed on the fly, bonding won't work ;-(
>
> There are patches available for various kernels, haven't yet made it
> into mainline due to regressions apparently.


> r1000 drivers works in kernel 2.6.20?

I don't know, sorry.

(I just got no rtl gigabit nics. I will try get some time next week to do some testing)
Comment 26 Pacho Ramos gentoo-dev 2009-09-14 12:29:42 UTC
This is solved for me with current kernel (well, since ayes) and kernel drivers
Also ftp://202.65.194.18/cn/nic/rtl8111brtl8168b/r1000-8111b(102).zip seems died