B410P mISDN l1 up but l2 down

here is my story of not getting a port up to work with b410P under asterisk.
port 4 of that card is physically connected to an isdn-dect-phone an should
hence be driven in nt mode. ports 1-3 are left unused for the moment.

At first, I´ve unloaded unneccesary modules like zaptel, hisax etc.,
then after “misdn-init start” dmesg shows:

CAPI Subsystem Rev 1.1.2.8
capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs)
Modular ISDN Stack core version (1_1_1) revision ($Revision: 1.40 $)
mISDNd: kernel daemon started (current:f396cab0)
mISDNd: test event done
ISDN L1 driver version 1.20
mISDN_register_module(f88d3180)
ISDN L2 driver version 1.32
mISDN_register_module(f88dce80)
mISDN: DSS1 Rev. 1.47
mISDN_register_module(f89e0680)
mISDN Capi 2.0 driver file version 1.21
mISDN_register_module(f8a63580)
mISDN: HFC-multi driver Rev. 1.67
HFC-multi: card manufacturer: ‘Cologne Chip AG’ card name: ‘HFC-4S Digium Card’ clock: normal
PCI: Enabling device 0000:00:0b.0 (0000 -> 0003)
ACPI: PCI Interrupt 0000:00:0b.0[A] -> GSI 19 (level, low) -> IRQ 22
HFC-4S#1: defined at IOBASE 0xc800 IRQ 22 HZ 250 leds-type 2
HFC_multi: resetting HFC with chip ID=0xc revision=1
Setting GPIOs
calling vpm_init
VPM: Chip 0: ver 33
VPM: A-law mode
VPM reg 0x20 is 11
NLP Thresh is set to 2 (0x2)
VPM: A-law mode
VPM reg 0x20 is 11
NLP Thresh is set to 2 (0x2)
hfcpci_probe: DIPs(0x90) jumpers(0x8)
register_layer: register_sysfs failed -17 st(00000100) inst(40000100)
register_layer: register_sysfs failed -17 st(00000200) inst(40000200)
register_layer: register_sysfs failed -17 st(00000300) inst(40000300)
register_layer: register_sysfs failed -17 st(00000400) inst(40000400)
1 devices registered
mISDN_register_module(f89b8c80)
mISDN_dsp: Audio DSP Rev. 1.27 (debug=0x0) EchoCancellor MG2 dtmfthreshold(100)
mISDN_dsp: DSP clocks every 128 samples. This equals 4 jiffies.
mISDN_register_module(f8a74680)

does anybody know what “register_sysfs failed” means in this context ?
despite this error, modules were loaded. continuing with:

[root@asterisk ~]# misdnportinfo

Port 1: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2

Port 2: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2

Port 3: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2

Port 4: NT-mode BRI S/T interface port (for phones)
-> Interface can be Poin-To-Point/Multipoint.

then after starting asterisk:

[root@asterisk ~]# misdnportinfo

Port 1: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
-> childcnt: 2

  • Port NOT useable for PBX (maybe there is already a PBX running?)

Port 2: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
-> childcnt: 2

  • Port NOT useable for PBX (maybe there is already a PBX running?)

Port 3: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
-> childcnt: 2

  • Port NOT useable for PBX (maybe there is already a PBX running?)

Port 4: NT-mode BRI S/T interface port (for phones)
-> Layer 2 protocol 0x02000002 is detected, but not allowed for NT lib.

  • Port NOT useable for PBX (maybe there is already a PBX running?)

I´ve already digged into the source of portinfo.c but did not understand
the meaning of these messages above. furthermore:

asterisk*CLI> misdn show stacks
BEGIN STACK_LIST:

  • Port 1 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0 Debug:4
  • Port 2 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0 Debug:4
  • Port 3 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0 Debug:4
  • Port 4 Type NT Prot. PTP L2Link DOWN L1Link:UP Blocked:0 Debug:4

asterisk*CLI> misdn port up 4
P[ 4] L1: PH L1Link Up!
P[ 0] MGMT: SSTATUS: L1_ACTIVATED
P[ 4] L1: PH L1Link Up!
P[ 0] MGMT: SSTATUS: L1_ACTIVATED
P[ 4] L1: PH L1Link Up!
P[ 0] MGMT: SSTATUS: L1_ACTIVATED
P[ 4] L1: PH L1Link Up!
P[ 0] MGMT: SSTATUS: L1_ACTIVATED
P[ 4] % GOT L2 DeActivate Info.
P[ 4] !!! Could not Get the L2 up after 3 Attemps!!!

in /var/log/misdn-nt.log we see:

Wed May 2 11:48:23 2007: P(04): L(0x40):manager_l3: msg len(8)
Wed May 2 11:48:23 2007: P(04): L(0x40):manager_l3: pr(20180) di(0)
Wed May 2 11:48:23 2007: P(00): L(0x40):find_proc: ces(0) cr(0)
Wed May 2 11:48:23 2007: P(-1): L(0x02):alloc_msg: 6 msg(0x81cb1f8)
Wed May 2 11:48:23 2007: P(04): L(0x20):l2from_up: prim(20180) dinfo(0)
Wed May 2 11:48:23 2007: P(04): L(0x20):L2 State ST_L2_5 Event EV_L2_DL_ESTABLISH_REQ
Wed May 2 11:48:23 2007: P(-1): L(0x02):free_msg: 6/4 msg(0x81cb1f8)
Wed May 2 11:48:23 2007: P(-1): L(0x02):free_msg: 6/5 msg(0x81ca9b0)
Wed May 2 11:48:23 2007: P(-1): L(0x02):alloc_msg: 6 msg(0x81ca9b0)
Wed May 2 11:48:23 2007: P(-1): L(0x02):free_msg: 6/5 msg(0x81ca9b0)
Wed May 2 11:48:23 2007: P(-1): L(0x02):alloc_msg: 6 msg(0x81ca9b0)
Wed May 2 11:48:24 2007: P(04): L(0x20):L2 State ST_L2_5 Event EV_L2_T200
Wed May 2 11:48:24 2007: P(04): L(0x20):L2 ChangeState ST_L2_4
Wed May 2 11:48:24 2007: P(04): L(0x20):l2mgr: prim 23082 G
Wed May 2 11:48:24 2007: P(-1): L(0x02):alloc_msg: 6 msg(0x81cb1f8)
Wed May 2 11:48:24 2007: P(04): L(0x40):l3_muxer: msg len(8)
Wed May 2 11:48:24 2007: P(04): L(0x40):l3_muxer: pr(20082) di(0)
Wed May 2 11:48:24 2007: P(04): L(0x40):l3_msg: pr(20082) di(0) arg(0x81cb1f8)
Wed May 2 11:48:24 2007: P(-1): L(0x02):alloc_msg: 6 msg(0x8248210)
Wed May 2 11:48:24 2007: P(-1): L(0x02):free_msg: 6/3 msg(0x8248210)
Wed May 2 11:48:24 2007: P(-1): L(0x02):free_msg: 6/4 msg(0x81cb1f8)
Wed May 2 11:48:24 2007: P(-1): L(0x02):free_msg: 6/5 msg(0x81ca9b0)

switching the port between ptp and ptmp in misdn.conf did not help,
neither did an increment of 4 of the rxgain/txgain parameters.

the led on the card is flashing green for a very short time when
trying to activate the port, but it remains red in the end.

has anybody made similar experiences and can perhaps indicate a solution ?

thanks in advance
alex

I am getting the same thing as in:

register_layer: register_sysfs failed -17 st(00000100) inst(40000100)
register_layer: register_sysfs failed -17 st(00000200) inst(40000200)
register_layer: register_sysfs failed -17 st(00000300) inst(40000300)
register_layer: register_sysfs failed -17 st(00000400) inst(40000400)

In my case however I get an Asterisk segmentation fault when I tried to start and Asterisk will not start.

Asterisk: 1.4.18-1
mISDN: 1.1.3 and 1.1.7 tried
mISDNuser: 1.1.3 and 1.1.7 tried