Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-22 Thread Jeff Cranmer


-Original Message-
>From: Mick <[EMAIL PROTECTED]>
>Sent: Dec 22, 2007 2:01 PM
>To: gentoo-user@lists.gentoo.org
>Subject: Re: [gentoo-user] realtek 8197 wireless card setup
>
>On Saturday 22 December 2007, Jeff Cranmer wrote:
>> On Saturday 22 December 2007 10:30:45 am Hans-Werner Hilse wrote:
>> > > I think I'm getting closer now.
>> > > I removed the driver from the kernel, and installed ndiswrapper.
>> > > I got the inf driver from a guy from realtek, and used
>> > > ndiswrapper -i drivername.inf  to install it.
>> > >
>> > > Now, when I run
>> > > iwlist wlan0 scanning, I can actually see my access point listed, plus
>> > > lots of other local wireless networks.
>> >
>> > That's good. It actually receives.
>
>Yep, you're half way there.  The radio communication part of the equation 
>seems to be working.
>
>> > > connecting to it is a different matter, however, as the connection
>> > > always appears to time out.  I'm using iwconfig to manually set the
>> > > ESSID, wep key etc. at the moment, and have tried the trick of setting
>> > > the speed manually to 5.5M to avoid timeouts.
>> > >
>> > > When I try to run dhcpcd wlan0 the first time, I get Error, wlan0:
>> > > timed out The second time I try to run it, I get an error because
>> > > dhcpcd is already running.
>
>Try to kill it first (dhcpcd -k) and then re-run it.  I would run with 
>defaults (re. channel, speed, etc.) and perhaps only add a small delay in 
>your /etc/conf.d/net to allow the device to come up:
>
>sleep_scan_wlan0="1"
>
>> > Try the minimal approach first and configure it manually using
>> > ifconfig/route and ping some host on your network (or the AP if it does
>> > IP). If that does not work, there's something wrong with the driver, if
>> > it does, the culprit is dhcpcd (vram USE flag?).
>>
>> Just to clarify, how would I ping a host on my network?  I only have one
>> other PC connected to the router.
>
>You use the LAN IP address of the router/host.  I don't know what options 
>Belkin gives you, can you turn on responses to pings (ICMP packet requests) 
>both on the router and on the other PC?
>
>> If that is not possible, due to wireless router firewall stealthing (I have
>> a rather crash-prone Belkin wireless router at the moment), the next
>> attempt would presumably be to ping the AP.
>> If I have an AP MAC address, 00:15:E9:19:73:F2 (for example), how would I
>> ping this?
>
>You could use arping (net-analyzer/arping) - but that assumes that the router 
>accepts broadcast messages.
>
>> I have checked the dhcpcd install, and the vram USE flag is presently
>> unset. Does this flag need to be set?
>
>Well, it may need to be set depending on your router.  Certain dhcpcd server 
>implementations won't play nicely with the latest stable version of the 
>dhcpcd client and you end up getting time outs and no IP address.  
>Re-emerging with vram USE flag set solves this problem.  Manually setting up 
>an available/suitable static LAN IP address may also work (e.g. ifconfig 
>wlan0 192.168.0.2).
>
>> > Start with WEP, if that works switch to WPA.
>>
>> I've given up on WPA for now.  If I can get WEP to work, I'll be happy at
>> this point, though WPA operation would be the ultimate goal.
>> Is ndiswrapper meant to work with the 2.6.23 kernel?  I don't want to have
>> to step down to an earlier kernel, as that causes problems with changing
>> Xorg configurations, but I could go through the pain of this if it were
>> strictly necessary.
>
>ndiswrapper works fine with this kernel.  I would start with the dhcpcd vram 
>flag to take this time out problem out of the equation and then I would edit 
>the /etc/conf.d/net to set up all necessary parameters instead of having to 
>enter everything via iwconfig at the command line.  This will also minimise 
>the chance of typos at the CLI.  Following a process of elimination I would 
>start with no encryption whatsoever at the router and if it works I would 
>then gradually add WEP and finally WAP.
>
>PS. Assuming you get ndiswrapper going you can retry the in-kernel driver in 
>future versions as it is likely that more and more devices will be added.
>
>HTH.
>-- 
>Regards,
>Mick

I tried recompiling with the vram USE flag set in dhcpcd, but that didn't help.
I then uninstalled ndiswrapper, and installed the modified rtl8187 driver from 
http://www.datanorth.net/~cuervo/blog/2007/09/26/no-more-vista.

SUCCESS!! :-D

Finally, I have a working wireless card.  I've not tried WPA yet, but WEP 
definitely works.  It isn't quite perfect, as knetworkmanager can't recognise 
the connection, and i haven't quite figured out how to implement the required 
startup script to run automatically, but it's up, and only requires a single 
root user command to execute.

Jeff


I think I'll give it a couple of kernels and see if the built-in RTL driver 
improves.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-22 Thread Mick
On Saturday 22 December 2007, Jeff Cranmer wrote:
> On Saturday 22 December 2007 10:30:45 am Hans-Werner Hilse wrote:
> > > I think I'm getting closer now.
> > > I removed the driver from the kernel, and installed ndiswrapper.
> > > I got the inf driver from a guy from realtek, and used
> > > ndiswrapper -i drivername.inf  to install it.
> > >
> > > Now, when I run
> > > iwlist wlan0 scanning, I can actually see my access point listed, plus
> > > lots of other local wireless networks.
> >
> > That's good. It actually receives.

Yep, you're half way there.  The radio communication part of the equation 
seems to be working.

> > > connecting to it is a different matter, however, as the connection
> > > always appears to time out.  I'm using iwconfig to manually set the
> > > ESSID, wep key etc. at the moment, and have tried the trick of setting
> > > the speed manually to 5.5M to avoid timeouts.
> > >
> > > When I try to run dhcpcd wlan0 the first time, I get Error, wlan0:
> > > timed out The second time I try to run it, I get an error because
> > > dhcpcd is already running.

