{"id":4,"date":"2004-11-20T22:37:22","date_gmt":"2004-11-21T06:37:22","guid":{"rendered":"http:\/\/hongyu.org\/wordpress\/?p=4"},"modified":"2006-06-11T23:40:05","modified_gmt":"2006-06-12T07:40:05","slug":"compile-wireless-driver-for-linux","status":"publish","type":"post","link":"https:\/\/www.hongyu.org\/wordpress\/?p=4","title":{"rendered":"Compile wireless driver for Fedora"},"content":{"rendered":"<p>After moving to a new home, I got a wireless router\/modem combo with super-G capability from Verizon. So I bought a new wireless Super-G PCI card from Planet for my Dell poweredge 400SC server. The latest Fedora core 3 that I installed on this server, however, didn&#8217;t even pick up the card. I had to do some search on Google, and did find some posts of using Madwifi. It was mentioned on http:\/\/madwifi.net site that one need to go through a series of steps to install the madwifi driver including installing the kernel source if it&#8217;s not available on the server. Even though I did try compiling a new kernel (2.6.10-rc2), in the end, however, I found that probably I only need to install Madwifi on Fedora 3 and there is no need to do anything related to the kernel, because it doesn&#8217;t seem to matter which kernel I used once I installed the Madwifi. <\/p>\n<p>According to the Howto on http:\/\/madwifi.net, I have to download the madwifi file. I went to http:\/\/www.madwifi.net\/Install-HOWTO\/Drivers\/madwifi\/1.SourceForge.Madwifi.Drivers\/<br \/>\n(Note: The new link is now at http:\/\/www.madwifi.net\/Downloads\/1.SourceForge.Madwifi.Drivers\/ on July 4th, 2005) and picked a latest version of 11\/20\/2004 (http:\/\/www.madwifi.net\/Install-HOWTO\/Drivers\/madwifi\/1.SourceForge.Madwifi.Drivers\/madwifi-20041120.tgz). When I tried to compile it using &#8220;make&#8221;, it, however, complained that there is no program &#8220;uudecode&#8221; in my system. Anyway, I had to go to a mirror site of Redhat to download the RPM file sharutils-4.2.1-22.i386.rpm, which contains the uudecode program. The path of the file is \/pub\/distributions\/fedora\/linux\/core\/3\/i386\/os\/Fedora\/RPMS\/. <\/p>\n<p>$ cd madwifi-20041120<br \/>\n$ make<br \/>\n$ make install<\/p>\n<p>After installing the driver, I rebooted the machine. I was happy to see that the Kuzu indeed picked up the wireless card. The machine hung there for a couple of minutes to set up this card before giving up. After returning to KDE desktop, I click &#8220;System Settings&#8221; -> &#8220;Network&#8221;, and found that my wireless card was listed as ath0 along with the ethernet card eth0. I double clicked this card and entered a configuration menu for this card. On the menu, I found a &#8220;Wireless Setting&#8221;, from which, I could set up the SSID, channel and password etc. After that, I clicked &#8220;Activate&#8221; for the card, and bing-go, the card comes out successfully \ud83d\ude42 (Note: in the new Fedora 4, I have to click menu New-> Wireless connection -> Forward, and then configure the card).<\/p>\n<p>BTW, I wrote down the kernel compiling step below anyway because it did cost me most of the time, although maybe for nothing.<\/p>\n<p>First, I go to http:\/\/www.kernel.org to download the latest stable Linux kernel, which is 2.6.9. But I got an error related to a SCSI driver while compiling it, like &#8220;drivers\/scsi\/qla2xxx\/qla_os.c compile failed &#8230;&#8221;<\/p>\n<p>I can&#8217;t believe why it was called a stable release even it failed in a simple compilation on the latest redhat platform \ud83d\ude41 Anyway, I had to download the new kernel patch again from kernel.org, and apply the patch.<\/p>\n<p>$ cd linux-2.6.9<br \/>\n$ patch -p1 < ..\/patch-2.6.10-rc2\n$ make menuconfig\n$ make\n$ mv bzImage \/boot\/vmlinuz-2.6.10-rc2\n$ mv System.map \/boot\/System.map-2.6.10-rc2\n$ vi \/boot\/grub\/grub.conf\nand add the following lines\n\ntitle Linux 2.6.10-rc2\n        root (hd0,0)\n        kernel \/boot\/vmlinuz-2.6.10-rc2 ro root=LABEL=\/ rhgb quiet\n\nAfter rebooting, it looks like grub has difficulty reckening the file system, I might need to generate and add the initrd settings.\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After moving to a new home, I got a wireless router\/modem combo with super-G capability from Verizon. So I bought a new wireless Super-G PCI card from Planet for my Dell poweredge 400SC server. The latest Fedora core 3 that I installed on this server, however, didn&#8217;t even pick up the card. I had to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.hongyu.org\/wordpress\/?p=4\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Compile wireless driver for Fedora&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4"}],"collection":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4"}],"version-history":[{"count":0,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}