Hi. I built debian for rockpis, compiled and installed usbip in rockpis. But usbip is not good.
I follow the intruction in RockpiS/dev/Debian - Radxa Wiki and RockpiS/dev/usbip - Radxa Wiki.
I changed kernel config:
Device Drivers -> USB support -> Support for Host-side USB -> < * >USB/IP support
Device Drivers -> USB support -> Support for Host-side USB -> USB/IP support -> < * >Debug messages for USB/IP
Device Drivers -> USB support -> Support for Host-side USB -> USB/IP support -> < * >Host driver
Device Drivers -> USB support -> Support for Host-side USB -> USB/IP support -> < * >VHCI hcd
solved modprobe problem which is modprobe: ERROR: …/libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file ‘/lib/modules/4.4.143+/modules.dep.bin’
But when I type usbip bind -b 2-1, this error is shown: BUG: scheduling while atomic: usbip/9942/0x00000002.
Then it comes kernel panic.
The appended debug message is in detail. Thanks in advanced.
[ 2089.119513] BUG: scheduling while atomic: usbip/9942/0x00000002
[ 2089.120048] Modules linked in:
[ 2089.120348] CPU: 1 PID: 9942 Comm: usbip Not tainted 4.4.143+ #3
[ 2089.120880] Hardware name: Radxa ROCK Pi S (DT)
[ 2089.121284] Call trace:
[ 2089.121529] [] dump_backtrace+0x0/0x1c4
[ 2089.122019] [] show_stack+0x14/0x1c
[ 2089.122482] [] dump_stack+0x98/0xc0
[ 2089.122943] [] __schedule_bug+0x3c/0x54
[ 2089.123435] [] __schedule+0x88/0x4d0
[ 2089.123901] [] schedule+0x74/0x94
[ 2089.124345] [] schedule_timeout+0x28/0x178
[ 2089.124857] [] wait_for_common+0xb8/0x134
[ 2089.125362] [] wait_for_completion_killable+0x14/0x28
[ 2089.125954] [] kthread_create_on_node+0xac/0x178
[ 2089.126512] [] usbip_start_eh+0x48/0x94
[ 2089.127001] [] stub_probe+0x1bc/0x310
[ 2089.127477] [] usb_probe_device+0x28/0x44
[ 2089.127983] [] driver_probe_device+0x190/0x274
[ 2089.128521] [] bind_store+0xa0/0xf0
[ 2089.128977] [] drv_attr_store+0x24/0x34
[ 2089.129468] [] sysfs_kf_write+0x38/0x50
[ 2089.129955] [] kernfs_fop_write+0x114/0x170
[ 2089.130475] [] __vfs_write+0x1c/0xc0
[ 2089.130941] [] vfs_write+0x9c/0x170
[ 2089.131398] [] SyS_write+0x44/0x88
[ 2089.131848] [] el0_svc_naked+0x24/0x28
[ 2089.132532] usbip-host 2-1: usbip-host: register new device (bus 2 dev 2)
[ 2089.133302] Unable to handle kernel paging request at virtual address 7fe8515780
[ 2089.133976] pgd = ffffffc01ab25000
[ 2089.134287] [7fe8515780] *pgd=000000001d493003, *pud=000000001d493003, *pmd=000000001be0e003, *pte=0000000000000000
[ 2089.135407] Internal error: Oops: 92000047 [#1] PREEMPT SMP
[ 2089.135909] Modules linked in:
[ 2089.136206] CPU: 1 PID: 9942 Comm: usbip Tainted: G W 4.4.143+ #3
[ 2089.136845] Hardware name: Radxa ROCK Pi S (DT)
[ 2089.137254] task: ffffffc01f92e9c0 task.stack: ffffffc01be1c000
[ 2089.137786] PC is at 0x7fac40dea8
[ 2089.138088] LR is at 0x7fac40b948
[ 2089.138391] pc : [<0000007fac40dea8>] lr : [<0000007fac40b948>] pstate: 80000000
[ 2089.139045] sp : 0000007fe8515780
[ 2089.139346] x29: 0000007fe8517920 x28: 0000000000000000
[ 2089.139843] x27: 0000000000000002 x26: 0000007fac5324a8
[ 2089.140329] x25: 0000007fe8517f40 x24: 0000007fac531180
[ 2089.140816] x23: 0000007fac5c0710 x22: 000000555d262ed8
[ 2089.141305] x21: 000000555d2632d8 x20: 0000007fac530000
[ 2089.141794] x19: 00000000fbad2086 x18: 000000000000007f
[ 2089.142296] x17: 000000555d2741f8 x16: 0000000000002180
[ 2089.142782] x15: 00000000000006f1 x14: 0000007fac3c8e30
[ 2089.143269] x13: 0000000000000000 x12: 0000000000000000
[ 2089.143754] x11: 0000007fe8518040 x10: 0000007fe8518040
[ 2089.144242] x9 : ffffff80ffffffd0 x8 : 0000007fe8518010
[ 2089.144728] x7 : 0000007fe8518040 x6 : 0000007fe8518040
[ 2089.145216] x5 : ffffff80ffffffd0 x4 : 0000007fe8518010
[ 2089.145704] x3 : 0000000000000028 x2 : 0000007fe8517a70
[ 2089.146189] x1 : 000000555d2632d8 x0 : 0000007fac5324a8
[ 2089.146674]
[ 2089.146820] Process usbip (pid: 9942, stack limit = 0xffffffc01be1c000)
[ 2089.147506] —[ end trace 351a0549511238e2 ]—
[ 2089.167224] Kernel panic - not syncing: Fatal exception in interrupt
[ 2089.167813] CPU0: stopping
[ 2089.168082] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G D W 4.4.143+ #3
[ 2089.168730] Hardware name: Radxa ROCK Pi S (DT)
[ 2089.169137] Call trace:
[ 2089.169386] [] dump_backtrace+0x0/0x1c4
[ 2089.169877] [] show_stack+0x14/0x1c
[ 2089.170340] [] dump_stack+0x98/0xc0
[ 2089.170799] [] handle_IPI+0xe8/0x134
[ 2089.171264] [] gic_handle_irq+0x88/0xa0
[ 2089.171751] Exception stack(0xffffff8008a23da0 to 0xffffff8008a23ed0)
[ 2089.172331] 3da0: 0000004017549000 00000000ffffffff ffffffc01ff58b80 ffffffc01ff58b80
[ 2089.173034] 3dc0: ffffff8008a23ed0 0000000bb42ccfdd 00000000000c91c0 0000000000000000
[ 2089.173732] 3de0: ffffff8008a23f20 0000000000000000 0000000000000800 0000000000000000
[ 2089.174431] 3e00: 0000000000000000 0000000000000400 0000000000000003 0000000000000000
[ 2089.175131] 3e20: ffffffc01e6c6f40 0000007f93037f30 00000000000000ff 000001e66a456207
[ 2089.175831] 3e40: 0000000000000000 ffffffc01dcce000 ffffff8008a8d9d8 ffffff8008a8d9f0
[ 2089.176532] 3e60: 0000000000000000 000001e66a35d66d 0000000000d32000 000000000093b22c
[ 2089.177231] 3e80: 0000000000bc001c ffffff8008a23ed0 ffffff80084de658 ffffff8008a23ed0
[ 2089.177931] 3ea0: ffffff80084de68c 0000000060000145 0000000000000060 0000000000000000
[ 2089.178628] 3ec0: ffffffffffffffff ffffff8008a8d9d8
[ 2089.179071] [] el1_irq+0xb4/0x128
[ 2089.179519] [] cpuidle_enter_state+0x118/0x16c
[ 2089.180061] [] cpuidle_enter+0x18/0x20
[ 2089.180546] [] call_cpuidle+0x4c/0x54
[ 2089.181020] [] cpu_startup_entry+0x1f4/0x204
[ 2089.181551] [] rest_init+0x80/0x8c
[ 2089.182004] [] start_kernel+0x428/0x44c
[ 2089.182494] [] __primary_switched+0x30/0x6c
[ 2089.183008] CPU2: stopping
[ 2089.183272] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G D W 4.4.143+ #3
[ 2089.183921] Hardware name: Radxa ROCK Pi S (DT)
[ 2089.184325] Call trace:
[ 2089.184561] [] dump_backtrace+0x0/0x1c4
[ 2089.185051] [] show_stack+0x14/0x1c
[ 2089.185512] [] dump_stack+0x98/0xc0
[ 2089.185969] [] handle_IPI+0xe8/0x134
[ 2089.186433] [] gic_handle_irq+0x88/0xa0
[ 2089.186919] Exception stack(0xffffffc01f8fbde0 to 0xffffffc01f8fbf10)
[ 2089.187500] bde0: 000000401756f000 00000000ffffffff ffffffc01ff7eb80 ffffffc01ff7eb80
[ 2089.188201] be00: ffffffc01f8fbf10 0000000bb42ccfdd 00000000000c91c0 0000000000000000
[ 2089.188902] be20: ffffffc01f8fbf60 0000000000000000 0000000000000800 00000000028b7a09
[ 2089.189601] be40: 0000000000000018 000000006252a076 0001e2d37b5a3d5b 0000a8a68e6fcb80
[ 2089.190302] be60: ffffff80081ac5f4 0000007fa9e1d7f8 000000000000000f 000001e66a456207
[ 2089.191001] be80: 0000000000000000 ffffffc01dcce400 ffffff8008a8d9d8 ffffff8008a8d9f0
[ 2089.191701] bea0: 0000000000000000 000001e66a3baf7a 0000000000d32000 000000000093b234
[ 2089.192401] bec0: 0000000000000000 ffffffc01f8fbf10 ffffff80084de658 ffffffc01f8fbf10
[ 2089.193101] bee0: ffffff80084de68c 0000000060000145 0000000000000060 0000000000000000
[ 2089.193799] bf00: ffffffffffffffff ffffff8008a8d9d8
[ 2089.194242] [] el1_irq+0xb4/0x128
[ 2089.194686] [] cpuidle_enter_state+0x118/0x16c
[ 2089.195229] [] cpuidle_enter+0x18/0x20
[ 2089.195711] [] call_cpuidle+0x4c/0x54
[ 2089.196185] [] cpu_startup_entry+0x1f4/0x204
[ 2089.196712] [] secondary_start_kernel+0x1a0/0x1cc
[ 2089.197272] [<000000000093b178>] 0x93b178
[ 2089.197636] CPU3: stopping
[ 2089.197901] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G D W 4.4.143+ #3
[ 2089.198548] Hardware name: Radxa ROCK Pi S (DT)
[ 2089.198954] Call trace:
[ 2089.199190] [] dump_backtrace+0x0/0x1c4
[ 2089.199679] [] show_stack+0x14/0x1c
[ 2089.200140] [] dump_stack+0x98/0xc0
[ 2089.200597] [] handle_IPI+0xe8/0x134
[ 2089.201062] [] gic_handle_irq+0x88/0xa0
[ 2089.201548] Exception stack(0xffffffc01f8ffde0 to 0xffffffc01f8fff10)
[ 2089.202129] fde0: 0000000000000000 ffffffc01f8ea340 ffffff80084fab84 0000000000000020
[ 2089.202828] fe00: 00ffffffffffffff 0000000bb42ccfdd 00000000000c91c0 0000000000000003
[ 2089.203528] fe20: 00000032b5593519 ffffff8008081800 0000000000001000 0000000000000000
[ 2089.204228] fe40: 0000000034d5d91d 0000004017582000 ffffffc01f8ea340 0000000000000000
[ 2089.204928] fe60: 0000000000000000 0000000000000000 0000000030d00800 000001e66a461ce0
[ 2089.205630] fe80: 0000000000000001 ffffffc01dcce600 ffffff8008a8d9d8 ffffff8008a8da50
[ 2089.206327] fea0: 0000000000000001 000001e66a3cdfac 0000000000d32000 000000000093b234
[ 2089.207027] fec0: 0000000000000000 ffffffc01f8fff10 ffffff80084de688 ffffffc01f8fff10
[ 2089.207727] fee0: ffffff80084de68c 0000000040000145 000001e66a3cdfac 0000000000d32000
[ 2089.208423] ff00: ffffffffffffffff ffffff80084de688
[ 2089.208866] [] el1_irq+0xb4/0x128
[ 2089.209311] [] cpuidle_enter_state+0x118/0x16c
[ 2089.209853] [] cpuidle_enter+0x18/0x20
[ 2089.210336] [] call_cpuidle+0x4c/0x54
[ 2089.210811] [] cpu_startup_entry+0x1f4/0x204
[ 2089.211338] [] secondary_start_kernel+0x1a0/0x1cc
[ 2089.211897] [<000000000093b178>] 0x93b178
[ 2089.212263] CRU:
[ 2089.212459] 00000000: 0000304b 00001441 00000000 00000007 00007f00 00000000 00000000 00000000
[ 2089.213229] 00000020: 00001145 00001446 00000000 00000007 00007f00 00000000 00000000 00000000
[ 2089.213999] 00000040: 00001062 00000442 004dd2f1 00000007 00007f00 00000000 00000000 00000000
[ 2089.214768] 00000060: 0000104b 00000442 00439581 00000007 00007f00 00000000 00000000 00000000
[ 2089.215539] 00000080: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.216307] 000000a0: 00003955 00000000 00000000 00000000 00000064 00ff0000 00000000 00000000
[ 2089.217077] 000000c0: 00000003 00003a98 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.217846] 000000e0: 00000080 00000000 0000030f 00000000 0000304b 00001441 00001300 00000000
[ 2089.218616] 00000100: 00001300 00000040 00000200 0040b71b 00007510 00000006 00000c0c 00000d0d
[ 2089.219385] 00000120: 00000007 00000000 00008000 0000000b 00000000 0000000f 0000000b 00000000
[ 2089.220155] 00000140: 0000000f 0000000b 00000000 0000000f 0000000b 00000000 0000000f 0000000b
[ 2089.220924] 00000160: 00000000 00000005 00000005 00000005 00000005 0000000b 0000000b 0000000b
[ 2089.221693] 00000180: 0000000b 000001df 00000017 0000001b 00000006 00000c0c 0000000d 0000000c
[ 2089.222464] 000001a0: 0000000c 00000019 0000000d 00008019 00000b1d 00000b0b 0000000f 00000000
[ 2089.223232] 000001c0: 0000000f 00000000 00000003 00000000 00000111 00000000 00000013 00000000
[ 2089.224003] 000001e0: 00000111 00000000 00000013 00000000 00000111 00000000 00000013 00000000
[ 2089.224772] 00000200: 00000111 00000000 00000013 00000000 00000013 00000000 00000013 00000000
[ 2089.225541] 00000220: 00000031 0000001f 0000000b 0000000b 00000000 00000000 00000000 00000000
[ 2089.226310] 00000240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.227080] 00000260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.227850] 00000280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.228618] 000002a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.229388] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.230156] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.230926] 00000300: 00000010 0000a9f0 0000fbbb 0000f99d 00000091 0000f98c 0000f47f 00000401
[ 2089.231695] 00000320: 0000b020 00000440 0000fdb8 00002fff 0000fff2 0000000f 000007be 0000000f
[ 2089.232465] 00000340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.233234] 00000360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.234003] 00000380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.234773] 000003a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.235541] 000003c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.236312] 000003e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.237080] 00000400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.237849] 00000420: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.238618] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.239387] 00000460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.240158] 00000480: 00000004 00000000 00000004 00000000 00000004 00000000 00000000 00000000
[ 2089.240926] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.241696] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.242464] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.243218] Kernel Offset: disabled
[ 2089.243533] Memory Limit: none
[ 2089.243828] rockchip-thermal ff1f0000.tsadc: channal 0: temperature(52 C)
[ 2089.244437] rockchip-thermal ff1f0000.tsadc: channal 1: temperature(47 C)
[ 2089.245040] THERMAL REGS:
[ 2089.245298] 00000000: 00000200 00030133 00000302 00000001 00000000 00000000 00000000 00000000
[ 2089.246067] 00000020: 000001d1 000001d6 00000000 00000000 00000000 000001e5 00000000 00000000
[ 2089.246839] 00000040: 00000293 00000293 00000000 00000000 00000000 00000000 00000000 00000000
[ 2089.247606] 00000060: 00000004 00000004 000000fa 00000032 00000000 00000000 00000000 00000000
[ 2089.248366] 00000080: 00000000 00000000
[ 2089.272083] Rebooting in 1 seconds…
INFO: PSCI Power Domain Map:
INFO: Domain Node : Level 2, parent_node -1, State ON (0x0)
INFO: Domain Node : Level 1, parent_node 0, State ON (0x0)
INFO: Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO: Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0x0, parent_node 1, State ON (0x0)
INFO: CPU Node : MPID 0x1, parent_node 1, State ON (0x0)
INFO: CPU Node : MPID 0x2, parent_node 1, State ON (0x0)
INFO: CPU Node : MPID 0x3, parent_node 1, State ON (0x0)