Try to kill it first (dhcpcd -k) and then re-run it.  I would run with 
defaults (re. channel, speed, etc.) and perhaps only add a small delay in 
your /etc/conf.d/net to allow the device to come up:

sleep_scan_wlan0="1"

> > Try the minimal approach first and configure it manually using
> > ifconfig/route and ping some host on your network (or the AP if it does
> > IP). If that does not work, there's something wrong with the driver, if
> > it does, the culprit is dhcpcd (vram USE flag?).
>
> Just to clarify, how would I ping a host on my network?  I only have one
> other PC connected to the router.

You use the LAN IP address of the router/host.  I don't know what options 
Belkin gives you, can you turn on responses to pings (ICMP packet requests) 
both on the router and on the other PC?

> If that is not possible, due to wireless router firewall stealthing (I have
> a rather crash-prone Belkin wireless router at the moment), the next
> attempt would presumably be to ping the AP.
> If I have an AP MAC address, 00:15:E9:19:73:F2 (for example), how would I
> ping this?

You could use arping (net-analyzer/arping) - but that assumes that the router 
accepts broadcast messages.

> I have checked the dhcpcd install, and the vram USE flag is presently
> unset. Does this flag need to be set?

Well, it may need to be set depending on your router.  Certain dhcpcd server 
implementations won't play nicely with the latest stable version of the 
dhcpcd client and you end up getting time outs and no IP address.  
Re-emerging with vram USE flag set solves this problem.  Manually setting up 
an available/suitable static LAN IP address may also work (e.g. ifconfig 
wlan0 192.168.0.2).

> > Start with WEP, if that works switch to WPA.
>
> I've given up on WPA for now.  If I can get WEP to work, I'll be happy at
> this point, though WPA operation would be the ultimate goal.
> Is ndiswrapper meant to work with the 2.6.23 kernel?  I don't want to have
> to step down to an earlier kernel, as that causes problems with changing
> Xorg configurations, but I could go through the pain of this if it were
> strictly necessary.

ndiswrapper works fine with this kernel.  I would start with the dhcpcd vram 
flag to take this time out problem out of the equation and then I would edit 
the /etc/conf.d/net to set up all necessary parameters instead of having to 
enter everything via iwconfig at the command line.  This will also minimise 
the chance of typos at the CLI.  Following a process of elimination I would 
start with no encryption whatsoever at the router and if it works I would 
then gradually add WEP and finally WAP.

PS. Assuming you get ndiswrapper going you can retry the in-kernel driver in 
future versions as it is likely that more and more devices will be added.

HTH.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-22 Thread Jeff Cranmer
On Saturday 22 December 2007 10:30:45 am Hans-Werner Hilse wrote:

> > I think I'm getting closer now.
> > I removed the driver from the kernel, and installed ndiswrapper.
> > I got the inf driver from a guy from realtek, and used
> > ndiswrapper -i drivername.inf  to install it.
> >
> > Now, when I run
> > iwlist wlan0 scanning, I can actually see my access point listed, plus
> > lots of other local wireless networks.
>
> That's good. It actually receives.
>
> > connecting to it is a different matter, however, as the connection always
> > appears to time out.  I'm using iwconfig to manually set the ESSID, wep
> > key etc. at the moment, and have tried the trick of setting the speed
> > manually to 5.5M to avoid timeouts.
> >
> > When I try to run dhcpcd wlan0 the first time, I get Error, wlan0: timed
> > out The second time I try to run it, I get an error because dhcpcd is
> > already running.
>
> Try the minimal approach first and configure it manually using
> ifconfig/route and ping some host on your network (or the AP if it does
> IP). If that does not work, there's something wrong with the driver, if
> it does, the culprit is dhcpcd (vram USE flag?).

Just to clarify, how would I ping a host on my network?  I only have one other 
PC connected to the router.
If that is not possible, due to wireless router firewall stealthing (I have a 
rather crash-prone Belkin wireless router at the moment), the next attempt 
would presumably be to ping the AP.
If I have an AP MAC address, 00:15:E9:19:73:F2 (for example), how would I ping 
this?

I have checked the dhcpcd install, and the vram USE flag is presently unset.
Does this flag need to be set?
>
> Start with WEP, if that works switch to WPA.
>
I've given up on WPA for now.  If I can get WEP to work, I'll be happy at this 
point, though WPA operation would be the ultimate goal.
Is ndiswrapper meant to work with the 2.6.23 kernel?  I don't want to have to 
step down to an earlier kernel, as that causes problems with changing Xorg 
configurations, but I could go through the pain of this if it were strictly 
necessary.

Thanks

Jeff
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-22 Thread Hans-Werner Hilse
Hi,

On Sat, 22 Dec 2007 00:08:26 -0500
Jeff Cranmer <[EMAIL PROTECTED]> wrote:

> I think I'm getting closer now.
> I removed the driver from the kernel, and installed ndiswrapper.
> I got the inf driver from a guy from realtek, and used
> ndiswrapper -i drivername.inf  to install it.
> 
> Now, when I run
> iwlist wlan0 scanning, I can actually see my access point listed, plus lots 
> of 
> other local wireless networks.

That's good. It actually receives.

> connecting to it is a different matter, however, as the connection always 
> appears to time out.  I'm using iwconfig to manually set the ESSID, wep key 
> etc. at the moment, and have tried the trick of setting the speed manually to 
> 5.5M to avoid timeouts.
> 
> When I try to run dhcpcd wlan0 the first time, I get Error, wlan0: timed out
> The second time I try to run it, I get an error because dhcpcd is already 
> running.

Try the minimal approach first and configure it manually using
ifconfig/route and ping some host on your network (or the AP if it does
IP). If that does not work, there's something wrong with the driver, if
it does, the culprit is dhcpcd (vram USE flag?).

Start with WEP, if that works switch to WPA.

-hwh
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-21 Thread Jeff Cranmer
On Friday 21 December 2007 09:21:03 am Hans-Werner Hilse wrote:
> Hi,
>
> On Thu, 20 Dec 2007 18:45:26 -0500 Jeff Cranmer
>
> <[EMAIL PROTECTED]> wrote:
> > > > The card I have is an 8197, not an 8187.  I wonder if this is
> > > > part of the problem.  Could it be that the kernel driver does not
> > > > support the 8197?
> >
> > [...]
> > At the moment, I think the key line in dmesg is .
> > phy0: RF calibration failed! 0
> >
> > If I could figure out what this line meant, and what I could do to
> > fix it, I might be on my way to a potential solution.
>
> Well, although you managed to bring it to a point where at least the
> driver recognized the device, there is still the possibility it won't
> work anyway. My guess here is that the driver does not fully support
> your device. Probably, some back end mechanics is different. WLAN cards
> often consist of separate modules, some of them even being small
> computers running a firmware. I guess at that point your hardware
> differs from what the driver supports.
>
> Did you find indications on the Web that the 8187 driver should work
> for the 8197? Or did you chose to try based on the similarity of the
> two numbers? you might also want to try asking on the driver's mailing
> list.
>
> -hwh

I think I'm getting closer now.
I removed the driver from the kernel, and installed ndiswrapper.
I got the inf driver from a guy from realtek, and used
ndiswrapper -i drivername.inf  to install it.

Now, when I run
iwlist wlan0 scanning, I can actually see my access point listed, plus lots of 
other local wireless networks.

connecting to it is a different matter, however, as the connection always 
appears to time out.  I'm using iwconfig to manually set the ESSID, wep key 
etc. at the moment, and have tried the trick of setting the speed manually to 
5.5M to avoid timeouts.

When I try to run dhcpcd wlan0 the first time, I get Error, wlan0: timed out
The second time I try to run it, I get an error because dhcpcd is already 
running.

Also, when I try running /etc/init.d/net.wlan0 start, I get the error
WEP key is not set for "my_wireless_network_name" - not connecting
followed by similar errors for other nearby wireless networks, then
*   Couldn't associate with any access points on wlan0
*   Failed to configure wireless for wlan0

Damn, this has to be the most frustrating thing I've tried to do on gentoo.
I know I'm close, because the OS can now see the access point.  All I need to 
do is stop it timing out and connect to it :-/

Jeff
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-21 Thread Hans-Werner Hilse
Hi,

On Thu, 20 Dec 2007 18:45:26 -0500 Jeff Cranmer
<[EMAIL PROTECTED]> wrote:

> > > The card I have is an 8197, not an 8187.  I wonder if this is
> > > part of the problem.  Could it be that the kernel driver does not
> > > support the 8197?
> [...]
> At the moment, I think the key line in dmesg is .  
> phy0: RF calibration failed! 0
> 
> If I could figure out what this line meant, and what I could do to
> fix it, I might be on my way to a potential solution.

Well, although you managed to bring it to a point where at least the
driver recognized the device, there is still the possibility it won't
work anyway. My guess here is that the driver does not fully support
your device. Probably, some back end mechanics is different. WLAN cards
often consist of separate modules, some of them even being small
computers running a firmware. I guess at that point your hardware
differs from what the driver supports.

Did you find indications on the Web that the 8187 driver should work
for the 8197? Or did you chose to try based on the similarity of the
two numbers? you might also want to try asking on the driver's mailing
list.

-hwh
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-21 Thread Mick
On Thursday 20 December 2007, Jeff Cranmer wrote:

> iwlist wlan0 scanning returns
> wlan0 Interface does not support scanning : Network is down
>
> iwlist wlan0 accesspoint returns
> wlan0 Interface doesn't have a list of Peers/Access-Points
>
> At the moment, I think the key line in dmesg is .
> phy0: RF calibration failed! 0
>
> If I could figure out what this line meant, and what I could do to fix it,
> I might be on my way to a potential solution.

From memory I was getting these sort of messages when the svn WiFi driver I 
was using was in need of serious development.  I guess that you are trying to 
make an unstable device driver work I'm afraid.  I know that it is in the 
kernel and indeed it could well work fine with some set ups, but yours is 
probably not one of them.  Have you also tried the forums just in case 
someone has managed to make the particular device work with this driver?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-20 Thread Jeff Cranmer
On Thursday 20 December 2007 02:00:36 am Hans-Werner Hilse wrote:
> Hi,
>
> I cannot really go into details, but maybe I'm competent enough to make
> some notes on this:
>
> On Wed, 19 Dec 2007 21:47:55 -0500
>
> Jeff Cranmer <[EMAIL PROTECTED]> wrote:
> > I manually edited the file
> > /usr/src/linux/drivers/net/wireless/rtl8187_dev.c [...]
> > I added the line
> > {USB_DEVICE(0x0bda, 0x8197)},
> > in the /* Realtek */ area of the structure, then ran
> > make clean, then
> > make && make modules_install etc.
> >
> > After rebooting into the modified kernel, I now have iwmaster0 and iwlan0
> > lines showing up when I type iwconfig.
>
> Although that's a good sign, it does not guarantee that the driver
> fully supports your device. However, the kernel log should now have
> changed significantly and the driver might now tell you there if it's
> fully operable. "ifconfig" showing the correct MAC is also a good sign.
>
> As a side note: My suggestion would be to play with the different
> "drivers" of wpa_supplicant. DHCP won't work if there's no correct WPA
> setup anyway.
>
> -hwh

ifconfig only shows the eth0 and lo interfaces, whereas iwconfig shows info on 
the wireless interface, but not the MAC address

The MAC address does appear in the dmesg logs, with the line
phy0: hwaddr ,  rtl8187 V0 + rtl8225

