Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 1999 19:08:26 +0200 (CEST)
From:      Rene de Vries <rene@canyon.demon.nl>
To:        freebsd-alpha@freebsd.org
Subject:   Problems getting the 'rl' driver to work
Message-ID:  <199906121708.TAA28335@canyon.demon.nl>

next in thread | raw e-mail | index | archive | help
Hello,

Due to a hardware failure I had to replace my DE500 card for the ultra-cheap
RealTek 8139. I know that the rl driver is slow, but the alpha is only my
extra test machine adn does not need to be fast. So I thought, it should be
possible to modify the existing rl driver to work on my alpha. I'm having
some problems doing this.

After some hacking (correctly setting sc->rl_btag for alpha) the driver
compiled, but I got the following panic:

Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 3.2-STABLE #12: Sat Jun 12 18:26:49 CEST 1999
    root@kings.canyon.demon.nl:/usr/src.local/sys/compile/KINGS
DEC AXPpci
Alpha PC AXPpci33, 200MHz
8192 byte page size, 1 processor.
CPU: LCA Family major=4 minor=2
OSF PAL rev: 0x100090002012d
real memory  = 31481856 (30744K bytes)
avail memory = 25706496 (25104K bytes)
Preloaded elf kernel "kernel" at 0xfffffc0000592000.
lca0: <21066 PCI adapter>
isa0
Probing for devices on PCI bus 0:
ncr0: <ncr 53c810 fast10 scsi> rev 0x01 int a irq 11 on pci0.6.0
chip0: <Intel 82378ZB PCI to ISA bridge> rev 0x03 on pci0.7.0
rl0: <RealTek 8139 10/100BaseTX> rev 0x10 int a irq 5 on pci0.12.0

unexpected machine check:

    mces    = 0x1
    vector  = 0x670
    param   = 0xfffffc0000006048
    pc      = 0xfffffc000048ce84
    ra      = 0xfffffc000042be74
    curproc = 0

panic: machine check

With the help of some printf statments I found that the problem must be in
calling the 'CSR_WRITE_1(sc, RL_COMMAND, RL_CMD_RESET);' macro, which
translates to a 'bus_space_write_1'. I know that there is a problem/feature
on alphas keeping them from accessing memory at unaligned adresses, but I
assumed that that whould be handled in writeb (called from bus_space_write).

Am I missing something? Can somebody help me?

Sorry if this is a stupid error, this is the first time I try to hack a
device driver.

Rene
-- 
Rene de Vries                    http://www.tcja.nl/~rene; mailto:rene@tcja.nl


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906121708.TAA28335>