Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: jpeters on July 25, 2009, 12:41:34 PM

Title: compile madwifi questions
Post by: jpeters 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$

Title: Re: compile madwifi questions
Post by: ^thehatsrule^ 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.
Title: Re: compile madwifi questions
Post by: curaga on July 26, 2009, 04:21:05 AM
Isn't there already a madwifi extension for TC 1.x (ie kernel 2.6.26)?
Title: Re: compile madwifi questions
Post by: jpeters 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....).    
Title: Re: compile madwifi questions
Post by: curaga 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.
Title: Re: compile madwifi questions
Post by: jpeters 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.