Slashdot Mirror


Atheros Hardware Abstraction Layer Source Is Released

chrb writes "With the recent discussion here on proprietary blobs in the Linux kernel, it's nice to see that today Sam Leffler has released the source for the Atheros Hardware Abstraction Layer under the ISC license, which is both GPL and BSD compatible. The Atheros chipset is used in many laptops, so this is another important step towards running a completely free distribution."

40 of 117 comments (clear)

  1. YAY by iamwhoiamtoday · · Score: 4, Interesting

    I have a Macbook from just over a year ago, and it uses a Atheros wireless card, and it's the biggest pain to get running in Linux. Hopefully, with the Source released, it will be easier in the future to get the wireless working on this model of computer.

  2. Interesting by Bruce+Perens · · Score: 5, Interesting
    This is interesting, as there are three Atheros drivers, all different. Madwifi uses the HAL. Ath5 is in the Linux trunk and doesn't (I think). Ath9 was developed by Atheros and probably uses the HAL but I didn't check. Sam was mostly interested in this because he wanted to work on mesh networking - it's good to see he's still involved.

    The argument about BLOBs - binary loadable objects in the kernel - is not new, despite Bruce Byfield's recent report. I guess he just doesn't read the kernel list and other distro internal discussions, where this has been going on for a decade. And FSF did not "redefine" anything, they've always held that opinion.

    It would be nice to draw a line at the hardware bus, with all above that Open Source and all below that whatever the hardware manufacturer likes because we don't deal with it. But BLOBs break that, because they are both above and below the bus. If we're going to handle the code, we can't really deny that there's a computer there running closed-source code. And given the degree to which wifi firmware sucks the world would be nicer if it was Free Software. Now, we just have to drive some sense into FCC, etc.

    Bruce

    1. Re:Interesting by cheater512 · · Score: 4, Interesting

      Actually ath9k is fully open source by Atheros.
      http://mobile.slashdot.org/article.pl?sid=08/07/26/2138228
      No firmware, no HAL, nothing.

      I've bought two of the cards to support Atheros even though the drivers arent 100% just yet.
      I also have a older b/g card which works superbly.

    2. Re:Interesting by Bruce+Perens · · Score: 4, Informative

      I have a new Acer Aspire One, with Atheros wireless, and have mostly got it running Debian properly - the biggest bugs I'm seeing may be in Debian Lenny rather than anything about Aspire One. A nice thing about this HAL release is that it makes Sam's virtual WAP software unquestionably Free - even from the BSD perspective. Did you ever want to connect to all of the WAPs you can reach at once, and be two or three different WAPs for others at the same time, all without carrying extra hardware? Sam's code can do that.

      Being someone who speaks publicly about Open Source, I want to be seen using 100% Open Source. If you're going to talk the talk, you should walk the walk too.

    3. Re:Interesting by RiotingPacifist · · Score: 2, Insightful

      This is interesting, as there are three Atheros drivers, all different. Madwifi uses the HAL. Ath5 is in the Linux trunk and doesn't (I think). Ath9 was developed by Atheros and probably uses the HAL but I didn't check.

      I dont quite get the point of this then TBH, i mean it is nice to open source their code, but given that it has pretty much been reverse engineered already, isn't it a bit late!?

      --
      IranAir Flight 655 never forget!
    4. Re:Interesting by Bruce+Perens · · Score: 4, Informative

      i mean it is nice to open source their code, but given that it has pretty much been reverse engineered already, isn't it a bit late!?

      Especially since the kernel developers aren't going to let anything with a HAL into Linus' tree, entirely for architectural reasons. But it makes the best version of the driver at the moment fully free.

    5. Re:Interesting by Holistic+Missile · · Score: 2, Insightful

      I have an Aspire One as well. Mine is running FreeBSD, with wireless networking via the ath_hal kernel module.

      I had to recompile the kernel using the latest 7.1 source snapshot to get the Atheros card working. The link/activity light doesn't work (no big deal, really!), but the wireless connection 'kill switch' on the front of the case works. I haven't tried running it as a WAP yet, but now I want to give it a try! The ath kernel modules in BSD have supported AP mode for some time now; if it doesn't work that way, I may look into porting Sam's code.

      --
      When you're dead, you don't know you're dead. It only affects the people around you. Same thing when you're stupid.
    6. Re:Interesting by Tenebrousedge · · Score: 2, Funny

      BLOBs - binary loadable objects

      Idiot.

      Instrumentation Digital On-Line Transcriber ? Really, you should have been more creative. How about,

      Blathering Retard Uttering Crass Euphemisms -- Probably Expects Responding Erudite Nameless Slashdotters

      Now that sounds like a foolish person ;)

      (with apologies to B.P.)

      --
      Those who advocate genocide deserve every protection afforded by law, and none afforded by common human decency.
  3. Sweet by bsharp8256 · · Score: 3, Informative

    I didn't see this coming, although I have to say I don't keep up with MadWifi news anymore since they fixed 64-bit support for the AR5007 chipset...

  4. Working sleep mode? by Picass0 · · Score: 3, Interesting

    Does this mean the sleep function will finally work as it should without draining the batteries? I have yet to see a laptop running Linux go into hibernate mode and not bleed off the batteries.

    1. Re:Working sleep mode? by Bruce+Perens · · Score: 4, Interesting

      If you can prove that it bleeds off the batteries more than Linux, we would like to see numbers, please. Linux isn't in charge once the machine is asleep. It would mean that some device is left in a power-drawing mode. I can't say for sure that Atheros has anything to do with this. Are you confusing it with the other HAL on Linux systems?

    2. Re:Working sleep mode? by Bruce+Perens · · Score: 3, Informative

      Oops, I meant to say "more than windows", of course.

    3. Re:Working sleep mode? by ristretto_dreams · · Score: 4, Informative

      ermm, I think the problem here is that the OP is referring to two different things, "sleep" and "hibernate", but unless I am incorrectly remembering my ACPI (which is quite possible), Linux is in fact, if not "in charge once the machine is alseep", at least in charge of correctly putting all various pieces of the system into S3 sleep mode correctly. I know that for a long time my Thinkpad had powerdrain problems in S3 because of incorrectly suspended wifi. For hibernate mode (assuming true write to disk and power off), then of course Linux isn't in charge.

    4. Re:Working sleep mode? by Bruce+Perens · · Score: 2, Interesting

      Yes, I guess the OSPM could leave the wireless interface in a power-draining state.

    5. Re:Working sleep mode? by spazdor · · Score: 3, Insightful

      It means that community developers will be able to write a driver that works as well in any OS as the Windows one, in every way.

      It means all those Linux netbooks that were sold with cheap Aths, will soon have completely robust, standards-compliant wireless. And all those sniffing network-trickery programs that the haxors love, will Just Work(tm). And development can proceed with mesh networking on a much wider scope.

      --
      DRM: Terminator crops for your mind!
    6. Re:Working sleep mode? by Bruce+Perens · · Score: 2, Informative

      The Slashdot article was confusing, and I didn't help. Sorry. It's not firmware in this case.

    7. Re:Working sleep mode? by Bruce+Perens · · Score: 4, Insightful

      Right now, there is a larger team working on madwifi than just Sam, and the kernel team is working on ath5, so I don't think you're right this time.

      There is another reason to expect this to result in a code improvement. The same netbooks that have the Atheros wifi often have Intel 3D as part of the chipset. Intel 3D is known to be horrible on Windows. Part of the problem is that desktop vendors don't want Intel 3D to be good, because they want to sell graphics cards. So, Intel has little incentive to make it better.

      Except under X, that is. As far as I can tell, it works great under X. The X team at Intel is either not bothered with marketing hold-back; or because the source is public or satisfies a server market, they can justify a need for quality.

      ATI will improve over time, and they will probably drive most of it themselves. Open Source will help them do that.

      Bruce

    8. Re:Working sleep mode? by MostAwesomeDude · · Score: 4, Interesting

      Hi, I joined X.org after ATI released docs, and helped add support for an entire line of video cards, including the one I'm using right now to type this.

      Your defeatism is kinda silly, if you stop and consider how much work we've done in the open source world.

      --
      ~ C.
  5. Improved HAL by rrossman2 · · Score: 2, Interesting

    I noticed this on the dd-wrt.com website a couple of months back (dated 8.28.08) We would like to announce the release of a new HAL for Atheros WLAN devices. The new HAL is the result of a collaboration between OpenWrt.org, DD-WRT and MakSat Technologies (P) Ltd. It is the first result of a common effort, and the present collaborators would like to share the product of this work. It is the intention to provide reliable and continued support for other projects using this new HAL for Atheros WLAN devices. The HAL provides a defined API to access and contol Atheros WLAN chipsets, and is an integral part for many drivers such as MadWifi. Comparing it with the HAL that's currently used by MadWifi, the most important changes are: * many known bugs have been fixed * improved noise immunity measures * added support for additional architectures, such as ARM11, MIPS64 and MIPS32r2 * enhanced support for Atheros WiSOC (Wireless System on Chip) * added support for Atheros AR7100 Home of the new HAL will be the website of the madwifi.org project, http://madwifi.org./ Future development will be coordinated here, and the bug tracking facility can be used to report bugs or file feature requests. For commercial requests please contact hal@maksat.deThis e-mail address is being protected from spambots, you need JavaScript enabled to view it . So with the new news maybe things will really get rolling

  6. OpenWRT and DD-WRT porting boosted by this? by tecker · · Score: 4, Interesting

    I wonder if this could be used to help port OpenWRT over to the atheros chipset. Currently the only routers that OpenWRT (and conversely by that DD-WRT) really work well on are the broadcom chipsets. Many routers that use the Atheros chipset have been written off as impossible to port to. Maybe they could be used if this proves any insight to how they operate.

    --
    Procrastinating life a way at a rapid rate of speed.
    1. Re:OpenWRT and DD-WRT porting boosted by this? by belial · · Score: 3, Informative

      When is the last time you've looked at this? The Nanostations, which are atheros based can run OpenWRT, DDWrt, etc. The big thing I see here is that with OSS HAL, maybe adhoc support on atheros will get better. Meraki, FON, and the ACCTON (openmesh.com) routers are all atheros too.

    2. Re:OpenWRT and DD-WRT porting boosted by this? by camh · · Score: 3, Informative

      Atheros-based access points do work with OpenWRT. It works better than Broadcom-based devices. I replaced a Broadcom-based device with an Atheros-based one so it would work better, and run with the Linux 2.6 kernel. Only very recently has OpenWRT been able to run a 2.6 kernel with Broadcom-based wifi because the open drivers are getting up to scratch, and even then some things still dont work as well as Atheros wifi.
      The Atheros wifi on OpenWRT uses the madwifi driver, so this opening up of the HAL will still benefit OpenWRT in allowing even more sophisticated use of wifi.

  7. Who is Sam Leffler? by Anonymous Coward · · Score: 2, Interesting

    From the article apparaently he had "an agreement with Atheros" to "access to information about their devices". Does that mean he developed the HAL with little help from the company? (And apparaently he'll have no more access since the agreement is "concluded".)

    It is nice to have an open source driver released, but it is NOT nice that an individual have to go jump through hoops and write it himself to make it happen.

    1. Re:Who is Sam Leffler? by Bruce+Perens · · Score: 4, Informative

      It is nice to have an open source driver released, but it is NOT nice that an individual have to go jump through hoops and write it himself to make it happen.

      That's how a lot of them happen. What's worse is when an individual, or team of individuals, work for years to make some proprietary code unnecessary, all of the time knowing that only when they are done will the manufacturer of the proprietary code place it in Open Source.

    2. Re:Who is Sam Leffler? by Gazzonyx · · Score: 4, Funny

      Unless you're on the Samba team ;)

      --

      If I mod you up, it doesn't necessarily mean I agree with what you've said, sorry.

  8. Re:QA by cheater512 · · Score: 2, Informative

    Erm...What wifi chip are you using?

    The good thing about manufacturers opening their drivers is you get a completely free distro and its fully functional.

  9. Good news; but blob related? by fuzzyfuzzyfungus · · Score: 2, Interesting

    I was under the impression that the atheros HAL is not a binary blob in the sense the summary refers to, but a program executed on the host CPU. That makes this even better news than if it were a blob. It is debatable whether or not a system that needs to load a bunch of blobs onto its peripherals at startup is free or not(personally, I'm inclined to say it is, as long as the mechanisms for loading the firmware and interacting with the peripheral are open and the firmware is freely redistributable); but a system with a big binary lump running in kernel space definitely isn't.

    It is very encouraging to see progress towards removing one of the most common causes of tainted kernels(probably second only to video card drivers); but it isn't really related to the blob question.

    1. Re:Good news; but blob related? by Bruce+Perens · · Score: 3, Informative

      It was not firmware for downloading into the embedded processor of the wifi device. That came up because of the Bruce Byfield article recently covered here. There are BLOBs that execute on the main CPU, like nVidia's. I'm not sure if this HAL was ever one of those.

  10. Re:Free OS, free movies by Jamie's+Nightmare · · Score: 2, Insightful

    Because those movies are shit? Your local library has a better selection of Hollywood titles than the site you reference. Most of these have never been in circulation, and for a very good reason.

    Not to mention some of the movies on this site are in formats that are not "free and open" like Linux. AVI, DIVX, MPEG4? Hell, one I looked at was itself a 4 gig ISO file of MPEG2 video. How far must one dig through the site before finding the OGG format videos?

    --
    "When you see a unixer brainwashed beyond saving, kick him out of the door." - Xah Lee
  11. Re:DVD and Blu-ray by LingNoi · · Score: 3, Interesting

    In the UK this stuff is patent free because there are no software patents in England. It depends very much on where you live.

    If Canonical made a UK distribution which included all the patented free software it would also create prior art in case of any changes in UK patent law.

  12. Re:Why are there blobs? by QuantumG · · Score: 2, Informative

    If you make the customer load up the bits, you don't have to do it in the factory.

    If the manufacturers could figure out a way to make the software build the card at install time and still manage to milk the customer of money, they'd do it.

    --
    How we know is more important than what we know.
  13. Re:Well, this should brighten up Theo's day... by QuantumG · · Score: 3, Insightful

    1. If you remove someone else's name and add your own, that's plagiarism, not theft.
    2. If you remove someone else's license, and the license doesn't give you permission to do that, that's copyright infringement, not theft.
    3. If you add a new license and list yourself as an author, and the old license didn't give you permission to do that, that's copyright infringement, not theft.
    4. If you don't enforce your copyright, that's nothing. Copyright gives you the right to sue, if you punt, that's your choice, stop moaning.

    --
    How we know is more important than what we know.
  14. UK does have software patents by Cato · · Score: 2, Insightful

    I really wish people would stop repeating this myth that the UK (and Europe) are free of software patents. There many, many software patents here - you just have to write the patent in a certain way that gets around the very weak restrictions. See http://eupat.ffii.org/patents/samples/index.en.html for sample of these patents with summaries, from an anti-patent group.

    1. Re:UK does have software patents by LingNoi · · Score: 2, Informative

      I didn't say Europe I said the UK.

      because you didn't read it the first time..

      In the UK this stuff is patent free because there are no software patents in England.

      I can't believe you were modded up. What stupid mods.

  15. Re:Why are there blobs? by Tubal-Cain · · Score: 2, Informative

    RAM must be cheaper than ROM. Easier to upgrade the firmware, too.

  16. Re:Why are there blobs? by TheRaven64 · · Score: 3, Informative

    You are confusing blobs with firmware. Firmware is software run by the hardware's processor. It used to be stored in ROM, but ROM is expensive, and if the host has a lot of RAM (which any computer does in comparison to a WiFi card) it's cheaper to just give some of the RAM to the device and let it use that instead. This also has the advantage that it's easier to fix bugs in the firmware - just download a new version, rather than replacing the chip (some old cards had the ROM in a socket for doing this, but it was quite rare for anyone to actually do it).

    This is not firmware, however, it is a blob. The kernel module originally just took commands from a userspace driver and passed them over the bus, much like the DRI modules. Unlike the DRI driver, the HAL was binary-only. It was originally claimed that this was required by the FCC, since with the source code anyone could modify the driver to push the card out of regulatory compliance. It was a far from satisfactory solution, however, since it meant that no one could fix the blob, and it was limited to x86-only.

    --
    I am TheRaven on Soylent News
  17. Re:Well, this should brighten up Theo's day... by the_B0fh · · Score: 2, Informative

    Very good. You can go take the bar exam. Meanwhile, in the real world, English is my fourth language. I'm a simple man using simple words.

    So, just to double check with you - do you support or do you not support what the madwifi fuckers did with Reyk's code - specifically the reverse engineered bits?

  18. legacy HAL by yupa · · Score: 2, Informative

    Note that atheros already release a "legacy" HAL 2 months ago : http://marc.info/?l=linux-wireless&m=122246623707038&w=2

  19. Re:Well, this should brighten up Theo's day... by the_B0fh · · Score: 2, Interesting

    Since Mr. Reyk hasn't filed suit, it's totally academic what the 'madwifi fuckers' did or did not do.

    For someone who make such strong claims on being intellectually correct, this is an interesting position to take. So, in your world, as long as no suit is filed, any action taken is just "totally academic"?

    If you have an axe to grind, take it up with them.

    I don't really have an axe to grind. It's just two people in the madwifi group that did that "totally academic" but unethical thing. And have not apologized for it.

    If, alternately, you have a thoughtful and reasoned criticism (and preferably some strong evidence for your allegations), please share it.

    Umm... you did not manage to follow the original link that I had originally responded to? Would you like a signed and sealed piece of paper? Go read the link again - note that Theo was talking about the OpenHAL code. http://kerneltrap.org/mailarchive/openbsd-misc/2007/9/13/259448/thread

    If you want to look for evidence, you can find it yourself. OpenBSD's CVS is open. I'm sure madwifi's repository is available too. Look at code check in dates. Make up your own mind. *big hint* OpenBSD's OpenHAL is dated a year earlier, according to 3rd party reports. Please do not let this *big hint* color your perception or conclusion. KTHXHAND

  20. Yippee!! Will KisMAC finally work on MacBooks? by wintermute1974 · · Score: 3, Interesting

    I really hope the programmers behind KisMAC are reading this thread.

    We MacBook users are really hoping that we can run injections and other advanced features using our built-in network cards now. Until now, all our packets were trash and we couldn't work out the SSID.

    Sad days they have been, but now we have reason to be optimistic!