The line
EXTRA_CFLAGS += -I$(PWD)/os/linux

in the makefile doesn't seam to take effect because I get os_headers.h not found when it compiles the directory wlan.

I fix it doing: cp os/linux/*.h wlan/
there are other 2 directories like if/ that I hade todo the same thing.

It compiles but I get this error:

root@gumstix-custom-verdex:~$ modprobe wlan0
Segmentation fault

root@gumstix-custom-verdex:~$ dmesg
<5>pccard: card ejected from slot 0
<4>cfio: module license 'unspecified' taints kernel.
<5>pccard: PCMCIA card inserted into slot 0
<5>pcmcia: registering new device pcmcia0.0
<4>Before register driver
<4>Entering cf_attach()
<4>pcmcia: request for exclusive IRQ could not be fulfilled.
<4>pcmcia: the driver needs updating to supported shared IRQ lines.
<4>BasePort1=0xc48a0000, AssignedIRQ=160
<1>Unable to handle kernel NULL pointer dereference at virtual address 00000000
<1>pgd = c3f1c000
<1>[00000000] *pgd=a3e34031, *pte=00000000, *ppte=00000000
<4>Internal error: Oops: 17 [#1]
<4>Modules linked in: mcf25(P) cfio(P) i2c_dev i2c_pxa i2c_core robostix_drv pxamci pxa2xx_cs pxa2xx_core proc_gpio pcmcia pcmcia_core firmware_class ohci_hcd usbcore mmc_block mmc_core smc911x gumstix_smc911x mii
<4>CPU: 0    Tainted: P         (2.6.24 #2)
<4>PC is at __wake_up_common+0x24/0x84
<4>LR is at __wake_up+0x4c/0x64
<4>pc : [<c0029a38>]    lr : [<c002de90>]    psr: 60000013
<4>sp : c3f0da08  ip : c3f0da38  fp : c3f0da34
<4>r10: 00000000  r9 : 00000001  r8 : c3d07d34
<4>r7 : 00000000  r6 : 00000001  r5 : 00000000  r4 : fffffff4
<4>r3 : 00000000  r2 : 00000001  r1 : 00000001  r0 : 00000000
<4>Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
<4>Control: 0000397f  Table: a3f1c000  DAC: 00000015
<4>Process modprobe (pid: 730, stack limit = 0xc3f0c270)
<4>Stack: (0xc3f0da08 to 0xc3f0e000)
<4>da00:                   00000000 00000000 00000000 00000000 00000000 00000003
<4>da20: c3d07360 00000000 c3f0da54 c3f0da38 c002de90 c0029a20 00000000 c0059078
<4>da40: 00000000 c3c2b800 c3f0dab4 c3f0da58 bf07d0bc c002de50 00000000 c3f0da70
<4>da60: bf084e84 00000002 c3f50000 c3e06600 000031c0 c3e7d240 000172e0 00000000
<4>da80: c3d07360 0000c3d0 c3f0dab4 c3f50000 c3f510e4 00000000 c3d07360 c3f0dade
<4>daa0: 00c3d073 000000c3 c3f0db1c c3f0dab8 bf07584c bf07bb9c 00000000 00000000
<4>dac0: c00acc20 000000bf 0000bf07 00bf0750 000000c3 000000bf c3f0db04 ffffdae8
<4>dae0: ffffffff 00000000 00000000 000fda90 c3f0db1c c3d07360 c3d07000 c3c4cc20
<4>db00: 00000000 c3ea5520 00000001 c48b1000 c3f0db3c c3f0db20 bf0748fc bf075310
<4>db20: c3f0dd8c c3f0dd48 c3e31200 bf072340 c3f0dd8c c3f0db40 bf071358 bf074784
<4>db40: c0114ca8 00013c01 00000201 00000076 00000000 000493e0 00055730 003f1500
<4>db60: 002dc6c0 002dc6c0 000186a0 c3d04200 00000000 c3d04200 c3f0db94 c3f0db88
<4>db80: c00590c0 c0059008 c3f0dbe4 c3f0db00 c3f0dbac c3f0dba0 c00590c0 c0059008
<4>dba0: c3f0dbcc c3f0dbb0 c0075de4 00000000 00001000 00000000 c3e0f420 00000000
<4>dbc0: c3f0dbf4 c3f00167 00000000 00000080 00001000 00028000 c3e0f420 00000000
<4>dbe0: 00000021 c3d7f9a0 c3f0dc0c c3f0dbf8 c0071048 c0070e70 ffffffff 000000d0
<4>dc00: c3f0dc1c c3f0dc10 c0071078 c0071030 c3f0dc74 c3f0dc20 c0025248 c007105c
<4>dc20: c0071400 c487d000 00000000 c01ea200 c0007120 000000a3 28000000 c0007120
<4>dc40: c487c000 28000000 0000007f 0000ffff 00000000 c3e0f420 00000000 00000021
<4>dc60: c3d7f9a0 c3d7f9a0 c3f0dc84 c3f0dc78 c0025518 c00251e8 c3f0dcb4 c3f0dc88
<4>dc80: bf044478 c00254d4 00000005 0000000b c3f0dc90 000000de 00000008 00000000
<4>dca0: c3e0f408 00000021 c3f0dcec c3f0dcb8 c3f0dccc c3f0dc00 c0059000 00000000
<4>dcc0: 00000032 00000032 00000032 c0059078 00000008 00000008 c3e0f4c4 c3e0f408
<4>dce0: 0000006f c3f29fd4 c3f29fc0 bf044864 c3d7f9a0 c3f0dd48 0000001a 00000008
<4>dd00: 0000001a c3e0f408 761901c1 36363d35 ff7f6705 c00590ff c3f0dd44 c3f0dd28
<4>dd20: c00756c0 c0059078 c3f0dd48 00000000 0000001a c3e0f408 c3f0dd8c c3f0dd48
<4>dd40: bf044ec4 c00755f4 00000000 c3f3471b 00000110 00000000 00000079 40000d1b
<4>dd60: c00dee0d c3f0dd08 c3e31298 c3e31298 c3e31200 bf0720bc bf0720a4 bf052f14
<4>dd80: c3f0ddcc c3f0dd90 bf04ba94 bf0710b4 c3e31300 c3e31201 00000200 00000001
<4>dda0: 00000000 00000000 00000000 c00b3200 c3e31298 c3e31298 bf0720bc c3e31320
<4>ddc0: c3f0ddec c3f0ddd0 c010a40c bf04b9dc c3e3133c c3e31298 c010a5a0 bf0720bc
<4>dde0: c3f0de04 c3f0ddf0 c010a624 c010a318 00000000 c3f0de0c c3f0de34 c3f0de08
<4>de00: c0109750 c010a5ac 00000001 bf052fac bf052fac c3e312e0 bf0720bc bf0720c4
<4>de20: 00000000 00000004 c3f0de44 c3f0de38 c010a228 c0109714 c3f0de6c c3f0de48
<4>de40: c0109acc c010a214 c01f45a0 bf0720bc bf0720a4 bf0720bc 00000004 bf0721a0
<4>de60: c3f0de84 c3f0de70 c010a8bc c0109a64 00000002 00000000 c3f0deb4 c3f0de88
<4>de80: bf04c854 c010a844 bf072340 00000001 bf0a3180 bf072340 00000001 bf0a3180
<4>dea0: c3ea55e0 c48dbfac c3f0decc c3f0deb8 bf071438 bf04c770 bf0a3180 c3ea5628
<4>dec0: c3f0dedc c3f0ded0 bf085c34 bf071410 c3f0deec c3f0dee0 bf074090 bf085c2c
<4>dee0: c3f0dfa4 c3f0def0 c00532b4 bf074080 00000000 c3e94758 c3f0df24 00016368
<4>df00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>df20: 00000000 00000000 00000000 00000000 00000008 c48df03c c3f294e0 c48dc27c
<4>df40: c48dc18c c48dc2a4 00000000 000002d7 000002d7 bf0a318c 00000014 c48dbefc
<4>df60: c48dc2cc 00000014 00000015 00000012 00000000 00000000 00000080 0000a49c
<4>df80: 00000000 000162d8 00000080 c001d26c c3f0c000 00000000 00000000 c3f0dfa8
<4>dfa0: c001d084 c0051f74 0000a49c 00000000 40127000 00032ab4 00016368 be93aa10
<4>dfc0: 0000a49c 00000000 000162d8 00000080 00016238 be93ace8 00015070 000162e4
<4>dfe0: 00000000 be93aa14 0000a9ac 400cabc4 60000010 40127000 00000000 00000000
<4>[<c0029a14>] (__wake_up_common+0x0/0x84) from [<c002de90>] (__wake_up+0x4c/0x64)
<4>[<c002de44>] (__wake_up+0x0/0x64) from [<bf07d0bc>] (PrepareAndSendCommand+0x152c/
0x160c [mcf25])
<4> r5:c3c2b800 r4:00000000
<4>[<bf07bb90>] (PrepareAndSendCommand+0x0/0x160c [mcf25]) from [<bf07584c>] (wlan_init_fw+0x548/0x6a0 [mcf25])
<4>[<bf075304>] (wlan_init_fw+0x0/0x6a0 [mcf25]) from [<bf0748fc>] (wlan_add_card+0x184/0x258 [mcf25])
<4>[<bf074778>] (wlan_add_card+0x0/0x258 [mcf25]) from [<bf071358>] (mv8385_cf_probe+0x2b0/0x35c [cfio])
<4> r6:bf072340 r5:c3e31200 r4:c3f0dd48
<4>[<bf0710a8>] (mv8385_cf_probe+0x0/0x35c [cfio]) from [<bf04ba94>] (pcmcia_device_probe+0xc4/0x134 [pcmcia])
<4> r8:bf052f14 r7:bf0720a4 r6:bf0720bc r5:c3e31200 r4:c3e31298
<4>[<bf04b9d0>] (pcmcia_device_probe+0x0/0x134 [pcmcia]) from [<c010a40c>] (driver_probe_device+0x100/0x1b8)
<4> r7:c3e31320 r6:bf0720bc r5:c3e31298 r4:c3e31298
<4>[<c010a30c>] (driver_probe_device+0x0/0x1b8) from [<c010a624>] (__driver_attach+0x84/0xe4)
<4> r7:bf0720bc r6:c010a5a0 r5:c3e31298 r4:c3e3133c
<4>[<c010a5a0>] (__driver_attach+0x0/0xe4) from [<c0109750>] (bus_for_each_dev+0x48/0x80)
<4> r5:c3f0de0c r4:00000000
<4>[<c0109708>] (bus_for_each_dev+0x0/0x80) from [<c010a228>] (driver_attach+0x20/0x28)
<4> r7:00000004 r6:00000000 r5:bf0720c4 r4:bf0720bc
<4>[<c010a208>] (driver_attach+0x0/0x28) from [<c0109acc>] (bus_add_driver+0x74/0x1c4)
<4>[<c0109a58>] (bus_add_driver+0x0/0x1c4) from [<c010a8bc>] (driver_register+0x84/0x8c)
<4> r8:bf0721a0 r7:00000004 r6:bf0720bc r5:bf0720a4 r4:bf0720bc
<4>[<c010a838>] (driver_register+0x0/0x8c) from [<bf04c854>] (pcmcia_register_driver+0xf0/0x144 [pcmcia])
<4> r4:00000000
<4>[<bf04c764>] (pcmcia_register_driver+0x0/0x144 [pcmcia]) from [<bf071438>] (register_cf_driver+0x34/0x54 [cfio])
<4> r8:c48dbfac r7:c3ea55e0 r6:bf0a3180 r5:00000001 r4:bf072340
<4>[<bf071404>] (register_cf_driver+0x0/0x54 [cfio]) from [<bf085c34>] (sbi_register+0x14/0x18 [mcf25])
<4> r4:c3ea5628
<4>[<bf085c20>] (sbi_register+0x0/0x18 [mcf25]) from [<bf074090>] (wlan_init_module+0x1c/0x34 [mcf25])
<4>[<bf074074>] (wlan_init_module+0x0/0x34 [mcf25]) from [<c00532b4>] (sys_init_module+0x134c/0x1434)
<4>[<c0051f68>] (sys_init_module+0x0/0x1434) from [<c001d084>] (ret_fast_syscall+0x0/0x10)
<4>Code: e5900000 e1a09001 e1a06002 e240400c (e594100c)
<4>---[ end trace 15d182c4a81e343c ]---

root@gumstix-custom-verdex:~$ lsmod
Module                  Size  Used by
mcf25                 195280  1
cfio                    4960  2 mcf25
i2c_dev                 5988  0
i2c_pxa                 6176  0
i2c_core               18832  2 i2c_dev,i2c_pxa
robostix_drv            8500  0
pxamci                  6784  0
pxa2xx_cs               3368  3
pxa2xx_core            10464  1 pxa2xx_cs
proc_gpio               4492  0
pcmcia                 33492  1 cfio
pcmcia_core            31504  4 mcf25,cfio,pxa2xx_core,pcmcia
firmware_class          7232  1 pcmcia
ohci_hcd               17092  0
usbcore               118772  2 ohci_hcd
mmc_block              10180  0
mmc_core               43572  2 pxamci,mmc_block
smc911x                19745  0
gumstix_smc911x         2592  1 smc911x
mii                     4704  1 smc911x

I loaded the factory image kernel 2.6.21 and the wifistix works fine.

Thanks for the help.

On Tue, Feb 17, 2009 at 1:04 PM, Nick P <> wrote:
I ran into this problem. Chris Dollar sent me a patch and it fixed the problem. Here are his instructions:

Attached is the patch that I used to get it to compile for 2.6.24.
You'll want to put it in the wifistix-modules folder and then add this
line to the SRC_URI part of the file.
patch=1 \
Make sure its the last line of the SRC_URI section, just above the double quote.

On Tue, Feb 17, 2009 at 4:08 AM, yipiha <> wrote:

I have the same error when i make gumstix-basic-image with kernel 2.6.24

my version of OE svn : 318

and i need the kernel 2.6.24 for the module USB power management level

i remove the tmp/ directory before remake and i have the same error

I need help


voorhies wrote:
> A friend of mine helped me solve the problem -- we simply got rid of
> tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21/
> and now everything builds correctly. I'm a bit surprised that a new one
> wasn't generated.
> --Rand

View this message in context:
Sent from the Gumstix mailing list archive at

Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
gumstix-users mailing list

Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
gumstix-users mailing list

Linus Casassa
Estudiante Ingeniería Civil Electrónica
Fono: 56-9-97776941