Bug 215459 - Installing card reader causes bootloader to fail with BTX Halted
Summary: Installing card reader causes bootloader to fail with BTX Halted
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-21 02:55 UTC by Matthew Fioravante
Modified: 2019-05-05 06:45 UTC (History)
1 user (show)

See Also:


Attachments
screenshot of crash (96.24 KB, image/png)
2016-12-21 02:55 UTC, Matthew Fioravante
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Fioravante 2016-12-21 02:55:05 UTC
Created attachment 178164 [details]
screenshot of crash

This bug is occuring on this hardware:

- Supermicro X11SAT-F motherboard
- Sky Intel Xeon CPU

I have an aft xm-37u usb 3.0 card reader.

http://www.kioskreader.com/products-xm37u

This card reader seems to work fine if I connect it to the system after I've booted.

When I plug this card reader into one of the internal ports of my motherboard and try to boot the system however, I get a crash in the boot loader. If I remove this device, the system boots fine. I'm using 2 ssds mirrored in zfs as my boot drives on the motherboard's internal sata ports.

First, I see a bunch of gptzfsboot errors like the below:

gptzfsboot error 49 lba 1
gptzfsboot error 49 lba 32
gptzfsboot error 49 lba 1
gptzfsboot error 49 lba 32
gptzfsboot error 49 lba 1
gptzfsboot error 49 lba 32
gptzfsboot error 49 lba 1
gptzfsboot error 49 lba 32
gptzfsboot error 49 lba 1
gptzfsboot error 49 lba 32

and then finally ending in a crash with BTX halted (see attached screenshot).

When I plug in the device, I see all of the various sd card ports show up as 5 bootable drives in the BIOS. You can also see the in the screenshot that the bootloader has detected 14 BIOS drives, whereas normally this system has only 9.

I suspect perhaps the bootloader is somehow getting confused by the presence of these extra drives? I'm pretty sure those 5 pairs of gptzfsboot errors must be getting triggered from the 5 bios drives of the card reader. 

I also tried inserting an sd card into one of the slots of the card reader and rebooting. With the sd card inserted, I get only 4 pairs of gptzfsboot errors instead of 5! Maybe the error is being caused by these memory card ports not having actual disks in them and that is somehow confusing the bootloader?

Also the card reader appears to work fine if plugged in after booting, so the error must be solely related to the bootloader and its interaction with the bios.
Comment 1 Matthew Fioravante 2017-01-22 17:57:58 UTC
So I was able to mitigate this issue by switching my BIOS to boot using UEFI and reinstalling FreeBSD in uefi mode.

Now my card reader works fine.

So the bug is related to legacy bios booting only.
Comment 2 Kurt Jaeger freebsd_committer 2019-05-05 06:45:33 UTC
Please check if the fix from

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236585                        

solves the problem ?