This failure often occurs when I use fastboot to boot TWRP.
fastboot boot ~/twrp-3.5.2_9-0-nash.img
Sending 'boot.img' (36576 KB)
There was no response at all.
At this time, I can only unplug the usb cable and reconnect it, so it seems that fastboot can work again.
fastboot boot ~/twrp-3.5.2_9-0-nash.img
Sending 'boot.img' (36576 KB) OKAY [ 0.129s]
Booting OKAY [ 5.120s]
Finished. Total time: 5.269s
There seems to be nothing interesting in the kernel log.
[ 189.469537] audit: type=1101 audit(1637924966.123:230): pid=4258 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="test" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 189.469665] audit: type=1110 audit(1637924966.123:231): pid=4258 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 189.469977] audit: type=1105 audit(1637924966.123:232): pid=4258 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 189.494875] audit: type=1106 audit(1637924966.149:233): pid=4258 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 189.494914] audit: type=1104 audit(1637924966.149:234): pid=4258 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 197.294693] audit: type=1101 audit(1637924973.946:235): pid=4276 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="test" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 197.294814] audit: type=1110 audit(1637924973.946:236): pid=4276 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 197.295201] audit: type=1105 audit(1637924973.946:237): pid=4276 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 197.323491] audit: type=1106 audit(1637924973.973:238): pid=4276 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 197.323531] audit: type=1104 audit(1637924973.973:239): pid=4276 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 204.482252] audit: type=1101 audit(1637924981.133:240): pid=4290 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="test" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 204.482401] audit: type=1110 audit(1637924981.133:241): pid=4290 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 204.482848] audit: type=1105 audit(1637924981.133:242): pid=4290 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 213.736903] audit: type=1101 audit(1637924990.387:243): pid=4301 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="test" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 213.736997] audit: type=1110 audit(1637924990.390:244): pid=4301 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 213.737297] audit: type=1105 audit(1637924990.390:245): pid=4301 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 213.757396] audit: type=1106 audit(1637924990.410:246): pid=4301 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 213.757436] audit: type=1104 audit(1637924990.410:247): pid=4301 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 214.696694] audit: type=1101 audit(1637924991.347:248): pid=4315 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="test" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 214.696880] audit: type=1110 audit(1637924991.347:249): pid=4315 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 214.697517] audit: type=1105 audit(1637924991.350:250): pid=4315 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 214.724969] audit: type=1106 audit(1637924991.377:251): pid=4315 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 214.725010] audit: type=1104 audit(1637924991.377:252): pid=4315 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 368.837304] INFO: task fastboot:4291 blocked for more than 122 seconds.
[ 368.837310] Tainted: G OE 5.15.5-1-MANJARO #1
[ 368.837312] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 368.837313] task:fastboot state:D stack: 0 pid: 4291 ppid: 4290 flags:0x00000000
[ 368.837318] Call Trace:
[ 368.837320] <TASK>
[ 368.837322] __schedule+0x331/0x1540
[ 368.837329] ? xhci_urb_enqueue+0x1e1/0x520
[ 368.837334] schedule+0x5d/0xd0
[ 368.837337] schedule_timeout+0x125/0x160
[ 368.837341] wait_for_completion_timeout+0x9e/0x120
[ 368.837344] usb_start_wait_urb+0xa8/0x190
[ 368.837347] do_proc_bulk+0x14b/0x2f0
[ 368.837351] usbdev_ioctl+0x2c6/0x1370
[ 368.837354] ? exit_to_user_mode_prepare+0x8d/0x180
[ 368.837358] __x64_sys_ioctl+0x8e/0xd0
[ 368.837361] do_syscall_64+0x5c/0x90
[ 368.837364] ? do_syscall_64+0x69/0x90
[ 368.837366] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 368.837370] RIP: 0033:0x7fcbb89dc59b
[ 368.837373] RSP: 002b:00007ffd234c9718 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 368.837376] RAX: ffffffffffffffda RBX: 00007ffd234c9740 RCX: 00007fcbb89dc59b
[ 368.837378] RDX: 00007ffd234c9750 RSI: 00000000c0185502 RDI: 0000000000000004
[ 368.837379] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
[ 368.837381] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd234c9750
[ 368.837382] R13: 00000000c0185502 R14: 000055769a0c1eb0 R15: 0000000000000100
[ 368.837386] </TASK>
[ 491.720247] INFO: task fastboot:4291 blocked for more than 245 seconds.
[ 491.720253] Tainted: G OE 5.15.5-1-MANJARO #1
[ 491.720255] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 491.720257] task:fastboot state:D stack: 0 pid: 4291 ppid: 4290 flags:0x00000000
[ 491.720262] Call Trace:
[ 491.720263] <TASK>
[ 491.720266] __schedule+0x331/0x1540
[ 491.720273] ? xhci_urb_enqueue+0x1e1/0x520
[ 491.720278] schedule+0x5d/0xd0
[ 491.720281] schedule_timeout+0x125/0x160
[ 491.720284] wait_for_completion_timeout+0x9e/0x120
[ 491.720288] usb_start_wait_urb+0xa8/0x190
[ 491.720292] do_proc_bulk+0x14b/0x2f0
[ 491.720295] usbdev_ioctl+0x2c6/0x1370
[ 491.720298] ? exit_to_user_mode_prepare+0x8d/0x180
[ 491.720302] __x64_sys_ioctl+0x8e/0xd0
[ 491.720306] do_syscall_64+0x5c/0x90
[ 491.720308] ? do_syscall_64+0x69/0x90
[ 491.720311] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 491.720315] RIP: 0033:0x7fcbb89dc59b
[ 491.720318] RSP: 002b:00007ffd234c9718 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 491.720321] RAX: ffffffffffffffda RBX: 00007ffd234c9740 RCX: 00007fcbb89dc59b
[ 491.720323] RDX: 00007ffd234c9750 RSI: 00000000c0185502 RDI: 0000000000000004
[ 491.720325] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
[ 491.720327] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd234c9750
[ 491.720328] R13: 00000000c0185502 R14: 000055769a0c1eb0 R15: 0000000000000100
[ 491.720332] </TASK>
[ 512.700187] usb 4-3: USB disconnect, device number 8
[ 512.903831] kauditd_printk_skb: 5 callbacks suppressed
[ 512.903835] audit: type=1106 audit(1637925289.560:258): pid=4290 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 512.903897] audit: type=1104 audit(1637925289.560:259): pid=4290 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 515.680241] usb 4-3: new SuperSpeed USB device number 9 using xhci_hcd
[ 515.697873] usb 4-3: New USB device found, idVendor=22b8, idProduct=2e80, bcdDevice= 1.00
[ 515.697878] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 515.697880] usb 4-3: Product: Fastboot nash S
[ 515.697882] usb 4-3: Manufacturer: Motorola Mobility LLC.
[ 515.697884] usb 4-3: SerialNumber: ZY224HLGQ4
[ 520.261397] audit: type=1100 audit(1637925296.917:260): pid=5314 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="test" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 520.262277] audit: type=1101 audit(1637925296.917:261): pid=5314 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="test" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 520.262452] audit: type=1110 audit(1637925296.917:262): pid=5314 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 520.263055] audit: type=1105 audit(1637925296.917:263): pid=5314 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 527.467143] usb 4-3: USB disconnect, device number 9
[ 527.670826] audit: type=1106 audit(1637925304.326:264): pid=5314 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 527.670864] audit: type=1104 audit(1637925304.326:265): pid=5314 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 530.090620] usb 4-3: new SuperSpeed USB device number 10 using xhci_hcd
[ 530.109031] usb 4-3: New USB device found, idVendor=22b8, idProduct=2e80, bcdDevice= 1.00
[ 530.109036] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 530.109037] usb 4-3: Product: Fastboot nash S
[ 530.109039] usb 4-3: Manufacturer: Motorola Mobility LLC.
[ 530.109040] usb 4-3: SerialNumber: ZY224HLGQ4
[ 545.458112] usb 4-3: USB disconnect, device number 10
[ 552.348249] usb 6-1.4: new SuperSpeed USB device number 5 using xhci_hcd
[ 552.365829] usb 6-1.4: New USB device found, idVendor=22b8, idProduct=2e80, bcdDevice= 1.00
[ 552.365836] usb 6-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 552.365838] usb 6-1.4: Product: Fastboot nash S
[ 552.365840] usb 6-1.4: Manufacturer: Motorola Mobility LLC.
[ 552.365842] usb 6-1.4: SerialNumber: ZY224HLGQ4
[ 562.532344] usb 6-1.4: USB disconnect, device number 5
[ 566.753901] audit: type=1101 audit(1637925343.409:266): pid=5425 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="test" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 566.754076] audit: type=1110 audit(1637925343.409:267): pid=5425 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 566.754669] audit: type=1105 audit(1637925343.412:268): pid=5425 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 566.769058] audit: type=1106 audit(1637925343.426:269): pid=5425 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 566.769099] audit: type=1104 audit(1637925343.426:270): pid=5425 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 571.722521] usb 6-1.4: new SuperSpeed USB device number 6 using xhci_hcd
[ 571.741119] usb 6-1.4: New USB device found, idVendor=18d1, idProduct=4ee7, bcdDevice= 4.04
[ 571.741126] usb 6-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 571.741129] usb 6-1.4: Product: Moto Z (2)
[ 571.741130] usb 6-1.4: Manufacturer: Motorola
[ 571.741132] usb 6-1.4: SerialNumber: ZY224HLGQ4
[ 578.922702] usb 6-1.4: reset SuperSpeed USB device number 6 using xhci_hcd
[ 578.939416] usb 6-1.4: device firmware changed
[ 578.939973] usb 6-1.4: USB disconnect, device number 6
[ 579.251769] usb 6-1.4: new SuperSpeed USB device number 7 using xhci_hcd
[ 579.270970] usb 6-1.4: New USB device found, idVendor=22b8, idProduct=ff48, bcdDevice= 4.04
[ 579.270977] usb 6-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 579.270979] usb 6-1.4: Product: Moto Z (2)
[ 579.270981] usb 6-1.4: Manufacturer: Motorola
[ 579.270982] usb 6-1.4: SerialNumber: ZY224HLGQ4
[ 587.922892] usb 6-1.4: USB disconnect, device number 7
[ 591.878387] usb 6-1.4: new SuperSpeed USB device number 8 using xhci_hcd
[ 591.895972] usb 6-1.4: New USB device found, idVendor=22b8, idProduct=2e80, bcdDevice= 1.00
[ 591.895978] usb 6-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 591.895980] usb 6-1.4: Product: Fastboot nash S
[ 591.895982] usb 6-1.4: Manufacturer: Motorola Mobility LLC.
[ 591.895983] usb 6-1.4: SerialNumber: ZY224HLGQ4
[ 609.868202] usb 6-1.4: USB disconnect, device number 8
[ 612.428743] usb 6-1.4: new SuperSpeed USB device number 9 using xhci_hcd
[ 612.446406] usb 6-1.4: New USB device found, idVendor=22b8, idProduct=2e80, bcdDevice= 1.00
[ 612.446411] usb 6-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 612.446413] usb 6-1.4: Product: Fastboot nash S
[ 612.446415] usb 6-1.4: Manufacturer: Motorola Mobility LLC.
[ 612.446417] usb 6-1.4: SerialNumber: ZY224HLGQ4
[ 622.056817] usb 6-1.4: USB disconnect, device number 9
[ 631.275766] usb 6-1.4: new SuperSpeed USB device number 10 using xhci_hcd
[ 631.293850] usb 6-1.4: New USB device found, idVendor=18d1, idProduct=4ee7, bcdDevice= 4.04
[ 631.293855] usb 6-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 631.293857] usb 6-1.4: Product: Moto Z (2)
[ 631.293859] usb 6-1.4: Manufacturer: Motorola
[ 631.293861] usb 6-1.4: SerialNumber: ZY224HLGQ4
[ 638.592518] usb 6-1.4: reset SuperSpeed USB device number 10 using xhci_hcd
[ 638.609667] usb 6-1.4: device firmware changed
[ 638.609963] usb 6-1.4: USB disconnect, device number 10
[ 638.922497] usb 6-1.4: new SuperSpeed USB device number 11 using xhci_hcd
[ 638.940441] usb 6-1.4: New USB device found, idVendor=22b8, idProduct=ff48, bcdDevice= 4.04
[ 638.940445] usb 6-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 638.940447] usb 6-1.4: Product: Moto Z (2)
[ 638.940449] usb 6-1.4: Manufacturer: Motorola
[ 638.940450] usb 6-1.4: SerialNumber: ZY224HLGQ4
[ 790.056001] audit: type=1101 audit(1637925566.706:271): pid=5781 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="test" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 790.056210] audit: type=1110 audit(1637925566.706:272): pid=5781 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 790.056900] audit: type=1105 audit(1637925566.706:273): pid=5781 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
android-udev is of no use to me.