| View previous topic :: View next topic |
| Author |
Message |
DONAHUE Veteran


Joined: 09 Dec 2006 Posts: 1566 Location: Goose Creek SC
|
Posted: Mon Feb 08, 2010 5:08 pm Post subject: |
|
|
@whiteghost
Bugzilla Bug 298741 makes a credible case for: some people need r8168 because r8169 does not work for some 8111/8168B chipsets.
googling shows other cases where the proprietary r8168 works when r8169 fails.
what we know is that r8169 works for you but not for him. |
|
| Back to top |
|
 |
DONAHUE Veteran


Joined: 09 Dec 2006 Posts: 1566 Location: Goose Creek SC
|
Posted: Mon Feb 08, 2010 5:47 pm Post subject: |
|
|
@ todd
as kernel mismatch is most likely cause of the modprobe error you got and as r8169 works for whiteghost, please test again
run
looking for | Quote: |
lrwxrwxrwx 1 root root 22 Feb 8 14:18 linux -> linux-2.6.31-gentoo-r6
drwxr-xr-x 23 root root 800 Feb 8 14:17 linux-2.6.31-gentoo-r6
|
ignoring date/times and sizes.
| Code: | | uname -a | grep -i kernel |
looking for | Quote: | | Linux <your hostname> 2.6.31-gentoo-r6 |
| Code: | | eselect kernel list | looking for
| Quote: | eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.31-gentoo-r6 *
|
If command not found and try again.
With /boot partition mounted
| Code: | | grep -i kernel /boot/grub/grub.conf |
looking for | Quote: | | kernel /boot/kernel-2.6.31-gentoo-r6 |
with /boot partition unmounted
| Code: | | grep -i kernel /boot/grub/grub.conf |
expecting | Quote: | | grep: /mnt/boot/grub/grub.conf: No such file or directory |
|
|
| Back to top |
|
 |
todd93 Apprentice

Joined: 30 Oct 2006 Posts: 251
|
Posted: Tue Feb 09, 2010 1:42 am Post subject: |
|
|
| DONAHUE wrote: | Embarrassing confession time:
I've been looking at whiteghost lspci -kvm thinking it was yours run from the cd.
you don't have an Intel nic only a realtek 8111/8168.
you don't need e1000, remove when convenient
googling suggests that the r8169 module is not right for a realtek 8111/8168. Edit: aha!! Bugzilla Bug 298741
the correct r8168 has vanished from the kernel.
the r8168 apparently was supposed to be incorporated in r8169 but wasn't.
For awhile when both r8168 and r8169 were around the auto load would pick r8169 which would not work.
The fix then was to remove 8169 and force load r8168.
Now that r8168 has vanished, my semi-educated suggestion is:
go to:
LINUX driver for kernel 2.6.x and 2.4.x (Support x86 and x64)
and download "LINUX driver for kernel 2.6.x and 2.4.x (Support x86 and x64)" to your gentoo system (or transport the downloaded file to your gentoo install by whatever means available).
running the gentoo system, cd to the directory that contains the downloaded file (r8168-8.016.00.tar.bz2), run:
| Code: | tar xvjpf r8168-8.016.00.tar.bz2
cd r8168-8.016.00 |
read and follow the readme document
run to verify the realtek nic has driver r8168.
will address other anomalies in a bit. |
Ok, all of the steps I have followed, however, when I enter
It begins to insert the driver, however, it ends on: | Code: | | FATAL: Error inserting r8168 (/lib/modules/"kernel info"/r8168.ko) Invalid module format |
I run:
r8168 is listed, however, I have rebooted, and eth0 is not in ifconfig -a. Still just lo, and sit0.
Thanks
Todd |
|
| Back to top |
|
 |
DONAHUE Veteran


Joined: 09 Dec 2006 Posts: 1566 Location: Goose Creek SC
|
Posted: Tue Feb 09, 2010 2:00 am Post subject: |
|
|
for | Quote: | lspci -k
r8168 is listed |
listed only as module or once as module and once as driver?
| Quote: | | FATAL: Error inserting r8168 (/lib/modules/"kernel info"/r8168.ko) Invalid module format |
This error again suggests a mismatch between running kernel and the source kernel.
For a proprietary driver it could mean the module is not built to work with the source kernel.
Looking forward to the results of testing kernel consistency per my later post. |
|
| Back to top |
|
 |
DONAHUE Veteran


Joined: 09 Dec 2006 Posts: 1566 Location: Goose Creek SC
|
Posted: Tue Feb 09, 2010 2:55 am Post subject: |
|
|
add to checks:
should produce:
| Quote: | filename: /lib/modules/2.6.31-gentoo-r6/video/r8168.ko
<plus lots of other stuff> |
should produce:
| Quote: | filename: /lib/modules/2.6.31-gentoo-r6/video/r8169.ko
<plus lots of other stuff> |
If that happens and all the other checks are coming up 2.6.31-gentoo-r6:
| Code: | modprobe -r r8169
modprobe -r r8168
modprobe r8169 |
If you get failure, exact words would be of interest.
any words about exact nature of failure would be of interest.
If that failed:
| Code: | modprobe -r r8169
modprobe -r r8168
modprobe r8168 |
If you get failure, exact words would be of interest.
any words about exact nature of failure would be of interest.
If that also failed:
| Code: | modprobe -r r8169
modprobe -r r8168
insmod /lib/modules/2.6.31-gentoo-r6/video/r8168.ko #should be path as produced by "modinfo r8168" |
If you get failure, exact words would be of interest.
any words about exact nature of failure would be of interest. |
|
| Back to top |
|
 |
DONAHUE Veteran


Joined: 09 Dec 2006 Posts: 1566 Location: Goose Creek SC
|
Posted: Tue Feb 09, 2010 4:06 am Post subject: |
|
|
Not really related, but the config you posted originally could be improved in the graphics support area and then we could emerge and use the radeon driver module to test the ability to load modules not related to your NIC .
Radeon howto
Recommend editing menuconfig:
[quote]Bus options (PCI etc.) --->
[*] Enable deprecated pci_find_* API
Graphics support --->
-*- /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
< > Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
< > 3dfx Banshee/Voodoo3+
< > ATI Rage 128
<M> ATI Radeon
< > Intel I810
< > Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) --->
[ ] Enable modesetting on intel by default
< > Matrox g200/g400< > SiS video cards
< > Via unichrome video cards
< > Savage video cards
< > Lowlevel video output switch controls
-*- Support for frame buffer devices --->
--- Support for frame buffer devices
[M] Enable firmware EDID
[ ] Framebuffer foreign endianness support --->
-*- Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support
[ ] IMS Twin Turbo display support
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
[*] VESA VGA graphics support
[ ] EFI-based Framebuffer Support
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel LE80578 (Vermilion) support
< > Intel 830M/845G/852GM/855GM/865G/915G/945G/945GM/965G/965GM support (EXPERIMENTAL)
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > VIA UniChrome (Pro) and Chrome9 display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident support
< > ARK 2000PV support
< > Permedia3 support (EXPERIMENTAL)
< > Fujitsu carmine frame buffer support
[ ] AMD Geode family framebuffer support (EXPERIMENTAL)
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
--- Backlight & LCD device support
< > Lowlevel LCD controls
< > Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Frontpath ProGear Backlight Driver
< > MacBook Pro Nvidia Backlight Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Display panel/monitor support
*** Display hardware drivers ***
Console display driver support --->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(64) Scrollback Buffer Size (in KB)
<*> Framebuffer Console support
[ ] Map the console to the primary display device
[ ] Framebuffer Console Rotation
[ ] Select compiled-in fonts
[*] Bootup logo --->
Then recompile and resave the kernel.
| Code: | | emerge x11-drivers/xf86-video-ati |
| Code: | modprobe -r radeon
modprobe radeon |
To see if a different module will work.
Last edited by DONAHUE on Wed Feb 10, 2010 8:48 am; edited 1 time in total |
|
| Back to top |
|
 |
todd93 Apprentice

Joined: 30 Oct 2006 Posts: 251
|
Posted: Tue Feb 09, 2010 10:34 am Post subject: |
|
|
| DONAHUE wrote: | add to checks:
should produce:
| Quote: | filename: /lib/modules/2.6.31-gentoo-r6/video/r8168.ko
<plus lots of other stuff> |
should produce:
| Quote: | filename: /lib/modules/2.6.31-gentoo-r6/video/r8169.ko
<plus lots of other stuff> |
|
Well, it appears that we're having a slight problem. modinfo is displaying the information about r8168 just fine, but for r8169 it says: | Code: | | modinfo: could not find module r8169 |
| DONAHUE wrote: | If that happens and all the other checks are coming up 2.6.31-gentoo-r6:
| Code: | modprobe -r r8169
modprobe -r r8168
modprobe r8169 |
If you get failure, exact words would be of interest. |
It contiues to say that it could not insert r8168, and that it could not find module r8169. Puzzling
| DONAHUE wrote: |
any words about exact nature of failure would be of interest.
If that failed: |
OK, here is what I'm getting with that:
| Code: | [ 310.736523]r8168: version magic '2.6.31-gentoo-r6 SMP preempt mod_unload' should be '2.6.31-gentoo-r6 SMP mod_unload'
[29519.553976]r8168: "Same message exactly"
[30598.829773]mii: "Ditto"
[30598.829843]r8169: "Ditto"
[30620.028854]r8168: "Ditto"
[30683.756730]r8168: "Ditto" |
| DONAHUE wrote: |
| Code: | modprobe -r r8169
modprobe -r r8168
modprobe r8168 |
If you get failure, exact words would be of interest.
any words about exact nature of failure would be of interest.
If that also failed:
| Code: | modprobe -r r8169
modprobe -r r8168
insmod /lib/modules/2.6.31-gentoo-r6/video/r8168.ko #should be path as produced by "modinfo r8168" |
If you get failure, exact words would be of interest.
any words about exact nature of failure would be of interest. |
To try and shorten this post somewhat, it keeps producing "error inserting r8168" and ends with it saying that it is an invalid module format, and then claims that it can't find module r8169
I hope this helps
Thanks
Todd |
|
| Back to top |
|
 |
DONAHUE Veteran


