From: Gregory Nietsky <gregory@networksentry.co.za>
To: Simon Richter <sjr@debian.org>
Cc: Tilman Schmidt <tilman@imap.cc>, Jeff Garzik <jeff@garzik.org>,
kkeil@suse.de, Greg KH <greg@kroah.com>,
linux-kernel@vger.kernel.org, Andi Kleen <andi@firstfloor.org>,
isdn4linux@listserv.isdn4linux.de,
Sam Ravnborg <sam@ravnborg.org>
Subject: Re: Plans for mISDN? Was: [PATCH 00/14] [ISDN] ...
Date: Thu, 21 Feb 2008 21:38:42 +0200 [thread overview]
Message-ID: <47BDD342.5070506@networksentry.co.za> (raw)
In-Reply-To: <47BD5360.5070706@debian.org>
Simon Richter wrote:
> Hi,
>
> Tilman Schmidt wrote:
>
>> mISDN has two problems, which are of course interrelated:
>
> mISDN has one problem that is even bigger than these: the kernel oopses
> if modules aren't loaded in the right order. misdn-init works around
> that, but if it doesn't work for some reason (and I can think of
> multiple here), the user is left with a kernel that oopses during
> hardware discovery and never gets to a stage where this can be
> rectified, as almost all distributions now have hardware discovery
> before the first opportunity to get a shell. At least these were my
> experiences the last time I tried it on my test box.
>
> This is the reason I've kept mISDN out of the last two Debian stable
> releases, despite users' requests.
>
> When a hardware driver module is loaded, it should only do basic
> hardware initialisation; it is certainly not necessary to set up the
> entire stack (or even decide on a protocol, which currently needs to be
> handed in via module parameter -- before userland code is there that
> wants to talk to the hardware, there is no reason to have the hardware
> active).
>
> Simon
> --
hi there simon ive not bothered with isdn-init i use some modprobe magic
to sort out the mess here it is ... edit the flags as required.i agree
this is not ideal and most drivers should have a default ill take this
under advisement and when there is some time ill look at setting it as
default.this recipe plays nicely with hotplug and friends.
#
#Protocol Flags
#
#0x001 1TR6 (Not Available)
#0x002 DSS1
#0x010 NT Mode
#0x020 PTP Mode
#0x040 PCM Slave Mode
#0x080 Negative Frame Pulse
#0x100 Use Setting From Previous Driver And Add To Previous Stack
#0x200 Switch DU/DD Interface
#
#Typical Usage
#
#0x02 TE Mode
#0x12 NT Mode
#
#Layer Mask To Select Layers In D Channel Stack Layer 0 (HW) is always
included
#
#0x1 Layer 1
#0x2 Layer 2 (Only Layers 1 and 2 are needed for NT Mode)
#0x4 Layer 3
#0x8 Layer 4
#
#Typical Usage
#
#0x0f TE Mode
#0x03 NT Mode
#
#Debug Mask
#
#0x01 IRQ Status
#0x02 D-Channel Events
#0x04 D-Channel FIFO Data
#0x08 B-Channel Events
#0x10 B-Channel FIFO Data
#
#DSP Options
#
#0x01 ULAW (Instead Of ALAW)
#0x10 Software Bridging (Instead Of Hardware)
options avmfritz protocol=0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2
options avmfritz layermask=0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf
options avmfritz debug=0x0
options hfcpci protocol=0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2
options hfcpci layermask=0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf
options hfcpci debug=0x0
options hfcmulti type=8
options hfcmulti protocol=0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2
options hfcmulti layermask=0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf
options hfcmulti debug=0x0
options w6692pci protocol=0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2
options w6692pci layermask=0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf
options w6692pci debug=0x0
options sedlfax protocol=0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2
options sedlfax layermask=0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf
options sedlfax debug=0x0
options hfcsusb protocol=0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2
options hfcsusb layermask=0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf
options hfcsusb poll=128
options hfcsusb debug=0x0
options mISDN_dsp options=0x10
options mISDN_dsp debug=0x0
options mISDN_dsp poll=128
install avmfritz /usr/sbin/mkisdnnod avmfritz
install hfcpci /usr/sbin/mkisdnnod hfcpci
install hfcmulti /usr/sbin/mkisdnnod hfcmulti
install w6692pci /usr/sbin/mkisdnnod w6692pci
install sedlfax /usr/sbin/mkisdnnod sedlfax
install hfcsusb /usr/sbin/mkisdnnod hfcsusb
------------
/usr/sbin/mkisdnnod
------------
#!/bin/bash
if [ -e /var/run/isdnprobe.pid ];then
CURPID=`cat /var/run/isdnprobe.pid`
if [ "$CURPID" != "$$" ] && [ -d /proc/$CURPID ] && [ "$CURPID" ];then
exit;
else
echo $$ > /var/run/isdnprobe.pid
fi;
else
echo $$ > /var/run/isdnprobe.pid
fi;
if [ ! -e /dev/mISDN ];then
/bin/mknod /dev/mISDN c 46 0;
/sbin/modprobe mISDN_l1;
/sbin/modprobe mISDN_l2;
/sbin/modprobe l3udss1;
/sbin/modprobe mISDN_isac;
/sbin/modprobe mISDN_x25dte;
/sbin/modprobe mISDN_dtmf;
/sbin/modprobe mISDN_dsp;
/sbin/modprobe mISDN_debugtool
if [ "$1" ];then
/sbin/modprobe -s -q --ignore-install $1;
fi;
rm /var/run/isdnprobe.pid
else
/sbin/modprobe -s -q --ignore-install $1;
fi;
--
This message has been scanned for viruses and
dangerous content by Superset Technology, and
is believed to be clean.
http://www.superset.co.za
next prev parent reply other threads:[~2008-02-21 19:39 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-16 4:41 [PATCH 00/14] [ISDN] convert HiSax to hotplug APIs Jeff Garzik
2008-02-16 4:41 ` [PATCH 01/14] [ISDN] HiSax: modularization prep Jeff Garzik
2007-07-18 3:46 ` [PATCH 04/14] [ISDN] HiSax bkm_a4t: convert to PCI hotplug API Jeff Garzik
2007-07-18 3:49 ` [PATCH 05/14] [ISDN] HiSax enternow: " Jeff Garzik
2007-07-18 3:54 ` [PATCH 06/14] [ISDN] HiSax hfc_pci, w6692: " Jeff Garzik
2007-07-18 3:59 ` [PATCH 07/14] [ISDN] HiSax nj_s, nj_u: " Jeff Garzik
2007-07-18 4:02 ` [PATCH 08/14] [ISDN] HiSax telespci: " Jeff Garzik
2007-07-24 12:26 ` [PATCH 11/14] [ISDN] HiSax niccy: convert to modern ISA/PNP/PCI probing Jeff Garzik
2007-08-02 12:37 ` [PATCH 14/14] [ISDN] HiSax bkm_a8: convert to PCI hotplug API Jeff Garzik
2007-10-31 5:10 ` [PATCH 03/14] [ISDN] Ready HiSax driver for modularization Jeff Garzik
2007-10-31 5:11 ` [PATCH 09/14] [ISDN] HiSax avm_pci: convert to modern PCI/ISA/PNP probing Jeff Garzik
2007-10-31 5:12 ` [PATCH 10/14] [ISDN] HiSax gazel: convert to modern ISA/PCI probing Jeff Garzik
2007-10-31 5:13 ` [PATCH 13/14] [ISDN] HiSax diva: convert to modern ISA/PNP/PCI probing Jeff Garzik
2007-10-31 7:42 ` [PATCH 02/14] [ISDN] Hisax: eliminate many unnecessary references to CardType[] Jeff Garzik
2008-02-16 19:17 ` [PATCH 12/14] [ISDN] HiSax avm_pci, niccy: minor PNP fixes and cleanups Jeff Garzik
2008-02-17 19:52 ` Plans for mISDN? Was: [PATCH 00/14] [ISDN] Sam Ravnborg
2008-02-18 4:52 ` Greg KH
2008-02-18 12:08 ` Andi Kleen
2008-02-18 12:04 ` Alan Cox
2008-02-18 12:36 ` Jeff Garzik
2008-02-18 13:29 ` Andi Kleen
2008-02-19 8:50 ` Sam Ravnborg
2008-02-19 9:25 ` Gregory Nietsky
2008-02-19 9:54 ` Sam Ravnborg
2008-02-20 14:19 ` Tilman Schmidt
2008-02-20 14:23 ` Alan Cox
2008-02-20 16:54 ` Andi Kleen
2008-02-20 18:23 ` Plans for mISDN? Tilman Schmidt
2008-02-20 19:04 ` Plans for mISDN? Was: [PATCH 00/14] [ISDN] Gregory Nietsky
2008-02-20 22:47 ` Plans for mISDN? Tilman Schmidt
2008-02-21 10:33 ` Plans for mISDN? Was: [PATCH 00/14] [ISDN] Simon Richter
2008-02-21 19:38 ` Gregory Nietsky [this message]
2008-02-21 19:46 ` Marcel Holtmann
2008-02-21 23:19 ` Andi Kleen
2008-02-21 23:30 ` Marcel Holtmann
2008-02-21 23:40 ` Andi Kleen
2008-02-22 12:04 ` Karsten Keil
2008-02-23 19:39 ` Sam Ravnborg
2008-02-25 14:39 ` Plans for mISDN? Tilman Schmidt
2008-03-03 17:32 ` Karsten Keil
2008-02-19 9:40 ` Plans for mISDN? Was: [PATCH 00/14] [ISDN] Andi Kleen
2008-02-19 9:56 ` Sam Ravnborg
2008-02-19 9:58 ` Andi Kleen
2008-02-19 10:51 ` Armin Schindler
2008-02-19 11:55 ` Sam Ravnborg
2008-02-19 16:12 ` Gregory Nietsky
2008-02-19 16:14 ` Marcel Holtmann
2008-02-20 14:24 ` Tilman Schmidt
[not found] <9XBPP-6LJ-23@gated-at.bofh.it>
[not found] ` <9XXQl-7or-3@gated-at.bofh.it>
[not found] ` <9Y67a-3ta-9@gated-at.bofh.it>
[not found] ` <9YcYY-63L-25@gated-at.bofh.it>
[not found] ` <9YwuJ-3a7-17@gated-at.bofh.it>
[not found] ` <9YxqU-4Ge-11@gated-at.bofh.it>
[not found] ` <9YY7F-5bH-13@gated-at.bofh.it>
[not found] ` <9ZhtN-2cL-51@gated-at.bofh.it>
[not found] ` <9ZpAK-6CQ-25@gated-at.bofh.it>
[not found] ` <9ZsS5-3zh-21@gated-at.bofh.it>
[not found] ` <9Ztbm-3XZ-1@gated-at.bofh.it>
[not found] ` <9Ztbq-3XZ-9@gated-at.bofh.it>
2008-02-25 15:45 ` Bodo Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47BDD342.5070506@networksentry.co.za \
--to=gregory@networksentry.co.za \
--cc=andi@firstfloor.org \
--cc=greg@kroah.com \
--cc=isdn4linux@listserv.isdn4linux.de \
--cc=jeff@garzik.org \
--cc=kkeil@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
--cc=sjr@debian.org \
--cc=tilman@imap.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.