Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Mar 2000 08:27:57 +1100
From:      Craig Wilson <craig@natsoft.com.au>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: misc/17113: Adaptec SlimSCSI 1460D Not Detected Under FreeBSD4.0RC2
Message-ID:  <38BEDCDD.20F@natsoft.com.au>
References:  <200003020810.AAA47280@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Since I submitted this PR I have been doing further experimenting, and
have since solved my problem:

pccardd found the PCMIA card after changing the
pccard_mem="DEFAULT" to pccard_mem="0xd4000" in rc.conf
For some reason the system did not like the default of 0xd0000

I also created a seperate pccard.conf file with just the SCSI card
in it and applied the changes in PAO3, incorporating the pccard_scsi
script which provides for the cam driver to rescan for devices etc.
I have included the pccard.conf & pccard_scsi.

As far as I am concerned this PR can be closed.

Thanks,


Craig Wilson
National Software Pty Ltd
-----------------------------------------------------------------------
pccard.conf
# Sample PCCARD configuration file
#
# Removing all IRQ conflicts from this file can't be done because of
some
# IRQ-selfish PC-cards.  So if you want to use some of these cards in
# your machine, you will be forced to modify their IRQ parameters from
# the following list.
#
# IRQ == 0 means "allocate free IRQ from IRQ pool"
# IRQ == 16 means "do not use IRQ (e.g. PIO mode)"
#
# $FreeBSD: src/etc/pccard.conf.sample,v 1.80 2000/02/14 08:02:27 imp
Exp $

# Generally available IO ports
io	0x240-0x360
# Generally available IRQs (Built-in sound-card owners remove 5)
irq	3 5 10 11 13 15
# Available memory slots
memory	0xd4000  96k


# Adaptec SlimSCSI (also included with Sony CD-ROM players)
card "Adaptec, Inc." "APA-1460 SCSI Host Adapter"
	config	0x9 "aic0" ?
	insert	logger -t pccard:$device -s Adaptec Slim SCSI inserted
	insert	/etc/pccard_scsi $device
	remove	logger -t pccard:$device -s Adaptec Slim SCSI removed
-----------------------------------------------------------------------
pccard_scsi
#! /bin/sh -
#
# Usage: pccard_scsi interface name
#
# example: pccard_scsi aic0
#
# T. Ichinoseki
#

# default value of delay (second)
pccard_scsi_delay=2

# Suck in the configuration variables
if [ -f /etc/defaults/rc.conf ]; then
	. /etc/defaults/rc.conf
elif [ -f /etc/rc.conf ]; then
	. /etc/rc.conf
fi

interface=$1
bus=`/sbin/camcontrol devlist -v | \
	/usr/bin/grep ${interface} | \
	/usr/bin/sed -e "s/ .*$//"`

if [ "$bus" ]; then
	if [ "$pccard_scsi_delay" ]; then
	    if [ ${pccard_scsi_delay} -gt 0 ]; then
		if [ ${pccard_scsi_delay} -gt 15 ]; then
		    # set muximum delay to 15 seconds
		    pccard_scsi_delay=15
		fi
		/bin/sleep ${pccard_scsi_delay}
	    fi
	fi
	/sbin/camcontrol reset $bus
	/sbin/camcontrol rescan $bus
fi
-----------------------------------------------------------------------

craig@natsoft.com.au wrote:
> Subject: misc/17113: Adaptec SlimSCSI 1460D Not Detected Under FreeBSD4.0RC2
> Date: Wed, 1 Mar 2000 13:58:36 -0800 (PST)
> 
>  >Number:         17113
>  >Category:       misc
>  >Synopsis:       Adaptec SlimSCSI 1460D Not Detected Under FreeBSD4.0RC2
>  Compaq Armada E700 Notebook
>  with PCI-Cardbus/PCMIA
>  running the GENERIC kernel

>  >Description:
>  When the Adaptec SlimSCSI 1460D is inserted the following is displayed:
>  pccard: card inserted, slot 0
>  Mar 2 08:46:11 pccardd[45]: No card in database for ""("")
> 
>  I have installed 4.0RC2 as this is the only version of FreeBSD that
>  will detect the IDE controller. I am using the pccard.conf.sample as
>  supplied on the FreeBSD4.0RC2 CD ISO image.
> 
>  The command 'pccardc dumpcis' returned the following:
>  Code 85 not found
>  Code 85 not found
>  code Unknown ignored
>  Code 128 not found
>  Code 128 not found
>  code Unknown ignored
>  Configuration data for card in slot 0
>  Tuple #1, code = 0x0 (Null tuple), length = 12
>      000:  3c cb 9d 00 00 00 00 00 00 20 40 60
>  Tuple #2, code = 0x0 (Null tuple), length = 139
>      000:  55 44 16 00 01 08 00 30 70 50 49 2e c0 8b 2e c0
>      010:  50 49 86 29 00 18 00 00 0c 01 00 00 2e c0 8b 8b
>      020:  24 6e 01 00 00 00 00 b4 c6 02 00 00 00 56 00 00
>      030:  0d 43 70 72 67 74 28 29 31 39 2c 39 38 31 39 20
>      040:  49 74 6c 43 72 6f 61 69 6e 0a 49 74 6c 43 72 6f
>      050:  61 69 6e 49 74 6c 55 44 2c 50 45 32 30 28 75 6c
>      060:  20 37 29 48 ff ff 00 c0 f2 00 b4 cd 0a 74 32 c3
>      070:  01 16 02 c0 c0 02 e4 c0 55 ec 60 46 b4 bb 00 01
>      080:  cd 66 90 c2 00 20 e2 c3 0d dc 6a
>  Code 232 not found
>  Tuple #3, code = 0xe8 (Unknown), length = 0
>  2 slots found
> 
>  It appears as though the system is not reading the card properly.
> 
>  Also when pccardd starts the following errors are displayed:
>  pccardd: (null): illegal IRQ value at line 303, near any
>  pccardd: (null): illegal card IRQ value at line 303, near any
>  pccardd: (null): syntax error at line 303, near any
>  pccardd: (null): syntax error at line 303, near insert
>  pccardd: (null): syntax error at line 303, near logger
>  pccardd: (null): syntax error at line 303, near -
>  pccardd: (null): syntax error at line 303, near t
>  pccardd: (null): syntax error at line 303, near pccard:$device
>  pccardd: (null): syntax error at line 303, near -
>  pccardd: (null): syntax error at line 303, near s
>  pccardd: (null): syntax error at line 303, near Allied
>  pccardd: (null): syntax error at line 303, near Telesis
>  pccardd: (null): syntax error at line 303, near LA100
>  pccardd: (null): syntax error at line 303, near -
>  pccardd: (null): syntax error at line 303, near PCM
>  pccardd: (null): syntax error at line 303, near -
>  pccardd: (null): syntax error at line 303, near T
>  pccardd: (null): syntax error at line 303, near V2
>  pccardd: (null): syntax error at line 304, near inserted
>  pccardd: (null): syntax error at line 304, near insert
>  pccardd: (null): syntax error at line 304, near /etc/pccard_ether
>  pccardd: (null): syntax error at line 305, near $device
>  pccardd: (null): syntax error at line 305, near remove
>  pccardd: (null): syntax error at line 305, near logger
>  pccardd: (null): syntax error at line 305, near -
>  pccardd: (null): syntax error at line 305, near t
>  pccardd: (null): syntax error at line 305, near pccard:$device
>  pccardd: (null): syntax error at line 305, near -
>  pccardd: (null): syntax error at line 305, near s
>  pccardd: (null): syntax error at line 305, near Allied
>  pccardd: (null): syntax error at line 305, near Telesis
>  pccardd: (null): syntax error at line 305, near LA100
>  pccardd: (null): syntax error at line 305, near -
>  pccardd: (null): syntax error at line 305, near PCM
>  pccardd: (null): syntax error at line 305, near -
>  pccardd: (null): syntax error at line 305, near T
>  pccardd: (null): syntax error at line 305, near V2
>  pccardd: (null): syntax error at line 306, near removed
>  pccardd: (null): syntax error at line 306, near remove
>  pccardd: (null): syntax error at line 306, near /etc/pccard_ether_remove
>  pccardd: (null): syntax error at line 307, near $device
>  pccardd: (null): illegal IRQ value at line 667, near any
>  pccardd: (null): illegal card IRQ value at line 667, near any
>  pccardd: (null): syntax error at line 667, near any
>  pccardd: (null): syntax error at line 667, near insert
>  pccardd: (null): syntax error at line 667, near logger
>  pccardd: (null): syntax error at line 667, near -
>  pccardd: (null): syntax error at line 667, near t
>  pccardd: (null): syntax error at line 667, near pccard:$device
>  pccardd: (null): syntax error at line 667, near -
>  pccardd: (null): syntax error at line 667, near s
>  pccardd: (null): syntax error at line 667, near SiliconTech
>  pccardd: (null): syntax error at line 667, near Flash
>  pccardd: (null): syntax error at line 667, near ATA
>  pccardd: (null): syntax error at line 668, near inserted
>  pccardd: (null): syntax error at line 668, near remove
>  pccardd: (null): syntax error at line 668, near logger
>  pccardd: (null): syntax error at line 668, near -
>  pccardd: (null): syntax error at line 668, near t
>  pccardd: (null): syntax error at line 668, near pccard:$device
>  pccardd: (null): syntax error at line 668, near -
>  pccardd: (null): syntax error at line 668, near s
>  pccardd: (null): syntax error at line 668, near SiliconTech
>  pccardd: (null): syntax error at line 668, near Flash
>  pccardd: (null): syntax error at line 668, near ATA
>  pccardd: (null): syntax error at line 669, near removed
>  pccardd: (null): illegal IRQ value at line 746, near reset
>  pccardd: (null): illegal card IRQ value at line 746, near reset
>  pccardd: warning: card AT&T Paradyne(KeepInTouch Card) has no valid configuration
>  pccardd: warning: card SiliconTech,Inc(16MB Compact PC Card) has no valid configuration
>  pccardd: warning: card Allied Telesis, K.K.(CentreCOM LA100-PCM-T V2 100/10M LAN PC Card) has no valid configuration
> 
>  It appears pccardd does not like 'any' on the config line.


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38BEDCDD.20F>