This is followed by
phy0: RF calibration failed! 0
which I think is the key symptom that I need to address in order to move 
forwards.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-20 Thread Jeff Cranmer
On Thursday 20 December 2007 03:40:07 am Mick wrote:
> Hi Jeff,
>
> On Wednesday 19 December 2007, Jeff Cranmer wrote:
> > I have checked, and ndiswrapper and  the rtl8187 package were
> > uninstalled. I think that the problem I have may be more basic.
> >
> > The card I have is an 8197, not an 8187.  I wonder if this is part of the
> > problem.  Could it be that the kernel driver does not support the 8197?
> >
> > The attached weblink suggests that this may be the case:
> > http://www.datanorth.net/~cuervo/blog/2007/09/26/no-more-vista/
> >
> > Does anyone know how I can locate the equivalent code in the kernel and
> > perhaps perform a similar modification?
>
> (can you please stop top-posting, it makes reading of threads difficult in
> this mailing list).
>
> Your device may still be supported by the driver.  The problem may exist
> with the wpa_supplicant.  You could try commenting out the wpa_supplicant
> in your /etc/conf.d/net file and using net-wireless/wireless-tools instead.
> Then try again to see if it a)finds the access point (try iwlist wlan0
> scanning), b)associates with it (try iwlist wlan0 accesspoint) .  Of course
> you will need to remove WPA from the AP.  Should all this succeed you can
> work your way up from there.
>
> PS.  I haven't managed to make wpa_supplicant work with my device rt2570usb
> for more than a year now, but haven't tried recently.

I tried removing any reference to wpa_supplicant.  The 
alternative /etc/conf.d/net configuration that I tried is:

essid_wlan0="mynetworkname"
channel_wlan0=( "2" )   # the channel my wireless card is presently set to
key_home=( "my_hex_WEP_key enc open" )
config_wlan0=( "dhcp" )
dhcpcd_wlan0="-I ''"

iwlist wlan0 scanning returns
wlan0   Interface does not support scanning : Network is down

iwlist wlan0 accesspoint returns
wlan0   Interface doesn't have a list of Peers/Access-Points

At the moment, I think the key line in dmesg is .  
phy0: RF calibration failed! 0

If I could figure out what this line meant, and what I could do to fix it, I 
might be on my way to a potential solution.

Jeff
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-20 Thread Mick
Hi Jeff,

On Wednesday 19 December 2007, Jeff Cranmer wrote:
> I have checked, and ndiswrapper and  the rtl8187 package were uninstalled.
> I think that the problem I have may be more basic.
>
> The card I have is an 8197, not an 8187.  I wonder if this is part of the
> problem.  Could it be that the kernel driver does not support the 8197?
>
> The attached weblink suggests that this may be the case:
> http://www.datanorth.net/~cuervo/blog/2007/09/26/no-more-vista/
>
> Does anyone know how I can locate the equivalent code in the kernel and
> perhaps perform a similar modification?

(can you please stop top-posting, it makes reading of threads difficult in 
this mailing list).

Your device may still be supported by the driver.  The problem may exist with 
the wpa_supplicant.  You could try commenting out the wpa_supplicant in 
your /etc/conf.d/net file and using net-wireless/wireless-tools instead.  
Then try again to see if it a)finds the access point (try iwlist wlan0 
scanning), b)associates with it (try iwlist wlan0 accesspoint) .  Of course 
you will need to remove WPA from the AP.  Should all this succeed you can 
work your way up from there.

PS.  I haven't managed to make wpa_supplicant work with my device rt2570usb 
for more than a year now, but haven't tried recently.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-19 Thread Hans-Werner Hilse
Hi,

I cannot really go into details, but maybe I'm competent enough to make
some notes on this:

On Wed, 19 Dec 2007 21:47:55 -0500
Jeff Cranmer <[EMAIL PROTECTED]> wrote:

> I manually edited the file /usr/src/linux/drivers/net/wireless/rtl8187_dev.c
> [...]
> I added the line
>   {USB_DEVICE(0x0bda, 0x8197)},
> in the /* Realtek */ area of the structure, then ran 
>   make clean, then 
>   make && make modules_install etc.
> 
> After rebooting into the modified kernel, I now have iwmaster0 and iwlan0 
> lines showing up when I type iwconfig.

Although that's a good sign, it does not guarantee that the driver
fully supports your device. However, the kernel log should now have
changed significantly and the driver might now tell you there if it's
fully operable. "ifconfig" showing the correct MAC is also a good sign.

As a side note: My suggestion would be to play with the different
"drivers" of wpa_supplicant. DHCP won't work if there's no correct WPA
setup anyway.

-hwh
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-19 Thread Jeff Cranmer
Final piece of info for the day.

When I ran dhcpcd wlan0, I get
Error, wlan0: timed out
Error, wlan0: lease information file '/var/lib/dhcpcd/dhcpcd-wlan0.info' does 
not exist

Any assistance gratefully received

Jeff


