From: Bob Bottomley <Robert.A.Bottomley.Jr@cdc.com>
Subject: Re: udb pcmcia (and sound)
Date: Mon, 23 Jun 97 16:24:53 PDT [thread overview]
Message-ID: <06e108a6e064a690a5b7276dc1dc9bc9.axp-list@archive.invalid> (raw)
--- On Mon, 23 Jun 1997 17:19:56 -0400 tzeruch@ceddec.com wrote:
> Is there any way to get pcmcia working with the UDB. It seems to compile
> properly, but I don't know if it is tcic or i82365 or some other driver.
Yes, I got mine working on Friday on my UDB 166 with RH 4.2. I now have a
PC Card modem and can read the SRAM cards from my Zoomer. Here is what I did:
Get modules working. To do this, you need modutils-2.1.42. You can find this
is the alphabits directory on RedHat. You will probably never get through to
redhat.com and most of the mirror sites do not seem to mirror alphabits. So
try this URL:
ftp://ftp.varesearch.com/pub/mirrors/redhat/alphabits/
Be sure to read the last part of the README about the define required for
an alpha running binutils before 2.7.0.9 (which mine certainly was).
I installed modutils and then recompiled the kernel with module support.
Believe it or not -- it worked!
I tested it out by configuring floppy support as a module.
Now get pcmcia-cs-2.9.6. You can find this at:
ftp://hyper.stanford.edu/pub/pcmcia/
This will compile and install, but it won't work (module ds.o will not load).
After prowling through the mailing list archives, I found a patch from Richard
Henderson. Most of it seemed to be installed already except for two parts. I
installed them and then everything worked. Here are the excerpts from his
patch (Note: do not use the patch command to install these, I did not check
that the line numbers are still accurate, but they are easy to find):
diff -rup pcmcia-cs-2.9.2/include/pcmcia/k_compat.h pcmcia-cs-2.9.2-rth/include/pcmcia/k_compat.h
--- pcmcia-cs-2.9.2/include/pcmcia/k_compat.h Wed Mar 12 14:23:34 1997
+++ pcmcia-cs-2.9.2-rth/include/pcmcia/k_compat.h Sat Apr 12 19:47:14 1997
@@ -127,7 +128,7 @@ char kernel_version[] = UTS_RELEASE;
#endif
#ifdef __alpha__
-#define get_user(x, ptr) __get_user(x, ptr)
+#define get_user(x, ptr) ((x) = __get_user((ptr), sizeof(*(ptr))))
#else
#define get_user(x, ptr) \
((sizeof(*ptr) == 4) ? (x = get_fs_long(ptr)) : \
diff -rup pcmcia-cs-2.9.2/modules/Makefile pcmcia-cs-2.9.2-rth/modules/Makefile
--- pcmcia-cs-2.9.2/modules/Makefile Tue Nov 26 02:21:58 1996
+++ pcmcia-cs-2.9.2-rth/modules/Makefile Sat Apr 12 19:40:25 1997
@@ -19,6 +19,11 @@ ifdef CONFIG_MODVERSIONS
XFLAGS := $(XFLAGS) $(MFLAG)
endif
+ifdef CONFIG_ALPHA_LCA
+CFLAGS += -ffixed-8
+endif
+
+
SRCS = \
i82365.c tcic.c cs.c cistpl.c rsrc_mgr.c bulkmem.c ds.c \
serial_cs.c pcmem_cs.c memory_cs.c ftl_cs.c \
I don't know that the second part is actually needed, but I figured it
wouldn't hurt. The real problem was with get_user.
After that just follow the PCMCIA howto. The UDB has a i82365 controller.
There was one more gotcha. A test in ifup was backwards and with PCMCIA
turned on, the ethernet port was not brought up. Here is a patch:
diff -rup /etc/sysconfig/network-scripts/ifup.orig /etc/sysconfig/network-scripts/ifup
--- /etc/sysconfig/network-scripts/ifup.orig Mon Jun 23 16:54:28 1997
+++ /etc/sysconfig/network-scripts/ifup Fri Jun 20 13:31:22 1997
@@ -39,7 +39,7 @@ else
PCMCIA=no
fi
-if [ $DEVICETYPE = "eth" -a "foo${ISPCMCIA}" = "foo" ]; then
+if [ $DEVICETYPE = "eth" -a "foo${ISPCMCIA}" != "foo" ]; then
# this is a horrible hack to work around prior brokenness
if [ "$PCMCIA" = "yes" -a "foo$2" = "fooboot" ]; then
# cardmgr will start us up properly
>
> Also, OSS conflicts with the NCR when I try playing a file. Anyone know
> what port (530), irq (9), and dma (1?) I need to set for this?
The sound settings for the UDB are:
Windows Sound Sytem DMA 3 Port 530 IRQ 9
--------------------------------------------------------------------------
"It is by caffeine alone I set my mind in motion.
It is by the juice of cola that thoughts acquire speed,
the hands acquire shaking, the shaking become a warning.
It is by caffeine alone I set my mind in motion."
--The Programmer's Creed
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-06-23 23:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-23 23:24 Bob Bottomley [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-06-25 22:46 udb pcmcia (and sound) Rui-Tao Dong ~{6-HpLN~}
[not found] <97Jun23.171923edt.32257@brickwall.ceddec.com>
1997-06-23 21:27 ` Paul Wouters
1997-06-23 20:26 Reliable MILO anybody? Kay Choi
1997-06-23 21:19 ` udb pcmcia (and sound) tzeruch
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox