Community
cancel
Showing results for 
Search instead for 
Did you mean: 
FATA
New Contributor I
1,749 Views

kernel panic with gadgetfs

Hi All

I want to test gadgetfs on galelio gen1 board.For which i am followwing steps mentioned on the link http://blackfin.uclinux.org/doku.php?id=linux-kernel:usb-gadget:fs linux-kernel:usb-gadget:fs [Analog Devices Open Source| Mixed-signal and Digital Signal Processing ICs]

I am able to perform below steps

root:/dev> modprobe gadgetfs

root:/dev> mkdir /dev/gadget

root:/dev> mount -t gadgetfs gadgetfs /dev/gadget

root:/dev> ls /dev/gadget/ -l

-rw------- 1 root root 0 Jan 1 04:29 pch_udc.

But when i am doing root:~> gadgetfs-test -r "1.3" -v.

I observe kernel panic.Below are the logs.

root@quark:/media/mmcblk0p1# ./gadgetfs-test -r "1.3" -v

[ 91.884169] gadgetfs: bound to pch_udc driver

[ 91.894735] gadgetfs: suspended from state 2

/dev/gadget/pch_udc ep0 configured

serial="1.3"

** Mon Jan 1 00:01:52 2001

SUSPEND

[ 92.142841] gadgetfs: connected

CONNECT high spe

[ 92.146943] BUG: unable to handle kernel paging request at d27d35ed

[ 92.152799] IP: [] ep0_complete+0x7d/0xc0 [gadgetfs]

[ 92.152799] *pdpt = 000000000148f001 *pde = 000000000002b067 *pte = 000000000e333061

[ 92.152799] Oops: 0003 [# 1]

[ 92.152799] Modules linked in: gadgetfs ad7298 industrialio_triggered_buffer kfifo_buf industrialio cy8c9540a usbhid usb_storage spidev spi_]

[ 92.152799] Pid: 243, comm: gadgetfs-test Not tainted 3.8.7-yocto-standard # 7 Intel Corp. QUARK/Galileo

[ 92.152799] EIP: 0060:[] EFLAGS: 00010046 CPU: 0

[ 92.152799] EIP is at ep0_complete+0x7d/0xc0 [gadgetfs]

[ 92.152799] EAX: 00000008 EBX: d27d35a0 ECX: 00000000 EDX: 00000003

[ 92.152799] ESI: c1e9fba0 EDI: c1e8117c EBP: c0093f24 ESP: c0093f0c

[ 92.152799] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068

[ 92.152799] CR0: 8005003b CR2: d27d35ed CR3: 01f11000 CR4: 00100030

[ 92.152799] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000

[ 92.152799] DR6: ffff0ff0 DR7: 00000400

[ 92.152799] Process gadgetfs-test (pid: 243, ti=c0092000 task=c1d9f440 task.ti=c1ca6000)

[ 92.152799] Stack:

[ 92.152799] 000000ac 00000004 00000096 c1e9fba0 c1e8117c 00000000 c0093f44 d2727ac9

[ 92.152799] 000000ac d2727c6c 00000001 c1e8117c c1e9fbe0 c1e811b8 c0093f6c d2728724

[ 92.152799] c1e8117c 00000000 c0093f6c d2727df1 c1e81000 00000400 c1e8117c c1e81000

[ 92.152799] Call Trace:

[ 92.152799] [] complete_req+0xd9/0x190 [pch_udc]

[ 92.152799] [] ? pch_udc_ep_clear_nak+0x1c/0x130 [pch_udc]

[ 92.152799] [] pch_udc_complete_transfer+0x64/0x150 [pch_udc]

[ 92.152799] [] ? pch_udc_postsvc_epinters+0x71/0x80 [pch_udc]

[ 92.152799] [] pch_udc_isr+0xf9a/0x111d [pch_udc]

[ 92.152799] [] ? dw8250_handle_irq+0x1a/0x60

[ 92.152799] [] handle_irq_event_percpu+0x20/0x120

[ 92.152799] [] ? printk+0x38/0x3a

[ 92.152799] [] ? handle_simple_irq+0x60/0x60

[ 92.152799] [] handle_irq_event+0x1c/0x30

[ 92.152799] [] handle_edge_irq+0x56/0xf0

[ 92.152799]

[ 92.152799] [] ? do_IRQ+0x34/0xa0

[ 92.152799] [] ? common_interrupt+0x2c/0x31

[ 92.152799] [] ? 0xd27d2fff

[ 92.152799] [] ? vsscanf+0x2c0/0x5f0

[ 92.152799] [] ? do_sys_poll+0x281/0x480

[ 92.152799] [] ? submit_bio+0x45/0x100

[ 92.152799] [] ? __enqueue_entity+0x65/0x70

[ 92.152799] [] ? enqueue_task_fair+0x159/0x220

[ 92.152799] [] ? check_preempt_curr+0x6c/0x80

[ 92.152799] [] ? default_wake_function+0xb/0x10

[ 92.152799] [] ? __wake_up_common+0x3f/0x70

[ 92.152799] [] ? __wake_up_locked+0x1a/0x20

[ 92.152799] [] ? poll_initwait+0x40/0x40

[ 92.152799] [] ? poll_select_copy_remaining+0x100/0x100

[ 92.152799] [] ? __enqueue_entity+0x65/0x70

[ 92.152799] [] ? kmap_atomic_prot+0x3e/0xd0</...

4 Replies
Sergio_A_Intel
Employee
96 Views

Hi,

Did you do any additional changes to the kernel when you enabled gadgetfs?

Were these the changes in kernel configuration:

CONFIG_USB_GADGETFS=m

Have you tried changing these options to "y" instead of "m"?

Sergio

Carlos_M_Intel
Employee
96 Views

Hi farazata,

Do you have updates in this? Have you tried with Sergio's suggestion?

Regards,

Charlie

FATA
New Contributor I
96 Views

yes i tried with that still my issue is not yet fixed

Sergio_A_Intel
Employee
96 Views

Hi,

Gadgetfs was not tested or validated on the Intel Galileo. It is possible to make it work on Galileo but it will need kernel debugging and patches.

Sergio

Reply