Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
correct kernel settings for RTL 8211E card
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mikefot
l33t
l33t


Joined: 19 Nov 2014
Posts: 709

PostPosted: Mon Jul 16, 2018 7:33 am    Post subject: correct kernel settings for RTL 8211E card Reply with quote

Dear Folks,

I am running gentoo amd64 stable on a box with an Asrock N68-GS4 FX2.0 board.

The internet connection does not work.

Some web pages suggest that no RTL driver is needed for the RTL 8211 E card and apparently only something called PHY support is
needed for this card.

See here:

http://linux-sunxi.org/Ethernet

It suggests that something called
Code:
 SoC's GMAC
can look after the ethernet card function if I understand it correctly.


A package I have installed, net-misc/r8168-8.045.08 crashes saying it should be turned off in the kernel config settings.

I think this reflects the fact that no RTL driver is required at all here.

I am going to recompile kernel and turn off the RTL 8168 driver flag.

What would be the equivalent of turning PHY on in it?

Comments appreciated.

Regards

Michael Fothergill
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Mon Jul 16, 2018 7:44 am    Post subject: Reply with quote

I think that correct module is
Code:
    Device Drivers  --->
        [*] Network device support  --->
            <*>   PHY Device support and infrastructure  --->
                <M>   Realtek PHYs

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
mikefot
l33t
l33t


Joined: 19 Nov 2014
Posts: 709

PostPosted: Mon Jul 16, 2018 7:53 am    Post subject: Reply with quote

Many thanks.

I will set it up and see what result I get.

Regards

MF

PS

I tried compiling the kernel. I managed to turn off the RTL 8169 driver setting and found the PHY setting and turned it on.

The compilation ran OK.

When I rebooted and selected the kernel in grub I got the error message

Code:
kernel panic unable to mount root fs


The ptoblem I have here is that the kernel I have been using to date is an old genkernel kernel.

That is useful because it was able to handle me moving the hard drive from another box with a different motherboard
in it and the AMD FX 8350 cpu to this new Asrock motherboard which has a very similar FX8300 chip in it.

That was a bit naughty of me but I got away with it.

One reason for the error message could be that in the old box I had two hard drives and I think that other kernel was used to that
arrangement and was not set up to sniff out other arrangements and adapt to them in the same way a genkernel perhaps could and in fact does here.

I need to poke around with the parts of the kernel that handle file systems and partitions etc and see if I can cheer it up a bit.

I might need to alter the fstab file now there is only one disk in the machine.

The old kernel has helped me run a simple world update and some of a deep world update.

I chrooted into the gentoo install from a neighbouring debian install where I had got debian to see an external ethernet adapter I inserted into a usb port.

That helped me.

I notice that other people have had this problem on the gentoo site:

https://forums.gentoo.org/viewtopic-t-473695-highlight-unknownblock+0+0.html

and that there can sometimes be non obvious reasons for it.

But perhaps mine can be a bit more obvious in this case.

Gentoo does not see the external ethernet adapter it seems.

Regards

MF

17th July update:

The above unknown block error is associated with hard drive controller problems.

(see gentoo knowledge base web page on this [url]https://wiki.gentoo.org/wiki/Knowledge_Base:Unable_to_mount_root_fs)[/url]

The output of
Code:
hdparm -I /dev/sda


is here:

https://pastebin.com/uYhXdkTU

and the output of lspci on the SATA drive is

Code:
bong / # lspci -vv | grep --color -E "IDE|SATA"
lspci: Unable to load libkmod resources: error -12
00:08.0 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO])
00:08.1 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO])


I tried running genkernel to make a new initramfs file in /boot in case that would help but it doesn't.

something is not working in the manually compiled kernel that is OK in the old kernel made on the old box and ported to the new one on the recently migrated hard drive......

Whatever the difference is important here........

I tried running

Code:
bong / # genkernel --splash --no-install --no-clean --menuconfig all


in order to see if I could take the newer manually made kernel and remake it with genkernel and end up with the same mysterious hard drive controller fix built into it.

But when I rebooted and ran it I got the same kernel panic crash as before.........

The gentoo livecd installs OK so the kernel there sees the hard drive OK.

This suggests if I would reinstall gentoo from debian using debootstrap etc I should end up with a usable system......

Maybe that is a better idea here.

Regards

MF

update July 20; I reinstalled gentoo. The new
Code:
genkernel
kernel recognised the external ethernet adapter I am using so
I now have an internet connection under gentoo on this box and the kernel panic crash problem has gone away.

I need to fix a problem with
Code:
xorg
- I will post that up elsewhere on the site.

The next step is to compile a manual kernel and see if I can get it to see the native ethernet card on the motherboard not
just the external ethernet card.

There is a (low) probability that the reinstall kernel can see the motherboard ethernet card.

I will check that the next time I log on.

If I can crack the problem then it shows that a cheap motherboard can run pretty fast a cpu (FX 8300)
in an older box with a small power supply and a cheap video card.

And it runs just fine under gentoo.

Regards

MF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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