(SOLVED) no dedicated PHY driver found for PHY ID 0x01001002

VastOne

I have a PC that I have not booted into for a long time, at least 2 years

I tried to do a VSIDO install and here is where the weirdness begins .. When using the last/latest VSIDO ISO in live cd it boots fine with the realtek r8169 NIC loading and working fine. As soon as it is installed though I get the following message on boot and no network

no dedicated PHY driver found for PHY ID 0x01001002, maybe realtek.ko needs to be added to initramfs?

I have spent a couple of days trying to figure this out and I am stumped

First this is a Gigabyte GA-MA790X-UD4P motherboard that has the realtek r8169 as the onboard NIC and it has been flashed to its latest rom

After trying to update to newer kernels with no luck I decided to take a FSArchive of a working pc from a while back that has the 4.19 kernel, i installed it and the NIC and everything works fine. Every bit of code has been updated to the latest SID levels except the kernel

I have also installed the latest 5.9.0-5 and it fails but after reading about this all over google I think if I tried the 5.4 kernel it might work

I am now going to post two sets of data.. one of the working 4.19 kernel followed by the 5.9.0-5 that failed.. I am not necessarily looking for a solution like the good people over on Arch did here but I would like to discuss why some kernels appear to work and others seem to have left the r8169 code completely out

First set of data is from the working 4.19 kernel

lspci #

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD780 Host Bridge
00:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD790 PCI to PCI bridge (external gfx0 port B)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD790 PCI to PCI bridge (PCI express gpp port A)
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD790 PCI to PCI bridge (PCI express gpp port F)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 3a)
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micr-o Devices, Inc. [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: NVIDIA Corporation G96C [GeForce 9500 GT] (rev a1)
02:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
02:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
04:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)


sudo journalctl -b #

journalctl -b # can be found here

systemctl list-unit-files --state=enabled

UNIT FILE                STATE   VENDOR PRESET
acpid.path               enabled enabled     
acpi-fakekey.service     enabled enabled     
acpi-support.service     enabled enabled     
anacron.service          enabled enabled     
apparmor.service         enabled enabled     
atd.service              enabled enabled     
avahi-daemon.service     enabled enabled     
blk-availability.service enabled enabled     
bluetooth.service        enabled enabled     
console-setup.service    enabled enabled     
cron.service             enabled enabled     
e2scrub_reap.service     enabled enabled     
getty@.service           enabled enabled     
irqbalance.service       enabled enabled     
keyboard-setup.service   enabled enabled     
live-config.service      enabled enabled     
live-tools.service       enabled enabled     
lm-sensors.service       enabled enabled     
lvm2-monitor.service     enabled enabled     
minidlna.service         enabled enabled     
minissdpd.service        enabled enabled     
networking.service       enabled enabled     
ntp.service              enabled enabled     
quota.service            enabled enabled     
quotarpc.service         enabled enabled     
rsync.service            enabled enabled     
rsyslog.service          enabled enabled     
rtkit-daemon.service     enabled enabled     
ssh.service              enabled enabled     
systemd-pstore.service   enabled enabled     
udisks2.service          enabled enabled     
vsftpd.service           enabled enabled     
wpa_supplicant.service   enabled enabled     
acpi-fakekey.socket      enabled enabled     
acpid.socket             enabled enabled     
avahi-daemon.socket      enabled enabled     
dm-event.socket          enabled enabled     
lvm2-lvmpolld.socket     enabled enabled     
uuidd.socket             enabled enabled     
remote-fs.target         enabled enabled     
anacron.timer            enabled enabled     
apt-daily-upgrade.timer  enabled enabled     
apt-daily.timer          enabled enabled     
e2scrub_all.timer        enabled enabled     
exim4-base.timer         enabled enabled     
logrotate.timer          enabled enabled     
man-db.timer             enabled enabled     
mlocate.timer            enabled enabled


vastone@vsido:~$ lsmod |grep r81
r8169                  90112  0
libphy                 77824  3 r8169,realtek


vastone@vsido:~$ lsmod |grep real
snd_hda_codec_realtek   118784  1
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
snd_hda_codec         151552  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core           94208  4 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd                    94208  15 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
realtek                20480  0
libphy                 77824  3 r8169,realtek

vastone@vsido:~$ sudo dmesg |grep -i r8169
[    2.297190] libphy: r8169: probed
[    2.297341] r8169 0000:03:00.0 eth0: RTL8168d/8111d, 00:24:1d:1d:6c:b4, XID 281000c0, IRQ 24
[    2.297342] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[   14.943452] r8169 0000:03:00.0: firmware: direct-loading firmware rtl_nic/rtl8168d-1.fw
[   14.944117] Generic PHY r8169-300:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
[   16.715243] r8169 0000:03:00.0 eth0: Link is Up - 10Mbps/Full - flow control rx/t


This is now data fom the non working 5.9.0-5 kernel

