Custom kernel driver help

Spencer Gibb spudgibb at gmail.com
Mon Mar 26 21:08:36 MDT 2007


This is my solution, it's a hack, but it works
---------------------------
spencer at maryland:~$ more /etc/init.d/fix_network
#! /bin/sh

rmmod sis190
modprobe sis190
./networking restart

On 3/26/07, Michael Lovell <toelovell at gmail.com> wrote:
> Spencer Gibb wrote:
> > All,
> >
> > Thanks for your help in advance.  I recently bought a shuttle
> > barebones system, model SS21T.  It's mobo uses some SiS drivers which
> > have trouble in linux (Ubunutu 6.10).  To get the network and SATA
> > drivers I needed to use the Howto here
> > https://wiki.ubuntu.com/ShuttleSs30G2InstallEdgyHowTo
> >
> > In short, I now have two custom kernel drivers.  The network driver
> > works, but only after I do the following;
> >
> > rmmod sis190
> > modprobe sis190
> > /etc/init.d/networking restart
> >
> > Any ideas?  Why does it work after rmmod and modprobe, but not before?
> > This is going to be a headless machine, so I can't be entering these
> > commands if I need to reboot.
> >
> > Output from dmesg
> > [17179610.448000] sis190.c: v1.00.00 12/14/2004
> > [17179610.448000] ACPI: PCI Interrupt 0000:00:04.0[A] -> GSI 19
> > (level, low) -> IRQ 225
> > [17179610.448000] PCI: Setting latency timer of device 0000:00:04.0 to 64
> > [17179610.448000] sis_priv->vendor = 1039, sis_priv->device = 190
> > [17179610.448000] eth0: Read MAC address from EEPROM
> > [17179610.448000] eth0: Unknown PHY transceiver found at address 1.
> > [17179610.456000] eth0: Using transceiver found at address 1 as default
> > [17179610.792000] input: ImPS/2 Generic Wheel Mouse as
> > /class/input/input2
> > [17179610.852000] ts: Compaq touchscreen protocol output
> > [17179612.060000] eth0: Media Link On 100 Mbps full-duplex
> > [17179612.060000] eth0: SiS 190 PCI Fast Ethernet Adapter at 0xfd00,
> > IRQ 225, 00:30:1b:42:90:73.
> > [17179612.060000] eth0: Run in GMII mode.
> > [17179612.060000] ACPI: PCI Interrupt 0000:00:02.7[C] -> GSI 18
> > (level, low) -> IRQ 233
> > [17179612.376000] intel8x0_measure_ac97_clock: measured 54859 usecs
> > [17179612.376000] intel8x0: clocking to 48000
> > [17179612.512000] lp0: using parport0 (interrupt-driven).
> >
> >
> What I would try to do is compile the network driver into the kernel
> instead of using a module for it. I'm not too familiar with the proper
> ubuntu way of compiling a kernel. My guess would be that you could do
> this by running make menuconfig before you do make-kpkg in that tutorial
> and making sure that it is set to compile the driver in instead of a
> module. Then you should be able to continue with the rest of the
> tutorial. Hopefully that would work but I am not an expert at building
> Ubuntu Kernels. Good Luck.
>
> Mike Lovell
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>


-- 
Spencer Gibb
spencer{at}gibb.us



More information about the PLUG mailing list