On Wednesday 19 December 2007 09:47:55 pm Jeff Cranmer wrote:
> I made significant progress today.
>
> I manually edited the file
> /usr/src/linux/drivers/net/wireless/rtl8187_dev.c
>
> There is a static structure near the top of the code,
>
> static struct usb_device_id rtl8187_table[] __devinitdata = {
>   /* Realtek */
>   {USB_DEVICE(0x0bda, 0x8187)},
>   /* netgear */
>   {USB_DEVICE(0x0846, 0x6100)},
>   {USB_DEVICE(0x0846, 0x6a00)},
>   {}
> };
>
> I added the line
>   {USB_DEVICE(0x0bda, 0x8197)},
> in the /* Realtek */ area of the structure, then ran
>   make clean, then
>   make && make modules_install etc.
>
> After rebooting into the modified kernel, I now have iwmaster0 and iwlan0
> lines showing up when I type iwconfig.
>
> The applicable lines of iwconfig are
>
> wmaster0  no wireless extensions
>
> wlan0 IEEE 802.11g ESSID="mynetworkESSID"
>   Mode:ManagedFrequency=2.417GHz  Access Point: 
> Not associated
>   Retry min limit 7   RTS thr:off Fragment 
> thr=2346B
>   Encryption key:
>   Link Quality:0  Signal Level:0  Noise 
> Level:0
>   Rx Invalid nwid:0   Rx invalid crypt:0  Rx 
> invalid frag:0
>   Tx excessive retries:0  Invalid misc:0  Missed 
> beacon:0
>
> I'm not all the way there yet, but this is significant progress.
>
> wpa_supplicant gui still is blank, with the message 'could not get status
> from WPA_supplicant', but at least now I have an interface showing up
>
> It appears that it cannot find an access point.  The access point is
> active, as I can connect my work laptop to it, but so far, the laptop can't
> see it.
>
> Any further advice gratefully received.
>
> Jeff
>
> On Wednesday 19 December 2007 06:09:50 pm Jeff Cranmer wrote:
> > I've tried to run through the instructions at
> > http://gentoo-wiki.com/HARDWARE_rtl8187.
> >
> > The kernel is configured per that guide, and I get the message:
> > usbcore: registered new interface driver rtl8187
> >
> > When I try to run ifconfig wlan0 up, however, I get:
> > wlan0: unknown interface: no such device
> >
> > I get the same result if I run ifconfig wlan up (net.wlan is the symlink
> > that I set up in /etc/init.d)
> >
> > The wireless section of my /etc/conf.d/net file reads
> > mode_wlan="managed"
> > wpa_supplicant_wlan="-Dwext -c
> > /etc/wpa_supplicant/wpa_supplicant_RTL8187.conf" config_wlan=( "dhcp" )
> > dhcp_wlan="-R -G"
> >
> > wpa_supplicant has been emerged.
> >
> > Jeff
> >
> > On Sunday 16 December 2007 12:14:42 pm Mick wrote:
> > > On Sunday 16 December 2007, Jeff Cranmer wrote:
> > > > All I get for iwconfig is
> > > > lo  no wireless extensions
> > > > eth0no wireless extensions.
> > >
> > > This means that the driver has not been loaded yet.  In generic terms
> > > you'll need to install the necessary driver for your WiFi device
> > > (either the new one in the kernel or emerge net-wireless/rtl8187, or
> > > ndiswrapper and the MS Windows driver).  If you build the driver as a
> > > module then you need to modprobe -v rtl8187, while you keep an eye on
> > > the logs to see how things go (tail -f /var/log/messages).  You have
> > > seen this, right?
> > >
> > > http://gentoo-wiki.com/HARDWARE_rtl8187
> > >
> > > > I think I need some more info in /etc/conf.d/net, and need somehow to
> > > > create the necessary /etc/init.d/net.wlan0 or whatever driver.
> > > >
> > > > The only 'net.anything' drivers present at the moment are net.lo and
> > > > net.eth0
> > >
> > > You will of course have to manually create a symlink between net.wlan0
> > > -> net.lo (or whatever your new WiFi device is recognised as by the
> > > kernel) so that you can bring it up by running /etc/init.d/net.wlan0
> > > start.  But this is only necessary for autoloading the driver through
> > > the runlevel scripts. To try it out follow the instructions in the Wiki
> > > page above.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-19 Thread Jeff Cranmer
I made significant progress today.

I manually edited the file /usr/src/linux/drivers/net/wireless/rtl8187_dev.c

There is a static structure near the top of the code,

static struct usb_device_id rtl8187_table[] __devinitdata = {
/* Realtek */
{USB_DEVICE(0x0bda, 0x8187)},
/* netgear */
{USB_DEVICE(0x0846, 0x6100)},
{USB_DEVICE(0x0846, 0x6a00)},
{}
};

I added the line
{USB_DEVICE(0x0bda, 0x8197)},
in the /* Realtek */ area of the structure, then ran 
make clean, then 
make && make modules_install etc.

After rebooting into the modified kernel, I now have iwmaster0 and iwlan0 
lines showing up when I type iwconfig.

The applicable lines of iwconfig are

wmaster0no wireless extensions

wlan0   IEEE 802.11g ESSID="mynetworkESSID"
Mode:ManagedFrequency=2.417GHz  Access Point: 
Not associated
Retry min limit 7   RTS thr:off Fragment 
thr=2346B
Encryption key:
Link Quality:0  Signal Level:0  Noise 
Level:0
Rx Invalid nwid:0   Rx invalid crypt:0  Rx 
invalid frag:0
Tx excessive retries:0  Invalid misc:0  Missed 
beacon:0

I'm not all the way there yet, but this is significant progress.

wpa_supplicant gui still is blank, with the message 'could not get status from 
WPA_supplicant', but at least now I have an interface showing up

It appears that it cannot find an access point.  The access point is active, 
as I can connect my work laptop to it, but so far, the laptop can't see it.

Any further advice gratefully received.

Jeff


On Wednesday 19 December 2007 06:09:50 pm Jeff Cranmer wrote:
> I've tried to run through the instructions at
> http://gentoo-wiki.com/HARDWARE_rtl8187.
>
> The kernel is configured per that guide, and I get the message:
> usbcore: registered new interface driver rtl8187
>
> When I try to run ifconfig wlan0 up, however, I get:
> wlan0: unknown interface: no such device
>
> I get the same result if I run ifconfig wlan up (net.wlan is the symlink
> that I set up in /etc/init.d)
>
> The wireless section of my /etc/conf.d/net file reads
> mode_wlan="managed"
> wpa_supplicant_wlan="-Dwext -c
> /etc/wpa_supplicant/wpa_supplicant_RTL8187.conf" config_wlan=( "dhcp" )
> dhcp_wlan="-R -G"
>
> wpa_supplicant has been emerged.
>
> Jeff
>
> On Sunday 16 December 2007 12:14:42 pm Mick wrote:
> > On Sunday 16 December 2007, Jeff Cranmer wrote:
> > > All I get for iwconfig is
> > > lono wireless extensions
> > > eth0  no wireless extensions.
> >
> > This means that the driver has not been loaded yet.  In generic terms
> > you'll need to install the necessary driver for your WiFi device (either
> > the new one in the kernel or emerge net-wireless/rtl8187, or ndiswrapper
> > and the MS Windows driver).  If you build the driver as a module then you
> > need to modprobe -v rtl8187, while you keep an eye on the logs to see how
> > things go (tail -f /var/log/messages).  You have seen this, right?
> >
> > http://gentoo-wiki.com/HARDWARE_rtl8187
> >
> > > I think I need some more info in /etc/conf.d/net, and need somehow to
> > > create the necessary /etc/init.d/net.wlan0 or whatever driver.
> > >
> > > The only 'net.anything' drivers present at the moment are net.lo and
> > > net.eth0
> >
> > You will of course have to manually create a symlink between net.wlan0 ->
> > net.lo (or whatever your new WiFi device is recognised as by the kernel)
> > so that you can bring it up by running /etc/init.d/net.wlan0 start.  But
> > this is only necessary for autoloading the driver through the runlevel
> > scripts. To try it out follow the instructions in the Wiki page above.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-19 Thread Jeff Cranmer
I've tried to run through the instructions at
http://gentoo-wiki.com/HARDWARE_rtl8187.

