<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sérgio&#039;s Notebook &#187; Hardware</title>
	<atom:link href="http://www.smachado.com/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smachado.com</link>
	<description>Notes about programming, scripting and configuration...</description>
	<lastBuildDate>Sat, 14 Jan 2012 22:08:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to make Ralink rt2870 driver work on Ubuntu 10.10</title>
		<link>http://www.smachado.com/2010/11/how-to-make-ralink-rt2870-driver-work-on-ubuntu-10-10/</link>
		<comments>http://www.smachado.com/2010/11/how-to-make-ralink-rt2870-driver-work-on-ubuntu-10-10/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 19:37:06 +0000</pubDate>
		<dc:creator>smachado</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.smachado.com/?p=176</guid>
		<description><![CDATA[This works with Ubuntu 10.10 and a usb wifi adapter with the Ralink rt2870 chipset. The driver released with Ubuntu kernel 2.6.35-22-generic is version 2.1.0.0 and doesn&#8217;t work&#8230; I downloaded version 2.4.0.1 from Ralink web site and compiled it the following way. cd /usr/src tar xvfj /tmp/2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 cd 2010_0709_RT2870_Linux_STA_v2.4.0.1/ sed -i.bak "s/HAS_WPA_SUPPLICANT=n/HAS_WPA_SUPPLICANT=y/" os/linux/config.mk sed -i.bak [...]]]></description>
			<content:encoded><![CDATA[<p>This works with Ubuntu 10.10 and a usb wifi adapter with the Ralink rt2870 chipset.</p>
<p>The driver released with Ubuntu kernel 2.6.35-22-generic is version 2.1.0.0 and doesn&#8217;t work&#8230;</p>
<p>I downloaded version 2.4.0.1 from Ralink web site and compiled it the following way.</p>
<pre escaped="true" lang="bash" line="1">
cd /usr/src
tar xvfj /tmp/2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2
cd 2010_0709_RT2870_Linux_STA_v2.4.0.1/
sed -i.bak "s/HAS_WPA_SUPPLICANT=n/HAS_WPA_SUPPLICANT=y/" os/linux/config.mk
sed -i.bak "s/HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n/HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y/" os/linux/config.mk</pre>
<p>Changed file include/os/rt_linux.h line 1077 to:</p>
<pre escaped="true" lang="c" line="0">
#define RTUSB_URB_ALLOC_BUFFER(pUsb_Dev, BufSize, pDma_addr) usb_alloc_coherent(pUsb_Dev, BufSize, GFP_ATOMIC, pDma_addr)</pre>
<p>And line 1078 to:</p>
<pre escaped="true" lang="c" line="0">
#define RTUSB_URB_FREE_BUFFER(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)        usb_free_coherent(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)
</pre>
<p>Then compiled it:</p>
<pre escaped="true" lang="bash" line="0">
make</pre>
<p>Removed the Ubuntu released driver out of the way:</p>
<pre escaped="true" lang="bash" line="0">
mv /lib/modules/`uname -r`/kernel/drivers/staging/rt2870 ~/.rt2870.bak
</pre>
<p>And installed the new one:</p>
<pre escaped="true" lang="bash" line="0">
make install</pre>
<p>Also removed the rt2800 module out of the way:</p>
<pre escaped="true" lang="bash" line="0">
echo 'blacklist rt2800usb' >> /etc/modprobe.d/blacklist.conf</pre>
<p>And rebooted my pc.</p>
<p>After the system booted up the new driver was loaded:</p>
<pre escaped="true" lang="bash" line="1">
# modinfo rt2870sta | grep -i version
version: 2.4.0.0
srcversion: 5598BFE60F8B720D8D64062
vermagic: 2.6.35-22-generic SMP mod_unload modversions 686
</pre>
<p>Also I could connect to my wireless network at 130Mb/s (from the output of nm-tool).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smachado.com/2010/11/how-to-make-ralink-rt2870-driver-work-on-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>No link light while connecting to network</title>
		<link>http://www.smachado.com/2009/09/no-link-light-while-connecting-to-network/</link>
		<comments>http://www.smachado.com/2009/09/no-link-light-while-connecting-to-network/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 21:57:31 +0000</pubDate>
		<dc:creator>smachado</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.smachado.com/?p=115</guid>
		<description><![CDATA[I got a new laptop to work with and noticed that if I plugged a network cable into it to connect to certain networks sometimes it worked sometimes it didn&#8217;t &#8211; I couldn&#8217;t even see a link light at the socket. I thought this would be a driver issue of the laptop so I was [...]]]></description>
			<content:encoded><![CDATA[<p>I got a new laptop to work with and noticed that if I plugged a network cable into it to connect to certain networks sometimes it worked sometimes it didn&#8217;t &#8211; I couldn&#8217;t even see a link light at the socket.</p>
<p>I thought this would be a driver issue of the laptop so I was ready to find a new driver for this network card.</p>
<p>So I opened Control Panel and System Properties. Then I clicked the Hardware tab and opened Device Manager.</p>
<p>At Device Manager I expanded Network Adapters tab and selected the ethernet controller of my laptop. I right clicked it and opened the properties window. My initial purpose was to find the driver version but I started looking at the settings.</p>
<p>So I selected the Advanced tab and eventually Speed &amp; Duplex. Wait.. why is it set to 100 Mb Full? Hummm&#8230;. let me change that to Auto. Bingo&#8230; After applying the change I got a 1.0Gbs connection&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smachado.com/2009/09/no-link-light-while-connecting-to-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 4.2 and nforce drivers (forcedeth issue)</title>
		<link>http://www.smachado.com/2008/12/centos-42-and-nforce-drivers-forcedeth-issue/</link>
		<comments>http://www.smachado.com/2008/12/centos-42-and-nforce-drivers-forcedeth-issue/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 13:23:11 +0000</pubDate>
		<dc:creator>Sergio</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.smachado.com/?p=11</guid>
		<description><![CDATA[Today I had to install CentOS 64 bit on a desktop built on an ASUS P5N32-E SLI motherboard. This motherboard features a nForce 680i SLI chipset and other fancy stuff that are likely to cause trouble to Linux distributions, specially old versions. I decided to go for CentOS 4.2 just because I had it available [...]]]></description>
			<content:encoded><![CDATA[<p>Today I had to install CentOS 64 bit on a desktop built on an <a title="ASUS P5N32-E SLI motherboard" href="http://www.asus.com/products.aspx?modelmenu=1&amp;model=1459&amp;l1=3&amp;l2=11&amp;l3=397" target="_blank">ASUS P5N32-E SLI motherboard</a>. This motherboard features a nForce 680i SLI chipset and other fancy stuff that are likely to cause trouble to Linux distributions, specially old versions.</p>
<p>I decided to go for CentOS 4.2 just because I had it available on a DVD from a magazine, it was 64-bit and as an entreprise distribution it should be stable.</p>
<p>Installation was straightforward although I had to specify the drivers to use for hard disk (sata_nv) just before it started.</p>
<p>Upon login into my new installation I noticed I didn&#8217;t had any ethernet interfaces configured. This motherboard has two gigabit ethernet interfaces. They should use forcedeth driver from nvidia but they&#8217;re not working. Loading forcedeth manually didn&#8217;t do it . Also using options msi=0 msix=0 also didn&#8217;t do it.</p>
<p>So I decided to download the most recent kernel package for CentOS 4 which is kernel-smp-2.6.9-78.0.8.EL.x86_64.rpm. I downloaded from another computer to an usb stick and copied over to my CentOS 4 host. Then as root I executed the command: <em>rpm -i  kernel-smp-2.6.9-78.0.8.EL.x86_64.rpm</em> and rebooted.</p>
<p>After booting using the new kernel the system was able to find my ethernet devices. Aditionally it also found my onboard sound card.</p>
<p>After configuring them I was able to get network on my new system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smachado.com/2008/12/centos-42-and-nforce-drivers-forcedeth-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

