Add "device ch" to kernel config otherwise USB connected optical devices wont be listed as cd device(s)
While at it add descriptions to the rest of block devices entries, taken from AMD64 GENERIC kernel config
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Why do we need the changer device for the cd to show up? More details than 'for usb' are needed here to connect the dots one to another for others in a similar situation. 'for usb to work' provides no context and is quite surprising based on my storage and usb experience.
Information provided on irc but I'll also add it here for context.
Hardware:
RockPro64 - Running FreeBSD 13.0-CURRENT r366770M and roughly 1-2 months older kernel
2 different ASMedia 1153e adapters, not the same design etc - Firmware: 141126_A1_EE_82
https://www.station-drivers.com/index.php?option=com_remository&Itemid=353&func=fileinfo&id=4053&lang=en
Old(er) JMicron PATA/SATA USB2.0 adapter, exact chipset unknown
Without ch there's only a pass device, no cd.
Something else is going on...
On the *OLD* kernel, from Feb, I was able to reproduce this.
From r366862 I was not. Without any changes, I see the cd.
But, I also had two boots that went wonky and I had to reboot once and do a manual fsck because rc exited prematurely (I think when launched). Though this may be a race since it came up fine after.
I also typed 'sudo reboot' on two different boots and got back 'sudo rebeoot' which suggests some weirdness in the USB keyboard.
The one time I had to reboot, somehow /etc/rc exited, but then I got a login prompt as if it had succeeded. I didn't get the console messages from this, alas.
So something super weird is going on...
Upon further debugging (thanks Warner!) it appears that my issue is solved by applying https://reviews.freebsd.org/D26735 seems to fix my issue.
I've tested 10 reboots, replugging it 10 times and it shows up correctly each time.