The kernel is configured per that guide, and I get the message:
usbcore: registered new interface driver rtl8187

When I try to run ifconfig wlan0 up, however, I get:
wlan0: unknown interface: no such device

I get the same result if I run ifconfig wlan up (net.wlan is the symlink that 
I set up in /etc/init.d)

The wireless section of my /etc/conf.d/net file reads
mode_wlan="managed"
wpa_supplicant_wlan="-Dwext -c /etc/wpa_supplicant/wpa_supplicant_RTL8187.conf"
config_wlan=( "dhcp" )
dhcp_wlan="-R -G"

wpa_supplicant has been emerged.

Jeff


On Sunday 16 December 2007 12:14:42 pm Mick wrote:
> On Sunday 16 December 2007, Jeff Cranmer wrote:
> > All I get for iwconfig is
> > lo  no wireless extensions
> > eth0no wireless extensions.
>
> This means that the driver has not been loaded yet.  In generic terms
> you'll need to install the necessary driver for your WiFi device (either
> the new one in the kernel or emerge net-wireless/rtl8187, or ndiswrapper
> and the MS Windows driver).  If you build the driver as a module then you
> need to modprobe -v rtl8187, while you keep an eye on the logs to see how
> things go (tail -f /var/log/messages).  You have seen this, right?
>
> http://gentoo-wiki.com/HARDWARE_rtl8187
>
> > I think I need some more info in /etc/conf.d/net, and need somehow to
> > create the necessary /etc/init.d/net.wlan0 or whatever driver.
> >
> > The only 'net.anything' drivers present at the moment are net.lo and
> > net.eth0
>
> You will of course have to manually create a symlink between net.wlan0 ->
> net.lo (or whatever your new WiFi device is recognised as by the kernel) so
> that you can bring it up by running /etc/init.d/net.wlan0 start.  But this
> is only necessary for autoloading the driver through the runlevel scripts. 
> To try it out follow the instructions in the Wiki page above.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-19 Thread Jeff Cranmer
I have checked, and ndiswrapper and  the rtl8187 package were uninstalled.
I think that the problem I have may be more basic.

The card I have is an 8197, not an 8187.  I wonder if this is part of the 
problem.  Could it be that the kernel driver does not support the 8197?

The attached weblink suggests that this may be the case:
http://www.datanorth.net/~cuervo/blog/2007/09/26/no-more-vista/

Does anyone know how I can locate the equivalent code in the kernel and 
perhaps perform a similar modification?

Thanks

Jeff
 


On Monday 17 December 2007 06:26:41 pm Jeff Cranmer wrote:
> I have rtl8187 compiled into the kernel.
> I could try compiling it as a module, then loading it via modules.autoload,
> to see if that gives any alternative response.  Perhaps the first step
> would be not to put it in modules.autoload and modprobe it to more easily
> see the response.
>
> Since I was playing around with ndiswrapper and the rtl8187 portage
> package, it's possible that they may be messing things up, and I can't
> remember whether or not I unmerged them.  I'll check whether these packages
> are still present and get rid of them if they are.
>
> I'm away from my laptop at the moment, so can't run the dmesg command you
> suggested until tomorrow evening.  I'll let you know whether my activities
> reveal anything interesting then.
>
> Thanks
>
> Jeff
>
>
> -Original Message-
>
> >From: Stroller <[EMAIL PROTECTED]>
> >Sent: Dec 16, 2007 8:13 PM
> >To: gentoo-user@lists.gentoo.org
> >Subject: Re: [gentoo-user] realtek 8197 wireless card setup
> >
> >On 16 Dec 2007, at 22:56, Mick wrote:
> >> On Sunday 16 December 2007, Stroller wrote:
> >>> On 16 Dec 2007, at 17:14, Mick wrote:
> >>>> On Sunday 16 December 2007, Jeff Cranmer wrote:
> >>>>>>> Running the command 'dmesg | grep rtl8187' after reboot returns
> >>>>>>> the message
> >>>>>>> usbcore: registered new interface driver rtl8187
> >>>>>
> >>>>> All I get for iwconfig is
> >>>>> lo  no wireless extensions
> >>>>> eth0no wireless extensions.
> >>>>
> >>>> This means that the driver has not been loaded yet.
> >>>
> >>> Looking at Jeff's previous post (quoted added above) that's not a
> >>> conclusion I'd jump to.
> >>
> >> Oops!  Sorry, didn't see that.  If the driver is loaded then why
> >> isn't an
> >> interface showing up?
> >
> >Good question. I agree that without seeing that statement I might
> >
> >well have thought the same thing. That's why I wrote:
> >>> But it would have helped if Jeff had posted `dmesg | grep rtl8187 &&
> >>> iwconfig` in the same post to prove the point.
> >
> >Stroller.
> >--
> >[EMAIL PROTECTED] mailing list
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-16 Thread Stroller


On 16 Dec 2007, at 22:56, Mick wrote:


On Sunday 16 December 2007, Stroller wrote:

On 16 Dec 2007, at 17:14, Mick wrote:

On Sunday 16 December 2007, Jeff Cranmer wrote:

Running the command 'dmesg | grep rtl8187' after reboot returns
the message
usbcore: registered new interface driver rtl8187


All I get for iwconfig is
lo  no wireless extensions
eth0no wireless extensions.


This means that the driver has not been loaded yet.


Looking at Jeff's previous post (quoted added above) that's not a
conclusion I'd jump to.


Oops!  Sorry, didn't see that.  If the driver is loaded then why  
isn't an

interface showing up?


Good question. I agree that without seeing that statement I might  
well have thought the same thing. That's why I wrote:



But it would have helped if Jeff had posted `dmesg | grep rtl8187 &&
iwconfig` in the same post to prove the point.


Stroller.
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-16 Thread Mick
On Sunday 16 December 2007, Stroller wrote:
> On 16 Dec 2007, at 17:14, Mick wrote:
> > On Sunday 16 December 2007, Jeff Cranmer wrote:
>  Running the command 'dmesg | grep rtl8187' after reboot returns
>  the message
>  usbcore: registered new interface driver rtl8187
> >>
> >> All I get for iwconfig is
> >> lo no wireless extensions
> >> eth0   no wireless extensions.
> >
> > This means that the driver has not been loaded yet.
>
> Looking at Jeff's previous post (quoted added above) that's not a
> conclusion I'd jump to.

Oops!  Sorry, didn't see that.  If the driver is loaded then why isn't an 
interface showing up?

> But it would have helped if Jeff had posted `dmesg | grep rtl8187 &&
> iwconfig` in the same post to prove the point.
>
> Stroller.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-16 Thread Stroller


On 16 Dec 2007, at 17:14, Mick wrote:

On Sunday 16 December 2007, Jeff Cranmer wrote:
Running the command 'dmesg | grep rtl8187' after reboot returns  
the message

usbcore: registered new interface driver rtl8187

All I get for iwconfig is
lo  no wireless extensions
eth0no wireless extensions.


This means that the driver has not been loaded yet.


Looking at Jeff's previous post (quoted added above) that's not a  
conclusion I'd jump to.


But it would have helped if Jeff had posted `dmesg | grep rtl8187 &&  
iwconfig` in the same post to prove the point.


Stroller.
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-16 Thread Mick
On Sunday 16 December 2007, Jeff Cranmer wrote:
> All I get for iwconfig is
> lono wireless extensions
> eth0  no wireless extensions.

This means that the driver has not been loaded yet.  In generic terms you'll 
need to install the necessary driver for your WiFi device (either the new one 
in the kernel or emerge net-wireless/rtl8187, or ndiswrapper and the MS 
Windows driver).  If you build the driver as a module then you need to 
modprobe -v rtl8187, while you keep an eye on the logs to see how things go 
(tail -f /var/log/messages).  You have seen this, right?

http://gentoo-wiki.com/HARDWARE_rtl8187

> I think I need some more info in /etc/conf.d/net, and need somehow to
> create the necessary /etc/init.d/net.wlan0 or whatever driver.
> 
> The only 'net.anything' drivers present at the moment are net.lo and
> net.eth0

You will of course have to manually create a symlink between net.wlan0 -> 
net.lo (or whatever your new WiFi device is recognised as by the kernel) so 
that you can bring it up by running /etc/init.d/net.wlan0 start.  But this is 
only necessary for autoloading the driver through the runlevel scripts.  To 
try it out follow the instructions in the Wiki page above.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-16 Thread Jeff Cranmer
All I get for iwconfig is 
lo  no wireless extensions
eth0no wireless extensions.

I think I need some more info in /etc/conf.d/net, and need somehow to create 
the necessary /etc/init.d/net.wlan0 or whatever driver.

The only 'net.anything' drivers present at the moment are net.lo and net.eth0

Jeff


On Sunday 16 December 2007 05:50:49 am Florian Philipp wrote:
> On Sat, 2007-12-15 at 23:19 -0500, Jeff Cranmer wrote:
> > On Tuesday 11 December 2007 09:48:10 am Mick wrote:
> > > On Tuesday 11 December 2007, Jeff Cranmer wrote:
> > > > I believe that I have this enabled, however ieee80211 is still
> > > > barfing out by asking for CONFIG_NET_RADIO.
> > > >
> > > > I'll check and confirm this tonight.
> > >
> > > Also check bugzilla.  I remember reporting a bug with the more recent
> > > kernels failing to build kernel drivers.  The last kernel that I
> > > managed to build rt2570 was 2.6.20-gentoo-r8.  Kernel 2.6.23-gentoo-r3
> > > fails to emerge any driver whatsoever.
> >
> > I have now (finally) successfully compiled the latest kernel
> > 2.6.23-gentoo-r3 kernel.  Once I enabled the 'Generic IEEE 802.11
> > Networking Stack (mac80211)' option in Networking --> Wireless, the
> > Realtek RTL8187 USB support option appears in Device Drivers --> Network
> > Device Support --> Wireless LAN section under wireless LAN (IEEE 802.11).
> >
> > With this RTL8187 driver compiled into the kernel, I get some success.
> >
> > Running the command 'dmesg | grep rtl8187' after reboot returns the
> > message usbcore: registered new interface driver rtl8187
> >
> > There is, however, no /etc/init.d/net.wlan0 on my system, so I'm not
> > quite there yet.
> >
> > There is a net.eth0 (wired network), and a net.lo
> > What do I need to do to get net.wlan0 active?
> >
> > Thanks
> >
> > Jeff
>
> Check the output of "iwconfig". Maybe the device's got another name like
> eth1 or rtl0
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-16 Thread Florian Philipp

On Sat, 2007-12-15 at 23:19 -0500, Jeff Cranmer wrote:
> On Tuesday 11 December 2007 09:48:10 am Mick wrote:
> > On Tuesday 11 December 2007, Jeff Cranmer wrote:
> > > I believe that I have this enabled, however ieee80211 is still barfing
> > > out by asking for CONFIG_NET_RADIO.
> > >
> > > I'll check and confirm this tonight.
> >
> > Also check bugzilla.  I remember reporting a bug with the more recent
> > kernels failing to build kernel drivers.  The last kernel that I managed to
> > build rt2570 was 2.6.20-gentoo-r8.  Kernel 2.6.23-gentoo-r3 fails to emerge
> > any driver whatsoever.
> 
> I have now (finally) successfully compiled the latest kernel 2.6.23-gentoo-r3 
> kernel.  Once I enabled the 'Generic IEEE 802.11 Networking Stack (mac80211)' 
> option in Networking --> Wireless, the Realtek RTL8187 USB support option 
> appears in Device Drivers --> Network Device Support --> Wireless LAN section 
> under wireless LAN (IEEE 802.11).
> 
> With this RTL8187 driver compiled into the kernel, I get some success.
> 
> Running the command 'dmesg | grep rtl8187' after reboot returns the message
> usbcore: registered new interface driver rtl8187
> 
> There is, however, no /etc/init.d/net.wlan0 on my system, so I'm not quite 
> there yet.
> 
> There is a net.eth0 (wired network), and a net.lo
> What do I need to do to get net.wlan0 active?
> 
> Thanks
> 
> Jeff

Check the output of "iwconfig". Maybe the device's got another name like
eth1 or rtl0


signature.asc
Description: PGP signature


Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-15 Thread Jeff Cranmer
On Tuesday 11 December 2007 09:48:10 am Mick wrote:
> On Tuesday 11 December 2007, Jeff Cranmer wrote:
> > I believe that I have this enabled, however ieee80211 is still barfing
> > out by asking for CONFIG_NET_RADIO.
> >
> > I'll check and confirm this tonight.
>
> Also check bugzilla.  I remember reporting a bug with the more recent
> kernels failing to build kernel drivers.  The last kernel that I managed to
> build rt2570 was 2.6.20-gentoo-r8.  Kernel 2.6.23-gentoo-r3 fails to emerge
> any driver whatsoever.

I have now (finally) successfully compiled the latest kernel 2.6.23-gentoo-r3 
kernel.  Once I enabled the 'Generic IEEE 802.11 Networking Stack (mac80211)' 
option in Networking --> Wireless, the Realtek RTL8187 USB support option 
appears in Device Drivers --> Network Device Support --> Wireless LAN section 
under wireless LAN (IEEE 802.11).

With this RTL8187 driver compiled into the kernel, I get some success.

Running the command 'dmesg | grep rtl8187' after reboot returns the message
usbcore: registered new interface driver rtl8187

There is, however, no /etc/init.d/net.wlan0 on my system, so I'm not quite 
there yet.

There is a net.eth0 (wired network), and a net.lo
What do I need to do to get net.wlan0 active?

Thanks

Jeff
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-11 Thread Mick
On Tuesday 11 December 2007, Jeff Cranmer wrote:
> I believe that I have this enabled, however ieee80211 is still barfing out
> by asking for CONFIG_NET_RADIO.
>
> I'll check and confirm this tonight.

Also check bugzilla.  I remember reporting a bug with the more recent kernels 
failing to build kernel drivers.  The last kernel that I managed to build 
rt2570 was 2.6.20-gentoo-r8.  Kernel 2.6.23-gentoo-r3 fails to emerge any 
driver whatsoever.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-11 Thread Jeff Cranmer
I believe that I have this enabled, however ieee80211 is still barfing out by 
asking for CONFIG_NET_RADIO.

I'll check and confirm this tonight.

Jeff

-Original Message-
>From: Jacek Szpot <[EMAIL PROTECTED]>
>Sent: Dec 11, 2007 7:07 AM
>To: gentoo-user@lists.gentoo.org
>Subject: Re: [gentoo-user] realtek 8197 wireless card setup
>
>
>On Mon, 2007-12-10 at 23:09 -0500, Jeff Cranmer wrote:
>> Can anyone point me to a resource for configuration of a realtek 8197 
>> wireless 
>> card on a Toshiba laptop?
>> 
>> I am running the 2.6.22-suspend2-r2 kernel, and have installed ndiswrapper.  
>> Unfortunately, when I try to install ieee80211, I get an error because 
>> CONFIG_NET_RADIO is not configured in the kernel.  Unfortunately, 
>> CONFIG_NET_RADIO does not exist in this kernel, and hence I'm presently a 
>> little stuck.
>> 
>> When I type lsusb, I get
>> Bus 001 Device 002: ID 0bda:8197 Realtek Semiconductor Corp.
>> 
>> I'd like to connect up to my Belkin Router using WPA/PSK if possible.
>> 
>> Thanks in advance
>> 
>> Jeff
>
>2.6.22 and up use CONFIG_WLAN_80211 instead of CONFIG_NET_RADIO.
>
>Jack
>
>-- 
>[EMAIL PROTECTED] mailing list
>

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] realtek 8197 wireless card setup

2007-12-11 Thread Jacek Szpot

On Mon, 2007-12-10 at 23:09 -0500, Jeff Cranmer wrote:
> Can anyone point me to a resource for configuration of a realtek 8197 
> wireless 
> card on a Toshiba laptop?
> 
> I am running the 2.6.22-suspend2-r2 kernel, and have installed ndiswrapper.  
> Unfortunately, when I try to install ieee80211, I get an error because 
> CONFIG_NET_RADIO is not configured in the kernel.  Unfortunately, 
> CONFIG_NET_RADIO does not exist in this kernel, and hence I'm presently a 
> little stuck.
> 
> When I type lsusb, I get
> Bus 001 Device 002: ID 0bda:8197 Realtek Semiconductor Corp.
> 
> I'd like to connect up to my Belkin Router using WPA/PSK if possible.
> 
> Thanks in advance
> 
> Jeff

2.6.22 and up use CONFIG_WLAN_80211 instead of CONFIG_NET_RADIO.

Jack

-- 
[EMAIL PROTECTED] mailing list