CRI Radio

May 22, 2007

shell 4 usbcam

#
# Load the needed modules for the usbcam driver.
#

# you may need these commented out lines if your insmod is too old.
#IS24=`uname -r | grep -c ^2.2`
#
#if [ $IS24 == "1" ]
#then
#insmod /lib/modules/2.2.14/misc/videodev.o
#else
#insmod /lib/modules/2.4.0-test10/kernel/drivers/media/video/videodev.o
#fi

#
# Load the modules.
#

# Video4Linux Support
/sbin/insmod videodev

# USB Core Module
/sbin/insmod usbcore

# USB UHCI/OHCI Controller Modules (new)
/sbin/insmod usb-uhci
#/sbin/insmod usb-ohci

# USB UHCI Controller Modules (old)
#/sbin/insmod uhci

# that for the sys request key, comment it out if the quickcam works well.
# if you get any erors: use Alt + SysRq + S = Emergency Sync (write everything on HDD)
#                use Alt + SysRq + U = Unmount all HDD's
#            use Alt + SysRq + B = Reboot system immediatly
echo "1" > /proc/sys/kernel/sysrq

# usbcam.o is in current directory, after copying in /lib/modules/.../usb,
# use insmod usbcam chip.
/sbin/insmod ./usbcam.o

/sbin/lsmod