[Gslug-general] ubuntu kernel

Thushara Wijeratna thushw at gmail.com
Sat Feb 7 19:29:16 PST 2009


Jarod -

I managed to get the driver compiled using the current source (tar ball). i
had to fix the header change. but after loading the driver, i couldn't
associate my access point to the acx driver. also it seems to kernel panic
with this:


WARNING: at arch/x86/kernel/pci-dma.c:376
dma_free_coherent+0x43/0x7a() (Tainted: G        W)
Modules linked in: vfat fat fuse sco bridge stp bnep l2cap bluetooth
sunrpc ip6t_REJECT nf_conntrack_ipv6 ip6table_filter ip6_tables ipv6
usb_storage dm_multipath uinput i2c_viapro i2c_core ppdev snd_via82xx
gameport snd_ac97_codec ac97_bus snd_seq_dummy snd_seq_oss
snd_seq_midi_event snd_seq floppy snd_pcm_oss snd_mixer_oss snd_pcm
snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi pcspkr
snd_seq_device snd via_rhine soundcore mii via_ircc irda crc_ccitt
parport_pc parport acx(-) ata_generic pata_acpi pata_via [last
unloaded: scsi_wait_scan]

Pid: 3196, comm: rmmod Tainted: G        W 2.6.27.9-159.fc10.i686 #1
 [<c06a7189>] ? printk+0xf/0x16
 [<c042cc6c>] warn_on_slowpath+0x47/0x70
 [<c0429f07>] ? finish_task_switch+0x2f/0xb0
 [<c06a79cf>] ? schedule+0x6ee/0x70d

 [<c0472551>] ? __free_one_page+0x158/0x19d
 [<c0472c5c>] ? __free_pages_ok+0x10b/0x13d
 [<c0406e98>] dma_free_coherent+0x43/0x7a
 [<e094f42b>] acxpci_free_desc_queues+0xa4/0x10d [acx]

 [<e094f4e1>] acxpci_s_delete_dma_regions+0x4d/0x6e [acx]
 [<e095228b>] acxpci_e_remove+0x19b/0x2ba [acx]
 [<c0528d9f>] pci_device_remove+0x19/0x39
 [<c0594c8f>] __device_release_driver+0x70/0x8e

 [<c0594d1f>] driver_detach+0x72/0x96
 [<c0594291>] bus_remove_driver+0x63/0x89
 [<c059509d>] driver_unregister+0x2a/0x2e
 [<c0528f54>] pci_unregister_driver+0x21/0x5c
 [<e09519df>] acxpci_e_cleanup_module+0x20/0x35 [acx]

 [<e09519b8>] acx_e_cleanup_module+0x8/0xf [acx]
 [<c044d10d>] sys_delete_module+0x1ae/0x1f8
 [<c047e99a>] ? remove_vma+0x55/0x5b
 [<c0460a56>] ? audit_syscall_entry+0xf9/0x123
 [<c0403c76>] syscall_call+0x7/0xb

 ======================
 ======================---[ end trace bd520c654ac13ca9 ]---


i also see this type of output in syslog:

Feb  7 19:17:13 localhost kernel: updating WEP key settings
Feb  7 19:17:13 localhost kernel: setting WEP key 2 as default
Feb  7 19:17:13 localhost kernel: acx_set_status(1):SCANNING
Feb  7 19:17:13 localhost kernel: start_scan: seems like previous scan is
still running. Not starting anew. Please report
Feb  7 19:17:13 localhost kernel: get_mask 0x00000000, set_mask 0x00000000 -
after update
Feb  7 19:17:13 localhost kernel: get_mask 0x00000000, set_mask 0x00040000
Feb  7 19:17:13 localhost kernel: important setting has been changed. Need
to update packet templates, too
Feb  7 19:17:13 localhost kernel: updating packet templates
Feb  7 19:17:13 localhost kernel: updating WEP key settings
Feb  7 19:17:13 localhost kernel: setting WEP key 3 as default
Feb  7 19:17:13 localhost kernel: acx_set_status(1):SCANNING
Feb  7 19:17:13 localhost kernel: start_scan: seems like previous scan is
still running. Not starting anew. Please report
Feb  7 19:17:13 localhost kernel: get_mask 0x00000000, set_mask 0x00000000 -
after update
Feb  7 19:17:13 localhost kernel: get_mask 0x00000000, set_mask 0x00040000
Feb  7 19:17:13 localhost kernel: important setting has been changed. Need
to update packet templates, too
Feb  7 19:17:13 localhost kernel: updating packet templates
Feb  7 19:17:13 localhost kernel: updating WEP key settings
Feb  7 19:17:13 localhost kernel: setting WEP key 0 as default
Feb  7 19:17:13 localhost kernel: acx_set_status(1):SCANNING
Feb  7 19:17:13 localhost kernel: start_scan: seems like previous scan is
still running. Not starting anew. Please report
Feb  7 19:17:13 localhost kernel: get_mask 0x00000000, set_mask 0x00000000 -
after update
Feb  7 19:17:13 localhost kernel: get_mask 0x00000000, set_mask 0x00040000
Feb  7 19:17:13 localhost kernel: important setting has been changed. Need
to update packet templates, too
Feb  7 19:17:13 localhost kernel: updating packet templates

