WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: compile madwifi questions  (Read 3061 times)

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
compile madwifi questions
« on: July 25, 2009, 12:41:34 PM »
I think the available wireless package  doesn't work for 802.11A devices, so attempted to compile madwife-0.9.4. I  copied config-2.6.29.1-tinycore into /src/linux-2.6.26 as .config (not sure if that's the way to do it) and then tried to compile, but got errors:

Code: [Select]
tc@box:/tmp/work/madwifi-0.9.4$ export KERNELPATH=/mnt/hda3/src/linux-2.6.26
tc@box:/tmp/work/madwifi-0.9.4$ make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /mnt/hda3/src/linux-2.6.26 SUBDIRS=/tmp/work/madwifi-0.9.4 modules
make[1]: Entering directory `/mnt/hda3/src/linux-2.6.26'
  CC [M]  /tmp/work/madwifi-0.9.4/ath/if_ath.o
In file included from include/linux/gfp.h:4,
                 from include/linux/slab.h:12,
                 from include/linux/percpu.h:5,
                 from include/asm/local.h:4,
                 from include/linux/module.h:19,
                 from /tmp/work/madwifi-0.9.4/ath/if_ath.c:51:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:197:5: error: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
                 from include/linux/slab.h:12,
                 from include/linux/percpu.h:5,
                 from include/asm/local.h:4,
                 from include/linux/module.h:19,
                 from /tmp/work/madwifi-0.9.4/ath/if_ath.c:51:
include/linux/mmzone.h:218: error: 'MAX_NR_ZONES' undeclared here (not in a function)
In file included from include/linux/scatterlist.h:6,
                 from include/asm/dma-mapping.h:9,
                 from include/linux/dma-mapping.h:52,
                 from include/linux/dmaengine.h:29,
                 from include/linux/skbuff.h:29,
                 from /tmp/work/madwifi-0.9.4/ath/if_ath.c:53:
include/linux/mm.h:429:63: error: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:477:62: error: "NR_PAGEFLAGS" is not defined
make[3]: *** [/tmp/work/madwifi-0.9.4/ath/if_ath.o] Error 1
make[2]: *** [/tmp/work/madwifi-0.9.4/ath] Error 2
make[1]: *** [_module_/tmp/work/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/mnt/hda3/src/linux-2.6.26'
make: *** [modules] Error 2
tc@box:/tmp/work/madwifi-0.9.4$


Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: compile madwifi questions
« Reply #1 on: July 25, 2009, 04:31:09 PM »
If you are using TC 1.x, you should use the files meant for 1.x

As for the missing files, the kernel headers probably need to be installed.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: compile madwifi questions
« Reply #2 on: July 26, 2009, 04:21:05 AM »
Isn't there already a madwifi extension for TC 1.x (ie kernel 2.6.26)?
The only barriers that can stop you are the ones you create yourself.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: compile madwifi questions
« Reply #3 on: July 26, 2009, 11:05:58 AM »
Isn't there already a madwifi extension for TC 1.x (ie kernel 2.6.26)?
I'm using tc_2.2, so haven't checked. I got past the posted issue, but have to find a madwifi that works with the current kernel.  (the one I tried had some "known issue" or other....).    

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: compile madwifi questions
« Reply #4 on: July 26, 2009, 11:15:54 AM »
Your output was kinda confusing, using the kernel for TC 1.x yet the config for TC2. One shouldn't mix the parts, for tc 2.x use 2.6.29.1.
The only barriers that can stop you are the ones you create yourself.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: compile madwifi questions
« Reply #5 on: July 26, 2009, 11:38:18 AM »
Your output was kinda confusing, using the kernel for TC 1.x yet the config for TC2. One shouldn't mix the parts, for tc 2.x use 2.6.29.1.

oops....thought I had the current one....I'm updating now....


edit: still getting some known issue  involving 'priv' after trying several versions of madwifi. Meanwhile, I got a connection on my 802.11.A  (maybe it's just hit & miss).

edit2: with earlier madwifi (.0.9.2.1) I get:  
Code: [Select]
Checking requirements... ok.
Checking kernel configuration... FAILED

Please enable wireless extensions.


« Last Edit: July 26, 2009, 06:54:40 PM by jpeters »