LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Newbie: "Parse Error" when adding wireless usb network adapter (https://www.linuxquestions.org/questions/red-hat-31/newbie-parse-error-when-adding-wireless-usb-network-adapter-103166/)

tommer 10-12-2003 04:23 PM

Newbie: "Parse Error" when adding wireless usb network adapter
 
Please help!

I've recently installed RH9 and the installation went pretty flawlessly.

After the installation I've also done all upgrades through the RHN, again quite flawlessly.

But, when trying to install my SMC 2662W (ver 3) with drivers from "sourceforge.net/projects/atmelwlandriver"
I run into a problem. I run "Make Config" and "make clean" but when trying to run "make all" I get several "parse" errors.

Example:
Quote:

/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /home/tom/atmelwlandriver/src/includes/usb/vnetusba.h:24,
from callbacks.c:22:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
and so on...

I've tried to do everything as outlined in "atmelwlandriver.sourceforge.net/howto/howto.html"

Anybody have any suggestions related to how to proceed??

Any help would really be appriciated!

Tom

akaBeaVis 10-12-2003 07:40 PM

Do you have the kernel-source rpm installed? In other words, if you type "cd /lib/modules/`uname -r`/build", and then "ls" do you see a lot of files?

tommer 10-13-2003 02:40 AM

Quote:

Originally posted by akaBeaVis
Do you have the kernel-source rpm installed? In other words, if you type "cd /lib/modules/`uname -r`/build", and then "ls" do you see a lot of files?
Thanks!

I think I have done this through RHN updates, but I'll have to check when I get home.

How do I eventually install the Kernel RMP's?

Tom

tommer 10-13-2003 03:16 PM

Well, I have the source installed now, but still struggeling with same 'parse' errors..

I'm totally lost, what to do next??

I don't wanna give this up!!

akaBeaVis 10-13-2003 05:25 PM

What is this device, usb wireless ethernet? If so I would recommend you move to a different driver, here's a link: http://at76c503a.berlios.de/ if you go with this driver, here's a link to a good howto: http://www.jennings.homelinux.net/atmel.html which is based on mandrake 9.1, but the post-install section should work fine for redhat 9.

On the other hand, if you're loathe to move away from the atmelwlandriver source, we can keep trying that route, if so, can you say if the parse errors are now different from before you did what you did re: the kernel-source? or are they the same errors?

I can tell you this source compiles for me no problem, but on a redhat 9.0 installaton that has not been updated. I'm thinking I read somewhere here that redhat's update doesn't quite get the source and the running kernel synced properly, but I'm not positive. To see if they're in sync type these commands into a terminal:
/bin/uname -r
cat /lib/modules/`/bin/uname -r`/build/include/linux/version.h
then compare the numbers, if they are the same good, if not, I'm not sure what we'd want to do about that.

tommer 10-14-2003 12:52 PM

Thanks for all your efforts!!

I reinstalled and tried without updating Kernel and using the file you recommend and YES, make works!!

Only thing is that I seem to be missing some commands:

The readme for the files says I shall issue 'modprobe' or 'insmode' but I get following:

[root@localhost at76c503a-0.10]# modprobe -v at76c503-rfmd
bash: modprobe: command not found
[root@localhost at76c503a-0.10]# cd ..
[root@localhost tom]# lsmod
bash: lsmod: command not found
[root@localhost tom]# insmod usbdfu.c
bash: insmod: command not found
[root@localhost tom]#

What to do next?

Thanks
Tom

akaBeaVis 10-14-2003 04:49 PM

you'll need to be root to get those commands in your normal path and to run them. You may have to log out and back in to accomplish this. Or,if you issue "su" in a terminal and give the root password (no characters will echo as you type it, this is normal) you will become root on that terminal until you type "exit", most commands should be found at that point, however if after you become root a command comes back not found, you usually can do a "which command-name" to find it, then use the full path returned, for instance, "which modprobe" returns /sbin/modprobe to me, so to load the module you can use "/sbin/modprobe -v at76c503-rfmd". (don't type any of these quotes of course).

tommer 10-16-2003 04:48 PM

Thanks buddy, I think I'm pretty close now.

I've got a ifcfg-wlan0 (had to make it myself!?) script saying:

DEVICE=wlan0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
DOMAIN=
HWADDR=
TYPE=Wireless
DHCP_HOSTNAME=
IPADDR=
USERCTL=no
PEERDNS=no
GATEWAY=
ESSID=
CHANNEL=1
MODE=Auto
KEY=
RATE=Auto

lsmode says:
usbdfu 9164 0 [at76c503-rfmd]
at76c503 51904 0 [at76c503-rfmd]
usbcore 78784 1 [at76c503-rfmd usbdfu at76c503 hid usb-uhci ehci-hcd]


and I also got a wlan0 device in my "Network Device Control" panel. Problem is that I can't activate! I only get a error message.

Any suggestions??

Tom


All times are GMT -5. The time now is 12:57 PM.