Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
i have toshiba satelite laptop with atheros wifi here are some general info about my system: [root@85 ~]# lspci | grep -i ath 02:00.0 Ethernet controller: Atheros Communications Inc. AR242x ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Test For Echo's Avatar
    Join Date
    May 2008
    Location
    Israel
    Posts
    38

    Unhappy [SOLVED] hey, madwifi prob. please help after two days of digging the net for solutio


    i have toshiba satelite laptop with atheros wifi

    here are some general info about my system:
    [root@85 ~]# lspci | grep -i ath
    02:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
    [root@85 ~]# uname -r
    2.6.26.5-45.fc9.i686
    [root@85 ~]# ifconfig
    eth0 Link encap:Ethernet HWaddr xxxxxxxxxxx
    inet addrxxxxxxxxxxxxxxxxxx Bcastxxxxxxxxxxxxx Mask:255.255.255.0
    inet6 addr: fe80::21a:92ff:feaa:a36b/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:4059 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3197 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1328715 (1.2 MiB) TX bytes:447607 (437.1 KiB)
    Interrupt:16 Base address:0x2c00

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:124 errors:0 dropped:0 overruns:0 frame:0
    TX packets:124 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:6360 (6.2 KiB) TX bytes:6360 (6.2 KiB)

    [root@85 ~]#
    after downloading the kernel above i had to install to it the madwifi driver.

    ive tried to yum it with yum install madwifi (from livna) and compile it from source.

    yum install completed with success but still no wifi.
    compiling it from source didnt help either, i used the /madwifi*/scripts and the make, it returend with lot of errors.

    things ive checked:
    kernel headers , kernel devel , gcc python etc, blacklisted ath5 and edited modropbe.conf for aliasing ath0.


    ive tried anything i know for the last two days and im completely helpless.

    PLZ help

    thanks

  2. #2
    Linux Guru
    Join Date
    Jul 2004
    Posts
    4,593
    Most have reported the best results from downloading and compiling the latest developmental version of the MadWifi driver. You can download it using Subversion, or download the latest Snapshot.

    UserDocs/GettingMadwifi - madwifi.org - Trac

    It also appears that you may need the latest version of madwifi-hal. This ticket is concerning your wireless chip.:
    http://madwifi.org/ticket/1192
    Last edited by waterhead; 10-15-2008 at 02:33 AM.
    Please do not send Private Messages to me with requests for help. I will not reply.

  3. #3
    Just Joined! Test For Echo's Avatar
    Join Date
    May 2008
    Location
    Israel
    Posts
    38
    ive tried almost every madwifi hal version from that ticket. still nothing.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Jul 2004
    Posts
    4,593
    You said that when you compiled from source, that you got a lot of errors. Did you ever find a solution to those errors? Do you have all of the prerequisites installed?

    If you post the errors that you get, I can help you work them out.
    Please do not send Private Messages to me with requests for help. I will not reply.

  6. #5
    Just Joined! Test For Echo's Avatar
    Join Date
    May 2008
    Location
    Israel
    Posts
    38

    this is what i get

    [root@localhost scripts]# ./madwifi-unload
    [root@localhost scripts]# ./find-madwifi-modules.sh `uname -r`
    [root@localhost scripts]# cd ..
    [root@localhost madwifi-hal-0.10.5.6-r3861-20080903]# make
    Checking requirements... ok.
    Checking kernel configuration... ok.
    make -C /lib/modules/2.6.26.5-45.fc9.i686/build SUBDIRS=/root/madwifi-hal-0.10.5.6-r3861-20080903 modules
    make[1]: Entering directory `/usr/src/kernels/2.6.26.5-45.fc9.i686'
    CC [M] /root/madwifi-hal-0.10.5.6-r3861-20080903/ath/if_ath.o
    CC [M] /root/madwifi-hal-0.10.5.6-r3861-20080903/ath/if_ath_radar.o
    CC [M] /root/madwifi-hal-0.10.5.6-r3861-20080903/ath/if_ath_hal_extensions.o
    CC [M] /root/madwifi-hal-0.10.5.6-r3861-20080903/ath/if_ath_pci.o
    LD [M] /root/madwifi-hal-0.10.5.6-r3861-20080903/ath/ath_pci.o
    CC [M] /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/ah_os.o
    HOSTCC /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:26:19: error: stdio.h: No such file or directory
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:27:19: error: errno.h: No such file or directory
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:28:20: error: getopt.h: No such file or directory
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:29:20: error: string.h: No such file or directory
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:30:20: error: stdlib.h: No such file or directory
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:32:23: error: sys/fcntl.h: No such file or directory
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:33:22: error: sys/stat.h: No such file or directory
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c: In function 'uudecode_usage':
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:37: warning: implicit declaration of function 'printf'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:37: warning: incompatible implicit declaration of built-in function 'printf'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c: At top level:
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:40: error: expected ')' before '*' token
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:70: error: expected ')' before '*' token
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c: In function 'main':
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:121: error: 'FILE' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:121: error: (Each undeclared identifier is reported only once
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:121: error: for each function it appears in.)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:121: error: 'src_stream' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:122: error: 'dst_stream' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:122: error: 'NULL' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:130: warning: implicit declaration of function 'getopt'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:134: error: 'optarg' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:138: warning: implicit declaration of function 'exit'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:138: warning: incompatible implicit declaration of built-in function 'exit'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:141: error: 'optind' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:142: error: 'stdin' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:144: warning: implicit declaration of function 'fopen'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:146: warning: implicit declaration of function 'fprintf'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:146: warning: incompatible implicit declaration of built-in function 'fprintf'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:146: error: 'stderr' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:147: warning: implicit declaration of function 'strerror'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:147: error: 'errno' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:147: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:148: warning: incompatible implicit declaration of built-in function 'exit'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:152: warning: incompatible implicit declaration of built-in function 'exit'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:156: warning: implicit declaration of function 'get_line_from_file'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:156: warning: assignment makes pointer from integer without a cast
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:157: warning: implicit declaration of function 'strncmp'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:164: warning: incompatible implicit declaration of built-in function 'fprintf'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:165: warning: incompatible implicit declaration of built-in function 'exit'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:168: warning: implicit declaration of function 'strtoul'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:170: warning: implicit declaration of function 'strchr'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:170: warning: incompatible implicit declaration of built-in function 'strchr'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:172: warning: incompatible implicit declaration of built-in function 'fprintf'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:173: warning: incompatible implicit declaration of built-in function 'exit'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:178: warning: implicit declaration of function 'strcmp'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:179: error: 'stdout' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:182: error: 'O_WRONLY' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:182: error: 'O_CREAT' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:182: error: 'O_TRUNC' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:186: error: 'O_EXCL' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:188: warning: implicit declaration of function 'open'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:189: error: 'S_IRWXU' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:189: error: 'S_IRWXG' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:189: error: 'S_IRWXO' undeclared (first use in this function)
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:191: warning: implicit declaration of function 'fdopen'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:193: warning: incompatible implicit declaration of built-in function 'fprintf'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:194: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:195: warning: incompatible implicit declaration of built-in function 'exit'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:199: warning: implicit declaration of function 'read_stduu'
    /root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode.c:201: warning: implicit declaration of function 'fclose'
    make[3]: *** [/root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal/uudecode] Error 1
    make[2]: *** [/root/madwifi-hal-0.10.5.6-r3861-20080903/ath_hal] Error 2
    make[1]: *** [_module_/root/madwifi-hal-0.10.5.6-r3861-20080903] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.26.5-45.fc9.i686'
    make: *** [modules] Error 2
    [root@localhost madwifi-hal-0.10.5.6-r3861-20080903]#
    ive followed the instruction from here:
    Fedora and wpa_supplicant

  7. #6
    Linux Guru
    Join Date
    Jul 2004
    Posts
    4,593
    Well, I just downloaded and ran "make", and it ran without errors. I am using Fedora 8 with a 2.6.26 kernel that I compiled from source.

    The first thing that I notice is that you are logged in as root. This is considered a no-no, and is not required. It may even be the problem, as you shouldn't be root when running make, only for "make install".

    The other thing, you ran two scripts before running make. I don't see them anywhere in the instructions, so where did they come from?

    Since I compiled my own kernel. I have the kernel source installed. Do you have the source, or only the headers? If you have kernel-devel-`uname -r`, then I guess you do.

    If you look at where the error first occurred, that should be the clue. It happened when compiling the uudecode file. the first error was this:
    Code:
    stdio.h: No such file or directory
    So, you need to find out where that file should be. I have it in several locations:

    /usr/include/stdio.h
    /usr/include/bits/stdio.h

    There is also a man page for it
    Code:
    man stdio.h
    If you don't have it, I'm not sure how to install it. More research is needed on that. I would first start over with a fresh source file, and run make as a regular user. Then gain root privileges with the su command, and run make install.
    Last edited by waterhead; 10-16-2008 at 02:02 AM.
    Please do not send Private Messages to me with requests for help. I will not reply.

  8. #7
    Linux Guru
    Join Date
    Jul 2004
    Posts
    4,593
    OK, the missing files are installed with the glibc-headers package. Install it with YUM.
    Code:
    yum install glibc-headers
    Please do not send Private Messages to me with requests for help. I will not reply.

  9. #8
    Just Joined! Test For Echo's Avatar
    Join Date
    May 2008
    Location
    Israel
    Posts
    38
    ok, i dependency error:

    Resolving Dependencies
    --> Running transaction check
    ---> Package glibc-headers.i386 0:2.8-3 set to be updated
    --> Processing Dependency: glibc = 2.8-3 for package: glibc-headers
    --> Running transaction check
    ---> Package glibc.i386 0:2.8-3 set to be updated
    --> Processing Dependency: glibc-common = 2.8-3 for package: glibc
    --> Finished Dependency Resolution
    glibc-2.8-3.i386 from fedora has depsolving problems
    --> Missing Dependency: glibc-common = 2.8-3 is needed by package glibc-2.8-3.i386 (fedora)
    Error: Missing Dependency: glibc-common = 2.8-3 is needed by package glibc-2.8-3.i386 (fedora)
    i checked and i have glibc 2.8-8 :

    yum list installed | grep -i "glibc"
    Existing lock /var/run/yum.pid: another copy is running as pid 11299.
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    glibc.i686 2.8-8 installed
    glibc-common.i386 2.8-8 installed
    glibc-devel.i386 2.8-8 installed
    i tried to yum search glibc and -8 is the only version it finds.......

  10. #9
    Just Joined! Test For Echo's Avatar
    Join Date
    May 2008
    Location
    Israel
    Posts
    38
    weird.... i ran locate stdio

    [root@localhost madwifi-hal-0.10.5.6-r3861-20080903]# locate stdio
    /usr/include/c++/4.3.0/cstdio
    /usr/include/c++/4.3.0/ext/stdio_filebuf.h
    /usr/include/c++/4.3.0/ext/stdio_sync_filebuf.h
    /usr/include/c++/4.3.0/tr1/cstdio
    /usr/include/c++/4.3.0/tr1/stdio.h
    /usr/include/c++/4.3.0/tr1_impl/cstdio
    /usr/include/glib-2.0/glib/gstdio.h
    /usr/include/libgsf-1/gsf/gsf-infile-stdio.h
    /usr/include/libgsf-1/gsf/gsf-input-stdio.h
    /usr/include/libgsf-1/gsf/gsf-outfile-stdio.h
    /usr/include/libgsf-1/gsf/gsf-output-stdio.h
    /usr/include/xulrunner-sdk-1.9/system_wrappers/cstdio
    /usr/include/xulrunner-sdk-1.9/system_wrappers/stdio.h
    /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/nostdio.h
    also about the root thing, according to madwifi and the link above in fedora you have to compile it with a root login user (su -)

    anyway i tried to run make as a regular user, it didnt work either :-\

  11. #10
    Linux Guru
    Join Date
    Jul 2004
    Posts
    4,593
    Did you try specifying the version of glibc-headers-2.8-8. You could also try to first do a system upgrade, to update all of the sytem packages.
    Code:
     yum -y upgrade
    This will take a while, so don't be in any hurry before you start it.
    Please do not send Private Messages to me with requests for help. I will not reply.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •