{"id":778,"date":"2008-08-02T23:48:03","date_gmt":"2008-08-02T22:48:03","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/778-fixing-wi-fi-on-asus-eee-pc-901-with-linux.html"},"modified":"2008-08-02T23:48:03","modified_gmt":"2008-08-02T22:48:03","slug":"fixing-wi-fi-on-asus-eee-pc-901-with-linux","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/778-fixing-wi-fi-on-asus-eee-pc-901-with-linux.html","title":{"rendered":"Fixing wi-fi on Asus Eee PC 901 with Linux"},"content":{"rendered":"<p>I mentioned <a href=\"http:\/\/www.itwriting.com\/blog\/770-eee-901-problems-does-asus-still-care-about-linux.html\">my annoyance<\/a> that wi-fi with WPA encryption did not work on the Asus 901 Eee PC with Linux which I am reviewing. I later found that even a WEP connection, while it worked a bit, tended to drop out after few minutes. Worse still, the Asus repositories are messed up so getting updates is tricky.<\/p>\n<p>I\u2019ve managed to fix it. For the record, here\u2019s what I did; though I can\u2019t promise it will work for you; try it at your own risk. I should think there will be an easier way to install an updated driver soon.<\/p>\n<p>One of the irritations about the repository problem is that attempted updates fill up your \/dev\/sda1. I wanted as much space as possible (without removing the recovery partition) so I reset the system with F9 on boot. Then I went into \/etc\/apt\/sources.list and removed the default repositories, replacing them with these two:<\/p>\n<blockquote><p>deb http:\/\/xnv4.xandros.com\/xs2.0\/upkg-srv2 etch main contrib non-free<\/p>\n<p>deb http:\/\/download.tuxfamily.org\/eeepcrepos\/ p701 main<\/p><\/blockquote>\n<p>(This is probably not a good arrangement long-term; but having the Asus repositories enabled right now makes it hard to install anything).<\/p>\n<p>Then I did:<\/p>\n<blockquote><p>apt-get update<\/p>\n<p>apt-get install build-essential<\/p><\/blockquote>\n<p>I also installed ksmserver and kicker to get access to the full desktop; but this wasn\u2019t needed to get wi-fi working.<\/p>\n<p>Next, I downloaded the latest driver source for the 901\u2019s Ralink wi-fi card:<\/p>\n<p><a title=\"http:\/\/www.ralinktech.com.tw\/data\/drivers\/2008_0708_RT2860_Linux_STA_v1.7.0.0.tar.bz2\" href=\"http:\/\/www.ralinktech.com.tw\/data\/drivers\/2008_0708_RT2860_Linux_STA_v1.7.0.0.tar.bz2\">http:\/\/www.ralinktech.com.tw\/data\/drivers\/2008_0708_RT2860_Linux_STA_v1.7.0.0.tar.bz2<\/a> (Update: don\u2019t use this code &#8211; see Update 3 below).<\/p>\n<p>Extracted it; then edited \/os\/linux\/config.mk and changed:<\/p>\n<p>HAS_WPA_SUPPLICANT=y<\/p>\n<p>HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y \u2013 but see update 2 and update 3 below for the problems this caused.<\/p>\n<p>I also removed \u2013DDBG from WFLAGS<\/p>\n<p>WFLAGS += \u2013DCONFIG_STA_SUPPORT<\/p>\n<p>In order to compile you need the kernel source. I adapted the <a href=\"http:\/\/wiki.eeeuser.com\/howto:install_synce_usb_rndis_lite_drivers\">instructions here<\/a>. In essence, download the source from <a href=\"http:\/\/dlsvr01.asus.com\/pub\/ASUS\/EeePC\/701\/Linux_Kernel_071127.rar\">http:\/\/dlsvr01.asus.com\/pub\/ASUS\/EeePC\/701\/Linux_Kernel_071127.rar<\/a>, extract, install the deb, unpack the source in \/usr\/src, delete the .bz2 to save space, build the kernel with:<\/p>\n<blockquote><p>make oldconfig<\/p>\n<p>make<\/p><\/blockquote>\n<p>(don\u2019t actually install it), then create the following symbolic link:<\/p>\n<p>ln -s \/usr\/src\/linux-source-2.6.21.4-eeepc \/lib\/modules\/2.6.21.4-eeepc\/build<\/p>\n<p>Now I was able to compile and install the ralink driver by switching to the RT2860 directory and typing:<\/p>\n<blockquote><p>make<\/p>\n<p>make install<\/p><\/blockquote>\n<p>Wi-fi now worked with WPA; at least, it did on my second attempt after disabling native WPA supplicant support. I\u2019ve also found it perfectly stable so far \u2013 much better.<\/p>\n<p><img decoding=\"async\" title=\"Active wi-fi connection with WPA; a few numbers changed to reassure the paranoid\" src=\"http:\/\/www.itwriting.com\/images\/wpa_eee.gif\" alt=\"Active wi-fi connection with WPA; a few numbers changed to reassure the paranoid\" \/><\/p>\n<p>I\u2019m happy now, but&#8230; what is Asus thinking?<\/p>\n<p>I doubt the Eee brand would have ever taken off, except that the first 7xx releases made excellent use of Linux and open source applications to win people over; you did not even need to know that it was Linux.<\/p>\n<p>Now we get this; the support for the 901 is dire; updates don\u2019t work, the wi-fi doesn\u2019t work properly, and the only fix I\u2019ve found is a hack. Wi-fi is critical for a gadget like this, which is not much use without an Internet connection.<\/p>\n<p>Together with short supply of the Linux version, this does suggest that Asus is keen to favour the Windows XP variant.<\/p>\n<p><strong>Update<\/strong>: I\u2019ve made the binary (rt2860sta.ko) available for download <a href=\"http:\/\/www.itwriting.com\/rt2860sta.tgz\">here<\/a>. Download includes RT2860STA.dat which goes in \/etc\/Wireless\/RT2860STA. I guess we need an install script; I\u2019ll have a go when I get a moment.<\/p>\n<p><strong>Update 2<\/strong>: Unfortunately I\u2019m not quite there yet. If I compile with HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y then WEP works but WPA does not. If I compile with HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n then WPA works but (I now discover) WEP does not. Weird. I\u2019m going to seek advice. If anyone wants the binary that works great with WEP but not WPA, let me know.<\/p>\n<p><strong>Update 3<\/strong>: Thanks to Ralink tech support I now have a fully working driver. I\u2019ve updated the download above. The <a href=\"http:\/\/www.itwriting.com\/DPO_RT28xx_60_LinuxSTA_V1.7.0.0_2008_07_15.tgz\">new code<\/a> defines EEEPC_SPECIAL_SETTING and has some edits in common\/mlme.c. It now works OK with HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y. Interesting point: the code is dated 15th July; which suggests that the problem was both known and fixed 2 and half weeks ago; it\u2019s a shame nobody shared this with the community.<\/p>\n<p><strong>Update 4<\/strong>: I suggest you delete the old copy of rt2860sta.ko in \/lib\/modules\/2.6.21.4-eeepc\/rt2860 (if it exists).<\/p>\n<p>PS: I&#8217;ve posted instructions for the binary install, with download links, <a href=\"http:\/\/www.itwriting.com\/blog\/778-fixing-wi-fi-on-asus-eee-pc-901-with-linux.html#comment-105357\" target=\"_self\">here<\/a>.<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:955071e1-97a0-4004-a5b8-40271de57d6d\" class=\"wlWriterSmartContent\" style=\"padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Technorati tags: <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/asus+eee+pc\">asus eee pc<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/eee+901+linux\">eee 901 linux<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/ralink\">ralink<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I mentioned my annoyance that wi-fi with WPA encryption did not work on the Asus 901 Eee PC with Linux which I am reviewing. I later found that even a WEP connection, while it worked a bit, tended to drop out after few minutes. Worse still, the Asus repositories are messed up so getting updates &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/778-fixing-wi-fi-on-asus-eee-pc-901-with-linux.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fixing wi-fi on Asus Eee PC 901 with Linux<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52,62],"tags":[],"class_list":["post-778","post","type-post","status-publish","format-standard","hentry","category-linux","category-open-source"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=778"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/778\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}