DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th May 2017
beiroot beiroot is offline
Fdisk Soldier
 
Join Date: Sep 2016
Posts: 64
Default OpenBSD and AR8171

Hi,
I've successfully installed OpenBSD 6.1 on my Lenovo Z710. Unfortunately, there is no support (or is it?) for my Atheros Qualcomm chipset AR8171 - 10/100/1000 NIC.

dmesg shows "... not configured"

fw_update doesn't help

I've browsed through the documentation and openbsd mailing list and found this

Some of the folks claim that they've taken the if_alc.c from FreeBSD, which supports AR8171, port it to OpenBSD and it works.

My question is, has anyone tried it?
Maybe there is another way?

I'm not C-literate yet, so I can't investigate and correct the mistakes some devs point, but the last trail breaks off, so I might be forced to try anyway
Reply With Quote
  #2   (View Single Post)  
Old 19th May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,943
Default

In a dmesg, "not configured" is kernel-speak for "no driver."

The proposed patch was rejected due to code quality issues.

Last edited by jggimi; 19th May 2017 at 08:24 AM. Reason: looked at the "trail ends" mailing list post
Reply With Quote
  #3   (View Single Post)  
Old 19th May 2017
beiroot beiroot is offline
Fdisk Soldier
 
Join Date: Sep 2016
Posts: 64
Default

Unfortunately, I know this from your post. So technically the only thing I could do is build the kernel from source modifying the if_alc.c?
Reply With Quote
  #4   (View Single Post)  
Old 19th May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,943
Default

That module as well as if_alcreg.h, according to the archived post.

The rejected patch would be a starting point. but it is massive, and written for a different revision of the source. And it does not meet OpenBSD standards.

But if you insist...

You could use patch(1) with -C repeatedly, manually modifying the patch to fit your appropriate revision of the source code (6.1 release, perhaps?). The proposed patch is in unified diff(1) format. Once the patch has been applied, you would then build a test kernel.
Reply With Quote
  #5   (View Single Post)  
Old 19th May 2017
beiroot beiroot is offline
Fdisk Soldier
 
Join Date: Sep 2016
Posts: 64
Default

Well...this seems like an easy job...
Is this really the only option?
Reply With Quote
  #6   (View Single Post)  
Old 19th May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,943
Default

This is not a break/fix support issue. This is a development issue. From my perspective, it appears to me that you have several options:
  1. Retrofit and deploy the published but rejected patch yourself, as outlined above.
  2. Discuss the rejected patch with Jason Hunt, who developed it and published it for consideration by the Project. He may have an updated, unpublished version.
  3. Engage one of the many commercial support companies / consultants to do this work on your behalf.
  4. Transition to different hardware.
Reply With Quote
  #7   (View Single Post)  
Old 19th May 2017
cynwulf's Avatar
cynwulf cynwulf is offline
Package Pilot
 
Join Date: Mar 2014
Posts: 213
Default

I have to ask - considering what's required here, is it really worth your while getting an ethernet adaptor working on a laptop? I assume it has a wifi adaptor?

uhub(4) seems to detail some supported USB ethernet devices:
Code:
Wired network interfaces
        aue(4)        ADMtek AN986/ADM8511 Pegasus family 10/100 USB Ethernet
                      device
        axe(4)        ASIX Electronics AX88172/AX88178/AX88772 10/100/Gigabit
                      USB Ethernet device
        axen(4)       ASIX Electronics AX88179 10/100/Gigabit USB Ethernet
                      device
        cdce(4)       USB Communication Device Class Ethernet device
        cue(4)        CATC USB-EL1201A USB Ethernet device
        kue(4)        Kawasaki LSI KL5KUSB101B USB Ethernet device
        mos(4)        MosChip MCS7730/7830/7832 10/100 USB Ethernet device
        smsc(4)       SMSC LAN95xx 10/100 USB Ethernet device
        udav(4)       Davicom DM9601 10/100 USB Ethernet device
        ure(4)        RealTek RTL8152/RTL8153 10/100/Gigabit USB Ethernet
                      device
        url(4)        Realtek RTL8150L 10/100 USB Ethernet device
        urndis(4)     USB Remote NDIS Ethernet device
It might be worth looking into at least.
Reply With Quote
  #8   (View Single Post)  
Old 20th May 2017
beiroot beiroot is offline
Fdisk Soldier
 
Join Date: Sep 2016
Posts: 64
Default

Thanks for your replies Gents, much obliged!

jggimi,
nr 4 is not an option, at least not now
nr 3 would be nice to even make contact with such company for further networking and community, but there are none in Poland, at least officially. Strange, since I know there are some developers and people working with/on pf.
nr 2 I'll start with that
nr 1 I'll try independently of nr 2 maybe I'll learn something before I end up in despair

cynwulf, well, it's not a matter of functionality because I'm pretty sure wifi nic is enough 99% of the time. That 1% is that I sometimes do big backup to my NAS using eth - it's much quicker (1 to 1gbit).
The real problem though is my inner perfection that suffers when it's not all working as it should.

Last edited by beiroot; 20th May 2017 at 06:21 AM. Reason: grammar, typo
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:33 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick