个人工具

“UbuntuHelp:NetgearWG511AndViaEpiaMIIHowto”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/NetgearWG511AndViaEpiaMIIHowto}} {{Languages|UbuntuHelp:NetgearWG511AndViaEpiaMIIHowto}} '''Note: This is untested and may break your system''' N...)
 
 
(未显示同一用户的1个中间版本)
第2行: 第2行:
 
{{Languages|UbuntuHelp:NetgearWG511AndViaEpiaMIIHowto}}
 
{{Languages|UbuntuHelp:NetgearWG511AndViaEpiaMIIHowto}}
 
'''Note: This is untested and may break your system'''
 
'''Note: This is untested and may break your system'''
 
 
Note: this is a quick fix that I grabbed off the prism54 mailing list, and roughly adapted to ubuntu. It may mess up your other network interfaces, and it may mess up your module configuration. I assume that you know quite a bit about linux, like how to edit files as root and stuff.
 
Note: this is a quick fix that I grabbed off the prism54 mailing list, and roughly adapted to ubuntu. It may mess up your other network interfaces, and it may mess up your module configuration. I assume that you know quite a bit about linux, like how to edit files as root and stuff.
 
 
If you are using a Netgear WG511 pcmcia/cardbus wireless network card, on a Via Epia MII and you are getting errors like the following.
 
If you are using a Netgear WG511 pcmcia/cardbus wireless network card, on a Via Epia MII and you are getting errors like the following.
 
+
<pre><nowiki>
<pre><nowiki>May 17 13:38:16 flute kernel: prism54: probe of 0000:02:00.0 failed with error -5
+
May 17 13:38:16 flute kernel: prism54: probe of 0000:02:00.0 failed with error -5
 
May 17 13:38:17 flute pci.agent[9838]:      prism54: loaded successfully
 
May 17 13:38:17 flute pci.agent[9838]:      prism54: loaded successfully
 
May 17 13:40:49 flute kernel: PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
 
May 17 13:40:49 flute kernel: PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
第13行: 第11行:
 
May 17 13:40:49 flute kernel: PCI: Unable to reserve mem region #1:fffff000@de006000 for device 0000:02:00.0
 
May 17 13:40:49 flute kernel: PCI: Unable to reserve mem region #1:fffff000@de006000 for device 0000:02:00.0
 
May 17 13:40:49 flute kernel: prism54: probe of 0000:02:00.0 failed with error -5</nowiki></pre>
 
May 17 13:40:49 flute kernel: prism54: probe of 0000:02:00.0 failed with error -5</nowiki></pre>
 
 
or
 
or
 
+
<pre><nowiki>
<pre><nowiki>Loaded prism54 driver, version 1.2
+
Loaded prism54 driver, version 1.2
 
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
 
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
 
ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 12 (level, low) -> IRQ 12
 
ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 12 (level, low) -> IRQ 12
 
prism54: PCI device memory region not configured; fix your BIOS or CardBus bridge/drivers
 
prism54: PCI device memory region not configured; fix your BIOS or CardBus bridge/drivers
 
prism54: probe of 0000:02:00.0 failed with error - 5</nowiki></pre>
 
prism54: probe of 0000:02:00.0 failed with error - 5</nowiki></pre>
 
 
then have a read of
 
then have a read of
 
http://prism54.org/pipermail/prism54-devel/2004-October/002051.html
 
http://prism54.org/pipermail/prism54-devel/2004-October/002051.html
 
 
the fix is slightly different for ubuntu, this works for me.
 
the fix is slightly different for ubuntu, this works for me.
 
 
create a file /etc/modprobe.d/netgear (this may not be the correct way to do this, but it seems to work)
 
create a file /etc/modprobe.d/netgear (this may not be the correct way to do this, but it seems to work)
 
 
<pre><nowiki>
 
<pre><nowiki>
 
install yenta-socket { /usr/local/bin/pci-fix && /bin/true; } && /sbin/modprobe --ignore-install yenta-socket
 
install yenta-socket { /usr/local/bin/pci-fix && /bin/true; } && /sbin/modprobe --ignore-install yenta-socket
 
</nowiki></pre>
 
