Bug#615831: [PATCH] Load modules for USB keyboard if not keyboard is present at panic

2011-03-02 Thread Timo Juhani Lindfors
m...@linux.it (Marco d'Itri) writes:
 My only request is that the loading in panic() of *every* module is
 preceded by printing on the console an appropriate debug message
 containing the module name, because loading the module could cause an
 oops.

Ok. I reworked this a bit and resent with

git send-email --to=initramfs-to...@packages.debian.org --cc 
615...@bugs.debian.org 
0001-panic-print-name-of-kernel-module-before-loading-it.patch 
0002-Load-modules-for-USB-keyboard-if-no-keyboard-is-pres.patch




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#615831: [PATCH] Load modules for USB keyboard if not keyboard is present at panic

2011-02-28 Thread Timo Juhani Lindfors
USB modules are not normally loaded at break=top time but since USB
keyboards are very common we should take the effort to try to load
extra kernel modules at break (=panic) time. This patch closes #615831
and has been adapted from comments mentioned in

https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/229732

and tested on on HP ProLiant MicroServer that lacks a PS2 port
completely.
---
 scripts/functions |7 +++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/scripts/functions b/scripts/functions
index 579696a..778196f 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -46,6 +46,13 @@ panic()
fi
modprobe i8042
modprobe atkbd
+   if ! grep -q '^H:.*kbd' /proc/bus/input/devices ; then
+   # no keyboard? Try USB.
+   modprobe ehci-hcd
+   modprobe uhci-hcd
+   modprobe ohci-hcd
+   modprobe usbhid
+   fi
REASON=$@ PS1='(initramfs) ' /bin/sh -i /dev/console /dev/console 
21
 }
 
-- 
1.7.2.3




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#615831: [PATCH] Load modules for USB keyboard if not keyboard is present at panic

2011-02-28 Thread maximilian attems
On Mon, Feb 28, 2011 at 01:18:04PM +0200, Timo Juhani Lindfors wrote:
 USB modules are not normally loaded at break=top time but since USB
 keyboards are very common we should take the effort to try to load
 extra kernel modules at break (=panic) time. This patch closes #615831
 and has been adapted from comments mentioned in
 
 https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/229732
 
 and tested on on HP ProLiant MicroServer that lacks a PS2 port
 completely.
 ---
  scripts/functions |7 +++
  1 files changed, 7 insertions(+), 0 deletions(-)
 
 diff --git a/scripts/functions b/scripts/functions
 index 579696a..778196f 100644
 --- a/scripts/functions
 +++ b/scripts/functions
 @@ -46,6 +46,13 @@ panic()
   fi
   modprobe i8042
   modprobe atkbd
 + if ! grep -q '^H:.*kbd' /proc/bus/input/devices ; then

with BUSYBOX=no not available, also we'd better check in /sys/

 + # no keyboard? Try USB.
 + modprobe ehci-hcd
 + modprobe uhci-hcd
 + modprobe ohci-hcd
 + modprobe usbhid
HMM modrpobing is a hack,
but well at this stage it might be valuable,
consdering one would want to debug udev?


 + fi
   REASON=$@ PS1='(initramfs) ' /bin/sh -i /dev/console /dev/console 
 21
  }

Md any feedback from your side?



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#615831: [PATCH] Load modules for USB keyboard if not keyboard is present at panic

2011-02-28 Thread Marco d'Itri
On Feb 28, maximilian attems m...@stro.at wrote:

 Md any feedback from your side?
I have never seen a system where the BIOS does not provide a working
USB keyboard, but I have no objections in principle.
My only request is that the loading in panic() of *every* module is
preceded by printing on the console an appropriate debug message
containing the module name, because loading the module could cause an
oops.

-- 
ciao,
Marco


signature.asc
Description: Digital signature