{"id":541,"date":"2009-11-13T18:51:38","date_gmt":"2009-11-13T09:51:38","guid":{"rendered":"http:\/\/www.joewein.net\/blog\/?p=541"},"modified":"2009-11-13T18:51:38","modified_gmt":"2009-11-13T09:51:38","slug":"marvell-mc85-with-ndiswrapper-on-ubuntu-9-10","status":"publish","type":"post","link":"https:\/\/joewein.net\/blog\/2009\/11\/13\/marvell-mc85-with-ndiswrapper-on-ubuntu-9-10\/","title":{"rendered":"Marvell MC85 with NdisWrapper on Ubuntu 9.10"},"content":{"rendered":"<p>Last week I updated my Gateway M-6750 from Ubuntu 9.04 to Ubuntu 9.10 (&#8220;Karmic Koala&#8221;) and managed to get myself into a right mess, as I lost access to both my wired and wireless internet connections.  I then burnt an Ubuntu 9.10 live CD from an ISO image dowloaded with uTorrent and reinstalled from there. That got the wired connection working, but the wireless was still gone. Before I fixed that problem <a href=\"\/blog\/2009\/11\/12\/backing-up-migrating-your-hard-disk-data-ubuntu-live-cd\/\">I upgraded my notebook hard disk drive<\/a>, complete with dual-boot Vista and Ubuntu partitions, to a new 500 GB drive (<a href=\"\/blog\/2009\/11\/12\/backing-up-migrating-your-hard-disk-data-ubuntu-live-cd\/\">see yesterday&#8217;s blog post<\/a>).<\/p>\n<p>The Marvell MC85 doesn&#8217;t have a native Ubuntu driver yet. Therefore you have to use a Windows XP driver for it <a href=\"http:\/\/www.joewein.net\/blog\/2008\/03\/10\/first-impressions-of-vista-and-ubuntu\/\">as described here<\/a>. You can download the Netgear wn311t_setup_4_1.exe driver set and extract its content on either XP or Wine. You&#8217;ll end up with NetMW14x.inf, netmw143.sys and netmw145.sys. Only NetMW14x.inf and netmw145.sys are actually needed.<\/p>\n<p>See <a href=\"http:\/\/www.joewein.net\/blog\/2008\/03\/10\/first-impressions-of-vista-and-ubuntu\/\">my instructions<\/a> in my earlier blog post for the initial steps (look for a section labeled &#8220;Update, 2008-03-18&#8221;).<\/p>\n<p>Installing the driver with ndiswrapper does almost everything. The magic ingredient that was missing when I tried to get it working this time was to ensure that ndiswrapper loads every time, before using the Network Manager or when booting up. Without ndiswrapper the Windows driver won&#8217;t be loaded and Ubuntu simply won&#8217;t see the wireless adapter. It will show up as unclaimed on this command:<\/p>\n<p><code>lshw -C network<\/code><\/p>\n<blockquote><p>  *-network UNCLAIMED<br \/>\n       description: Ethernet controller<br \/>\n       product: Marvell Technology Group Ltd.<br \/>\n       vendor: Marvell Technology Group Ltd.<br \/>\n       physical id: 0<br \/>\n       bus info: pci@0000:02:00.0<br \/>\n       version: 03<br \/>\n       width: 32 bits<br \/>\n       clock: 33MHz<br \/>\n       capabilities: pm msi pciexpress bus_master cap_list<br \/>\n       configuration: latency=0<br \/>\n       resources: memory:f6000000-f600ffff memory:f4000000-f400ffff<br \/>\n  *-network<br \/>\n       description: Ethernet interface<br \/>\n       product: RTL8101E\/RTL8102E PCI Express Fast Ethernet controller<br \/>\n       vendor: Realtek Semiconductor Co., Ltd.<br \/>\n       physical id: 0<br \/>\n       bus info: pci@0000:06:00.0<br \/>\n       logical name: eth0<br \/>\n       version: 01<br \/>\n       serial: 00:e0:b8:XX:XX:XX<br \/>\n       size: 10MB\/s<br \/>\n       capacity: 100MB\/s<br \/>\n       width: 64 bits<br \/>\n       clock: 33MHz<br \/>\n       capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation<br \/>\n       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=0 link=no multicast=yes port=MII speed=10MB\/s<br \/>\n       resources: irq:28 ioport:4000(size=256) memory:fa200000-fa200fff memory:c0000000-c001ffff(prefetchable)\n<\/p><\/blockquote>\n<p>Ubuntu uses file  <code>\/etc\/modules<\/code> to enumerate extra drivers and kernel modules that need to be loaded at boot time. Therefore I needed to add a line in \/etc\/modules using gedit:<\/p>\n<blockquote><p>gksudo gedit \/etc\/modules<\/p><\/blockquote>\n<p>Add <\/p>\n<blockquote><p>ndiswrapper<\/p><\/blockquote>\n<p>in a line of its own at the bottom of the file and save it, then restart your machine. After the reboot you should be able to use the Network Manager to manage wireless connections, including looking for available networks and configuring security parameters (for WPA, WPA2 \/ RSN) to be able to connect.<\/p>\n<p>I found many other threads and blog postings that discussed manually editing configuration files and configuring wpa_supplicant, but none of that is required if you just configure Ndiswrapper for NetMW14x.inf, tell NDiswrapper about the device ID and then ensure that Ndiswrapper is always laoded. Here is the <code>lshw<\/code> output with Ndiswrapper having claimed the wireless adapter:<\/p>\n<blockquote><p>  *-network<br \/>\n       description: Wireless interface<br \/>\n       product: Marvell Technology Group Ltd.<br \/>\n       vendor: Marvell Technology Group Ltd.<br \/>\n       physical id: 0<br \/>\n       bus info: pci@0000:02:00.0<br \/>\n       logical name: wlan0<br \/>\n       version: 03<br \/>\n       serial: 00:16:44:XX:XX:XX<br \/>\n       width: 32 bits<br \/>\n       clock: 33MHz<br \/>\n       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless<br \/>\n       configuration: broadcast=yes driver=ndiswrapper+netmw14x driverversion=1.55+NETGEAR,10\/04\/2006, 2.1.4.3 ip=192.168.42.122 latency=0 link=yes multicast=yes wireless=IEEE 802.11g<br \/>\n       resources: irq:16 memory:f6000000-f600ffff memory:f4000000-f400ffff<br \/>\n  *-network<br \/>\n       description: Ethernet interface<br \/>\n       product: RTL8101E\/RTL8102E PCI Express Fast Ethernet controller<br \/>\n       vendor: Realtek Semiconductor Co., Ltd.<br \/>\n       physical id: 0<br \/>\n       bus info: pci@0000:06:00.0<br \/>\n       logical name: eth0<br \/>\n       version: 01<br \/>\n       serial: 00:e0:b8:XX:XX:XX<br \/>\n       size: 10MB\/s<br \/>\n       capacity: 100MB\/s<br \/>\n       width: 64 bits<br \/>\n       clock: 33MHz<br \/>\n       capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation<br \/>\n       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=0 link=no multicast=yes port=MII speed=10MB\/s<br \/>\n       resources: irq:28 ioport:4000(size=256) memory:fa200000-fa200fff memory:c0000000-c001ffff(prefetchable)\n<\/p><\/blockquote>\n<p>Notice the <code>driver=ndiswrapper+netmw14x<\/code> after <code>configuration:<\/code>. If you get that you should be in business! \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week I updated my Gateway M-6750 from Ubuntu 9.04 to Ubuntu 9.10 (&#8220;Karmic Koala&#8221;) and managed to get myself into a right mess, as I lost access to both my wired and wireless internet connections. I then burnt an &hellip; <a href=\"https:\/\/joewein.net\/blog\/2009\/11\/13\/marvell-mc85-with-ndiswrapper-on-ubuntu-9-10\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7,16,14,23],"tags":[],"class_list":["post-541","post","type-post","status-publish","format-standard","hentry","category-computers","category-electronics","category-linux","category-software","category-windows-xp"],"_links":{"self":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts\/541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/comments?post=541"}],"version-history":[{"count":5,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts\/541\/revisions"}],"predecessor-version":[{"id":546,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts\/541\/revisions\/546"}],"wp:attachment":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/media?parent=541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/categories?post=541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/tags?post=541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}