From owner-freebsd-drivers@FreeBSD.ORG Sun May 15 01:50:58 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 403821065672 for ; Sun, 15 May 2011 01:50:58 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id B2D9D8FC0A for ; Sun, 15 May 2011 01:50:57 +0000 (UTC) Received: by yxl31 with SMTP id 31so1538898yxl.13 for ; Sat, 14 May 2011 18:50:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Sfkb5J92D1ZLUuLwD5hsRmhFpbq0HMTdKxceHQvMr50=; b=I2uy8eeEjSPu+otmwpbNyv4UjGe1BDrp0aupv2kqbPd/zGsVacgIShlenhteawFsAr ubvvbEz9iWKz7MlIqCvN3R/jZjhJRZCFedTEUSt1KWvGz++Xhhm8VrBxd89/31wORmtN L1aQO8cQDkZoemd5/MH+VOppoPPyA2i5eQtdE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=umq+g1CbJ7axOKyKVwb+sz60il1zTckQ4pRd6VpQgIZsU1GAziR0RhbHawXrDorrUL vGIARqWdCyDEsCmtHXVo6b9CnaiJ08cgsBaKsdyOmrVuhl3jx5ih/cq09JZHLTHSD5Rf ILEhKGoo78405P0kWbgmMhYkSsA2yx6rMz+xU= Received: by 10.150.68.34 with SMTP id q34mr2417658yba.248.1305422667669; Sat, 14 May 2011 18:24:27 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([192.75.139.251]) by mx.google.com with ESMTPS id q29sm1926282yba.2.2011.05.14.18.24.26 (version=SSLv3 cipher=OTHER); Sat, 14 May 2011 18:24:26 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DCF2B46.3030407@FreeBSD.org> Date: Sun, 15 May 2011 04:24:22 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110310 Thunderbird/3.1.9 MIME-Version: 1.0 To: Dieter BSD References: <20110514215419.227500@gmx.com> In-Reply-To: <20110514215419.227500@gmx.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: Re: Siis(4) does not play well with others! :-( X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2011 01:50:58 -0000 On 15.05.2011 00:54, Dieter BSD wrote: > FreeBSD 8.2 amd64 > With improvements to siis(4) and ahci(4) by Alexander Motin > from approx 2011-04-13. > > SiI3132 SATA controller > Port Multiplier 37261095 1706 > > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > kernel: siisch3: Error while READ LOG EXT > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > kernel: siisch3: SIIS reset... > kernel: siisch3: siis_sata_connect() calling DELAY(1000) > kernel: siisch3: SATA connect time=1ms status=00000123 > kernel: siisch3: SIIS reset done: devices=00000001 > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > kernel: siisch3: Error while READ LOG EXT > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > kernel: siisch3: SIIS reset... > kernel: siisch3: siis_sata_connect() calling DELAY(1000) > kernel: siisch3: SATA connect time=1ms status=00000123 > kernel: siisch3: SIIS reset done: devices=00000001 > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > ... > kernel: siisch3: Timeout on slot 30 > kernel: siisch3: siis_timeout is 00040000 ss 60000000 rs 60000000 es 00000000 sts 801e2000 serr 00000000 > kernel: siisch3: ... waiting for slots 20000000 > kernel: siisch3: Timeout on slot 29 > kernel: siisch3: siis_timeout is 00040000 ss 60000000 rs 60000000 es 00000000 sts 801e2000 serr 00000000 > kernel: siisch3: SIIS reset... > kernel: siisch3: siis_sata_connect() calling DELAY(1000) > kernel: siisch3: SATA connect time=1ms status=00000123 > kernel: siisch3: SIIS reset done: devices=00000001 > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > /usr/sbin/cron[3369]: (root) CMD (/usr/libexec/atrun -l 10) > kernel: siisch3: Timeout on slot 29 > kernel: siisch3: siis_timeout is 00040000 ss 20000000 rs 20000000 es 00000000 sts 801f2000 serr 00000000 > kernel: siisch3: SIIS reset... > kernel: siisch3: siis_sata_connect() calling DELAY(1000) > kernel: siisch3: SATA connect time=1ms status=00000123 > kernel: siisch3: SIIS reset done: devices=00000001 > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > /usr/sbin/cron[3373]: (root) CMD (/usr/libexec/atrun -l 10) > kernel: siisch3: Timeout on slot 29 > kernel: siisch3: siis_timeout is 00040000 ss 20000000 rs 20000000 es 00000000 sts 801f2000 serr 00000000 > kernel: siisch3: SIIS reset... > kernel: siisch3: siis_sata_connect() calling DELAY(1000) > kernel: siisch3: SATA connect time=1ms status=00000123 > kernel: siisch3: SIIS reset done: devices=00000001 > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > kernel: (ada9:siisch3:0:4:0): lost device > kernel: siisch3: Timeout on slot 29 > kernel: siisch3: siis_timeout is 00040000 ss 30000000 rs 30000000 es 00000000 sts 801f2000 serr 00000000 > kernel: siisch3: ... waiting for slots 10000000 > kernel: siisch3: Timeout on slot 28 > kernel: siisch3: siis_timeout is 00040000 ss 30000000 rs 30000000 es 00000000 sts 801f2000 serr 00000000 > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > kernel: siisch3: SIIS reset... > kernel: siisch3: siis_sata_connect() calling DELAY(1000) > kernel: siisch3: SATA connect time=1ms status=00000123 > kernel: siisch3: SIIS reset done: devices=00000001 > ... > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > last message repeated 2 times > kernel: siisch3: SIIS reset... > kernel: siisch3: siis_sata_connect() calling DELAY(1000) > kernel: siisch3: SATA connect time=1ms status=00000123 > kernel: siisch3: SIIS reset done: devices=00000001 > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > last message repeated 2 times > kernel: siisch3: SIIS reset... > kernel: siisch3: siis_sata_connect() calling DELAY(1000) > kernel: siisch3: SATA connect time=1ms status=00000123 > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > last message repeated 1001 times > kernel: siisch3: port is not ready (timeout 1000ms) status = 001f2000 > kernel: siisch3: port ready timeout > kernel: siisch3: trying full port reset ... > kernel: siisch3: siis_reset() calling DELAY(10000) > kernel: siisch3: siis_wait_ready() calling DELAY(1000) > ... > > I have LEDs connected to the PM and they were flashing > on and off together, but not in a normal disk access pattern. > > This might be due to a bad disk. Next time the machine is free > I'll move the disk to a different port and see if the problem > follows the disk or stays with that PM port. > > Problem is that this time, siis(4) didn't "just" lock out > Ethernet, but nearly the entire machine. Tried to log in > on the RS-232 console, getty was running, but login hung on > the password. One Ethernet (PCI card ed(4)) would respond > to ping but not to telnet. Another Ethernet (onboard bge(4)) > would not even respond to a ping. > > The reset button stopped the PM LEDS flashing, but didn't > reboot the machine. Had to power cycle to get the machine > back up. > > Incoming data was lost due to this. :-( > > None of the disks connected to the siis controllers have > any system partitions, They are user data only. The root > partition is on the nforce controller, all other system > partitions and swap are on the ahci controller. > > So regardless of whatever problem this PM or disk might have, > unrelated system activity such as logging in on the console, > responding to ping and telnet, etc. should not have been affected. > Siis(4) needs to learn how to play well with others! For now, I can only say that you are still running not the latest driver version. Latest have some delays reduced and report connect time in "us". May be some more of remaining could be replaced with interrupts (specifically on siis hardware), but I need to think and experiment more with it. Generally, the situation when the system doesn't reboot with the reset button doesn't smell good to me. -- Alexander Motin From owner-freebsd-drivers@FreeBSD.ORG Sun May 15 05:57:07 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 512E91065670 for ; Sun, 15 May 2011 05:57:07 +0000 (UTC) (envelope-from www-data@houlin04.farm.elogic.it) Received: from houlin04.farm.elogic.it (ip245.net-a.elogic.it [213.92.102.245]) by mx1.freebsd.org (Postfix) with ESMTP id C0E6E8FC17 for ; Sun, 15 May 2011 05:57:06 +0000 (UTC) Received: from houlin04.farm.elogic.it (localhost [127.0.0.1]) by houlin04.farm.elogic.it (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4ENfWl0026519 for ; Sun, 15 May 2011 01:41:32 +0200 Received: (from www-data@localhost) by houlin04.farm.elogic.it (8.14.3/8.14.3/Submit) id p4ENfWrM026518; Sun, 15 May 2011 01:41:32 +0200 Date: Sun, 15 May 2011 01:41:32 +0200 Message-Id: <201105142341.p4ENfWrM026518@houlin04.farm.elogic.it> To: freebsd-drivers@freebsd.org From: UNITED NATIONS MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Subject: Attention: Beneficiary, X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nsdoffice79@gmail.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2011 05:57:07 -0000 Attention: Beneficiary, How are you today? Hope all is well with you and family? You may not understand why this mail came to you. We have been having meetings for the passed years which ended in 2010 with the ten secretaries to the UNITED NATIONS. This email is sent to all the people that have been scammed in every part of the world, the UNITED NATIONS agreed upon to compensate them with the sum of US$ 1,000,000. This includes every foreign contractors that may have not received their contract sum, and people that have had an unfinished transaction or international businesses that failed due to Government problems and impersonators etc. We found your name in our list and that is why we are contacting you, this has been agreed upon and has been signed. You are advised to contact Dr. Mrs. Vivian Okafor of Nigeria Security Department, as she is our representative in Nigeria contact her immediately for your Cheque/ATM CARD of USD$1,000,000. These funds are in International Bank Draft/ATM CARD for security purpose ok? So she will send it to you and you can clear it in any bank of your choice. Therefore, you should send her your full Name and telephone number/your correct mailing address where you want her to send the Draft/ATM to you. Contact Dr. Mrs. Vivian Okafor immediately for your Bank Draft/ATM CARD Email: nsdoffice79@gmail.com Phone: +234-705-504-4987 Thanks and God bless you and your family. Hoping to hear from you as soon as you cash your Bank Draft. Making the world a better place. Regards, Ban ki- Moon UN Secretary (UNITED NATIONS) From owner-freebsd-drivers@FreeBSD.ORG Sun May 15 16:22:32 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 208FE1065670 for ; Sun, 15 May 2011 16:22:32 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id BF5238FC0C for ; Sun, 15 May 2011 16:22:31 +0000 (UTC) Received: (qmail 18578 invoked by uid 0); 15 May 2011 16:22:30 -0000 Received: from 67.206.162.54 by rms-us012.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Sun, 15 May 2011 16:22:28 +0000 From: "Dieter BSD" Message-ID: <20110515162230.227510@gmx.com> MIME-Version: 1.0 To: mav@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: /8X5BJcf5lfwf0uIAnFpxEtCNzg2NUKc Cc: freebsd-drivers@freebsd.org Subject: Re: Siis(4) does not play well with others! :-( X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2011 16:22:32 -0000 > For now, I can only say that you are still running not the latest driver > version. Latest have some delays reduced and report connect time in > "us". May be some more of remaining could be replaced with interrupts > (specifically on siis hardware), but I need to think and experiment more > with it. I was able to swap cables and put that disk on the JMB363 controller. (directly, no port multiplier) I now just get read errors from the disk and a "error = 5" message from g_vfs_done(), but no messages from ahci(4) at all, and no other problems. So much for testing the disk before putting it into service.  I read the entire disk, then wrote the entire disk with 0x00, 0xff, 0x55 and 0xaa, reading it back each time into hexdump -C.  Put it into service, and after 82 GB of real data (on a 2 TB drive) it fails.  grumble My todo list: 1) Build new kernel with the latest siis(4) and achi(4) bits. 2) Test if a read error causes achi(4) to lock out Ethernet for too long. 3) Test with achi(4) with and without a port multiplier. 3) Test with siis(4) with and without a port multiplier. > Generally, the situation when the system doesn't reboot with the reset > button doesn't smell good to me. FreeBSD does something that disables the soft power switch.  I don't recall if I've had problems with reset before.  Stopping the PM LEDS blinking but not doing a full reset seems pretty odd.  Something important must not be getting reset.  I thought Tyan's mainboards were supposed to be "tier 1".  :-( I'm still puzzled that one Ethernet responded to ping but another did not. From owner-freebsd-drivers@FreeBSD.ORG Wed May 18 09:53:34 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3A9F106566C; Wed, 18 May 2011 09:53:33 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [81.31.220.147]) by mx1.freebsd.org (Postfix) with ESMTP id 987038FC0A; Wed, 18 May 2011 09:53:33 +0000 (UTC) Received: from mx1.security.edu.pl ([81.31.220.147] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1QMdF6-0004nR-PX; Wed, 18 May 2011 11:40:40 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 18 May 2011 11:40:36 +0200 From: "crsnet.pl" To: Message-ID: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 81.31.220.147 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=7.0 tests=ALL_TRUSTED,BAYES_50, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-drivers@freebsd.org, freebsd-hardware@freebsd.org Subject: FreeBSD 8.2 and Lenovo X300 WWAN Modem X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 09:53:34 -0000 Hello. Have here anyone run this modem/GPS under FreeBSD 8.2 ? Modem is recognized, but when i try to run ppp -ddial iplus i get this error : /var/log/messages May 18 11:20:59 x60s ppp[1656]: tun0: Warning: Chat script failed /var/log/ppp May 18 11:20:53 x60s ppp[1656]: tun0: Phase: deflink: opening -> dial May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Send: AT^M May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Expect(2): OK May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: AT^M^M May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: OK^M May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Send: AT+CFUN=1^M May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Expect(2): OK May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: AT+CFUN=1^M^M May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: ERROR^M For GPS i try to use gpsdrive-2.09_11 A GPS navigation system viking-1.0.2 Program to manage GPS data (tracks, waypoints, etc) But any of them can use X300 GPS;/ #uname -a FreeBSD x60s 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 #dmesg ugen6.3: at usbus6 ugen4.2: at usbus4 u3g0: on usbus4 u3g0: Found 3 ports. #sudo usbconfig ugen4.2: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.4: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON #ls -la /dev/cuaU* crw-rw---- 1 uucp dialer 0, 123 18 maj 09:39 /dev/cuaU0.0 crw-rw---- 1 uucp dialer 0, 124 18 maj 09:39 /dev/cuaU0.0.init crw-rw---- 1 uucp dialer 0, 125 18 maj 09:39 /dev/cuaU0.0.lock crw-rw---- 1 uucp dialer 0, 129 18 maj 09:39 /dev/cuaU0.1 crw-rw---- 1 uucp dialer 0, 130 18 maj 09:39 /dev/cuaU0.1.init crw-rw---- 1 uucp dialer 0, 131 18 maj 09:39 /dev/cuaU0.1.lock crw-rw---- 1 uucp dialer 0, 135 18 maj 09:39 /dev/cuaU0.2 crw-rw---- 1 uucp dialer 0, 136 18 maj 09:39 /dev/cuaU0.2.init crw-rw---- 1 uucp dialer 0, 137 18 maj 09:39 /dev/cuaU0.2.lock #cat /etc/ppp/ppp.conf iplus: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) set device /dev/cuaU0.0 set speed 460800 #set speed 115200 set dial "ABORT BUSY TIMEOUT 2 \ \"\" \ AT OK-AT-OK \ AT+CFUN=1 OK-AT-OK \ AT+CMEE=2 OK-AT-OK \ AT+CSQ OK \ AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \ AT+CGACT? OK-AT-OK \ AT+CGATT? OK \ AT+CGCLASS? OK \ AT+COPS? OK \ ATD*99***1# CONNECT" set timeout 180 enable dns set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR Regards, Adrian. From owner-freebsd-drivers@FreeBSD.ORG Wed May 18 10:37:17 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C7DC1065672 for ; Wed, 18 May 2011 10:37:17 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta15.westchester.pa.mail.comcast.net (qmta15.westchester.pa.mail.comcast.net [76.96.59.228]) by mx1.freebsd.org (Postfix) with ESMTP id BDE5F8FC15 for ; Wed, 18 May 2011 10:37:16 +0000 (UTC) Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta15.westchester.pa.mail.comcast.net with comcast id kyGL1g00727AodY5FyQ1Bc; Wed, 18 May 2011 10:24:01 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta19.westchester.pa.mail.comcast.net with comcast id kyPz1g00X1t3BNj3fyQ0ya; Wed, 18 May 2011 10:24:01 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 8FDE1102C19; Wed, 18 May 2011 03:23:58 -0700 (PDT) Date: Wed, 18 May 2011 03:23:58 -0700 From: Jeremy Chadwick To: "crsnet.pl" Message-ID: <20110518102358.GA71561@icarus.home.lan> References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hardware@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: FreeBSD 8.2 and Lenovo X300 WWAN Modem X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 10:37:17 -0000 On Wed, May 18, 2011 at 11:40:36AM +0200, crsnet.pl wrote: > Hello. > Have here anyone run this modem/GPS under FreeBSD 8.2 ? Modem is > recognized, but when i try to run ppp -ddial iplus i get this error > : > > /var/log/messages > May 18 11:20:59 x60s ppp[1656]: tun0: Warning: Chat script failed > > /var/log/ppp > May 18 11:20:53 x60s ppp[1656]: tun0: Phase: deflink: opening -> dial > May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Send: AT^M > May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Expect(2): OK > May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: AT^M^M > May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: OK^M > May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Send: AT+CFUN=1^M > May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Expect(2): OK > May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: AT+CFUN=1^M^M > May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: ERROR^M I'm not familiar with GPS modem units, but I am familiar with classic modems and a little bit with chat scripts from my Linux days. A couple things -- and possibly these GPS modems behave differently than what I was used to back in the early 90s: 1) Based on the chat logs above, it looks like echo mode is enabled on the modem. The client should be sending "AT\r", and it should receive the response "OK\r". Instead, the log indicates what you're getting back is "AT\r\rOK\r". 2) Regardless of #1, the AT+CFUN=1 command you're sending to the modem results in the modem itself responding with ERROR. This isn't coming from ppp, chat, or anything else -- the modem is literally responding with ERROR itself. Meaning, that command (obviously not Hayes!) the modem firmware doesn't know how to interpret. I have no idea what +CFUN=1 does, but then again the modem doesn't seem to either. :-) So I guess my advice would be: fix your chat script to work properly with your modem. :-) Your script is here: > set dial "ABORT BUSY TIMEOUT 2 \ > \"\" \ > AT OK-AT-OK \ > AT+CFUN=1 OK-AT-OK \ > AT+CMEE=2 OK-AT-OK \ > AT+CSQ OK \ > AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \ > AT+CGACT? OK-AT-OK \ > AT+CGATT? OK \ > AT+CGCLASS? OK \ > AT+COPS? OK \ > ATD*99***1# CONNECT" -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB |