[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#375194: Can you test 2.6.18-rc7 ...



On Tue, Sep 19, 2006 at 08:26:11PM +0300, Yavor Doganov wrote:
> maximilian attems wrote:
> > 
> > ppc builds modular input i8042, so we need to try to modprobe it.
> >
> > is your root device there when you are dropped to the rescue shell?

maks, i think the best here would be to do a per-subarch modprobing.

We can reuse the numerous cases of similar sub-arch probing, but without
checking something like this (taken from mkvmlinuz) :

# if no sub-architecture was specified, read it from /proc
if test -z "$arch"; then
    case $(grep ^machine /proc/cpuinfo) in
        *PReP*Blackhawk*) arch=ppcbug ;;
        *PReP*) arch=prep ;;
        *CHRP*) arch=chrp ;;
        *Amiga*) arch=apus ;;
        *)
            case $(grep ^pmac-generation /proc/cpuinfo) in
                *NewWorld) arch=pmac ;;
                *OldWorld) arch=coff ;;
            esac
            ;;
    esac
fi
 
and then some :

case $arch in
	prep|chrp|ppcbug)
		modprobe i8042
		modprobe atkbd
		;;
esac

Then we can go even further, and do some pmac modele discriminating in order
to load the fan control modules and so on.

What do you think of a facility like that ? 

Friendly,

Sven Luther



Reply to: