g_file_storage and ether driver USB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi every body,

 

I just enabled g_file_storgage and ether driver in usb gadget.

And it is crashing……… can any one tell me what is the problem.

Here is the log

I saw sysfs in the function calls then I enabled sysfs also but it is again crashing at the same place.

And same is true for ether driver also.

 

----------------------------------------------------------

BUG: warning at lib/kref.c:32/kref_get()

Unable to handle kernel NULL pointer dereference at virtual address 00000008

pgd = c0f78000

[00000008] *pgd=20f73031, *pte=00000000, *ppte=00000000

Internal error: Oops: 17 [#1]

Modules linked in: zilog_bsp_usb_file_storage zilog_bsp_usb_device zilog_bsp_sd zilog_bsp_cipher zilog_bsp_printer zilog_bsp_spi zilog_bsp_sec zilog_bsp_sc zilog_bsp_log zilog_bsp_adc zilog_bsp_uart zilog_bsp_wdt zilog_bsp_sha zilog_bsp_buzz zilog_bsp_rng zilog_bsp_dmc20434 zilog_bsp_lcd zilog_bsp_mcr zilog_bsp_dma zilog_bsp_keypad zilog_bsp_tmr zilog_bsp_gpio zilog_bsp_endian zilog_bsp_delay zilog_bsp_clock zilog_bsp_sem zilog_bsp_os_mem zilog_bsp_int

CPU: 0

PC is at create_dir+0x14/0x1d0

LR is at sysfs_create_dir+0x6c/0x8c

pc : [<c00a3f40>]    lr : [<c00a4168>]    Tainted: P

sp : c0845e0c  ip : c0845e34  fp : c0845e30

r10: c0f6a600  r9 : bf059c10  r8 : bf059c94

r7 : 00000000  r6 : bf059c2c  r5 : c0f6a224  r4 : c0f6a28c

r3 : c0845e34  r2 : c0f6a290  r1 : 00000000  r0 : c0f6a28c

Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  Segment user

Control: 4000717F  Table: 20F78000  DAC: 00000015

Process exe (pid: 828, stack limit = 0xc0844198)

Stack: (0xc0845e0c to 0xc0846000)

5e00:                            c0f6a224 c0f6a28c c0f6a224 bf059c2c c0f6a28c

5e20: bf059c94 c0845e48 c0845e34 c00a4168 c00a3f3c 00000000 c0f6a28c c0845e6c

5e40: c0845e4c c0127050 c00a410c c0f6a224 c0f6a224 bf059c2c c0f6a28c 00000000

5e60: c0845e8c c0845e70 c014cc80 c0126fa4 c0f6a224 c0f6a224 00000000 bf06168c

5e80: c0845ea0 c0845e90 c014cf10 c014cc38 c0f6a200 c0845ed4 c0845ea4 bf0632ac

5ea0: c014cf04 00000000 00000016 bf059c10 00000000 c0f6a610 c185823c c0dbe368

5ec0: 00000016 c0dbe338 c0845ef0 c0845ed8 bf0557e0 bf0630dc c0f6a600 fffffff4

5ee0: c0f6a610 c0845f0c c0845ef4 bf063080 bf05576c c0dbe358 c0dbe000 bf061900

5f00: c0845fa4 c0845f10 c004e780 bf063010 00000000 c1858214 c1858124 c18581ec

5f20: c089e340 c185ae9c 00000014 00000009 00000000 00000000 00000000 00000000

5f40: 00000000 00000000 00000000 00000000 c1853000 00000103 00000103 00000000

5f60: c1857e1a 00000016 bf060d10 c1857ef4 bf06190c 00000000 00000000 00000004

5f80: 00000000 00000000 00000080 c0020ea4 c0844000 00000002 00000000 c0845fa8

5fa0: c0020d00 c004d53c 00000000 00000000 00900080 4016a000 00008808 0014b238

5fc0: 00000004 00000000 00000000 0014b210 00000000 00000000 00000002 beef0ea4

5fe0: beeee7dc beeee7d0 00059d50 401071b0 60000010 00900080 00000000 00000000

Backtrace:

[<c00a3f2c>] (create_dir+0x0/0x1d0) from [<c00a4168>] (sysfs_create_dir+0x6c/0x8c)

 r8 = BF059C94  r7 = C0F6A28C  r6 = BF059C2C  r5 = C0F6A224

 r4 = C0F6A28C

[<c00a40fc>] (sysfs_create_dir+0x0/0x8c) from [<c0127050>] (kobject_add+0xbc/0x168)

 r4 = C0F6A28C

[<c0126f94>] (kobject_add+0x0/0x168) from [<c014cc80>] (device_add+0x58/0x140)

 r8 = 00000000  r7 = C0F6A28C  r6 = BF059C2C  r5 = C0F6A224

 r4 = C0F6A224

[<c014cc28>] (device_add+0x0/0x140) from [<c014cf10>] (device_register+0x1c/0x20)

 r7 = BF06168C  r6 = 00000000  r5 = C0F6A224  r4 = C0F6A224

[<c014cef4>] (device_register+0x0/0x20) from [<bf0632ac>] (fsg_bind+0x1e0/0x740 [zilog_bsp_usb_file_storage])

 r4 = C0F6A200

[<bf0630cc>] (fsg_bind+0x0/0x740 [zilog_bsp_usb_file_storage]) from [<bf0557e0>] (usb_gadget_register_driver+0x84/0xd0 [zilog_bsp_usb_device])

[<bf05575c>] (usb_gadget_register_driver+0x0/0xd0 [zilog_bsp_usb_device]) from [<bf063080>] (fsg_init+0x80/0xcc [zilog_bsp_usb_file_storage])

 r6 = C0F6A610  r5 = FFFFFFF4  r4 = C0F6A600

[<bf063000>] (fsg_init+0x0/0xcc [zilog_bsp_usb_file_storage]) from [<c004e780>] (sys_init_module+0x1254/0x1330)

 r6 = BF061900  r5 = C0DBE000  r4 = C0DBE358

[<c004d52c>] (sys_init_module+0x0/0x1330) from [<c0020d00>] (ret_fast_syscall+0x0/0x2c)

Code: e92dd9f0 e24cb004 e24dd004 e1a07001 (e5911008)

 Segmentation fault

 

 

Regards

Vivek

 


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux