{"id":288,"date":"2006-08-26T19:30:59","date_gmt":"2006-08-26T19:30:59","guid":{"rendered":""},"modified":"2006-11-03T04:01:55","modified_gmt":"2006-11-03T04:01:55","slug":"macbook-wireless-on-linux","status":"publish","type":"post","link":"https:\/\/znark.com\/blog\/2006\/08\/macbook-wireless-on-linux\/","title":{"rendered":"MacBook Wireless on Linux"},"content":{"rendered":"<p>I got the wireless working on my MacBook under Fedora rawhide.  The MacBook includes an Atheros chipset which needs the [madwifi](http:\/\/madwifi.org) driver.  The madwifi driver can&#8217;t be included in the base kernel or distribution because it includes a binary HAL which isn&#8217;t open-source.<\/p>\n<p>Unfortunately, the madwifi driver did not compile cleanly on the Fedora development kernel.  First, the Fedora kernels are currently 2.6.18-rc4 but they are versioned as 2.6.17. There is code in the driver which detects 2.6.18 but that doesn&#8217;t work with the mislabelled version. Also, madwifi uses the config.h header which was replaced by autoconf.h but is finally deprecated in 2.6.18.  I submitted a [ticket with patch](http:\/\/madwifi.org\/ticket\/845) to get this fixed. <\/p>\n<p>I wanted to install the kernel modules as RPMs instead of from source.  [livna.org](http:\/\/rpm.livna.org) has madwifi packages for FC5.  With some patching, they are suitable for building with the [kmod scheme](http:\/\/fedoraproject.org\/wiki\/Packaging\/KernelModules).  This involves building packages for each kernel release, variant, and architecture.  I only build for the i686 standard variant.  The command line looks like:<\/p>\n<p>    rpmbuild -ba &#8211;target=i686 &#8211;define &#8220;kversion 2.6.17-1.2586.fc6&#8221; &#8211;define &#8216;kvariants &#8220;&#8221;&#8216; madwifi-kmod.spec<\/p>\n<p>I have put the packages I built at [my Fedora package directory](http:\/\/znark.com\/fedora\/). Installing the packages from the rpm command-line can be tricky because multiple versions are installed at once.  Doing an upgrade will remove the version for an old kernel.<br \/>\n Upgrading the module versions requires installing the new version for installed kernels and then removing the old versions.  Yum is supposed to handle this.<\/p>\n<p>Getting the wireless working once the module was installed was a snap. I used NetworkManager and it just worked. It detected the wireless network and switched to it when the Ethernet cable is removed. It prompts for the WPA password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got the wireless working on my MacBook under Fedora rawhide. The MacBook includes an Atheros chipset which needs the [madwifi](http:\/\/madwifi.org) driver. The madwifi driver can&#8217;t be included in the base kernel or distribution because it includes a binary HAL which isn&#8217;t open-source. Unfortunately, the madwifi driver did not compile cleanly on the Fedora development [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62,57,61,51],"tags":[],"class_list":["post-288","post","type-post","status-publish","format-standard","hentry","category-fedora","category-linux","category-ma","category-software"],"_links":{"self":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/posts\/288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/comments?post=288"}],"version-history":[{"count":0,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/posts\/288\/revisions"}],"wp:attachment":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/media?parent=288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/categories?post=288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/tags?post=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}