Hello,

I know it's old thread.
But did you resolve it ?

Can you please share the solution if possible ?

Thank you!
Ran

On Tuesday, October 19, 2010 at 2:21:35 PM UTC+3, fozay wrote:
>
> Hello everybody; 
>
> i try to insmod my mcbsp driver but i obtain these errors. Ijust try 
> to init and exit. What is the reason do you have any idea? 
>
>
> ERROR: 
> [75640.283355] Unable to handle kernel NULL pointer dereference at 
> virtual address 00000000 
> [75640.291900] pgd = ce798000 
> [75640.294891] [00000000] *pgd=8e6c8031, *pte=00000000, *ppte=00000000 
> [75640.301239] Internal error: Oops: 17 [#6] PREEMPT 
> [75640.305938] last sysfs file: /sys/devices/platform/i2c_omap.1/ 
> i2c-1/1-0049/twl4030_pwrbutton/input/input1/capabilities/sw 
> [75640.316955] Modules linked in: mcbsp_start_2_dif1(+) 
> mcbsp_start_2_dif(+) mcbsp_start_1_req(+) mcbsp_start_1_conf4(+) 
> mcbsp_start_1_conf3(+) mcbsp_start_] 
> [75640.346496] CPU: 0    Tainted: G      D W   (2.6.32 #3) 
> [75640.351776] PC is at omap_mcbsp_config+0x28/0xb0 
> [75640.356445] LR is at mcbsp_init+0x18/0x44 [mcbsp_start_2_dif1] 
> [75640.362304] pc : [<c0055a54>]    lr : [<bf17b048>]    psr: 80000013 
> [75640.362304] sp : cdc29f58  ip : 00000000  fp : 00000000 
> [75640.373840] r10: 00000004  r9 : cdc28000  r8 : c003c144 
> [75640.379089] r7 : 00000000  r6 : bf17b030  r5 : bf17b0c8  r4 : 
> 00000000 
> [75640.385650] r3 : c06758a4  r2 : cdc28000  r1 : 00000000  r0 : 
> 00000000 
> [75640.392211] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM 
> Segment user 
> [75640.399383] Control: 10c5387d  Table: 8e798019  DAC: 00000015 
> [75640.405151] Process insmod (pid: 4210, stack limit = 0xcdc282f0) 
> [75640.411193] Stack: (0xcdc29f58 to 0xcdc2a000) 
> [75640.415588] 
> 9f40:                                                       00000000 
> c003b384 
> [75640.423797] 9f60: 00000c74 bf17b0c8 00000000 00012018 c003c144 
> 00000000 bf17b0c8 00000000 
> [75640.432037] 9f80: 00012018 c00a0214 00000004 cf817980 cdf391c0 
> 4000e920 00004000 00012018 
> [75640.440246] 9fa0: 00000080 c003bfc0 4000e920 00004000 00012018 
> 00000c74 00012008 00000001 
> [75640.448486] 9fc0: 4000e920 00004000 00012018 00000080 00012008 
> 00000000 00000004 00000000 
> [75640.456695] 9fe0: bec97e72 bec97bfc 00008e90 400e9264 60000010 
> 00012018 00000000 00000000 
> [75640.464935] [<c0055a54>] (omap_mcbsp_config+0x28/0xb0) from 
> [<bf17b048>] (mcbsp_init+0x18/0x44 [mcbsp_start_2_dif1]) 
> [75640.475555] [<bf17b048>] (mcbsp_init+0x18/0x44 
> [mcbsp_start_2_dif1]) from [<c003b384>] (do_one_initcall+0x5c/0x1bc) 
> [75640.486053] [<c003b384>] (do_one_initcall+0x5c/0x1bc) from 
> [<c00a0214>] (sys_init_module+0xc0/0x1f0) 
> [75640.495239] [<c00a0214>] (sys_init_module+0xc0/0x1f0) from 
> [<c003bfc0>] (ret_fast_syscall+0x0/0x2c) 
> [75640.504364] Code: e59f1084 e59f0084 ea10cf37 e59f3080 (e1d110b0) 
> [75640.515167] ---[ end trace d622b392ba50038f ]--- 
> Segmentation fault 
>
>
> CODE: 
>
>
>
>
> #include <linux/init.h> 
> #include <linux/module.h> 
> #include <plat/mcbsp.h> 
>
> MODULE_LICENSE("GPL"); 
>
>  const struct omap_mcbsp_reg_cfg *config; 
>
> static int mcbsp_init(void) 
> { 
>         omap_mcbsp_config(0, config); 
>
>         omap_mcbsp_start(0,500,700); 
>         printk(KERN_INFO "Hello,world\n"); 
>         return 0; 
> } 
>
> static int mcbsp_exit(void) 
> { 
>
>         omap_mcbsp_stop(0,500,500); 
>
>         printk(KERN_INFO "goodbye all\n"); 
>         return 0; 
> } 
>
> module_init(mcbsp_init); 
> module_exit(mcbsp_exit); 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/a90e8e08-0db4-4486-9382-dbb7f828a5b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to