Joined: 09 Dec 2006 Posts: 1566 Location: Goose Creek SC
|
Posted: Tue Feb 09, 2010 2:33 pm Post subject: |
|
|
Been busy building a 2.6.31-r6 kernel with an r8169 module.
| Quote: | modinfo r8169
filename: /lib/modules/2.6.31-gentoo-r6/kernel/drivers/net/r8169.ko |
So it builds and is findable even though I don't have a realtek NIC.
Suggest trying a detailed kernel rebuild:
mount the /boot partition if necessary
Edit grub.conf to: (assuming you are still booting with root=/dev/sda3
| Quote: | default 0
timeout 30
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.31-r6
root (hd1,0)
kernel /boot/kernel-2.6.31-gentoo-r6 root=/dev/sda3
title Gentoo Linux 2.6.31-r6-new
root (hd1,0)
kernel /boot/kernel-2.6.31-gentoo-r6-new root=/dev/sda3
# vim:ft=conf:
title Windows 7 Ultimate
rootnoverify (hd0,0)
makeactive
chainloader +1 |
| Code: | cp /usr/src/linux/.config /boot/config
emerge --sync
emerge -uND world
revdep-rebuild
emerge =sys-kernel/gentoo-sources-2.6.31-r6
eselect kernel set linux-2.6.31-gentoo-r6
cd /usr/src/linux
make clean
make mrproper
cp /boot/config /usr/src/linux/.config
make menuconfig |
menuconfig should contain the disk controller drivers and file systems (ext2,ext3) as built ins and realtek r8169 as a module but check it
suggest changing graphics support as posted above but ignoring
| Quote: | [*] Staging drivers --->
[ ] Exclude Staging drivers from being built
[*] Enable modesetting on radeon by default |
as the "modesetting on radeon" option is gone; I will edit this out above.
When ready:
| Code: | make && make modules_install
cp arch/x86/boot/bzImage /boot/kernel-2.6.31-gentoo-r6-new
reboot |
Use the new grub choice, when up, hopefully, will give a better result. |
|
| Back to top |
|
 |
todd93 Apprentice

Joined: 30 Oct 2006 Posts: 251
|
Posted: Wed Feb 10, 2010 1:48 am Post subject: |
|
|
| DONAHUE wrote: | Been busy building a 2.6.31-r6 kernel with an r8169 module.
| Quote: | modinfo r8169
filename: /lib/modules/2.6.31-gentoo-r6/kernel/drivers/net/r8169.ko |
So it builds and is findable even though I don't have a realtek NIC.
Suggest trying a detailed kernel rebuild:
mount the /boot partition if necessary
Edit grub.conf to: (assuming you are still booting with root=/dev/sda3
| Quote: | default 0
timeout 30
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.31-r6
root (hd1,0)
kernel /boot/kernel-2.6.31-gentoo-r6 root=/dev/sda3
title Gentoo Linux 2.6.31-r6-new
root (hd1,0)
kernel /boot/kernel-2.6.31-gentoo-r6-new root=/dev/sda3
# vim:ft=conf:
title Windows 7 Ultimate
rootnoverify (hd0,0)
makeactive
chainloader +1 |
| Code: | cp /usr/src/linux/.config /boot/config
emerge --sync
emerge -uND world
revdep-rebuild
emerge =sys-kernel/gentoo-sources-2.6.31-r6
eselect kernel set linux-2.6.31-gentoo-r6
cd /usr/src/linux
make clean
make mrproper
cp /boot/config /usr/src/linux/.config
make menuconfig |
menuconfig should contain the disk controller drivers and file systems (ext2,ext3) as built ins and realtek r8169 as a module but check it
suggest changing graphics support as posted above but ignoring
| Quote: | [*] Staging drivers --->
[ ] Exclude Staging drivers from being built
[*] Enable modesetting on radeon by default |
as the "modesetting on radeon" option is gone; I will edit this out above.
When ready:
| Code: | make && make modules_install
cp arch/x86/boot/bzImage /boot/kernel-2.6.31-gentoo-r6-new
reboot |
Use the new grub choice, when up, hopefully, will give a better result. |
WE HAVE SUCCESS!!!!
Thank you so much for your help with this, I know it had to be an aggrivation, I really do appreciate that!
Todd |
|
| Back to top |
|
 |
DONAHUE Veteran


Joined: 09 Dec 2006 Posts: 1566 Location: Goose Creek SC
|
Posted: Wed Feb 10, 2010 8:47 am Post subject: |
|
|
| well done, enjoy. |
|
| Back to top |
|
 |
todd93 Apprentice

Joined: 30 Oct 2006 Posts: 251
|
Posted: Wed Feb 10, 2010 11:12 am Post subject: |
|
|
| DONAHUE wrote: | | well done, enjoy. |
Oh, I will, now kde is giving me trouble! At least I'm in my kernel, so I can deal with these things one at a time and be up and going completely and even mounting my windows drive very soon. I just want to thank you again for your patience and your expertise, as well as everyone else who stepped in and helped me here. I really appreciate it.
I get to call this post solved!
Thanks
Todd |
|
| Back to top |
|
 |
whiteghost Apprentice


Joined: 26 Jul 2009 Posts: 285 Location: nj xt 145 whiteghost inda hood
|
Posted: Wed Feb 10, 2010 1:11 pm Post subject: |
|
|
| Quote: | | WE HAVE SUCCESS!!!! | great!
why was eth0 not working?
because compiled in kernel instead of as module? _________________ www.informationclearinghouse.info |
|
| Back to top |
|
 |
ReeferMac Guru

Joined: 30 May 2004 Posts: 389
|
Posted: Wed Feb 10, 2010 7:09 pm Post subject: |
|
|
| todd93 wrote: |
I really appreciate all the help I'm getting here, as I have stated in other posts, I've used Gentoo for about 6 years, but the problem I have is:I only had to install it once... |
LOL! AMEN Todd! Got my new Laptop as an early Christmas present... I'm still trying to boot it off something other than the LiveDVD! LOL!
- Mac |
|
| Back to top |
|
 |
todd93 Apprentice

Joined: 30 Oct 2006 Posts: 251
|
Posted: Thu Feb 11, 2010 12:57 am Post subject: |
|
|
| whiteghost wrote: | | Quote: | | WE HAVE SUCCESS!!!! | great!
why was eth0 not working?
because compiled in kernel instead of as module? |
Well, I'm still not really sure on that one, We did a complete rebuild of the kernel, as if it were a new kernel, and everything worked. I could tell during the compile that it was doing more than the first kernel, it took quite a bit longer to compile this kernel. I have never had this much trouble with a kernel, of course, I have only installed gentoo one other time as well, though. I did compile the ethernet drivers as modules in the old setup, however, it's like my machine just wouldn't accept that. I'm just glad I got it working!
This machine is quite a step up from my Athalon II 2700 cpu, now I have Athalon Phenom quad core 3.4 gHz, it's mind blowing how much faster revdep-rebuild goes!
Todd |
|
| Back to top |
|
 |
todd93 Apprentice

Joined: 30 Oct 2006 Posts: 251
|
Posted: Thu Feb 11, 2010 1:03 am Post subject: |
|
|
| ReeferMac wrote: | | todd93 wrote: |
I really appreciate all the help I'm getting here, as I have stated in other posts, I've used Gentoo for about 6 years, but the problem I have is:I only had to install it once... |
LOL! AMEN Todd! Got my new Laptop as an early Christmas present... I'm still trying to boot it off something other than the LiveDVD! LOL!
- Mac |
LOL I hear that, Mac, keep plugging away, people on these boards are so knowledgeable and helpful. They have made me be able to take a look at several things that I had overlooked or not thought of, I don't think they get enough credit here, people like whiteghost, and DONAHUE, and many many others have helped me so much over the past few years. You can just do a search on the boards for my username and see all the things they have helped me with over the last few years.
I have Fedora on an old Dell inspiron 5100 laptop here, and Ubuntu on another machine, and don't get me wrong, they are both very fine distros, but over the last few years, I have found gentoo to be the most stable of the three, mainly because of everything being compiled to fit the hardware, that has alot to do with it, so keep at it, you'll get it.
Todd |
|
| Back to top |
|
 |
ReeferMac Guru

Joined: 30 May 2004 Posts: 389
|
Posted: Thu Feb 11, 2010 8:27 am Post subject: |
|
|
Thanks for the encouragement Todd, that was my experience in 2004 (my last profile! LOL!)
Ironically enough, it was just last night that I finally got it to boot a zen-sources kernel w/o taking a shit on me. Dunno if it was the changes I made to the config file or what, but I was reading something in your thread as well as a couple others:
Can't find the other one in my history... But someone said something about turning acpi off during the boot when having troubles booting lappy's. That made me try booting my most recent kernel attempt a second time w/ "acpi=off" as a boot flag, and wham-o, 10-seconds later I was being asked to enter my username!!!! FWIW, I used a modified Pappy's seed for the Zen2.6.32r5.
I only have the built-in NIC working (realtek 8169!!!), the resolution is horrible for a 15" screen, and nothing else works, but... IT CAN BOOT!!! LOL! Portage and I will get the rest working (I was _this_ close to installing portage on Unbutu and giving up!).
- Mac |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|