[dracut/f19] Add ehci-tegra.ko to initramfs to allow rawhide tegra based platforms to boot off USB disks

Kyle McMartin kyle at fedoraproject.org
Thu Jul 25 17:06:28 UTC 2013


commit 5cc90c923c60bf27957e8f6f0ef731a2e2708500
Author: Kyle McMartin <kyle at mcmartin.ca>
Date:   Wed Jul 24 12:35:22 2013 -0400

    Add ehci-tegra.ko to initramfs to allow rawhide tegra based platforms to boot off USB disks

 0001-arm-add-ehci_tegra-to-initramfs.patch |   30 ++++++++++++++++++++++++++++
 dracut.spec                                |    7 +++++-
 2 files changed, 36 insertions(+), 1 deletions(-)
---
diff --git a/0001-arm-add-ehci_tegra-to-initramfs.patch b/0001-arm-add-ehci_tegra-to-initramfs.patch
new file mode 100644
index 0000000..c9257a6
--- /dev/null
+++ b/0001-arm-add-ehci_tegra-to-initramfs.patch
@@ -0,0 +1,30 @@
+From ad2565c8ff9c4309f2e5aacbd24856b615f20478 Mon Sep 17 00:00:00 2001
+From: Kyle McMartin <kyle at redhat.com>
+Date: Tue, 23 Jul 2013 22:07:05 -0400
+Subject: [PATCH] dracut: 90kernel-modules/module-setup.sh: add ehci-tegra.ko
+ on arm
+
+kernel-tegra is now part of the base kernel package, so bits and pieces
+ended up modular, and as a result, if you boot off the internal USB, you
+drop to a dracut shell with no way of getting to root.
+---
+ modules.d/90kernel-modules/module-setup.sh | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
+index 8388a08..3d4048a 100755
+--- a/modules.d/90kernel-modules/module-setup.sh
++++ b/modules.d/90kernel-modules/module-setup.sh
+@@ -47,7 +47,8 @@ installkernel() {
+         if [[ "$(uname -p)" == arm* ]]; then
+             # arm specific modules
+             hostonly='' instmods sdhci_esdhc_imx mmci sdhci_tegra mvsdio omap omapdrm \
+-                omap_hsmmc panel-tfp410 sdhci_dove ahci_platform pata_imx sata_mv
++                omap_hsmmc panel-tfp410 sdhci_dove ahci_platform pata_imx sata_mv \
++                ehci-tegra
+         fi
+ 
+         # install virtual machine support
+-- 
+1.8.3.1
+
diff --git a/dracut.spec b/dracut.spec
index 0dac015..4bf3ecd 100644
--- a/dracut.spec
+++ b/dracut.spec
@@ -10,7 +10,7 @@
 
 Name: dracut
 Version: 029
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 Summary: Initramfs generator using udev
 %if 0%{?fedora} || 0%{?rhel}
@@ -30,6 +30,7 @@ URL: https://dracut.wiki.kernel.org/
 # http://git.kernel.org/?p=boot/dracut/dracut.git;a=snapshot;h=%{version};sf=tgz
 Source0: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut-%{version}.tar.bz2
 
+Patch1: 0001-arm-add-ehci_tegra-to-initramfs.patch
 
 BuildRequires: bash git
 
@@ -436,6 +437,10 @@ rm -rf $RPM_BUILD_ROOT
 %{dracutlibdir}/dracut.conf.d/02-norescue.conf
 
 %changelog
+* Wed Jul 24 2013 Kyle McMartin <kyle at redhat.com> 029-2
+- Add ehci-tegra.ko to initramfs to allow rawhide tegra based platforms
+  to boot off USB disks.
+
 * Fri Jun 14 2013 Harald Hoyer <harald at redhat.com> 029-1
 - wait for IPv6 auto configuration
 Resolves: rhbz#973719


More information about the scm-commits mailing list