-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from random-archer/dev-util-usb-hci
support usb hcd
- Loading branch information
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This file is part of https://github.com/random-archer/mkinitcpio-systemd-tool | ||
|
||
# Provide enhanced configuration for usb keyboard inside initramfs. | ||
|
||
# file location in initramfs: | ||
# /etc/modprobe.d/initrd-util-usb-hcd.conf | ||
|
||
# file location in real-root: | ||
# /etc/mkinitcpio-systemd-tool/config/initrd-util-usb-hcd.conf | ||
|
||
# required module load order: xhci-hcd ehci-hcd uhci-hcd ohci-hcd | ||
|
||
softdep ehci-hcd pre: xhci-hcd | ||
softdep uhci-hcd pre: ehci-hcd | ||
softdep ohci-hcd pre: uhci-hcd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This file is part of https://github.com/random-archer/mkinitcpio-systemd-tool | ||
|
||
# Provide enhanced configuration for usb keyboard inside initramfs. | ||
|
||
# note: | ||
# * sometimes usb drives are not properly detected/loaded for initrd | ||
# * try to enable this service to see if that resolves the issue | ||
|
||
[Unit] | ||
Description=Initrd/Util USB-HCD Service | ||
ConditionPathExists=/etc/initrd-release | ||
DefaultDependencies=no | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=true | ||
ExecStart=/bin/true | ||
|
||
[Install] | ||
WantedBy=sysinit.target | ||
|
||
[X-SystemdTool] | ||
|
||
# driver terminology: | ||
# xhci = eXtensible Host Controller Interface, USB 3.0 | ||
# ehci = Enhanced Host Controller Interface, USB 2.0 | ||
# *hcd = host controller driver | ||
# *pci = pci bus glue | ||
|
||
# | ||
# provision usb modules | ||
# | ||
|
||
# http://cateee.net/lkddb/web-lkddb/USB_XHCI_HCD.html | ||
InitrdCall=add_module xhci_hcd | ||
InitrdCall=add_module xhci_pci | ||
|
||
# http://cateee.net/lkddb/web-lkddb/USB_EHCI_HCD.html | ||
InitrdCall=add_module ehci_hcd | ||
InitrdCall=add_module ehci_pci | ||
|
||
# http://cateee.net/lkddb/web-lkddb/HID_GENERIC.html | ||
InitrdCall=add_module hid_generic | ||
|
||
# | ||
# provision module config | ||
# | ||
|
||
# enforce module load order | ||
InitrdPath=/etc/modprobe.d/initrd-util-usb-hcd.conf source=/etc/mkinitcpio-systemd-tool/config/initrd-util-usb-hcd.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters