Subject: NetBSD 1.5R: AVM A1 ISDN Card not working
To: None <current-users@netbsd.org>
From: Christoph Kaegi <ck@neverland.ch>
List: current-users
Date: 02/28/2001 21:29:43
Hi

I installed a current snapshot on my second harddrive and tried
to get ISDN working.
I took the generic kernel config, added the ISDN specific stuff 
and did as the 'Steps to connect via ISDN' document said.

After starting up (usually while logging in, the kernel 
tells me:

    i4b-L2 i4b_T202_timeout: unit 0, N202 = 3
    i4b-L3 T303_timeout: SETUP not answered, cr = 111
    i4b-L3 next_l3state: FSM illegal state, state = ST_OW - Out Wait EST, event = EV_T303EXP - T303 timeout!
    i4b-L1 isic_isac_irq: unit 0: CRC error
    i4b-L1 isic_isac_irq: unit 0: Receive Aborted error
    i4b-L2 i4b_ph_data_ind: ERROR, I-frame < 6 octetts!
    i4b-L2 i4b_rxd_u_frame: not mine -  UNKNOWN TYPE ERROR, sapi = 1, tei = 0, frame = 
     0x6 0x0 0xc7 0x10 0x97 0x52 0x82 0xf6

I have already played a bit with BIOS IRQ settings but the problem
didn't go away.

Where should I search further?

Some more information:

NetBSD Version: 1.5R 
ISDN Card: AVM A1 Fritz Card PCI
Motherboard: ASUS A7V

relevant dmesg lines:
--------------------------------- 8< ---------------------------------
i4b: ISDN call control device attached
i4btrc: 2 ISDN trace device(s) attached
i4bctl: ISDN system control port attached
i4brbch: 4 raw B channel access device(s) attached
i4btel: 2 ISDN telephony interface device(s) attached
i4bipr: 2 IP over raw HDLC ISDN device(s) attached (VJ header compression)
i4bisppp: 2 ISDN SyncPPP device(s) attached
--------------------------------- 8< ---------------------------------

bits from /etc/rc.conf
--------------------------------- 8< ---------------------------------
net_interfaces="ep0 isp0"
ifconfig_ep0="10.10.10.6 netmask 255.255.255.0 broadcast 10.10.10.255"
ifconfig_isp0="inet 0.0.0.0 0.0.0.1 link1 down debug"
...
isdnd=YES
--------------------------------- 8< ---------------------------------

/etc/isdn/isdnd.rc
--------------------------------- 8< ---------------------------------
system

# accounting
acctall         = on                    # generate info for everything
acctfile        = /var/log/isdnd.acct   # name & location of accounting file
useacctfile     = yes                   # generate accouting info to file

# monitor
monitor-allowed = on                    # global switch: monitor on/off

# ratesfile
ratesfile       = /etc/isdn/isdnd.rates # name & location of rates file

# regular expression pattern matching
#regexpr        = "connected.*KTS"      # look for matches in log messages
#regprog        = connectKTS            # execute program when match is found

# realtime priority section
rtprio          = 25                    # modify isdnd's process priority

#=======================================================================
# entry section: sync PPP example using the isp device
#======================================================================
entry

name                    = I4BPPP        # name for reference

usrdevicename           = isp           # ipr, tel, rbch
usrdeviceunit           = 0             # unit number

isdncontroller          = 0             # controller to use or -1 to use any
isdnchannel             = -1            # channel to use or -1 to use any
local-phone-incoming    = 0123456789    # we take calls for this local number
remote-phone-incoming   = 0123456789    # we take calls from this remote machine
remote-phone-dialout    = 0123456789    # remote number to dial 
local-phone-dialout     = 0123456789    # our number to tell remote
remdial-handling        = first         # first, last or next
dialin-reaction         = reject        # accept, reject, ignore, answer, callback
dialout-type            = normal        # normal / calledback
b1protocol              = hdlc          # hdlc, raw

ppp-expect-auth         = none          # authentication method used by the
ppp-send-auth           = pap           # authentication method that we have
ppp-send-name           = MyUserName    # our PPP login name at the remote site
ppp-send-password       = MyPassword    # the password the remote side expects
ppp-auth-paranoid       = no            # do we expect the remote side to prove
ppp-auth-rechallenge    = no            # chap only: rechallenge once in a while

idletime-incoming       = 240           # incoming call idle timeout
idletime-outgoing       = 30            # outgoing call idle timeout

ratetype                = 0             # city rate
unitlength              = 90            # default unit length
unitlengthsrc           = rate          # none, rate, cmdl, conf, aocd

dialretries             = 3             # no of retries
dialrandincr            = on            # increase time between dials
recoverytime            = 25            # wait between dails

usedown                 = off           # do not use soft up/down
downtries               = 2
downtime                = 30

--------------------------------- 8< ---------------------------------

Thanks in advance

Regards

Christoph

-- 
----------------------------------------------------------------------
Christoph Kaegi                                        ck@neverland.ch
----------------------------------------------------------------------