PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Module laden?



frodus
28.04.05, 21:34
Hi Leute,

ich habe gerade herausgefunden welche Module ich laden muss, damit
meine Hauppauge WinTv Nova-T unter Suse 9.2 laüft.
Die Module sind:
cx88_dvb
cx88xx
cx22702

Meine Frage ist nun wie bekomme ich es hin das die Module beim
System Start automatisch geladen werden?

Danke und gruss,

Frodus

Tomek
28.04.05, 21:42
http://sman.informatik.htw-dresden.de/doc/manual.9.2/suselinux-adminguide_de/html/ch08s04.html

frodus
28.04.05, 21:54
Erstmal danke,

ich habe auch schon folgende Einträge in meine
/etc/modprobe.conf.local
eingetragen:
alias char-major-84 cx22702
alias char-major-85 cx88xx
alias char-major-86 cx88_dvb

Scheint aber irgendwie nicht zu funktionieren.

/Frodus

frodus
30.04.05, 00:34
Ja Leute,

also wirklich gelöst habe ich die Ganze sache noch
nicht ist den hier keiner der sowas schon mal gemacht hat?

Gruss,

Frodus

realemu
30.04.05, 08:31
Hi!

Sicher, dass es die richtigen Module sind?
Sind sie wirklich geladen? Mach mal ein "lsmod" (l ist ein kleines L). Tauchen sie in der Liste auf?


Grüße, realemu

frodus
30.04.05, 12:52
Hi,

ja die Module sind auf jeden Fall richtig und wie schon erwähnt,
wird keins beim Starten des Systems geladen.

Ich bin mir aber nicht so sicher ob der Weg mit den aliasen
der richtige ist?
Vielleicht koennte man ja auch eine script mit 'start' und 'stop'
in /etc/init.d/ schreiben, welches dann die Module lädt.

/Frodus

tobo
30.04.05, 13:06
Bei mir (Gentoo) musste ich dies damals (zu devfs-zeiten) in /etc/modules.autoload.d/kernel*** eintragen
sah dann so aus:



# /etc/modules.autoload.d/kernel-2.6: kernel modules to load when system boots.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/modules.autoload.d/kernel-2.6,v 1.1 2003/07/16 18:13:45 azarah Exp $
#
# Note that this file is for 2.6 kernels.
#
# Add the names of modules that you'd like to load when the system
# starts into this file, one per line. Comments begin with # and
# are ignored. Read man modules.autoload for additional details.

# For example:
# 3c59x
# sg
# ne2k-pci
# nvidia
# isofs
# fat
# vfat


Und unter /etc/modules.d liegen dann die Optionen.

cu

frodus
30.04.05, 14:40
Hi Leute,

ich habe mir jetzt einfach unter /etc/init.d eine Datei angelegt mit dem
Namen dvb_nova und die startet meine TV-Karte wenn ich in den
Runlevel 5 Wechsel.

Hier ist die Datei:

#! /bin/bash
## init.d/dvb_nova
#
# dvb_nova: Script to start up the Hauppauge Nova-T with a 2.6 kernel
#
# Reguired modules:
# cx22702
# cx88xx
# cx88_dvb
#
. /etc/rc.status

case "$1" in
start)
echo -n "Starting Hauppauge Nova-T DVB"
modprobe cx88_dvb
rc_status -v
;;
stop)
echo -n "Shutting Hauppauge Nova-T DVB"

rmmod cx88_dvb 2>/dev/null
rmmod cx22702 2>/dev/null
rmmod cx8802 2>/dev/null
rmmod cx88xx 2>/dev/null

rc_status -v
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start

;;
force-reload)

;;
reload)

## Otherwise if it does not support reload:
rc_failed 3
rc_status -v
;;
status)
echo -n "Checking for DVB: "
## Check status with checkproc(8), if process is running
## checkproc will return with exit status 0.

# Status has a slightly different for the status command:
# 0 - service running
# 1 - service dead, but /var/run/ pid file exists
# 2 - service dead, but /var/lock/ lock file exists
# 3 - service not running

# NOTE: checkproc returns LSB compliant status values.
/sbin/lsmod|grep -q ^dvb || rc_failed 3
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
exit 1
;;
esac
rc_exit

Gruss,

Frodus