![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
I've installed OpenBSD 5.3 release onto two machines: the laptop (amd64) and main "desktop" (i386). dmesgs for each are attached to this post.
On each machine I have the same trouble with a USB wireless N adapter: the firmware won't load. The adapter is a NETGEAR WNA1100, based on Atheros chip. Excerpted from one of the dmesgs are the following lines: Code:
athn0 at uhub0 port 2 "NETGEAR WNA WNA1100" rev 2.00/1.08 addr 2 ... athn0: failed loadfirmware of file athn-ar9271 (error 2) athn0: could not load firmware The man page for the loadfirmware(9) function says it returns an errno(2) code on failure, and errno code 2 is "No such file or directory". Well the files seem to be there: Code:
-r--r--r-- 1 root bin 70624 Jun 16 2011 /etc/firmware/athn-ar7010 -r--r--r-- 1 root bin 70624 Jun 16 2011 /etc/firmware/athn-ar7010-11 -r--r--r-- 1 root bin 51280 Jun 16 2011 /etc/firmware/athn-ar9271 -r--r--r-- 1 root bin 2221 Jun 16 2011 /etc/firmware/athn-license Another data point: when I first got the adapter (1-2 years ago), I tried it under OpenBSD on another machine, and it did work then. So, there was at that time no problem loading the firmware for it. I tried google-ing the error message above, but didn't find anything useful. I wanted to try loading the firmware manually by writing a simple C wrapper for loadfirmware(9), to see what happens, but the man page doesn't say what library to link it with. Any suggestions for how to proceed? Thanks! |
|
|||
|
I forget exactly which tools, but linux usually has something you can poke the device with. If the storage on the card is faulty and or it works on linux you've narrowed things down a bit. FreeBSD might be preferable to linux too, I don't know. Is it the hardware?
|
|
||||
|
I searched openbsd-bugs and openbsd-misc on marc.info for "athn-ar9271". There is one very relevant, unresolved, mailing dated yesterday!
atheros AR9271 fails to load firmware Given the coincidence in dates, for the record, no, it was not me who submitted that. |
|
||||
|
This gets weirder. This morning I booted (i386) directly into OpenBSD. This time the firmware loaded, and the athn0 interface was there! Was it a case of cold boot vs warm boot? I rebooted, and again it was working.
So decided to check it out. Scan for APs: # ifconfig athn0 scan>> half a dozen reasonable results were returned Scanned for APs again. >> Lots of repeated kernel error messages fill the screen, after several seconds they stop. Scan again. >> Lots of repeated kernel error messages fill the screen, but they never stop. So I disconnected the Netgear USB adapter. System crashes into debugger. Tried rebooting a few more times. Firmware wouldn't load again. As an experiment, I tried loading the firmware from OpenBSD under Linux. It would load, but the device never initialized. I have no idea if this ever had any chance of working, but it didn't. Obviously, a lot of difficult and specialized work goes into writing these device drivers. Hopefully with a little more testing and debugging athn+9271 will come to full fruition. |
|
|||
|
Okay, it worked in Linux, not in OpenBSD. It shows in the man page for obsd, so if I were you I would feel okay going to the lists, unless you can buy another card and test that. I did check freebsd and it's not supported, hehe.
|
|
|||
|
https://wiki.freebsd.org/dev/ath_hal...ardwareSupport
The developer says he'll help others that want to work on it, yet he refuses, maybe there's an issue with the USB portion? |
|
|||
|
While I applaud you for attempting to identify causes, I don't believe that questioning the USB subsystem is likely to be a fruitful endeavour.
Integrated circuit manufacture has at multiple points in the process opportunities which features/bug fixes can be layered on to the chips themselves. In the case of wireless chips (which is a volatile market...), chips with the same model number may or may not have features enabled. The production of any particular chip may be interrupted in order to fix identified problems or add/subtract features -- all while the model number remains the same. Who gets what chip depends upon the time contracts are finalized with customers & what is specified in the contract. I have no knowledge of what chip was used when the driver was developed & what are the differences between it & the chip discussed in this thread, but I suspect there are driver differences between the operating systems mentioned. This would account for why differences are seen in the behaviour between operating systems. When it comes to compatibility questions where wireless chips work in one operating system but not another, the most direct approach to isolating root causes is to study the source code to the driver itself. Given the contention between the GNU & most other licences, Linux driver code cannot be officially ported to the *BSD's & vice versa. Note that the supporting structure around either environment is likely to be different, so thinking that code from one platform can be dropped into another without modification is not realistic. Nevertheless, if you are serious about attempting to resolve compatibility problems, study the driver code, & debug. If you get something to work, post diff(1)'s to OpenBSD's tech@ mailing list, & see what the project developers say. Last edited by ocicat; 1 Week Ago at 09:20 PM. Reason: clarity |
|
|||
|
But loadfirmware() just read whole file into malloced kernel memory buffer, it known nothing about underlaing wifi chip. So for me this looks like strange FS problem.
|
|
||||
|
Quote:
Code:
athn0: failed loadfirmware of file athn-ar9271 (error 2) So I strongly suspect that little part of the mystery is now solved. The main events remain, of course.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to upgrade firmware? | tls | OpenBSD Installation and Upgrading | 9 | 30th April 2012 10:50 PM |
| How to build upgt firmware | AnilG | FreeBSD Installation and Upgrading | 2 | 20th March 2012 11:06 AM |
| How do I manually load firmware in OpenBSD? | Shagbag | OpenBSD Packages and Ports | 3 | 18th September 2008 08:37 PM |
| NVIDIA driver fails to load, freebsd 7.0 | mc_i2020 | FreeBSD General | 18 | 18th July 2008 01:12 PM |
| location for wpi-firmware-.tgz | bsdnewbie999 | OpenBSD General | 1 | 18th June 2008 04:20 AM |