On Thu, Oct 29, 2015 at 10:15 AM, Dewey Hylton <dewey.hyl...@gmail.com> wrote:
> > > On Wed, Oct 28, 2015 at 11:35 PM, Jonathan Gray <j...@jsg.id.au> wrote: > >> On Wed, Oct 28, 2015 at 10:18:26PM -0400, Dewey Hylton wrote: >> > i like these little boxes; they are silent and stable and perfect for >> plenty >> > of my projects. this new version promises to be better than the several >> fit2 >> > machines i have scattered around customer sites, affording more cores >> and >> > memory. >> > >> > the man page for em shows the i211 to be supported. this machine uses >> that >> > chip, and it is even reported by the kernel - but still does not work. >> is it >> > possible that its specific id is simply missing from the driver, or is >> there >> > more to it than that? >> > >> > i booted the computer via pxe, so the ethernet is clearly working. it >> > shipped with linux, and networking worked there too. >> > >> > of course it'd be nice for all the other bits to be in working order as >> > well, but at the moment ethernet is the most important for my purposes. >> > >> > please let me know what i can do to get this working, or how i can >> assist >> > otherwise. >> >> If you can get the dmesg output of a kernel built with the following >> diff it should indicate where the problem is: >> >> Index: sys/dev/pci/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 >> --- sys/dev/pci/if_em_osdep.h 5 Oct 2011 02:52:10 -0000 1.12 >> +++ sys/dev/pci/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) >> > > > > > i'll attempt to build a new bsd.rd with this patch and report back. > > i've never done this, so it may take a bit of time to work out the > details. thanks for the suggestion. > > 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! dmesg follows: OpenBSD 5.8-stable (RAMDISK_CD) #0: Fri Oct 30 11:15:47 EDT 2015 root@openbsd-build.uxdev:/usr/src/sys/arch/amd64/compile/RAMDISK_CD real mem = 3934593024 (3752MB) avail mem = 3813629952 (3636MB) 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: tables DSDT FACP APIC FPDT FIDT MCFG ASF! HPET WDRT SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT 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.27 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: apic clock running at 99MHz cpu0: mwait min=64, max=64, IBE cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured ioapic0 at mainbus0: apid 5 pa 0xfec00000, version 21, 24 pins ioapic1 at mainbus0: apid 6 pa 0xfec01000, version 21, 32 pins 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) 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 vga1: aperture needed wsdisplay0 at vga1 mux 1: console (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 0x03em_set_mac_type : msiem_init_eeprom_params em_is_onboard_nvm_eeprom em_get_flash_presence_i210 em_reset_hw PCIe completion timeout resend disabled. Masking off all interrupts Issuing a global reset to MAC em_check_phy_reset_block Masking off all interrupts em_get_flash_presence_i210 em_get_flash_presence_i210 em_read_phy_reg em_swfw_sync_acquire em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_read_phy_reg_ex em_swfw_sync_release em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_write_phy_reg em_swfw_sync_acquire em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_write_phy_reg_ex em_swfw_sync_release em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_init_hw em_id_led_init em_read_eeprom em_is_onboard_nvm_eeprom em_get_flash_presence_i210 em_set_media_type em_initialize_hardware_bits Initializing the IEEE VLAN em_init_rx_addrs Programming MAC Address into RAR[0] Clearing RAR[1-15] Zeroing the MTA em_setup_link em_check_phy_reset_block After fix-ups FlowControl is now = 3 em_detect_gig_phy em_match_gig_phy em_read_phy_reg em_swfw_sync_acquire em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_read_phy_reg_ex em_swfw_sync_release em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_read_phy_reg em_swfw_sync_acquire em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_read_phy_reg_ex em_swfw_sync_release em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_set_phy_type Invalid PHY ID 0xA0044E90 em_match_gig_phy em_read_phy_reg em_swfw_sync_acquire em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_read_phy_reg_ex em_swfw_sync_release em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_read_phy_reg em_swfw_sync_acquire em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_read_phy_reg_ex em_swfw_sync_release em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_set_phy_type Invalid PHY ID 0xA0044E90 em_match_gig_phy em_read_phy_reg em_swfw_sync_acquire em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_read_phy_reg_ex em_swfw_sync_release em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_read_phy_reg em_swfw_sync_acquire em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_read_phy_reg_ex em_swfw_sync_release em_get_hw_eeprom_semaphore em_put_hw_eeprom_semaphore em_set_phy_type Invalid PHY ID 0xA0044E90 Error, did not detect valid phy. em0: Hardware Initialization Failedem0: Unable to initialize the hardware 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 scsibus0 at ahci0: 32 targets sd0 at scsibus0 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 "AMD Hudson-2 SMBus" rev 0x42 at pci0 dev 20 function 0 not configured "AMD Hudson-2 HD Audio" rev 0x02 at pci0 dev 20 function 2 not configured "AMD Hudson-2 LPC" rev 0x11 at pci0 dev 20 function 3 not configured 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 mainbus0 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 uhub3 at uhub1 port 1 "vendor 0x0438 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 scsibus1 at umass0: 2 targets, initiator 0 sd1 at scsibus1 targ 1 lun 0: <SanDisk, Ultra Fit, 1.00> SCSI4 0/direct removable serial.07815583290920102473 sd1: 14663MB, 512 bytes/sector, 30031250 sectors uhub4 at uhub2 port 1 "vendor 0x0438 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 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 uhid at uhidev1 reportid 2 not configured uhid at uhidev1 reportid 3 not configured uhid at uhidev1 reportid 4 not configured uhid at uhidev1 reportid 8 not configured 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 uhid at uhidev2 reportid 16 not configured uhid at uhidev2 reportid 17 not configured uhid at uhidev2 reportid 32 not configured uhid at uhidev2 reportid 33 not configured softraid0 at root scsibus2 at softraid0: 256 targets PXE boot MAC address 00:01:c0:18:af:96, interface unknown root on rd0a swap on rd0b dump on rd0b