vastone@vsido:~$ lspci #

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD780 Host Bridge
00:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD790 PCI to PCI bridge (external gfx0 port B)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD790 PCI to PCI bridge (PCI express gpp port A)
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD790 PCI to PCI bridge (PCI express gpp port F)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 3a)
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: NVIDIA Corporation G96C [GeForce 9500 GT] (rev a1)
02:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
02:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
04:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)


vastone@vsido:~$ systemctl list-unit-files --state=enabled

UNIT FILE                STATE   VENDOR PRESET
acpid.path               enabled enabled     
acpi-fakekey.service     enabled enabled     
acpi-support.service     enabled enabled     
anacron.service          enabled enabled     
apparmor.service         enabled enabled     
atd.service              enabled enabled     
avahi-daemon.service     enabled enabled     
blk-availability.service enabled enabled     
bluetooth.service        enabled enabled     
console-setup.service    enabled enabled     
cron.service             enabled enabled     
e2scrub_reap.service     enabled enabled     
getty@.service           enabled enabled     
irqbalance.service       enabled enabled     
keyboard-setup.service   enabled enabled     
live-config.service      enabled enabled     
live-tools.service       enabled enabled     
lm-sensors.service       enabled enabled     
lvm2-monitor.service     enabled enabled     
minidlna.service         enabled enabled     
minissdpd.service        enabled enabled     
networking.service       enabled enabled     
ntp.service              enabled enabled     
quota.service            enabled enabled     
quotarpc.service         enabled enabled     
rsync.service            enabled enabled     
rsyslog.service          enabled enabled     
rtkit-daemon.service     enabled enabled     
ssh.service              enabled enabled     
systemd-pstore.service   enabled enabled     
udisks2.service          enabled enabled     
vsftpd.service           enabled enabled     
wpa_supplicant.service   enabled enabled     
acpi-fakekey.socket      enabled enabled     
acpid.socket             enabled enabled     
avahi-daemon.socket      enabled enabled     
dm-event.socket          enabled enabled     
lvm2-lvmpolld.socket     enabled enabled     
uuidd.socket             enabled enabled     
remote-fs.target         enabled enabled     
anacron.timer            enabled enabled     
apt-daily-upgrade.timer  enabled enabled     
apt-daily.timer          enabled enabled     
e2scrub_all.timer        enabled enabled     
exim4-base.timer         enabled enabled     
logrotate.timer          enabled enabled     
man-db.timer             enabled enabled     
mlocate.timer            enabled enabled     

48 unit files listed.


vastone@vsido:~$ sudo journalctl -b #



take a look at this code here journalctl -b #



vastone@vsido:~$ lsmod |grep r81


r8169                  98304  0
mdio_devres            16384  1 r8169
libphy                151552  3 r8169,mdio_devres,realtek

vastone@vsido:~$ lsmod |grep real
snd_hda_codec_realtek   143360  1
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
snd_hda_codec         163840  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          106496  4 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd                   110592  15 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
realtek                24576  0
libphy                151552  3 r8169,mdio_devres,realtek

vastone@vsido:~$ sudo dmesg |grep -i r8169
[    1.629639] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[    1.650048] libphy: r8169: probed
[    1.650051] r8169 0000:03:00.0: no dedicated PHY driver found for PHY ID 0x01001002, maybe realtek.ko needs to be added to initramfs?
[    1.665669] r8169: probe of 0000:03:00.0 failed with error -49
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

I can confirm moving to 5.4 and using the information found here confirming what version of the 5.4.28-1 kernel  worked

I used the excellent instructions found here but need to note that he left out the need to install the corresponding linux-modules-5.4.28-050428-generic modules deb to allow for the installation to work  for me it went like this

I downloaded the following deb files

I first installed the module

sudo dpkg -i linux-modules-5.4.28-050428-generic_5.4.28-050428.202003250833_amd64.deb

then I installed these as described on that page by move all there files you've just downloaded to a new folder and cd to the new folder and run:

$ sudo dpkg -i *.deb

linux-headers-5.4.28-050428_5.4.28-050428.202003250833_all.deb
linux-headers-5.4.28-050428-generic_5.4.28-050428.202003250833_amd64.deb
linux-image-unsigned-5.4.28-050428-generic_5.4.28-050428.202003250833_amd64.deb

 
You can get any version of any kernel you may ever want here:

you can find all the kernel files here

I am going to keep on building from 5.4 up through 5.9 to see if any work in between
VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

Quotediscuss why some kernels appear to work and others seem to have left the r8169 code completely out

The kernel team may do that if the driver is old and presents a security risk.

The polling driver for the SD card reader in my HP laptop (which also happens to be a realtek) was dropped, and I had to compile a kernel from source to specifically add that driver if I wanted to read/write a card greater than 2GB. I do not recall if the card reader worked with live sessions. Almost a full kernel version later, a new driver from realtek showed up.

Doesn't really explain why you have networking with live session, but not an install. I don't know how the installer goes about determining if a driver should be added to the initramfs and how all that gets built.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

Thanks Ratman... It turned out to be a flaky motherboard, which may have been the reason I put ti away a while back.. it was a fun couple of days
VSIDO      VSIDO Change Blog    

    I dev VSIDO