Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Issues with the realtek driver re (4) (But THANKFULLY it works now)

    Scheduled Pinned Locked Moved 1.2.3-PRERELEASE-TESTING snapshots - RETIRED
    6 Posts 2 Posters 4.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wonslung
      last edited by

      This new version seems to work with my realtek 8111b onboard lans (i have 2)

      at least somewhat….the first boot it noticed both re0 and re1
      second boot it didn't find either
      third boot it found re1 only (how it knew it was re1 and didn't name it re0 is beyond me but it did)
      forth boot didn't find either
      fifth boot found both
      and it seems to be like this often....i've noticed that booting with acpi disabled gives me a better chance of it finding both...

      does anyone know if theres anything i can add to force it to find re0 and re1 every time....i'm pretty new to pfsense and freebsd but i know in linux you can sometimes add options to make it spend more time on particular boot steps.

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        Please post the dmesg output of a boot that fails to find either r0 or re1. That may provide enough information to be able to tell you what the problem is.

        1 Reply Last reply Reply Quote 0
        • W
          wonslung
          last edited by

          how do i make it log everything that goes to console…in normal freebsd you just add this line to /etc/sysctl.conf
          console.info                                   /var/log/console.log

          when i tried that with pfsense i don't have a console.log

          1 Reply Last reply Reply Quote 0
          • W
            wonslung
            last edited by

            i was able to choose ath0 and ip over firewire as my interfaces long enough to log in and get shell access so i copied the dmesg log to another file….
            this is the log of when re0 and re1 fail to load

            Copyright (c) 1992-2009 The FreeBSD Project.
            Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
                    The Regents of the University of California. All rights reserved.
            FreeBSD is a registered trademark of The FreeBSD Foundation.
            FreeBSD 7.1-RELEASE-p3 #0: Tue Mar 17 15:41:49 EDT 2009
                sullrich@freebsd7-releng_1_2_3-pre-testing.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.7
            Timecounter "i8254" frequency 1193182 Hz quality 0
            CPU: Intel(R) Core(TM)2 Duo CPU     E7400  @ 2.80GHz (2800.12-MHz 686-class CPU)
              Origin = "GenuineIntel"  Id = 0x1067a  Stepping = 10
              Features=0xbfebfbff <fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm,pbe>Features2=0x408e39d<sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,cx16,xtpr,pdcm,sse4.1,<b26>>
              AMD Features=0x20000000 <lm>AMD Features2=0x1 <lahf>Cores per package: 2
            real memory  = 3623550976 (3455 MB)
            avail memory = 3541700608 (3377 MB)
            ACPI APIC Table: <080808 APIC1821>
            FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
             cpu0 (BSP): APIC ID:  0
             cpu1 (AP): APIC ID:  1
            ioapic0 <version 2.0="">irqs 0-23 on motherboard
            wlan: mac acl policy registered
            kbd1 at kbdmux0
            cryptosoft0: <software crypto="">on motherboard
            acpi0: <080808 RSDT1821> on motherboard
            acpi0: [ITHREAD]
            acpi0: Power Button (fixed)
            acpi0: reservation of ffc00000, 300000 (3) failed
            acpi0: reservation of fee00000, 1000 (3) failed
            acpi0: reservation of 0, a0000 (3) failed
            acpi0: reservation of 100000, d7f00000 (3) failed
            Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
            acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
            pcib0: <acpi host-pci="" bridge="">port 0xcf8-0xcff on acpi0
            pci0: <acpi pci="" bus="">on pcib0
            uhci0: <uhci (generic)="" usb="" controller="">port 0x8400-0x841f irq 16 at device 26.0 on pci0
            uhci0: [GIANT-LOCKED]
            uhci0: [ITHREAD]
            usb0: <uhci (generic)="" usb="" controller="">on uhci0
            usb0: USB revision 1.0
            uhub0: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb0
            uhub0: 2 ports with 2 removable, self powered
            uhci1: <uhci (generic)="" usb="" controller="">port 0x8480-0x849f irq 21 at device 26.1 on pci0
            uhci1: [GIANT-LOCKED]
            uhci1: [ITHREAD]
            usb1: <uhci (generic)="" usb="" controller="">on uhci1
            usb1: USB revision 1.0
            uhub1: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb1
            uhub1: 2 ports with 2 removable, self powered
            uhci2: <uhci (generic)="" usb="" controller="">port 0x8800-0x881f irq 19 at device 26.2 on pci0
            uhci2: [GIANT-LOCKED]
            uhci2: [ITHREAD]
            usb2: <uhci (generic)="" usb="" controller="">on uhci2
            usb2: USB revision 1.0
            uhub2: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb2
            uhub2: 2 ports with 2 removable, self powered
            ehci0: <ehci (generic)="" usb="" 2.0="" controller="">mem 0xfbffec00-0xfbffefff irq 18 at device 26.7 on pci0
            ehci0: [GIANT-LOCKED]
            ehci0: [ITHREAD]
            usb3: EHCI version 1.0
            usb3: companion controllers, 2 ports each: usb0 usb1 usb2
            usb3: <ehci (generic)="" usb="" 2.0="" controller="">on ehci0
            usb3: USB revision 2.0
            uhub3: <intel 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr="">on usb3
            uhub3: 6 ports with 6 removable, self powered
            pci0: <multimedia>at device 27.0 (no driver attached)
            pcib1: <acpi pci-pci="" bridge="">irq 17 at device 28.0 on pci0
            pci6: <acpi pci="" bus="">on pcib1
            pcib2: <acpi pci-pci="" bridge="">irq 16 at device 28.1 on pci0
            pci5: <acpi pci="" bus="">on pcib2
            pcib3: <acpi pci-pci="" bridge="">irq 18 at device 28.2 on pci0
            pci4: <acpi pci="" bus="">on pcib3
            re0: <realtek 8168="" 8168b="" 8168c="" 8168cp="" 8168d="" 8111b="" 8111c="" 8111cp="" pcie="" gigabit="" ethernet="">port 0xd800-0xd8ff mem 0xf7eff000-0xf7efffff,0xf7ee0000-0xf7eeffff irq 18 at device 0.0 on pci4
            re0: Chip rev. 0x3c000000
            re0: MAC rev. 0x00400000
            re0: PHY write failed
            re0: PHY write failed
            re0: MII without any phy!
            device_attach: re0 attach returned 6
            pcib4: <acpi pci-pci="" bridge="">irq 19 at device 28.3 on pci0
            pci3: <acpi pci="" bus="">on pcib4
            atapci0: <jmicron jmb368="" udma133="" controller="">port 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f irq 19 at device 0.0 on pci3
            atapci0: [ITHREAD]
            ata2: <ata 0="" channel="">on atapci0
            ata2: [ITHREAD]
            pcib5: <acpi pci-pci="" bridge="">irq 16 at device 28.5 on pci0
            pci2: <acpi pci="" bus="">on pcib5
            re1: <realtek 8168="" 8168b="" 8168c="" 8168cp="" 8168d="" 8111b="" 8111c="" 8111cp="" pcie="" gigabit="" ethernet="">port 0xb800-0xb8ff mem 0xf7dff000-0xf7dfffff,0xf7de0000-0xf7deffff irq 17 at device 0.0 on pci2
            re1: Chip rev. 0x3c000000
            re1: MAC rev. 0x00400000
            re1: PHY write failed
            re1: PHY write failed
            re1: MII without any phy!
            device_attach: re1 attach returned 6
            uhci3: <uhci (generic)="" usb="" controller="">port 0x8880-0x889f irq 23 at device 29.0 on pci0
            uhci3: [GIANT-LOCKED]
            uhci3: [ITHREAD]
            usb4: <uhci (generic)="" usb="" controller="">on uhci3
            usb4: USB revision 1.0
            uhub4: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb4
            uhub4: 2 ports with 2 removable, self powered
            uhci4: <uhci (generic)="" usb="" controller="">port 0x8c00-0x8c1f irq 19 at device 29.1 on pci0
            uhci4: [GIANT-LOCKED]
            uhci4: [ITHREAD]
            usb5: <uhci (generic)="" usb="" controller="">on uhci4
            usb5: USB revision 1.0
            uhub5: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb5
            uhub5: 2 ports with 2 removable, self powered
            uhci5: <uhci (generic)="" usb="" controller="">port 0x9000-0x901f irq 18 at device 29.2 on pci0
            uhci5: [GIANT-LOCKED]
            uhci5: [ITHREAD]
            usb6: <uhci (generic)="" usb="" controller="">on uhci5
            usb6: USB revision 1.0
            uhub6: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb6
            uhub6: 2 ports with 2 removable, self powered
            ehci1: <ehci (generic)="" usb="" 2.0="" controller="">mem 0xfbfff800-0xfbfffbff irq 23 at device 29.7 on pci0
            ehci1: [GIANT-LOCKED]
            ehci1: [ITHREAD]
            usb7: EHCI version 1.0
            usb7: companion controllers, 2 ports each: usb4 usb5 usb6
            usb7: <ehci (generic)="" usb="" 2.0="" controller="">on ehci1
            usb7: USB revision 2.0
            uhub7: <intel 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr="">on usb7
            uhub7: 6 ports with 6 removable, self powered
            pcib6: <acpi pci-pci="" bridge="">at device 30.0 on pci0
            pci1: <acpi pci="" bus="">on pcib6
            ath0: <atheros 5212="">mem 0xfdcd0000-0xfdcdffff irq 22 at device 1.0 on pci1
            ath0: [ITHREAD]
            ath0: WARNING: using obsoleted if_watchdog interface
            ath0: Ethernet address: 00:0f:3d:c1:b3:cd
            ath0: mac 5.9 phy 4.3 radio 4.6
            vgapci0: <vga-compatible display="">mem 0xfc000000-0xfcffffff,0xd8000000-0xdfffffff irq 23 at device 2.0 on pci1
            fwohci0: <via fire="" ii="" (vt6306)="">port 0xac00-0xac7f mem 0xfdcff800-0xfdcfffff irq 20 at device 7.0 on pci1
            fwohci0: [FILTER]
            fwohci0: OHCI version 1.10 (ROM=1)
            fwohci0: No. of Isochronous channels is 4.
            fwohci0: EUI64 00:8f:13:00:3d:cb:05:00
            fwohci0: Phy 1394a available S400, 2 ports.
            fwohci0: Link S400, max_rec 2048 bytes.
            firewire0: <ieee1394(firewire) bus="">on fwohci0
            fwe0: <ethernet over="" firewire="">on firewire0
            if_fwe0: Fake Ethernet address: 02:8f:13:cb:05:00
            fwe0: Ethernet address: 02:8f:13:cb:05:00
            fwip0: <ip over="" firewire="">on firewire0
            fwip0: Firewire address: 00:8f:13:00:3d:cb:05:00 @ 0xfffe00000000, S400, maxrec 2048
            sbp0: <sbp-2 scsi="" over="" firewire="">on firewire0
            dcons_crom0: <dcons configuration="" rom="">on firewire0
            dcons_crom0: bus_addr 0xd4118000
            fwohci0: Initiate bus reset
            fwohci0: BUS reset
            fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
            isab0: <pci-isa bridge="">at device 31.0 on pci0
            isa0: <isa bus="">on isab0
            atapci1: <intel ahci="" controller="">port 0x9880-0x9887,0x9800-0x9803,0x9480-0x9487,0x9400-0x9403,0x9080-0x909f mem 0xfbfff000-0xfbfff7ff irq 19 at device 31.2 on pci0
            atapci1: [ITHREAD]
            atapci1: AHCI Version 01.20 controller with 6 ports detected
            ata3: <ata 0="" channel="">on atapci1
            ata3: [ITHREAD]
            ata4: <ata 1="" channel="">on atapci1
            ata4: [ITHREAD]
            ata5: <ata 2="" channel="">on atapci1
            ata5: [ITHREAD]
            ata6: <ata 3="" channel="">on atapci1
            ata6: [ITHREAD]
            ata7: <ata 4="" channel="">on atapci1
            ata7: [ITHREAD]
            ata8: <ata 5="" channel="">on atapci1
            pci0: <serial bus,="" smbus="">at device 31.3 (no driver attached)
            acpi_button0: <power button="">on acpi0
            speaker0: <pc speaker="">port 0x61 on acpi0
            fdc0: <floppy drive="" controller="" (fde)="">port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
            fdc0: [FILTER]
            atkbdc0: <keyboard controller="" (i8042)="">port 0x60,0x64 irq 1 on acpi0
            atkbd0: <at keyboard="">irq 1 on atkbdc0
            kbd0 at atkbd0
            atkbd0: [GIANT-LOCKED]
            atkbd0: [ITHREAD]
            psm0: <ps 2="" mouse="">irq 12 on atkbdc0
            psm0: [GIANT-LOCKED]
            psm0: [ITHREAD]
            psm0: model MouseMan+, device ID 0
            sio0: configured irq 4 not in bitmap of probed irqs 0
            sio0: port may not be enabled
            sio0: configured irq 4 not in bitmap of probed irqs 0
            sio0: port may not be enabled
            sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
            sio0: type 16550A
            sio0: [FILTER]
            cpu0: <acpi cpu="">on acpi0
            est0: <enhanced speedstep="" frequency="" control="">on cpu0
            est: CPU supports Enhanced Speedstep, but is not recognized.
            est: cpu_vendor GenuineIntel, msr 6164a2306004a23
            device_attach: est0 attach returned 6
            p4tcc0: <cpu frequency="" thermal="" control="">on cpu0
            cpu1: <acpi cpu="">on acpi0
            est1: <enhanced speedstep="" frequency="" control="">on cpu1
            est: CPU supports Enhanced Speedstep, but is not recognized.
            est: cpu_vendor GenuineIntel, msr 6164a2306004a23
            device_attach: est1 attach returned 6
            p4tcc1: <cpu frequency="" thermal="" control="">on cpu1
            pmtimer0 on isa0
            ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
            ata0: [ITHREAD]
            ata1 at port 0x170-0x177,0x376 irq 15 on isa0
            ata1: [ITHREAD]
            ppc0: parallel port not found.
            sc0: <system console="">at flags 0x100 on isa0
            sc0: VGA <16 virtual consoles, flags=0x300>
            sio1: configured irq 3 not in bitmap of probed irqs 0
            sio1: port may not be enabled
            vga0: <generic isa="" vga="">at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
            Timecounters tick every 1.000 msec
            IPsec: Initialized Security Association Processing.
            firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
            firewire0: bus manager 0 (me)
            acd0: DVDR <optiarc dvd="" rw="" ad-7220a="" 1.01="">at ata2-master UDMA66
            ad12: 76319MB <wdc wd800aajs-00waa0="" 58.01d58="">at ata6-master SATA300
            SMP: AP CPU #1 Launched!
            Trying to mount root from ufs:/dev/ad12s1a</wdc></optiarc></generic></system></cpu></enhanced></acpi></cpu></enhanced></acpi></ps></at></keyboard></floppy></pc></power></serial></ata></ata></ata></ata></ata></ata></intel></isa></pci-isa></dcons></sbp-2></ip></ethernet></ieee1394(firewire)></via></vga-compatible></atheros></acpi></acpi></intel></ehci></ehci></intel></uhci></uhci></intel></uhci></uhci></intel></uhci></uhci></realtek></acpi></acpi></ata></jmicron></acpi></acpi></realtek></acpi></acpi></acpi></acpi></acpi></acpi></multimedia></intel></ehci></ehci></intel></uhci></uhci></intel></uhci></uhci></intel></uhci></uhci></acpi></acpi></software></version></lahf></lm></sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,cx16,xtpr,pdcm,sse4.1,<b26></fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm,pbe> 
            

            and this is when it loads properly

            Copyright (c) 1992-2009 The FreeBSD Project.
            Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
                    The Regents of the University of California. All rights reserved.
            FreeBSD is a registered trademark of The FreeBSD Foundation.
            FreeBSD 7.1-RELEASE-p3 #0: Tue Mar 17 15:41:49 EDT 2009
                sullrich@freebsd7-releng_1_2_3-pre-testing.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.7
            Timecounter "i8254" frequency 1193182 Hz quality 0
            CPU: Intel(R) Core(TM)2 Duo CPU     E7400  @ 2.80GHz (2800.11-MHz 686-class CPU)
              Origin = "GenuineIntel"  Id = 0x1067a  Stepping = 10
              Features=0xbfebfbff <fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm,pbe>Features2=0x408e39d<sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,cx16,xtpr,pdcm,sse4.1,<b26>>
              AMD Features=0x20000000 <lm>AMD Features2=0x1 <lahf>Cores per package: 2
            real memory  = 3623550976 (3455 MB)
            avail memory = 3541725184 (3377 MB)
            MPTable: <template etemplate =""></template></lahf></lm></sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,cx16,xtpr,pdcm,sse4.1,<b26></fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm,pbe>
            
            1 Reply Last reply Reply Quote 0
            • W
              wallabybob
              last edited by

              There have been a number of source code changes to the FreeBSD re driver since FreeBSD 7.1 was released. In particular the following look as if they might be relevant to your issue:

              r187417:
                Sometimes RTL8168B seems to take long time to access GMII registers
                in device attach phase. Double GMII register access timeout value
                to fix the issue.

              MFC r186210:
                For RTL8168C SPIN2 controllers, make sure to take the controller
                out of sleep mode prior to accessing to PHY. This should fix device
                attach failure seen on these controllers. Also enable the sleep
                mode when device is put into sleep state.

              Perhaps you might be able to persuade the pfSense developers to sync their re driver with the latest on the RELENG_7 branch in the FreeBSD repository.

              1 Reply Last reply Reply Quote 0
              • W
                wonslung
                last edited by

                yah, that would be awesome…..is it possible to compile custom kernels for pfsense like you do with freebsd or am i totally at the devs mercy?

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.