How to compile a network driver given source code

2009-02-07 Thread Amer Alhabsi
Hi,

I have Benq Joybook R43 notebook. It has network interface based on SiS 191.
However, I can't configure it as it does not show up in ifconfig nor in
sysinstall/configure/networking/interfaces. Dmesg says: No Driver Attached.

After some search I found that someone has written a driver but it
hasn't been put int the official FreeBSD release. I want to try my
luck with the driver. My question is where to place the source code
files? and how to compile it (I assume it can be part of a kernel
rebuild if placed in the right directory)

The source code for the driver consists of the 3 files: if_sis19x.c,
if_sis19xreg.h and Makefile.

Thanks,

Amer,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Network card SiS 191 not detected

2008-10-03 Thread Amer Alhabsi
Hi,

I have Benq Joybook R43 notebook. It has network interface based on SiS 191.
However, I can't configure it as it does not show up in ifconfig nor in
sysinstall/configure/networking/interfaces. Dmesg says: No Driver Attached.
I wonder if there is a way to get it working.

Here is part of the output of

pciconf -lv

[EMAIL PROTECTED]:0:4:0:class=0x02 card=0x059417ff chip=0x01911039 
rev=0x02
hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SIS191 SIS191'
class  = network
subclass   = ethernet

And here is dmesg.boot

Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 Duo CPU T7250  @ 2.00GHz (1999.45-MHz 686-class
CPU)
  Origin = GenuineIntel  Id = 0x6fd  Stepping = 13

Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0xe3bdSSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x2010NX,LM
  AMD Features2=0x1LAHF
  Cores per package: 2
real memory  = 936968192 (893 MB)
avail memory = 903118848 (861 MB)
ACPI APIC Table: PTLTD   APIC  
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 Version 1.4 irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 19:59:27)
acpi0: BenQ Joybook on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x8008-0x800b on acpi0
acpi_ec0: Embedded Controller: GPE 0x10 port 0x62,0x66 on acpi0
acpi_hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on
acpi0
Timecounter HPET frequency 14318180 Hz quality 900
cpu0: ACPI CPU on acpi0
est0: Enhanced SpeedStep Frequency Control on cpu0
p4tcc0: CPU Frequency Thermal Control on cpu0
cpu1: ACPI CPU on acpi0
est1: Enhanced SpeedStep Frequency Control on cpu1
p4tcc1: CPU Frequency Thermal Control on cpu1
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
vgapci0: VGA-compatible display port 0x9000-0x907f mem
0xc000-0xcfff,0xd400-0xd401 irq 16 at device 0.0 on pci1
isab0: PCI-ISA bridge at device 2.0 on pci0
isa0: ISA bus on isab0
atapci0: SiS 5513 WDMA2 controller port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1080-0x108f at device 2.5 on pci0
ata0: ATA channel 0 on atapci0
ata0: [ITHREAD]
ata1: ATA channel 1 on atapci0
ata1: [ITHREAD]
ohci0: SiS 5571 USB controller mem 0xd4204000-0xd4204fff irq 20 at device
3.0 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: SiS 5571 USB controller on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 4 ports with 4 removable, self powered
ohci1: SiS 5571 USB controller mem 0xd4205000-0xd4205fff irq 21 at device
3.1 on pci0
ohci1: [GIANT-LOCKED]
ohci1: [ITHREAD]
usb1: OHCI version 1.0, legacy support
usb1: SiS 5571 USB controller on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1
uhub1: 4 ports with 4 removable, self powered
ehci0: EHCI (generic) USB 2.0 controller mem 0xd4206000-0xd4206fff irq 22
at device 3.3 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb2: EHCI version 1.0
usb2: companion controllers, 4 ports each: usb0 usb1
usb2: EHCI (generic) USB 2.0 controller on ehci0
usb2: USB revision 2.0
uhub2: SiS EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 on usb2
uhub2: 8 ports with 8 removable, self powered
umass0: Generic USB2.0-CRW, class 0/0, rev 2.00/51.95, addr 2 on uhub2
pci0: network, ethernet at device 4.0 (no driver attached)
atapci1: SiS 5513 WDMA2 controller port
0x10c8-0x10cf,0x10bc-0x10bf,0x10c0-0x10c7,0x10b8-0x10bb,0x10a0-0x10af irq 17
at device 5.0 on pci0
atapci1: [ITHREAD]
ata2: ATA channel 0 on atapci1
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci1
ata3: [ITHREAD]
pcib2: PCI-PCI bridge irq 16 at device 6.0 on pci0
pci2: PCI bus on pcib2
ath0: Atheros 5424/2424 mem 0xd410-0xd410 irq 16 at device 0.0 on
pci2
ath0: [ITHREAD]
ath0: unable to attach hardware; HAL status 13
device_attach: ath0 attach returned 6
pcib3: ACPI PCI-PCI bridge irq 16 at device 7.0 on pci0
pci4: ACPI PCI bus on pcib3
pci0: multimedia at device 15.0 (no driver attached)
acpi_lid0: Control Method Lid Switch on acpi0
acpi_acad0: AC Adapter on acpi0

Can't login with /var was not properly dismounted

2005-06-07 Thread Amer Alhabsi

Hi,

My FreeBSD 5.4 machine stopped responding and I pressed the reset button
(even SSH from a different machine didn't work). After restart, I got /usr
and /var were not properly dismounted message and it hangs. I logged on in
single mode and done
fsck -y /usr as suggested in a google search. /usr was cleaned. But
when I try to do the same on /var the machine hangs. At first I thought it
was taking a long time, but there is no disk activity. Please help me so
that I can log back to the machine.

Thanks,

Amer,

PS. I run amd64 FreeBSD 5.4 release generic kernel. /var is about 1GB and
/usr is 30GB.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Can't login with /var was not properly dismounted

2005-06-07 Thread Amer Alhabsi

On Tue, Jun 07, 2005 at 12:23:59PM -0500, Amer Alhabsi wrote:
 Hi,

 My FreeBSD 5.4 machine stopped responding and I pressed the reset button
 (even SSH from a different machine didn't work). After restart, I got
/usr
 and /var were not properly dismounted message and it hangs. I logged on
in
 single mode and done
 fsck -y /usr as suggested in a google search. /usr was cleaned.
But
 when I try to do the same on /var the machine hangs. At first I thought
it
 was taking a long time, but there is no disk activity. Please help me so
 that I can log back to the machine.

Press ^T to find out what state the fsck process is in.  Are there any
other messages displayed on the console before or during?

Kris

doing fsck -y /var (using signle user mode) I get
** /dev/ar0s4d
** Last Mounted on /var
** Phase 1 - Check Block and Sizes

pressing ^T right after issueing the command I get
load : 0.42  cmd: fsck_ufs 70 [physrd] 0.00u 0.00s 0% 1336k
then it hangs. It doesn't respond to further pressing of  ^T.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]