2015-10-31 10:56 GMT-04:00 Dewey Hylton <dewey.hyl...@gmail.com>: > On Sat, Oct 31, 2015 at 12:49 AM, Jonathan Gray <j...@jsg.id.au> wrote: > >> On Fri, Oct 30, 2015 at 11:32:16AM -0400, Dewey Hylton wrote: >> > > >> > didn't have -current onhand, but was able to perform this function on a >> 5.8 >> > system ... i have 3 of these devices i'd really like to get going on >> > openbsd. THANKS! >> >> ... >> >> > Invalid PHY ID 0xA0044E90 >> >> This shouldn't be possible, perhaps something isn't powering up correctly. >> >> You could try the following patch which will force the id to a known one: >> >> Index: if_em_hw.c >> =================================================================== >> RCS file: /cvs/src/sys/dev/pci/if_em_hw.c,v >> retrieving revision 1.88 >> diff -u -p -r1.88 if_em_hw.c >> --- if_em_hw.c 12 Sep 2015 02:38:14 -0000 1.88 >> +++ if_em_hw.c 31 Oct 2015 04:43:49 -0000 >> @@ -5369,6 +5369,9 @@ em_match_gig_phy(struct em_hw *hw) >> hw->phy_id |= (uint32_t) (phy_id_low & PHY_REVISION_MASK); >> hw->phy_revision = (uint32_t) phy_id_low & ~PHY_REVISION_MASK; >> >> + if (hw->phy_id == 0xA0044E90) >> + hw->phy_id = I210_I_PHY_ID; >> + >> switch (hw->mac_type) { >> case em_82543: >> if (hw->phy_id == M88E1000_E_PHY_ID) >> Index: if_em_osdep.h >> =================================================================== >> RCS file: /cvs/src/sys/dev/pci/if_em_osdep.h,v >> retrieving revision 1.12 >> diff -u -p -r1.12 if_em_osdep.h >> --- if_em_osdep.h 5 Oct 2011 02:52:10 -0000 1.12 >> +++ if_em_osdep.h 29 Oct 2015 03:27:36 -0000 >> @@ -44,7 +44,8 @@ POSSIBILITY OF SUCH DAMAGE. >> >> #define MSGOUT(S, A, B) printf(S "\n", A, B) >> #define DEBUGFUNC(F) DEBUGOUT(F); >> -#ifdef DBG >> +//#ifdef DBG >> +#if 1 >> #define DEBUGOUT(S) printf(S "\n") >> #define DEBUGOUT1(S,A) printf(S "\n",A) >> #define DEBUGOUT2(S,A,B) printf(S "\n",A,B) >> > > THANKS for your time and assistance. > > i now have enough networking to commence an installation, which is in > progress. i'll have to build > and copy in a new kernel of course to use the booted system afterward. > assuming nothing is shown > broken in the dmesg below, what do i need to do in order to get this > change (or another fix which > would not require this change, if this was just an improper hack) > committed? > > HOLD THE PRESSES!
after the installation and reboot, just prior to copying the rebuild kernel that was to provide networking, i notice that networking is in fact working. so somehow, with regard to this specific network interface, there was a disparity between bsd.rd and bsd (GENERIC) kernels. i'll try to run this through its paces with vlans and other such things, but at the moment it looks like GENERIC from 5.8 actually works as it should without any changes. perhaps it's time to dust off the old usb installer sticks and forgo pxe for these little devices. at least for the time being ... is it safe to assume that the disparity between bsd.rd and bsd is due to trimming to keep the image at a minimum? i know other things are removed from bsd.rd for this purpose ... and if not, does this point to a bug for which i need to make a report? thanks again for your assistance, Jonathan! fresh 5.8 dmesg follows: OpenBSD 5.8 (GENERIC.MP) #1236: Sun Aug 16 02:31:04 MDT 2015 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3934593024 (3752MB) avail mem = 3811454976 (3634MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xecbf0 (62 entries) bios0: vendor American Megatrends Inc. version "SBCFLT_0.08.04" date 06/27/2015 bios0: CompuLab fitlet acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT FIDT MCFG ASF! HPET WDRT SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT acpi0: wakeup devices LOM_(S4) SBAZ(S4) EHC1(S4) EHC2(S4) EHC3(S4) XHC0(S4) ODD8(S3) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD A4 Micro-6400T APU + AMD Radeon R3 Graphics, 998.26 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC NT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPI CSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD A4 Micro-6400T APU + AMD Radeon R3 Graphics, 998.13 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC NT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPI CSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 2 (application processor) cpu2: AMD A4 Micro-6400T APU + AMD Radeon R3 Graphics, 998.14 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC NT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPI CSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: AMD A4 Micro-6400T APU + AMD Radeon R3 Graphics, 998.14 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC NT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPI CSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu3: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu3: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu3: smt 0, core 3, package 0 ioapic0 at mainbus0: apid 5 pa 0xfec00000, version 21, 24 pins ioapic1 at mainbus0: apid 6 pa 0xfec01000, version 21, 32 pins acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255 acpihpet0 at acpi0: 14318180 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (GFX_) acpiprt2 at acpi0: bus -1 (GPP0) acpiprt3 at acpi0: bus -1 (GPP1) acpiprt4 at acpi0: bus -1 (GPP2) acpiprt5 at acpi0: bus 1 (GPP3) acpicpu0 at acpi0: !C2(0@400 io@0x414), C1(@1 halt!), PSS acpicpu1 at acpi0: !C2(0@400 io@0x414), C1(@1 halt!), PSS acpicpu2 at acpi0: !C2(0@400 io@0x414), C1(@1 halt!), PSS acpicpu3 at acpi0: !C2(0@400 io@0x414), C1(@1 halt!), PSS acpibtn0 at acpi0: PWRB acpivideo0 at acpi0: VGA_ acpivideo1 at acpi0: VGA_ cpu0: 998 MHz: speeds: 1000 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 vendor "AMD", unknown product 0x1566 rev 0x00 vga1 at pci0 dev 1 function 0 vendor "ATI", unknown product 0x9854 rev 0x02 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) pchb1 at pci0 dev 2 function 0 vendor "AMD", unknown product 0x156b rev 0x00 ppb0 at pci0 dev 2 function 5 "AMD AMD64 16h PCIE" rev 0x00: msi pci1 at ppb0 bus 1 em0 at pci1 dev 0 function 0 "Intel I211" rev 0x03: msi, address 00:01:c0:18:af:96 vendor "AMD", unknown product 0x1537 (class crypto subclass miscellaneous, rev 0x00) at pci0 dev 8 function 0 not configured xhci0 at pci0 dev 16 function 0 vendor "AMD", unknown product 0x7814 rev 0x11: msi usb0 at xhci0: USB revision 3.0 uhub0 at usb0 "AMD xHCI root hub" rev 3.00/1.00 addr 1 ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: msi, AHCI 1.3 ahci0: port 1: 6.0Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 1 lun 0: <ATA, SanDisk SD6SF1M0, X231> SCSI3 0/direct fixed naa.5001b44e703a2201 sd0: 61057MB, 512 bytes/sector, 125045424 sectors, thin ehci0 at pci0 dev 18 function 0 "AMD Hudson-2 USB2" rev 0x39: apic 5 int 18 usb1 at ehci0: USB revision 2.0 uhub1 at usb1 "AMD EHCI root hub" rev 2.00/1.00 addr 1 ehci1 at pci0 dev 19 function 0 "AMD Hudson-2 USB2" rev 0x39: apic 5 int 18 usb2 at ehci1: USB revision 2.0 uhub2 at usb2 "AMD EHCI root hub" rev 2.00/1.00 addr 1 piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x42: SMI iic0 at piixpm0 azalia0 at pci0 dev 20 function 2 "AMD Hudson-2 HD Audio" rev 0x02: apic 5 int 16 azalia0: codecs: Realtek ALC888 audio0 at azalia0 pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11 sdhc0 at pci0 dev 20 function 7 vendor "AMD", unknown product 0x7813 rev 0x01: apic 5 int 16 sdhc0 at 0x10: can't map registers pchb2 at pci0 dev 24 function 0 vendor "AMD", unknown product 0x1580 rev 0x00 pchb3 at pci0 dev 24 function 1 vendor "AMD", unknown product 0x1581 rev 0x00 pchb4 at pci0 dev 24 function 2 vendor "AMD", unknown product 0x1582 rev 0x00 pchb5 at pci0 dev 24 function 3 vendor "AMD", unknown product 0x1583 rev 0x00 pchb6 at pci0 dev 24 function 4 vendor "AMD", unknown product 0x1584 rev 0x00 pchb7 at pci0 dev 24 function 5 vendor "AMD", unknown product 0x1585 rev 0x00 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 uhub3 at uhub1 port 1 "Advanced Micro Devices product 0x7900" rev 2.00/0.18 addr 2 run0 at uhub3 port 1 configuration 1 interface 0 "Ralink 802.11 n WLAN" rev 2.00/1.01 addr 3 run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R), address 7c:dd:90:8b:25:bc umass0 at uhub3 port 4 configuration 1 interface 0 "SanDisk Ultra Fit" rev 2.10/1.00 addr 4 umass0: using SCSI over Bulk-Only scsibus2 at umass0: 2 targets, initiator 0 sd1 at scsibus2 targ 1 lun 0: <SanDisk, Ultra Fit, 1.00> SCSI4 0/direct removable serial.07815583440728116073 sd1: 14663MB, 512 bytes/sector, 30031250 sectors uhub4 at uhub2 port 1 "Advanced Micro Devices product 0x7900" rev 2.00/0.18 addr 2 uhidev0 at uhub4 port 2 configuration 1 interface 0 "Logitech USB Receiver" rev 2.00/12.01 addr 3 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub4 port 2 configuration 1 interface 1 "Logitech USB Receiver" rev 2.00/12.01 addr 3 uhidev1: iclass 3/1, 8 report ids ums0 at uhidev1 reportid 2: 16 buttons, Z dir wsmouse1 at ums0 mux 0 uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0 uhid1 at uhidev1 reportid 4: input=1, output=0, feature=0 uhid2 at uhidev1 reportid 8: input=1, output=0, feature=0 uhidev2 at uhub4 port 2 configuration 1 interface 2 "Logitech USB Receiver" rev 2.00/12.01 addr 3 uhidev2: iclass 3/0, 33 report ids uhid3 at uhidev2 reportid 16: input=6, output=6, feature=0 uhid4 at uhidev2 reportid 17: input=19, output=19, feature=0 uhid5 at uhidev2 reportid 32: input=14, output=14, feature=0 uhid6 at uhidev2 reportid 33: input=31, output=31, feature=0 vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets root on sd0a (d8a8914cb2cb6cb4.a) swap on sd0b dump on sd0b