卸载模块时的log信息如下:
g_mass_storage 32056 0 - Live 0xbf000000
zynq> lsmod
g_mass_storage 32056 0 - Live 0xbf000000
zynq> rmmod g_mass_storage
[ 2805.880000] Unable to handle kernel NULL pointer dereference at virtual address 00000118
[ 2805.880000] pgd = d8320000
[ 2805.890000] [00000118] *pgd=1819b831, *pte=00000000, *ppte=00000000
[ 2805.890000] Internal error: Oops: 817 [#1] PREEMPT SMP ARM
[ 2805.900000] Modules linked in: g_mass_storage(-)
[ 2805.900000] CPU: 1 Tainted: G W (3.6.0-digilent-13.01-g06b3889 #8)
[ 2805.910000] PC is at xusbps_stop+0xfc/0x148
[ 2805.910000] LR is at xusbps_stop+0xf4/0x148
[ 2805.920000] pc : [<c0253880>] lr : [<c0253878>] psr: 60000013
[ 2805.920000] sp : d8329f18 ip : 00000001 fp : 00000000
[ 2805.930000] r10: 00000000 r9 : d8328000 r8 : 60000013
[ 2805.940000] r7 : c054daf8 r6 : d81075fc r5 : 00000000 r4 : bf005dd0
[ 2805.940000] r3 : 00000000 r2 : 00000000 r1 : a0000013 r0 : d8107600
[ 2805.950000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 2805.960000] Control: 18c5387d Table: 1832004a DAC: 00000015
[ 2805.960000] Process rmmod (pid: 631, stack limit = 0xd83282f0)
[ 2805.970000] Stack: (0xd8329f18 to 0xd832a000)
[ 2805.970000] 9f00: d8107400 c052bfc8
[ 2805.980000] 9f20: bed27f56 00000081 c000dca4 c02519c0 bf005dd0 c0251a10 bf005edc bf005f2c
[ 2805.990000] 9f40: 00000000 c00583fc 00000002 00000000 bf005f2c 00000880 d8329f4c 616d5f67
[ 2806.000000] 9f60: 735f7373 61726f74 d8006567 00000000 d81b6714 00000000 d81b6400 00000000
[ 2806.000000] 9f80: 000f2040 c0036e90 d82d2540 d8328000 d8329fb0 0000dca4 bed27f56 00000000
[ 2806.010000] 9fa0: 00000001 c000db40 bed27f56 00000000 bed27f56 00000880 b6db7008 00000008
[ 2806.020000] 9fc0: bed27f56 00000000 00000001 00000081 00000001 00000000 bed27e7c 00000000
[ 2806.030000] 9fe0: b6db7068 bed27ae0 0002cd74 b6e9ba3c 60000010 bed27f56 00000000 00000000
[ 2806.040000] [<c0253880>] (xusbps_stop+0xfc/0x148) from [<c02519c0>] (usb_gadget_remove_driver+0x88/0x98)
[ 2806.050000] [<c02519c0>] (usb_gadget_remove_driver+0x88/0x98) from [<c0251a10>] (usb_gadget_unregister_driver+0x40/0x7c)
[ 2806.060000] [<c0251a10>] (usb_gadget_unregister_driver+0x40/0x7c) from [<c00583fc>] (sys_delete_module+0x1ac/0x248)
[ 2806.070000] [<c00583fc>] (sys_delete_module+0x1ac/0x248) from [<c000db40>] (ret_fast_syscall+0x0/0x30)
[ 2806.080000] Code: e3a05000 e12fff33 e5970004 e5903174 (e5835118)
[ 2806.080000] ---[ end trace 1b75b31a2719ed1e ]---
Segmentation fault
zynq> lsmod
g_mass_storage 32056 0 - Unloading 0xbf000000
zynq>