Hi all,<div><br></div><div>I'm trying to use this chip( WiBear from lesswire ) on at91sam9260 module. I use kernel 2.6.32 and OpenWrt backfire 10.03 rc3. </div><div>Chip is being detected and after insmod libertas_sdio i get kernel panic. Here is my log:</div>
<div><br></div><div>Jan 1 00:02:26 OpenWrt user.debug kernel: libertas enter: lbs_init_module()</div><div>Jan 1 00:02:26 OpenWrt user.debug kernel: libertas leave: lbs_init_module()</div><div>Jan 1 00:02:31 OpenWrt user.debug kernel: libertas enter: if_sdio_init_module()</div>
<div>Jan 1 00:02:31 OpenWrt <a href="http://user.info">user.info</a> kernel: libertas_sdio: Libertas SDIO driver</div><div>Jan 1 00:02:31 OpenWrt <a href="http://user.info">user.info</a> kernel: libertas_sdio: Copyright Pierre Ossman</div>
<div>Jan 1 00:02:31 OpenWrt user.debug kernel: libertas enter: if_sdio_probe()</div><div>Jan 1 00:02:31 OpenWrt user.debug kernel: libertas sdio: class = 0x0, vendor = 0x2DF, device = 0x9104, model = 0x10, ioport = 0x10000</div>
<div>Jan 1 00:02:31 OpenWrt user.debug kernel: libertas enter: if_sdio_prog_firmware()</div><div>Jan 1 00:02:31 OpenWrt user.debug kernel: libertas sdio: firmware status = 0x0</div><div>Jan 1 00:02:31 OpenWrt user.debug kernel: libertas enter: if_sdio_prog_helper()</div>
<div>Jan 1 00:02:42 OpenWrt user.debug kernel: libertas sdio: waiting for helper to boot...</div><div>Jan 1 00:02:42 OpenWrt user.debug kernel: libertas leave: if_sdio_prog_helper(), ret 0</div><div>Jan 1 00:02:42 OpenWrt user.debug kernel: libertas enter: if_sdio_prog_real()</div>
<div>Jan 1 00:02:42 OpenWrt user.debug kernel: libertas sdio: firmware helper gave up early</div><div>Jan 1 00:02:42 OpenWrt user.err kernel: libertas: failed to load firmware</div><div>Jan 1 00:02:42 OpenWrt user.debug kernel: libertas leave: if_sdio_prog_real(), ret -5</div>
<div>Jan 1 00:02:42 OpenWrt user.alert kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000000</div><div>Jan 1 00:02:42 OpenWrt user.alert kernel: pgd = c30ac000</div><div>Jan 1 00:02:42 OpenWrt user.alert kernel: [00000000] *pgd=231b5031, *pte=00000000, *ppte=00000000</div>
<div>Jan 1 00:02:42 OpenWrt user.emerg kernel: Internal error: Oops: 17 [#1] PREEMPT</div><div>Jan 1 00:02:42 OpenWrt user.emerg kernel: last sysfs file: /sys/kernel/uevent_seqnum</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: LR is at remove_vm_area+0x10/0xac</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: pc : [<c0090c00>] lr : [<c0090bc8>] psr: 00000013</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: sp : c30dfd60 ip : c30dfd60 fp : c30dfd74</div><div>
Jan 1 00:02:42 OpenWrt user.warn kernel: r10: c318a200 r9 : c318ce00 r8 : c4bbe000</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7 : 00000000 r6 : c31c0000 r5 : c319ab00 r4 : c3096e60</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r3 : 00000000 r2 : 00000000 r1 : 00000000 r0 : c319ab00</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: Flags: nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: Control: 0005317f Table: 230ac000 DAC: 00000015</div><div>
Jan 1 00:02:42 OpenWrt user.emerg kernel: Process insmod (pid: 1939, stack limit = 0xc30de270)</div><div>Jan 1 00:02:42 OpenWrt user.emerg kernel: Stack: (0xc30dfd60 to 0xc30e0000)</div><div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fd60: 00000000 c4bbe000 c30dfd94 c30dfd78 c0090d84 c0090bc8 c3096d60 c30dfdf0</div>
<div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fd80: c31c0000 000409c4 c30dfda4 c30dfd98 c0090e64 c0090d58 c30dfdb4 c30dfda8</div><div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fda0: bf02c2e8 c0090e38 c30dfdcc c30dfdb8 bf02c304 bf02c2e4 00000000 c30dfdf0</div>
<div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fdc0: c30dfe34 c30dfdd0 bf0d21e4 bf02c2fc bf0d34a4 c30dfdf8 c30dfdf4 c30dfd7c</div><div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fde0: bf09a278 c318a208 c30dfe0c c30dfdf8 fffffffb c3096d60 c3096d60 fffffffb</div>
<div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fe00: 00000010 00000000 bf09a044 00000000 c318a200 bf0d3f10 bf0d35f4 bf0a23ac</div><div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fe20: c30de000 00000000 c30dfe54 c30dfe38 bf09ef54 bf0d16e4 c318a208 c318a208</div>
<div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fe40: bf0d3f10 c300bc00 c30dfe74 c30dfe58 c01a6d84 bf09ef00 c318a208 c318a23c</div><div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fe60: bf0d3f10 c300bc00 c30dfe94 c30dfe78 c01a6ea0 c01a6ce4 00000000 c01a6e38</div>
<div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fe80: bf0d3f10 c300bc00 c30dfebc c30dfe98 c01a6544 c01a6e48 c3068038 c300bf90</div><div>Jan 1 00:02:42 OpenWrt user.emerg kernel: fea0: c0172d4c 00000000 bf0d3f10 bf0d3f10 c30dfecc c30dfec0 c01a6be8 c01a6504</div>
<div>Jan 1 00:02:42 OpenWrt user.emerg kernel: ffe0: 400520b4 bea16d88 00012490 400520c4 20000010 00073030 00203576 636d6d6b</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: Backtrace:</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0090bb8>] (remove_vm_area+0x0/0xac) from [<c0090d84>] (__vunmap+0x3c/0xe0)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: r5:c4bbe000 r4:00000000</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0090d48>] (__vunmap+0x0/0xe0) from [<c0090e64>] (vunmap+0x3c/0x48)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:000409c4 r6:c31c0000 r5:c30dfdf0 r4:c3096d60</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0090e28>] (vunmap+0x0/0x48) from [<bf02c2e8>] (compat_request_firmware_nowait+0x160/0x164 [compat_firmware_class])</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf02c2d4>] (compat_request_firmware_nowait+0x14c/0x164 [compat_firmware_class]) from [<bf02c304>] (compat_release_firmware+0x18/0x54 [compat_firmware_class])</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf02c2ec>] (compat_release_firmware+0x0/0x54 [compat_firmware_class]) from [<bf0d21e4>] (if_sdio_probe+0xb10/0xe98 [libertas_sdio])</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r5:c30dfdf0 r4:00000000</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf0d16d4>] (if_sdio_probe+0x0/0xe98 [libertas_sdio]) from [<bf09ef54>] (sdio_bus_probe+0x64/0x70 [mmc_core])</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf09eef0>] (sdio_bus_probe+0x0/0x70 [mmc_core]) from [<c01a6d84>] (driver_probe_device+0xb0/0x164)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:c300bc00 r6:bf0d3f10 r5:c318a208 r4:c318a208</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c01a6cd4>] (driver_probe_device+0x0/0x164) from [<c01a6ea0>] (__driver_attach+0x68/0x8c)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:c300bc00 r6:bf0d3f10 r5:c318a23c r4:c318a208</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c01a6e38>] (__driver_attach+0x0/0x8c) from [<c01a6544>] (bus_for_each_dev+0x50/0x84)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:c300bc00 r6:bf0d3f10 r5:c01a6e38 r4:00000000</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c01a64f4>] (bus_for_each_dev+0x0/0x84) from [<c01a6be8>] (driver_attach+0x20/0x28)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: r6:bf0d3f10 r5:bf0d3f10 r4:00000000</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c01a6bc8>] (driver_attach+0x0/0x28) from [<c01a5dd4>] (bus_add_driver+0xa4/0x230)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c01a5d30>] (bus_add_driver+0x0/0x230) from [<c01a71bc>] (driver_register+0xb0/0x13c)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c01a710c>] (driver_register+0x0/0x13c) from [<bf09f0c8>] (sdio_register_driver+0x24/0x2c [mmc_core])</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: r9:c30de000 r8:c00220c4 r7:00000000 r6:bf0d7000 r5:bf0d3f44</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r4:00000000</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf09f0a4>] (sdio_register_driver+0x0/0x2c [mmc_core]) from [<bf0d7078>] (init_module+0x78/0x118 [libertas_sdio])</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf0d7000>] (init_module+0x0/0x118 [libertas_sdio]) from [<c00213f4>] (do_one_initcall+0x64/0x1c4)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r5:bf0d3f44 r4:00000000</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0021390>] (do_one_initcall+0x0/0x1c4) from [<c00604d4>] (sys_init_module+0xc8/0x1f8)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:00073030 r6:00000000 r5:bf0d3f44 r4:00000000</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c006040c>] (sys_init_module+0x0/0x1f8) from [<c0021f40>] (ret_fast_syscall+0x0/0x28)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:00000080 r6:00073020 r5:00073030 r4:00073008</div>
<div>Jan 1 00:02:42 OpenWrt user.emerg kernel: Code: e2822001 e5832004 e59f3060 e1a02003 (e5933000)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: ---[ end trace af294efecebaccdf ]---</div><div>Jan 1 00:02:42 OpenWrt <a href="http://user.info">user.info</a> kernel: note: insmod[1939] exited with preempt_count 1</div>
<div>Jan 1 00:02:42 OpenWrt user.err kernel: BUG: scheduling while atomic: insmod/1939/0x40000002</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: Modules linked in: libertas_sdio(+) libertas at91_mci mmc_core mac80211 cfg80211 compat_firmware_class compat lib80211_crypt_tkip lib80211_crypt_ccmp lib80211_crypt_wep lib80211 arc4 ecb</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: Backtrace:</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c00254dc>] (dump_backtrace+0x0/0x114) from [<c0241648>] (dump_stack+0x18/0x1c)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:c30de000 r6:c3865380 r5:00012000 r4:00000000</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0241630>] (dump_stack+0x0/0x1c) from [<c002df24>] (__schedule_bug+0x54/0x60)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c002ded0>] (__schedule_bug+0x0/0x60) from [<c02418bc>] (schedule+0x84/0x394)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: r5:00012000 r4:c30de000</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0241838>] (schedule+0x0/0x394) from [<c002e1d8>] (__cond_resched+0x28/0x38)</div><div>
Jan 1 00:02:42 OpenWrt user.warn kernel: [<c002e1b0>] (__cond_resched+0x0/0x38) from [<c0241ce8>] (_cond_resched+0x34/0x44)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c003879c>] (do_exit+0x0/0x6b4) from [<c0025a28>] (die+0x19c/0x1c0)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c002588c>] (die+0x0/0x1c0) from [<c0027674>] (__do_kernel_fault+0x6c/0x7c)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0027608>] (__do_kernel_fault+0x0/0x7c) from [<c0027854>] (do_page_fault+0x1d0/0x1e8)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:c3bd1180 r6:00000000 r5:c3865380 r4:c02de570</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0027684>] (do_page_fault+0x0/0x1e8) from [<c0021330>] (do_DataAbort+0x3c/0x9c)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c00212f4>] (do_DataAbort+0x0/0x9c) from [<c0021aec>] (__dabt_svc+0x4c/0x60)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: Exception stack(0xc30dfd18 to 0xc30dfd60)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: fd00: c319ab00 00000000</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: fd20: 00000000 00000000 c3096e60 c319ab00 c31c0000 00000000 c4bbe000 c318ce00</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: fd40: c318a200 c30dfd74 c30dfd60 c30dfd60 c0090bc8 c0090c00 00000013 ffffffff</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r8:c4bbe000 r7:00000000 r6:c31c0000 r5:c30dfd4c r4:ffffffff</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0090bb8>] (remove_vm_area+0x0/0xac) from [<c0090d84>] (__vunmap+0x3c/0xe0)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r5:c4bbe000 r4:00000000</div><div>
Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0090d48>] (__vunmap+0x0/0xe0) from [<c0090e64>] (vunmap+0x3c/0x48)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:000409c4 r6:c31c0000 r5:c30dfdf0 r4:c3096d60</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0090e28>] (vunmap+0x0/0x48) from [<bf02c2e8>] (compat_request_firmware_nowait+0x160/0x164 [compat_firmware_class])</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf02c2d4>] (compat_request_firmware_nowait+0x14c/0x164 [compat_firmware_class]) from [<bf02c304>] (compat_release_firmware+0x18/0x54 [compat_firmware_class])</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf02c2ec>] (compat_release_firmware+0x0/0x54 [compat_firmware_class]) from [<bf0d21e4>] (if_sdio_probe+0xb10/0xe98 [libertas_sdio])</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r5:c30dfdf0 r4:00000000</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf0d16d4>] (if_sdio_probe+0x0/0xe98 [libertas_sdio]) from [<bf09ef54>] (sdio_bus_probe+0x64/0x70 [mmc_core])</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf09eef0>] (sdio_bus_probe+0x0/0x70 [mmc_core]) from [<c01a6d84>] (driver_probe_device+0xb0/0x164)</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c01a5d30>] (bus_add_driver+0x0/0x230) from [<c01a71bc>] (driver_register+0xb0/0x13c)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c01a710c>] (driver_register+0x0/0x13c) from [<bf09f0c8>] (sdio_register_driver+0x24/0x2c [mmc_core])</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: r9:c30de000 r8:c00220c4 r7:00000000 r6:bf0d7000 r5:bf0d3f44</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r4:00000000</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf09f0a4>] (sdio_register_driver+0x0/0x2c [mmc_core]) from [<bf0d7078>] (init_module+0x78/0x118 [libertas_sdio])</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<bf0d7000>] (init_module+0x0/0x118 [libertas_sdio]) from [<c00213f4>] (do_one_initcall+0x64/0x1c4)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r5:bf0d3f44 r4:00000000</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c0021390>] (do_one_initcall+0x0/0x1c4) from [<c00604d4>] (sys_init_module+0xc8/0x1f8)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:00073030 r6:00000000 r5:bf0d3f44 r4:00000000</div>
<div>Jan 1 00:02:42 OpenWrt user.warn kernel: [<c006040c>] (sys_init_module+0x0/0x1f8) from [<c0021f40>] (ret_fast_syscall+0x0/0x28)</div><div>Jan 1 00:02:42 OpenWrt user.warn kernel: r7:00000080 r6:00073020 r5:00073030 r4:00073008</div>
<div><br></div><div>Thanks for any advice.</div><div><br></div><div>Regards, Stan </div><div><br></div>