</nowiki></pre>
 
 
then create a file /usr/local/bin/pci-fix
 
then create a file /usr/local/bin/pci-fix
 
+
<pre><nowiki>
<pre><nowiki>#!/bin/sh
+
#!/bin/sh
 
/bin/setpci -s 0a.0 BASE_ADDRESS_3=0xde011000 2>&1 > /dev/null
 
/bin/setpci -s 0a.0 BASE_ADDRESS_3=0xde011000 2>&1 > /dev/null
 
/bin/setpci -s 0a.0 BASE_ADDRESS_4=0xde015000 2>&1 > /dev/null
 
/bin/setpci -s 0a.0 BASE_ADDRESS_4=0xde015000 2>&1 > /dev/null
 
/bin/setpci -s 0a.0 BASE_ADDRESS_5=0xde018000 2>&1 > /dev/null</nowiki></pre>
 
/bin/setpci -s 0a.0 BASE_ADDRESS_5=0xde018000 2>&1 > /dev/null</nowiki></pre>
 
 
then
 
then
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo chmod u+x /usr/local/bin/pci-fix
 
sudo chmod u+x /usr/local/bin/pci-fix
 
</nowiki></pre>
 
</nowiki></pre>
 
 
then think happy hopeful thoughts and reboot.
 
then think happy hopeful thoughts and reboot.
 
 
You may need to boot with out the card plugged in, and then plug it in once you are logged in.
 
You may need to boot with out the card plugged in, and then plug it in once you are logged in.
 
 
This seemed to make my card take eth0, where eth0 was the wired ethernet. maybe there is a way to fix this with /etc/network/interfaces ?
 
This seemed to make my card take eth0, where eth0 was the wired ethernet. maybe there is a way to fix this with /etc/network/interfaces ?
 
[[category:CategoryDocumentation]]
 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年5月12日 (二) 18:10的最新版本

Note: This is untested and may break your system Note: this is a quick fix that I grabbed off the prism54 mailing list, and roughly adapted to ubuntu. It may mess up your other network interfaces, and it may mess up your module configuration. I assume that you know quite a bit about linux, like how to edit files as root and stuff. If you are using a Netgear WG511 pcmcia/cardbus wireless network card, on a Via Epia MII and you are getting errors like the following.

May 17 13:38:16 flute kernel: prism54: probe of 0000:02:00.0 failed with error -5
May 17 13:38:17 flute pci.agent[9838]:      prism54: loaded successfully
May 17 13:40:49 flute kernel: PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
May 17 13:40:49 flute kernel: ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 12 (level, low) -> IRQ 12
May 17 13:40:49 flute kernel: PCI: Unable to reserve mem region #1:fffff000@de006000 for device 0000:02:00.0
May 17 13:40:49 flute kernel: prism54: probe of 0000:02:00.0 failed with error -5

or

Loaded prism54 driver, version 1.2
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 12 (level, low) -> IRQ 12
prism54: PCI device memory region not configured; fix your BIOS or CardBus bridge/drivers
prism54: probe of 0000:02:00.0 failed with error - 5

then have a read of http://prism54.org/pipermail/prism54-devel/2004-October/002051.html the fix is slightly different for ubuntu, this works for me. create a file /etc/modprobe.d/netgear (this may not be the correct way to do this, but it seems to work)

install yenta-socket { /usr/local/bin/pci-fix && /bin/true; } && /sbin/modprobe --ignore-install yenta-socket

then create a file /usr/local/bin/pci-fix

#!/bin/sh
/bin/setpci -s 0a.0 BASE_ADDRESS_3=0xde011000 2>&1 > /dev/null
/bin/setpci -s 0a.0 BASE_ADDRESS_4=0xde015000 2>&1 > /dev/null
/bin/setpci -s 0a.0 BASE_ADDRESS_5=0xde018000 2>&1 > /dev/null

then

sudo chmod u+x /usr/local/bin/pci-fix

then think happy hopeful thoughts and reboot. You may need to boot with out the card plugged in, and then plug it in once you are logged in. This seemed to make my card take eth0, where eth0 was the wired ethernet. maybe there is a way to fix this with /etc/network/interfaces ?