⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.hisax

📁 《嵌入式系统设计与实例开发实验教材二源码》Linux内核移植与编译实验
💻 HISAX
📖 第 1 页 / 共 2 页
字号:
This means that the card is ready for use.Cabling problems or line-downs are not detected, and only some ELSA cards candetect the S0 power.Remember that, according to the new strategy for accessing low-level driversfrom within isdn4linux, you should also define a driver ID while doinginsmod: Simply append hisax_id=<SomeString> to the insmod command line. Thisstring MUST NOT start with a digit or a small 'x'!At this point you can run a 'cat /dev/isdnctrl0' and view debugging messages.At the moment, debugging messages are enabled with the hisaxctrl tool:    hisaxctrl <DriverId> DebugCmd <debugging_flags><DriverId> default is HiSax, if you didn't specify one.DebugCmd is  1  for generic debugging            11  for layer 1 development debugging            13  for layer 3 development debuggingwhere <debugging_flags> is the integer sum of the following debuggingoptions you wish enabled:With DebugCmd set to 1:   0x0001  Link-level <--> hardware-level communication   0x0002  Top state machine   0x0004  D-Channel Frames for isdnlog   0x0008  D-Channel Q.921   0x0010  B-Channel X.75   0x0020  D-Channel l2   0x0040  B-Channel l2   0x0080  D-Channel link state debugging   0x0100  B-Channel link state debugging   0x0200  TEI debug   0x0400  LOCK debug in callc.c   0x0800  More paranoid debug in callc.c (not for normal use)   0x1000  D-Channel l1 state debugging   0x2000  B-Channel l1 state debuggingWith DebugCmd set to 11:   0x0001  Warnings (default: on)   0x0002  IRQ status   0x0004  ISAC   0x0008  ISAC FIFO   0x0010  HSCX   0x0020  HSCX FIFO (attention: full B-Channel output!)   0x0040  D-Channel LAPD frame types   0x0080  IPAC debug   0x0100  HFC receive debug   0x0200  ISAC monitor debug   0x0400  D-Channel frames for isdnlog (set with 1 0x4 too)   0x0800  D-Channel message verboseWith DebugCmd set to 13:         1  Warnings (default: on)         2  l3 protocol descriptor errors         4  l3 state machine         8  charge info debugging (1TR6)For example, 'hisaxctrl HiSax 1 0x3ff' enables full generic debugging.Because of some obscure problems with some switch equipment, the delaybetween the CONNECT message and sending the first data on the B-channel is nowconfigurable withhisaxctrl <DriverId> 2 <delay><delay> in ms Value between 50 and 800 ms is recommended.Downloading Firmware--------------------At the moment, the Sedlbauer speed fax+ is the only card, whichneeds to download firmware.The firmware is downloaded with the hisaxctrl tool:    hisaxctrl <DriverId> 9 <firmware_filename><DriverId> default is HiSax, if you didn't specify one,where <firmware_filename> is the filename of the firmware file.For example, 'hisaxctrl HiSax 9 ISAR.BIN' downloads the firmware forISAR based cards (like the Sedlbauer speed fax+).Warning-------HiSax is a work in progress and may crash your machine.For certification look at HiSax.cert file.Limitations-----------At this time, HiSax only works on Euro ISDN lines and German 1TR6 lines.For leased lines see appendix.Bugs----If you find any, please let me know.Thanks------Special thanks to:        Emil Stephan for the name HiSax which is a mix of HSCX and ISAC.        Fritz Elfert, Jan den Ouden, Michael Hipp, Michael Wein,        Andreas Kool, Pekka Sarnila, Sim Yskes, Johan Myrre'en,	Klaus-Peter Nischke (ITK AG), Christof Petig, Werner Fehn (ELSA GmbH),	Volker Schmidt	Edgar Toernig and Marcus Niemann for the Sedlbauer driver	Stephan von Krawczynski	Juergen Quade for the Leased Line part	Klaus Lichtenwalder (Klaus.Lichtenwalder@WebForum.DE), for ELSA PCMCIA support	Enrik Berkhan (enrik@starfleet.inka.de) for S0BOX specific stuff	Ton van Rosmalen for Teles PCI	Petr Novak <petr.novak@i.cz> for Winbond W6692 support	Werner Cornelius <werner@isdn4linux.de> for HFC-PCI, HFC-S(+/P) and supplementary services support        and more people who are hunting bugs. (If I forgot somebody, please	send me a mail).        Firma ELSA GmbH        Firma Eicon.Diehl GmbH        Firma Dynalink NL	Firma ASUSCOM NETWORK INC. Taiwan	Firma S.u.S.E	Firma ith Kommunikationstechnik GmbH	Firma Traverse Technologie Australia	Firma Medusa GmbH  (www.medusa.de).	Firma Quant-X Austria for sponsoring a DEC Alpha board+CPU	Firma Cologne Chip Designs GmbH        My girl friend and partner in life Ute for her patience with me.Enjoy,Karsten Keilkeil@isdn4linux.deAppendix: Teles PCMCIA driver-----------------------------See   http://www.stud.uni-wuppertal.de/~ea0141/pcmcia.htmlfor instructions.Appendix: Linux and ISDN-leased lines-------------------------------------Original from Juergen Quade, new version KKe.Attention NEW VERSION, the old leased line syntax won't work !!!You can use HiSax to connect your Linux-Box via an ISDN leased lineto e.g. the Internet:1. Build a kernel which includes the HiSax driver either as a module   or as part of the kernel.     cd /usr/src/linux     make menuconfig     <ISDN subsystem - ISDN support -- HiSax>     make clean; make dep; make zImage; make modules; make modules_install2. Install the new kernel     cp /usr/src/linux/arch/i386/boot/zImage /etc/kernel/linux.isdn     vi /etc/lilo.conf     <add new kernel in the bootable image section>     lilo3. in case the hisax driver is a "fixed" part of the kernel, configure   the driver with lilo:     vi /etc/lilo.conf     <add HiSax driver parameter in the global section (see below)>     lilo   Your lilo.conf _might_ look like the following:	# LILO configuration-file	# global section    # teles 16.0 on IRQ=5, MEM=0xd8000, PORT=0xd80	append="hisax=1,3,5,0xd8000,0xd80,HiSax"    # teles 16.3 (non pnp) on IRQ=15, PORT=0xd80	# append="hisax=3,3,5,0xd8000,0xd80,HiSax"	boot=/dev/sda	compact        # faster, but won't work on all systems.	linear	read-only	prompt	timeout=100	vga = normal    # force sane state	# Linux bootable partition config begins	image = /etc/kernel/linux.isdn	root = /dev/sda1	label = linux.isdn	#	image = /etc/kernel/linux-2.0.30	root = /dev/sda1	label = linux.secure   In the line starting with "append" you have to adapt the parameters   according to your card (see above in this file)3. boot the new linux.isdn kernel4. start the ISDN subsystem:   a) load - if necessary - the modules (depends, whether you compiled      the ISDN driver as module or not)      According to the type of card you have to specify the necessary      driver parameter (irq, io, mem, type, protocol).      For the leased line the protocol is "3". See the table above for      the parameters, which you have to specify depending on your card.   b) configure i4l      /sbin/isdnctrl addif isdn0      # EAZ  1 -- B1 channel   2 --B2 channel      /sbin/isdnctrl eaz isdn0 1      /sbin/isdnctrl secure isdn0 on      /sbin/isdnctrl huptimeout isdn0 0      /sbin/isdnctrl l2_prot isdn0 hdlc      # Attention you must not set an outgoing number !!! This won't work !!!      # The incoming number is LEASED0 for the first card, LEASED1 for the      # second and so on.      /sbin/isdnctrl addphone isdn0 in LEASED0      # Here is no need to bind the channel.   c) in case the remote partner is a CISCO:      /sbin/isdnctrl encap isdn0 cisco-h   d) configure the interface      /sbin/ifconfig isdn0 ${LOCAL_IP} pointopoint ${REMOTE_IP}   e) set the routes      /sbin/route add -host ${REMOTE_IP} isdn0      /sbin/route add default gw ${REMOTE_IP}   f) switch the card into leased mode for each used B-channel      /sbin/hisaxctrl HiSax 5 1Remarks:a) Use state of the art isdn4k-utilsHere an example script:#!/bin/sh# Start/Stop ISDN leased line connectionI4L_AS_MODULE=yesI4L_REMOTE_IS_CISCO=noI4L_MODULE_PARAMS="type=16 io=0x268 irq=7 "I4L_DEBUG=noI4L_LEASED_128K=yesLOCAL_IP=192.168.1.1REMOTE_IP=192.168.2.1case "$1" in    start)	echo "Starting ISDN ..."        if [ ${I4L_AS_MODULE} = "yes" ]; then		echo "loading modules..."		/sbin/modprobe hisax ${I4L_MODULE_PARAMS}	fi	# configure interface	/sbin/isdnctrl addif isdn0	/sbin/isdnctrl secure isdn0 on	if [ ${I4L_DEBUG} = "yes" ]; then		/sbin/isdnctrl verbose 7		/sbin/hisaxctrl HiSax 1 0xffff		/sbin/hisaxctrl HiSax 11 0xff		cat  /dev/isdnctrl >/tmp/lea.log &	fi	if [ ${I4L_REMOTE_IS_CISCO} = "yes" ]; then		/sbin/isdnctrl encap isdn0 cisco-h	fi	/sbin/isdnctrl huptimeout isdn0 0	# B-CHANNEL 1	/sbin/isdnctrl eaz isdn0 1	/sbin/isdnctrl l2_prot isdn0 hdlc	# 1. card	/sbin/isdnctrl addphone isdn0 in LEASED0        if [ ${I4L_LEASED_128K} = "yes" ]; then		/sbin/isdnctrl addslave isdn0 isdn0s		/sbin/isdnctrl secure isdn0s on		/sbin/isdnctrl huptimeout isdn0s 0		# B-CHANNEL 2		/sbin/isdnctrl eaz isdn0s 2		/sbin/isdnctrl l2_prot isdn0s hdlc		# 1. card		/sbin/isdnctrl addphone isdn0s in LEASED0		if [ ${I4L_REMOTE_IS_CISCO} = "yes" ]; then			/sbin/isdnctrl encap isdn0s cisco-h		fi	fi	/sbin/isdnctrl dialmode isdn0 manual	# configure tcp/ip	/sbin/ifconfig isdn0 ${LOCAL_IP} pointopoint ${REMOTE_IP}	/sbin/route add -host ${REMOTE_IP} isdn0	/sbin/route add default gw ${REMOTE_IP}	# switch to leased mode	# B-CHANNEL 1	/sbin/hisaxctrl HiSax 5 1        if [ ${I4L_LEASED_128K} = "yes" ]; then		# B-CHANNEL 2		sleep 10; /* Wait for master */		/sbin/hisaxctrl HiSax 5 2	fi	;;    stop)	/sbin/ifconfig isdn0 down	/sbin/isdnctrl delif isdn0	if [ ${I4L_DEBUG} = "yes" ]; then		killall cat	fi	if [ ${I4L_AS_MODULE} = "yes" ]; then		/sbin/rmmod hisax		/sbin/rmmod isdn		/sbin/rmmod ppp		/sbin/rmmod slhc	fi	;;    *)	echo "Usage: $0 {start|stop}"	exit 1esacexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -