Other Parts Discussed in Thread: AM3358, AM3352
Tool/software: Linux
Hi All,
I am trying to bringup the adc driver on am3358 sitara processor target. While loading the adc driver on target, i am facing the below kernel panic.
Please guide me what could be the issue.In addition , i have introduced the debug logs in ti_am335x_adc.c and ti_am335x_tscadc.c. But those debug logs are not coming on target while loading driver and dmesg.
PS: If i use debian package, adc driver is up and iio devices are created.
/ti_am335x_adc.ko insmod /lib/modules/4.4.41-gf9f6f0db2d/kernel/drivers/iio/adc/
[ 237.565192] Unable to handle kernel paging request at virtual address 60070113
[ 237.572475] pgd = db660000
[ 237.575193] [60070113] *pgd=00000000
[ 237.578795] Internal error: Oops: 5 [#1] PREEMPT ARM
[ 237.583781] Modules linked in: ti_am335x_adc(+) kfifo_buf industrialio_buffer_cb iio_trig_sysfs iio_trig_interrupt industrialio ti_am335x_tscadc usb_f_acm u_ser)
[ 237.649570] CPU: 0 PID: 992 Comm: insmod Tainted: G O 4.4.41-gf9f6f0db2d #19
[ 237.657781] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 237.663899] task: db133700 ti: db5e8000 task.ti: db5e8000
[ 237.669336] PC is at strnlen+0x14/0x68
[ 237.673103] LR is at string+0x3c/0x104
[ 237.676869] pc : [<c02baf74>] lr : [<c02bc4f4>] psr: a0070193
[ 237.676869] sp : db5e9c48 ip : db5e9c58 fp : db5e9c54
[ 237.688395] r10: c06ca724 r9 : 00000002 r8 : db5e9d80
[ 237.693640] r7 : 60070113 r6 : c09ccb2e r5 : c09ccf04 r4 : 0000ffff
[ 237.700194] r3 : ff0a0004 r2 : 60070113 r1 : ffffffff r0 : 60070113
[ 237.706751] Flags: NzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
[ 237.714003] Control: 10c5387d Table: 9b660019 DAC: 00000051
[ 237.719773] Process insmod (pid: 992, stack limit = 0xdb5e8208)
[ 237.725717] Stack: (0xdb5e9c48 to 0xdb5ea000)
[ 237.730099] 9c40: db5e9c74 db5e9c58 c02bc4f4 c02baf6c c09ccb2e bf3d89f2
[ 237.565192] Unable to handle kernel paging request at virtual address 60070113
[ 237.572475] pgd = db660000
[ 237.575193] [60070113] *pgd=00000000
[ 237.578795] Internal error: Oops: 5 [#1] PREEMPT ARM
[ 237.583781] Modules linked in: ti_am335x_adc(+) kfifo_buf industrialio_buffer_cb iio_trig_sysfs iio_trig_interrupt industrialio ti_am335x_tscadc usb_f_acm u_ser)
[ 237.649570] CPU: 0 PID: 992 Comm: insmod Tainted: G O 4.4.41-gf9f6f0db2d #19
[ 237.657781] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 237.663899] task: db133700 ti: db5e8000 task.ti: db5e8000
[ 237.669336] PC is at strnlen+0x14/0x68
[ 237.673103] LR is at string+0x3c/0x104
[ 237.676869] pc : [<c02baf74>] lr : [<c02bc4f4>] psr: a0070193
[ 237.676869] sp : db5e9c48 ip : db5e9c58 fp : db5e9c54
[ 237.688395] r10: c06ca724 r9 : 00000002 r8 : db5e9d80
[ 237.693640] r7 : 60070113 r6 : c09ccb2e r5 : c09ccf04 r4 : 0000ffff
[ 237.700194] r3 : ff0a0004 r2 : 60070113 r1 : ffffffff r0 : 60070113
[ 237.706751] Flags: NzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
[ 237.714003] Control: 10c5387d Table: 9b660019 DAC: 00000051
[ 237.719773] Process insmod (pid: 992, stack limit = 0xdb5e8208)
[ 237.725717] Stack: (0xdb5e9c48 to 0xdb5ea000)
[ 237.730099] 9c40: db5e9c74 db5e9c58 c02bc4f4 c02baf6c c09ccb2e bf3d89f2
Thanks & Regards,
Krishna