i didn't set WEP, i have a zero-security setup. also a process called
wpa_supplicant is running, and i can't seem to stop it. i have a hunch that
the driver would work if i can get wpa_supplicant to stop... any clues?

thanks,
thushara

On Tue, Jan 27, 2009 at 6:35 PM, Jarod Wilson <jarod at wilsonet.com> wrote:

> Sorry for the delay, been pre-occupied...
>
> On Sat, 2009-01-17 at 21:41 -0800, Thushara Wijeratna wrote:
> >  i may have figured this out - there was only a single place that
> > called that function and the caller had the right struct, so i passed
> > that in.
> > but the dkms build overwrites the file, so i ran the cmd manually:
> >
> > make KERNELRELEASE=2.6.27.9-159.fc10.i686
> > -C /lib/modules/2.6.27.9-159.fc10.i686/build
> > M=/var/lib/dkms/tiacx/0.4.7-3/build
> >
> > i may have hit another bug : http://madwifi-project.org/ticket/1434
> >
> > here is the compiler output:
> >
> > [thushara at gini-sisila build]$ sudo make
> > KERNELRELEASE=2.6.27.9-159.fc10.i686
> > -C /lib/modules/2.6.27.9-159.fc10.i686/build
> > M=/var/lib/dkms/tiacx/0.4.7-3/build
> > make: Entering directory `/usr/src/kernels/2.6.27.9-159.fc10.i686'
> >   CC [M]  /var/lib/dkms/tiacx/0.4.7-3/build/ioctl.o
> >   CC [M]  /var/lib/dkms/tiacx/0.4.7-3/build/common.o
> > /var/lib/dkms/tiacx/0.4.7-3/build/common.c: In function
> > 'acx_l_rxmonitor':
> > /var/lib/dkms/tiacx/0.4.7-3/build/common.c:2429: error: 'struct
> > sk_buff' has no member named 'mac'
> > /var/lib/dkms/tiacx/0.4.7-3/build/common.c:6620:14: error: macro
> > "INIT_WORK" passed 3 arguments, but takes just 2
> > /var/lib/dkms/tiacx/0.4.7-3/build/common.c: In function
> > 'acx_init_task_scheduler':
> > /var/lib/dkms/tiacx/0.4.7-3/build/common.c:6619: error: 'INIT_WORK'
> > undeclared (first use in this function)
> > /var/lib/dkms/tiacx/0.4.7-3/build/common.c:6619: error: (Each
> > undeclared identifier is reported only once
> > /var/lib/dkms/tiacx/0.4.7-3/build/common.c:6619: error: for each
> > function it appears in.)
> > make[1]: *** [/var/lib/dkms/tiacx/0.4.7-3/build/common.o] Error 1
> > make: *** [_module_/var/lib/dkms/tiacx/0.4.7-3/build] Error 2
> > make: Leaving directory `/usr/src/kernels/2.6.27.9-159.fc10.i686'
> >
> > should i grab the kernel/include/linux/skbuff.h from the trunk as
> > suggested, or is there an easier fix for this?
>
> Sorry, not a clue on this one offhand. Mixing and matching headers
> sounds like a path destined for pain and suffering though. This right
> here is a lesson in why out-of-tree drivers generally suck. :)
>
>
> --
> Jarod Wilson
> jarod at wilsonet.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ifokr.org/pipermail/gslug-general/attachments/20090207/a9d4044e/attachment.htm


More information about the Gslug-general mailing list