Page MenuHomeFreeBSD

Add "device ch" to GENERIC kernel config for arm64 and descriptions to block devices
AbandonedPublic

Authored by diizzy on Oct 17 2020, 8:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 23 2023, 12:57 AM
Unknown Object (File)
Dec 13 2023, 6:20 AM
Unknown Object (File)
Nov 24 2023, 7:51 PM
Unknown Object (File)
Nov 22 2023, 8:17 AM
Unknown Object (File)
Nov 13 2023, 6:34 AM
Unknown Object (File)
Nov 11 2023, 3:49 AM
Unknown Object (File)
Oct 31 2023, 11:54 PM
Unknown Object (File)
Sep 9 2023, 10:58 AM
Subscribers

Details

Reviewers
manu
imp
Summary

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

Test Plan

Tested on RockPro64

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

diizzy edited the summary of this revision. (Show Details)

Title is incorrect - sc is the syscons driver and is not added in this review.

diizzy retitled this revision from Add "device sc" to GENERIC kernel config for arm64 and descriptions to block devices to Add "device ch" to GENERIC kernel config for arm64 and descriptions to block devices.Oct 19 2020, 3:43 PM
diizzy edited the summary of this revision. (Show Details)

Title is incorrect - sc is the syscons driver and is not added in this review.

Changed, thanks for picking that one up!

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...

I have a eMAG 8180 based system

Try adding literally any other device or option that will move code around

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.