I have an issue with my BP 5 REV10, as described in this thread Storage Not Detected on BP5
Because I’m new here, I reached my reply limit of 3. Yes, I know that’s there for a reason, but I wanted to share the further troubleshooting and what I’ve been seeing in the kernel log.
It looks like the BP is resetting itself while connected to the serial console (for reference, I’m using minicom on Ubuntu 22.04). After it resets, the serial console reconnects, but it looks like the BP doesn’t always set Write Protect
on . If I do any access to the storage via the serial console after a reset when Write Protect
is not on, the storage becomes corrupt.
Throughout this entire log snippet, the BP’s “first” serial port was open in minicom:
[ 6565.542540] usb 3-3.4.1.4.1: reset full-speed USB device number 29 using xhci_hcd
[ 6565.683990] cdc_acm 3-3.4.1.4.1:1.0: ttyACM0: USB ACM device
[ 6565.684585] cdc_acm 3-3.4.1.4.1:1.2: ttyACM1: USB ACM device
[ 6577.631370] sd 0:0:0:0: [sda] 16 512-byte logical blocks: (8.19 kB/8.00 KiB)
[ 6577.632011] sd 0:0:0:0: [sda] Write Protect is on
[ 6577.632017] sd 0:0:0:0: [sda] Mode Sense: 03 00 80 00
[ 6577.633738] sda: detected capacity change from 191296 to 16
[ 6577.636856] sd 0:0:0:0: [sda] 16 512-byte logical blocks: (8.19 kB/8.00 KiB)
[ 6577.852054] sd 0:0:0:0: [sda] 47824 2048-byte logical blocks: (97.9 MB/93.4 MiB)
[ 6577.854366] sda: detected capacity change from 16 to 191296
[ 6602.502973] usb 3-3.4.1.4.1: reset full-speed USB device number 29 using xhci_hcd
[ 6602.644459] cdc_acm 3-3.4.1.4.1:1.0: ttyACM0: USB ACM device
[ 6602.645071] cdc_acm 3-3.4.1.4.1:1.2: ttyACM1: USB ACM device
[ 6602.654779] sd 0:0:0:0: [sda] Write Protect is off
[ 6602.654787] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 6602.657101] sda: detected capacity change from 191296 to 0
[ 6602.666120] sd 0:0:0:0: [sda] 47824 2048-byte logical blocks: (97.9 MB/93.4 MiB)
[ 6602.668364] sda: detected capacity change from 0 to 191296
[ 6647.381484] usb 3-3.4.1.4.1: reset full-speed USB device number 29 using xhci_hcd
[ 6647.522356] cdc_acm 3-3.4.1.4.1:1.0: ttyACM0: USB ACM device
[ 6647.522692] cdc_acm 3-3.4.1.4.1:1.2: ttyACM1: USB ACM device
At this point, I did an ls
in the serial console:
[ 6663.309216] sda: detected capacity change from 191296 to 0
[ 6663.317922] sd 0:0:0:0: [sda] tag#0 access beyond end of device
[ 6663.317937] I/O error, dev sda, sector 252 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[ 6663.317942] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[ 6663.331067] sd 0:0:0:0: [sda] 16 512-byte logical blocks: (8.19 kB/8.00 KiB)
[ 6663.331867] sd 0:0:0:0: [sda] Write Protect is on
[ 6663.331871] sd 0:0:0:0: [sda] Mode Sense: 03 00 80 00
[ 6663.333593] sda: detected capacity change from 0 to 16
[ 6663.340454] sda:
I’ve also noticed that the serial device sometimes becomes locked and unavailable while in this state. For example, if I close minicom, I can’t reopen unless I sudo
it. It makes me think that something isn’t getting cleaned up when the xhci_hcd reset is happening, and there are still some processes hanging out there.
Let me know what else I can grab, this seems to be pretty repeatable on my system.