-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add USB .hci_pci modules for broader hardware support #1244
Conversation
mkrescue on a source computer with both USB 2.0 and 3.0 port might run with the xhci module only. When the (USB) boot device is used to start a USB 2.0 computer that requires the ehci module, both the ehci_hcd and ehci_pci modules, to boot with keyboard support. Tested with Arch Linux 4.9.11-1 on an Intel DE3815TYKHE (USB2+3 where lsmod only show the xhci module), then ReaR will not have keyboard support when booted on a machine with USB 2.0 only. After adding the 4 (u|e|x|o)hci_pci modules, the USB keyboard and mouse do function again with the USB 2.0 only mainboard.
@ProBackup-nl Regarding this particular issue: On SLE11 SP3 # find /lib/modules/ | grep xhci /lib/modules/3.0.101-0.47.71-pae/kernel/drivers/usb/host/xhci-hcd.ko On SLE12 SP2 # find /lib/modules/ | grep xhci /lib/modules/4.4.21-69-default/kernel/drivers/usb/host/xhci-hcd.ko /lib/modules/4.4.21-69-default/kernel/drivers/usb/host/xhci-pci.ko On openSUSE Leap 42.1 # find /lib/modules/ | grep xhci /lib/modules/4.1.15-8-default/kernel/drivers/usb/host/xhci-hcd.ko /lib/modules/4.1.15-8-default/kernel/drivers/usb/host/xhci-pci.ko /lib/modules/4.1.13-5-default/kernel/drivers/usb/host/xhci-hcd.ko /lib/modules/4.1.13-5-default/kernel/drivers/usb/host/xhci-pci.ko On openSUSE Tumbleweed 20170304 # find /lib/modules/ | grep xhci /lib/modules/4.10.1-1-default/kernel/drivers/usb/host/xhci-hcd.ko /lib/modules/4.10.1-1-default/kernel/drivers/usb/host/xhci-pci.ko I think the ResolveModules function in lib/linux-functions.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my SUSE systems the naming is different 'foo-bar' instead of 'foo_bar'.
Only as a reference: |
@jsmeix Your system does list the modules with a minus ( On Arch the file system also lists with a minus sign:
On the other hand lsmod does:
And even by specifying the underscore ( Side note: not adding USB2.0 module to init on USB3.0 systems is also/still an issue for the |
@ProBackup-nl Now I think I better understand how the ResolveModules I even found why '-' versus '_' does not matter there is no difference between _ and - in module names which seems to also apply for "modinfo". I think there is a small issue in ResolveModules because FYI my results: On SLE11 SP3 # lsmod | grep hci firewire_ohci 35267 0 firewire_core 60704 1 firewire_ohci uhci_hcd 31410 0 ehci_hcd 55542 0 usbcore 199862 4 usb_storage,uhci_hcd,ehci_hcd On SLE12 SP2 # lsmod | grep hci ahci 36864 0 libahci 36864 1 ahci libata 270336 4 ahci,libahci,ata_generic,ata_piix ehci_pci 16384 0 uhci_hcd 49152 0 ehci_hcd 81920 1 ehci_pci usbcore 258048 3 uhci_hcd,ehci_hcd,ehci_pci On openSUSE Leap 42.1 # lsmod | grep hci xhci_pci 16384 0 ehci_pci 16384 0 xhci_hcd 184320 1 xhci_pci ehci_hcd 81920 1 ehci_pci usbcore 262144 6 usblp,ehci_hcd,ehci_pci,usbhid,xhci_hcd,xhci_pci On openSUSE Tumbleweed 20170304 # lsmod | grep hci ehci_pci 16384 0 uhci_hcd 49152 0 ehci_hcd 86016 1 ehci_pci usbcore 266240 3 ehci_hcd,uhci_hcd,ehci_pci |
I think USB keyboard function on any replacement hardware |
@jsmeix Regarding your USB modules loaded results, do they all run on identical hardware? |
I did all on "indentical hardware" which is actually |
mkrescue
on a source computer with both USB 2.0 and 3.0 port might run with thexhci
module only.When the (USB) boot device is used to start a USB 2.0 computer that requires the
ehci
module, both theehci_hcd
andehci_pci
modules, to boot with USB keyboard and mouse support. Tested with Arch Linux 4.9.11-1 on an Intel DE3815TYKHE (USB2+3 wherelsmod
only show thexhci
module), then ReaR will not have keyboard support when booted on a machine with USB 2.0 only. After adding the 4(u|e|x|o)hci_pci
modules, the USB keyboard and mouse do function again with the USB 2.0 only mainboard. Also see #519 (comment)