From owner-freebsd-current@FreeBSD.ORG Sun Mar 25 09:01:32 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 273C916A402 for ; Sun, 25 Mar 2007 09:01:32 +0000 (UTC) (envelope-from mosworld@lgphilips-lcd.com) Received: from nospam.lgphilips-lcd.com (relay.lgphilips-lcd.com [203.247.144.180]) by mx1.freebsd.org (Postfix) with SMTP id BD8F913C44B for ; Sun, 25 Mar 2007 09:01:31 +0000 (UTC) (envelope-from mosworld@lgphilips-lcd.com) Received: (snipe 23273 invoked by uid 0); 25 Mar 2007 17:34:49 +0900 Received: from mosworld@lgphilips-lcd.com with Spamsniper 2.94.24 (Processed in 0.028831 secs); Received: from unknown (HELO gwkumi04.lgphilips-lcd.com) (156.147.188.200) by unknown with SMTP; 25 Mar 2007 17:34:49 +0900 X-RCPTTO: freebsd-current@freebsd.org Received: from gwpaju02.lgphilips-lcd.com ([172.19.68.12]) by gwkumi04.lgphilips-lcd.com (Lotus Domino Release 6.5.4FP1) with ESMTP id 2007032517345233-3894599 ; Sun, 25 Mar 2007 17:34:52 +0900 To: freebsd-current@freebsd.org MIME-Version: 1.0 Sensitivity: X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: "SUNGBAK KIM" Date: Sun, 25 Mar 2007 17:34:48 +0900 X-MIMETrack: Serialize by Router on GWPAJU02/LGPHILIPS(Release 6.5.4FP1 | June 19, 2005) at 2007-03-25 17:34:49, Serialize complete at 2007-03-25 17:34:49, Itemize by SMTP Server on GWKUMI04/LGPHILIPS(Release 6.5.4FP1|June 19, 2005) at 2007-03-25 ¿ÀÈÄ 05:34:52, Serialize by Router on GWKUMI04/LGPHILIPS(Release 6.5.4FP1|June 19, 2005) at 2007-03-25 ¿ÀÈÄ 05:34:52, Serialize complete at 2007-03-25 ¿ÀÈÄ 05:34:52 X-Mailman-Approved-At: Sun, 25 Mar 2007 11:23:15 +0000 Content-Type: text/plain; charset="US-ASCII" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: NI PCI-GPIB tnt4882 test failed on FreeBSD Current 7.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Mar 2007 09:01:32 -0000 I'm a one of traditional FreeBSD leaf user since Release 2.x and testing GPIB control with FreeBSD 7.0 Current because of supporting NI PCI-GPIB interface card. I finished testing on Red Hat 9, which shows on http://linux-gpib.sourceforge.net/ but prefer to use with FreeBSD. I have trouble with controlling tnt4882 driver although appropriate kerenel configuration and having /dev/gpibxx entry. I will show testing status 1. Hardware information Hardware : CPU CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3006.83-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf43 Stepping = 3 Features=0xbfebfbff Features2=0x649d AMD Features=0x20100000 2. Install : FreeBSD 6.2R (i386) -> make update(Mar. 24 2007) with standard-supfile -> make world, make kernel (No build option & Compile option in /etc/make.conf ) 3. KERNEL CONFIG & Configuration shell > more /usr/src/sys/i386/conf/GENERIC ... device pcii device tnt4882 shell > uname -a FreeBSD xxx.yyy.com 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Mar 24 15:11:47 KST 2007 root@xxx.yyy.com:/usr/obj/usr/src/sys/GENERIC i386 shell > dmesg ... tnt48820: mem 0xe7207000-0xe72077ff,0xe7200000-0xe7203fff irq 19 at device 8.0 on pci0 tnt48820: [ITHREAD] ... shell > ls -alF /dev/gpib* crw-rw-rw- 1 gpib gpib 0, 38 Mar 25 14:46 gpib0ib crw-rw-rw- 1 gpib gpib 0, 37 Mar 25 14:46 gpib0l 4. Basic Code Testing I compiled *IDN? Qurey C code as shown below archive but no response from instrument (AFG3102, etc and linux-gpib returned good results ). http://lists.freebsd.org/mailman/htdig/freebsd-hackers/2005-February/010164.html and modyfied Code returned dmm = 0 /*** PRINT DMM ****/ dmm = ibdev(0, 11, 0, T1s, 1, 0); printf(" dmm = %d\n", dmm); if (dmm < 0) errx(1, "ibdev = %d\n", dmm); ibwrt(dmm, "*IDN?\r\n", 7); I think dmm should be dmm > 0, if properly configured. right ? What is mis-configured ? Please notice me. ################################################### Kim Sung Bak /Research Engineer LG.Philips LCD Fax: +82-31-933-7594 Tel: +82-31-933-7308 Mobile: +82-19-9181-8136 mail: NOSPAMmosworld@lgphilips-lcd.comNOSPAM Homeage: http://www.lghilips-lcd.com/ ####################################################