From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 8 01:30:31 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id A635737B401; Sun, 8 Jun 2003 01:30:31 -0700 (PDT) Date: Sun, 8 Jun 2003 03:30:31 -0500 From: Juli Mallett To: hackers@FreeBSD.org Message-ID: <20030608033031.A44773@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Title: Code Maven X-Towel: Yes X-Negacore: Yes X-Authentication-Warning: localhost: juli pwned teh intarweb Subject: [PATCH] kern.ident + uname -i X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 08:30:32 -0000 Greetings, I send you this diff in order that I may gather some concensus on whether it should be committed and if it seems useful. Basically, rwatson@ mentioned on IRC at some point that the ability to get the KERN_IDENT value of the running kernel would be useful, I admit that I've found it useful before, in the context of doing something like: env KERCONF=`uname -i` make buildworld But FreeBSD had no such facility, so I tossed this together and have had it in my personal tree for some months now. It uses make -V to get the ident value at kernel build time. I am a little hesitant to invoke make directly like that, but I do not see a real scenario which it would break under. I did consider passing in the ident as an argument to newvers.sh, but I don't really like heading down that road. Anyway, here's the diff, some time tomorrow if I don't hear any objections I'll probably commit it, since it's not a major thing, and certainly is useful. %%% ? _ Index: sys/conf/newvers.sh =================================================================== RCS file: /home/ncvs/src/sys/conf/newvers.sh,v retrieving revision 1.51 diff -d -u -r1.51 newvers.sh --- sys/conf/newvers.sh 2 Jun 2003 04:58:43 -0000 1.51 +++ sys/conf/newvers.sh 8 Jun 2003 07:58:06 -0000 @@ -86,6 +86,7 @@ touch version v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date` +i=`make -V KERN_IDENT` cat << EOF > vers.c $COPYRIGHT char sccspad[32 - 4 /* sizeof(sccs) */] = { '\\0' }; @@ -94,6 +95,7 @@ char ostype[] = "${TYPE}"; char osrelease[] = "${RELEASE}"; int osreldate = ${RELDATE}; +char ident[] = "${i}"; EOF echo `expr ${v} + 1` > version Index: sys/sys/sysctl.h =================================================================== RCS file: /home/ncvs/src/sys/sys/sysctl.h,v retrieving revision 1.113 diff -d -u -r1.113 sysctl.h --- sys/sys/sysctl.h 28 Mar 2003 14:17:17 -0000 1.113 +++ sys/sys/sysctl.h 8 Jun 2003 07:58:07 -0000 @@ -354,7 +354,8 @@ #define KERN_USRSTACK 33 /* int: address of USRSTACK */ #define KERN_LOGSIGEXIT 34 /* int: do we log sigexit procs? */ #define KERN_IOV_MAX 35 /* int: value of UIO_MAXIOV */ -#define KERN_MAXID 36 /* number of valid kern ids */ +#define KERN_IDENT 36 /* string: kernel ident */ +#define KERN_MAXID 37 /* number of valid kern ids */ #define CTL_KERN_NAMES { \ { 0, 0 }, \ @@ -392,6 +393,7 @@ { "usrstack", CTLTYPE_INT }, \ { "logsigexit", CTLTYPE_INT }, \ { "iov_max", CTLTYPE_INT }, \ + { "ident", CTLTYPE_STRING }, \ } /* @@ -581,6 +583,7 @@ extern char machine[]; extern char osrelease[]; extern char ostype[]; +extern char ident[]; /* Dynamic oid handling */ struct sysctl_oid *sysctl_add_oid(struct sysctl_ctx_list *clist, Index: usr.bin/uname/uname.1 =================================================================== RCS file: /home/ncvs/src/usr.bin/uname/uname.1,v retrieving revision 1.14 diff -d -u -r1.14 uname.1 --- usr.bin/uname/uname.1 18 Sep 2002 04:33:10 -0000 1.14 +++ usr.bin/uname/uname.1 8 Jun 2003 07:58:07 -0000 @@ -32,7 +32,7 @@ .\" @(#)uname.1 8.3 (Berkeley) 4/8/94 .\" $FreeBSD: src/usr.bin/uname/uname.1,v 1.14 2002/09/18 04:33:10 jmallett Exp $ .\" -.Dd September 18, 2002 +.Dd April 02, 2003 .Dt UNAME 1 .Os .Sh NAME @@ -40,7 +40,7 @@ .Nd display information about the system .Sh SYNOPSIS .Nm -.Op Fl amnprsv +.Op Fl aimnprsv .Sh DESCRIPTION The .Nm @@ -57,6 +57,8 @@ and .Fl v were specified. +.It Fl i +Write the kernel ident to standard output. .It Fl m Write the type of the current hardware platform to standard output. .It Fl n Index: usr.bin/uname/uname.c =================================================================== RCS file: /home/ncvs/src/usr.bin/uname/uname.c,v retrieving revision 1.11 diff -d -u -r1.11 uname.c --- usr.bin/uname/uname.c 23 Sep 2002 06:47:39 -0000 1.11 +++ usr.bin/uname/uname.c 8 Jun 2003 07:58:07 -0000 @@ -60,10 +60,12 @@ #define RFLAG 0x08 #define SFLAG 0x10 #define VFLAG 0x20 +#define IFLAG 0x40 typedef void (*get_t)(void); -get_t get_platform, get_hostname, get_arch, get_release, get_sysname, get_version; +get_t get_ident, get_platform, get_hostname, get_arch, get_release, get_sysname, get_version; +void native_ident(void); void native_platform(void); void native_hostname(void); void native_arch(void); @@ -74,7 +76,7 @@ void setup_get(void); void usage(void); -char *platform, *hostname, *arch, *release, *sysname, *version; +char *ident, *platform, *hostname, *arch, *release, *sysname, *version; int space; int @@ -86,11 +88,14 @@ setup_get(); flags = 0; - while ((ch = getopt(argc, argv, "amnprsv")) != -1) + while ((ch = getopt(argc, argv, "aimnprsv")) != -1) switch(ch) { case 'a': flags |= (MFLAG | NFLAG | RFLAG | SFLAG | VFLAG); break; + case 'i': + flags |= IFLAG; + break; case 'm': flags |= MFLAG; break; @@ -145,6 +150,7 @@ CHECK_ENV("v", version); CHECK_ENV("m", platform); CHECK_ENV("p", arch); + CHECK_ENV("i", ident); } #define PRINT_FLAG(flags,flag,var) \ @@ -167,6 +173,7 @@ PRINT_FLAG(flags, VFLAG, version); PRINT_FLAG(flags, MFLAG, platform); PRINT_FLAG(flags, PFLAG, arch); + PRINT_FLAG(flags, IFLAG, ident); printf("\n"); } @@ -218,9 +225,12 @@ NATIVE_SYSCTL2_GET(arch, CTL_HW, HW_MACHINE_ARCH) { } NATIVE_SET; +NATIVE_SYSCTL2_GET(ident, CTL_KERN, KERN_IDENT) { +} NATIVE_SET; + void usage(void) { - fprintf(stderr, "usage: uname [-amnprsv]\n"); + fprintf(stderr, "usage: uname [-aimnprsv]\n"); exit(1); } %%% Thanx, juli. -- juli mallett. email: jmallett@freebsd.org; efnet: juli; From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 8 07:19:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BCA137B401 for ; Sun, 8 Jun 2003 07:19:05 -0700 (PDT) Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2467043FBF for ; Sun, 8 Jun 2003 07:19:04 -0700 (PDT) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id CB6A4A80F; Mon, 9 Jun 2003 00:19:01 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id 8886F5430 for ; Mon, 9 Jun 2003 00:19:01 +1000 (EST) Date: Mon, 9 Jun 2003 00:19:01 +1000 (EST) From: Andrew To: freebsd-hackers@freebsd.org Message-ID: <20030608235915.P49788-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: ugen example X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 14:19:05 -0000 Hi, I'm just having a look at ugen, trying to see if I can get any action out of a USB-serial converter that has no existing driver. This is my first foray into the USB world so I apologise for any stupid questions...is there a good tutorial somewhere? To find my device I open /dev/ugen? and call ioctl(USB_GET_DEVICE_DESC). I look at the returned idVendor and idProduct and check them against my hard coded figures. From what I can see from usbdevs only the last 2 bytes are significant? usbdevs produces 0x0743 for the vendor but I get 0x20743. When I work out what end point I need to talk to I thought opened /dev/ugen?.? but I only have a /dev/ugen? device (I'm using -CURRENT and devfs). I'm guessing I'm on the track here so I wouldn't mind a pointer to an example or some documentation. Thanks for any help, Andrew From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 8 08:06:39 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDD7537B401 for ; Sun, 8 Jun 2003 08:06:39 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91F2243F75 for ; Sun, 8 Jun 2003 08:06:38 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h58F6SrN008712 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sun, 8 Jun 2003 17:06:35 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h58F6ROs002094 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 8 Jun 2003 17:06:27 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h58F6Q9F010436; Sun, 8 Jun 2003 17:06:26 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h58F6QXP010435; Sun, 8 Jun 2003 17:06:26 +0200 (CEST) Date: Sun, 8 Jun 2003 17:06:26 +0200 From: Bernd Walter To: Andrew Message-ID: <20030608150625.GO509@cicely12.cicely.de> References: <20030608235915.P49788-100000@starbug.ugh.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030608235915.P49788-100000@starbug.ugh.net.au> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-RELEASE alpha User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: ugen example X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 15:06:40 -0000 On Mon, Jun 09, 2003 at 12:19:01AM +1000, Andrew wrote: > Hi, > > I'm just having a look at ugen, trying to see if I can get any action out > of a USB-serial converter that has no existing driver. This is my first > foray into the USB world so I apologise for any stupid questions...is > there a good tutorial somewhere? Not that I know. But there is lot of sample code available. usbdevs source is one of them. usbctl from ftp://ftp.augustsson.net/pub/netbsd/sysutils-0.5.tgz is another. And also ports/misc/ftdi-eeprom is simple code, which can use ugen as well as /dev/usb? to access the device. > To find my device I open /dev/ugen? and call ioctl(USB_GET_DEVICE_DESC). I > look at the returned idVendor and idProduct and check them against my hard > coded figures. From what I can see from usbdevs only the last 2 bytes are > significant? usbdevs produces 0x0743 for the vendor but I get 0x20743. You must be doing something wrong - the values are 16bit only. No chance to have anything larger. See usb_device_descriptor_t in usb.h. > When I work out what end point I need to talk to I thought opened > /dev/ugen?.? but I only have a /dev/ugen? device (I'm using -CURRENT and > devfs). I'm guessing I'm on the track here so I wouldn't mind a pointer to > an example or some documentation. If you have no /dev/ugen?.? then the device has no other endpoints in its current configuration. The usbctl tool mentioned above is good to check devices about their capabilities. http://www.cosmo-project.de/~bernd/usbutil.tgz is a port framework for it - it is not in great shape (naddy@ send me a big list of things to correct), but it works in vanilla configurations. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 8 10:15:24 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B022237B404 for ; Sun, 8 Jun 2003 10:15:24 -0700 (PDT) Received: from mx.vipnet.ro (cosmic.vipnet.ro [193.230.219.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 6AD8843F85 for ; Sun, 8 Jun 2003 10:15:23 -0700 (PDT) (envelope-from vladg@vipnet.ro) Received: (qmail 99106 invoked from network); 8 Jun 2003 17:17:03 -0000 Received: from unknown (HELO snakepit.halted.net) (141.85.1.89) by cosmic.vipnet.ro with SMTP; 8 Jun 2003 17:17:03 -0000 Date: Sun, 8 Jun 2003 20:16:56 +0300 From: Vlad GALU To: freebsd-hackers@freebsd.org Message-Id: <20030608201656.5d8102d5.vladg@vipnet.ro> Organization: VipNET Bucharest X-Mailer: Sylpheed version 0.9.0 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.SzVRzLKPWB45ON" Subject: kvm questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 17:15:25 -0000 --=.SzVRzLKPWB45ON Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello. I am trying to write a monitoring program which makes use of the kvm interface. My problem here is that I couldn't find a detailed description of the kinfo_proc structure anywhere in the system sources or Google. I have special interests towards the kp_proc & kp_eproc members. I can't get the process names until I know what those structures look like. I also posted this message to freebsd-stable, because I understand that the kinfo_proc structure has changed a bit between -stable and -current. My platform is 4.8-STABLE. Thanks in advance. Vlad. -- Vlad GALU Network Administrator VipNET Bucharest tel: 021/3039940 email: vladg@vipnet.ro web: http://www.vipnet.ro PGP: http://mirapoint.vipnet.ro/public_key.pgp --=.SzVRzLKPWB45ON Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+42+KBQlxy6GegvARAmYhAKDubGrkAFRzeHQEfxI0EKPkDc4evACfeTPk IYlPP8qjysjX3wIYpQy+qEM= =hdwT -----END PGP SIGNATURE----- --=.SzVRzLKPWB45ON-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 03:07:06 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DF7737B401 for ; Mon, 9 Jun 2003 03:07:06 -0700 (PDT) Received: from perimeter.co.za (obelix.perimeter.co.za [209.212.102.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63BB443F75 for ; Mon, 9 Jun 2003 03:07:01 -0700 (PDT) (envelope-from bsd@perimeter.co.za) Received: from localhost (localhost [127.0.0.1]) (uid 9999) by perimeter.co.za with local; Mon, 09 Jun 2003 12:06:58 +0200 From: bsd@perimeter.co.za To: "FreeBSDHackersList" Date: Mon, 09 Jun 2003 12:06:58 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-ID: Subject: System Crash - please help me figure it out... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 10:07:07 -0000 Dear Hackers, I have experienced a system crash for the first time in 10 months (last year in august I had a vinum issue which has been resolved with your help). Fortunately I still have a kernel with debugging enabled running, and the gdbmods script, so I can submit some useful data with this email. First, here is an extract from /var/log/messages: ======== Jun 9 10:59:37 obelix /kernel: /peri: bad dir ino 427318 at offset 384: mangled entry Jun 9 10:59:37 obelix /kernel: panic: ufs_dirbad: bad dir Jun 9 10:59:37 obelix /kernel: Jun 9 10:59:37 obelix /kernel: syncing disks... 21 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Jun 9 10:59:37 obelix /kernel: 1 1 Jun 9 10:59:37 obelix /kernel: done Jun 9 10:59:37 obelix /kernel: Uptime: 2d21h35m21s Jun 9 10:59:37 obelix /kernel: Jun 9 10:59:37 obelix /kernel: dumping to dev #ad/0x20001, offset 1638560 Jun 9 10:59:37 obelix /kernel: dump ata0: resetting devices .. done Jun 9 10:59:37 obelix /kernel: 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 19 6 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 12 5 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 8 6 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Copyright (c) 1992-2003 The FreeBS D Project. Jun 9 10:59:37 obelix /kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Jun 9 10:59:37 obelix /kernel: The Regents of the University of California. All rights reserved. Jun 9 10:59:37 obelix /kernel: FreeBSD 4.8-RELEASE #14: Tue Jun 3 14:48:15 SAST 2003 Jun 9 10:59:37 obelix /kernel: peri@obelix.perimeter.co.za:/usr/obj/usr/src/sys/obelix ======== From this it seems that there was an inode problem on /peri ?!? FYI, here is df: ======== root obelix:~# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 1032142 82206 867366 9% / /dev/ad0s1e 17634326 3632512 12591068 22% /usr /dev/vinum/vm1 38787345 4981936 30702422 14% /peri procfs 4 4 0 100% /proc root obelix:~# ======== As you can see the /peri 'disk' is a vinum device. I expected that I might have the same problem as before, but this is what gdmods gives me: (see http://docs.perimeter.co.za/crash/2003-06/20030609_1448_a ) From this it appears that the fault does not occur within vinum code at all. I am no hacker myself, so if you would like me to type more useful commands at the gdb prompt please mail me and I'll follow your instructions. Regards, Patrick O'Reilly. From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 03:28:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2463637B404 for ; Mon, 9 Jun 2003 03:28:05 -0700 (PDT) Received: from perimeter.co.za (obelix.perimeter.co.za [209.212.102.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0368043FB1 for ; Mon, 9 Jun 2003 03:28:03 -0700 (PDT) (envelope-from bsd@perimeter.co.za) Received: from localhost (localhost [127.0.0.1]) (uid 9999) by perimeter.co.za with local; Mon, 09 Jun 2003 12:28:00 +0200 References: In-Reply-To: From: bsd@perimeter.co.za To: "FreeBSDHackersList" Date: Mon, 09 Jun 2003 12:28:00 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-ID: Subject: Re: System Crash - please help me figure it out... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 10:28:05 -0000 bsd@perimeter.co.za writes: > Dear Hackers, > > I have experienced a system crash for the first time in 10 months (last > year in august I had a vinum issue which has been resolved with your > help). > > Fortunately I still have a kernel with debugging enabled running, and the > gdbmods script, so I can submit some useful data with this email. > On further reflection, here is more info which might be usefult to know: 1) I recently updated to 4.8 RELEASE. I just looked at the kernel config file and noted that I removed the "options VINUMDEBUG" a while ago. This might explain frames 13 through 15 in the crash dump being ?? . Help me out here please... 2) When upgrading I noted that the source for vinum had been changed in a similar way to the patches I received from Greg Lehey and applied in August 2002, so I did NOT apply the patches again. Perhaps I should have? 3) I also recently began using 'gre' devices for some VPN tunnels. This is new in 4.8. I find it odd (in hindsight) that these are working OK thought the "pseudo-device gre" line is absent from my kernel config file ??? FYI: kldstat is at http://docs.perimeter.co.za/crash/2003-06/kldstat Regards, Patrick. From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 04:47:58 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4683A37B401 for ; Mon, 9 Jun 2003 04:47:58 -0700 (PDT) Received: from gatorzone.com (gatormail.gatorzone.com [216.53.131.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76AE343F75 for ; Mon, 9 Jun 2003 04:47:57 -0700 (PDT) (envelope-from cd_freebsd@gatorzone.com) Date: Mon, 9 Jun 2003 07:52:33 -0400 Message-Id: <200306090752.AA157221012@gatorzone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "cd_freebsd" To: X-Mailer: Subject: Re: Mapping Physical Memory without a Device? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cd_freebsd@gatorzone.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 11:47:58 -0000 jmallett@freebsd.org writes >> You may also want to consider pmap_map. It depends on what your >>requirements are? while Bruce M Simpson [bms@spc.org] writes >>It's quite evil and not machine independent..avoid. -Who is right? (I like Juli's answer and she has FreeBSD.org in her name :) ) -Why is pmap_mapdev bad? -What makes it machine dependent? -What is the difference between pmap_devmap and pmap_map? My requirements would be to map some or all of the following memory areas that are not associated with any device I own: 1) BIOS & UMB ram (0xC0000-0xFFFFF) 2) VGA Video buffer (0xA0000-0xBFFFF) 3) Video Frame buffer (0x????0000-0x????0000) From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 04:55:28 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A61F37B407 for ; Mon, 9 Jun 2003 04:55:28 -0700 (PDT) Received: from mail.speakeasy.net (mail10.speakeasy.net [216.254.0.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95CA243F93 for ; Mon, 9 Jun 2003 04:55:27 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 16074 invoked from network); 9 Jun 2003 11:55:26 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 9 Jun 2003 11:55:26 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h59BtOGI004333; Mon, 9 Jun 2003 07:55:24 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200306071339.AA203489334@gatorzone.com> Date: Mon, 09 Jun 2003 07:55:25 -0400 (EDT) From: John Baldwin To: cd_freebsd cc: freebsd-hackers@freebsd.org Subject: RE: Mapping Physical Memory without a Device? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 11:55:28 -0000 On 07-Jun-2003 cd_freebsd wrote: > After sending my first note, I found pmap_mapdev. Anything wrong with using that? /* * Map a set of physical memory pages into the kernel virtual * address space. Return a pointer to where it is mapped. This * routine is intended to be used for mapping device memory, * NOT real memory. */ Read the last comment. It is intended for memory-mapped devices (I use it to map the I/O APICs and local APIC for example) and not for actual RAM. The problem is that the RAM could be used out from under you. You need to reserve it in the VM somehow. I'm not sure how you would accomplish that. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 04:55:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A88F37B407 for ; Mon, 9 Jun 2003 04:55:34 -0700 (PDT) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C12743FAF for ; Mon, 9 Jun 2003 04:55:32 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 32189 invoked from network); 9 Jun 2003 11:55:30 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 9 Jun 2003 11:55:30 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h59BtQGI004337; Mon, 9 Jun 2003 07:55:27 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030608201656.5d8102d5.vladg@vipnet.ro> Date: Mon, 09 Jun 2003 07:55:27 -0400 (EDT) From: John Baldwin To: Vlad GALU cc: freebsd-hackers@freebsd.org Subject: RE: kvm questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 11:55:35 -0000 On 08-Jun-2003 Vlad GALU wrote: > > Hello. I am trying to write a monitoring program > which makes use of the kvm interface. My problem here > is that I couldn't find a detailed description of the > kinfo_proc structure anywhere in the system sources or > Google. I have special interests towards the kp_proc & > kp_eproc members. I can't get the process names until > I know what those structures look like. I also posted this > message to freebsd-stable, because I understand that > the kinfo_proc structure has changed a bit between > -stable and -current. My platform is 4.8-STABLE. Most of the fields in kinfo_proc() are copies of the same fields in struct proc/thread/etc. declared in sys/proc.h. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 05:05:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4460B37B401 for ; Mon, 9 Jun 2003 05:05:52 -0700 (PDT) Received: from gatorzone.com (gatormail.gatorzone.com [216.53.131.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED2E543F75 for ; Mon, 9 Jun 2003 05:05:50 -0700 (PDT) (envelope-from cd_freebsd@gatorzone.com) Date: Mon, 9 Jun 2003 08:10:27 -0400 Message-Id: <200306090810.AA312148082@gatorzone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "cd_freebsd" To: X-Mailer: Subject: RE: Mapping Physical Memory without a Device? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cd_freebsd@gatorzone.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 12:05:52 -0000 John Baldwin wrote: >> The problem is that the RAM could be used out from under you. You need to reserve it in the VM somehow. I'm not sure how you would accomplish that. The areas I said I would map would not be used by the OS for virtual memory pages. BIOS, UMB, Video Frame Buffer all are excluded from use as normal RAM, aren't they? The majority of the time I would be executing the following sequence: 1) Map memory ares. 2) Read memory data. (BIOS VPD, BIOS tables, Video BIOS info, Video info) 3) Unmap memory area. From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 05:11:43 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35E4F37B404 for ; Mon, 9 Jun 2003 05:11:43 -0700 (PDT) Received: from mail.speakeasy.net (mail10.speakeasy.net [216.254.0.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98CDC43FBD for ; Mon, 9 Jun 2003 05:11:42 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 18392 invoked from network); 9 Jun 2003 12:11:42 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 9 Jun 2003 12:11:42 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h59CBeGI004396; Mon, 9 Jun 2003 08:11:40 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200306090752.AA157221012@gatorzone.com> Date: Mon, 09 Jun 2003 08:11:41 -0400 (EDT) From: John Baldwin To: cd_freebsd cc: freebsd-hackers@freebsd.org Subject: Re: Mapping Physical Memory without a Device? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 12:11:43 -0000 On 09-Jun-2003 cd_freebsd wrote: > jmallett@freebsd.org writes > >>> You may also want to consider pmap_map. It depends on what your >>requirements are? > > while Bruce M Simpson [bms@spc.org] writes > >>>It's quite evil and not machine independent..avoid. > > -Who is right? (I like Juli's answer and she has FreeBSD.org in her name :) ) > -Why is pmap_mapdev bad? > -What makes it machine dependent? > -What is the difference between pmap_devmap and pmap_map? > > My requirements would be to map some or all of the following memory areas that are not associated > with any device I own: > 1) BIOS & UMB ram (0xC0000-0xFFFFF) > 2) VGA Video buffer (0xA0000-0xBFFFF) The first 1 meg of memory is 1:1 mapped at KERNBASE. IOW, you can get to the BIOS at KERNBASE + 0xc0000. That should cover these first two items. > 3) Video Frame buffer (0x????0000-0x????0000) Since this is not real RAM but device memory, pmap_mapdev() is ok for this. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 05:22:41 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9230E37B401 for ; Mon, 9 Jun 2003 05:22:41 -0700 (PDT) Received: from gatorzone.com (gatormail.gatorzone.com [216.53.131.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBCD043FBD for ; Mon, 9 Jun 2003 05:22:40 -0700 (PDT) (envelope-from cd_freebsd@gatorzone.com) Date: Mon, 9 Jun 2003 08:27:17 -0400 Message-Id: <200306090827.AA151912602@gatorzone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "cd_freebsd" To: X-Mailer: Subject: Re: Mapping Physical Memory without a Device? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cd_freebsd@gatorzone.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 12:22:41 -0000 John Baldwin wrote: >> The first 1 meg of memory is 1:1 mapped at KERNBASE. IOW, you can get to the BIOS at KERNBASE + 0xc0000. That should cover these first two items. Even on non-i386 machines? I guess it really doesn't matter since I am reading the BIOS area to detect that I am running on a specific type machine. The other calls are ignored if the data read does not equal the expected values. Thanks for the help. From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 05:41:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 490BF37B401 for ; Mon, 9 Jun 2003 05:41:50 -0700 (PDT) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA1AB43F75 for ; Mon, 9 Jun 2003 05:41:49 -0700 (PDT) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id F40955310; Mon, 9 Jun 2003 14:41:47 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Vlad GALU References: <20030608201656.5d8102d5.vladg@vipnet.ro> From: Dag-Erling Smorgrav Date: Mon, 09 Jun 2003 14:41:47 +0200 In-Reply-To: <20030608201656.5d8102d5.vladg@vipnet.ro> (Vlad GALU's message of "Sun, 8 Jun 2003 20:16:56 +0300") Message-ID: User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-hackers@freebsd.org Subject: Re: kvm questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 12:41:50 -0000 Vlad GALU writes: > Hello. I am trying to write a monitoring program > which makes use of the kvm interface. procfs is significantly less evil, if you can get the information you require from it. DES -- Dag-Erling Smorgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 06:20:58 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 126B237B401 for ; Mon, 9 Jun 2003 06:20:58 -0700 (PDT) Received: from conn.mc.mpls.visi.com (conn.mc.mpls.visi.com [208.42.156.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7362143FCB for ; Mon, 9 Jun 2003 06:20:57 -0700 (PDT) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by conn.mc.mpls.visi.com (Postfix) with ESMTP id BD0A78175 for ; Mon, 9 Jun 2003 08:20:56 -0500 (CDT) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6p2/8.11.6) id h59DKt414194 for freebsd-hackers@freebsd.org; Mon, 9 Jun 2003 08:20:55 -0500 (CDT) (envelope-from hawkeyd) X-Spam-Policy: http://www.visi.com/~hawkeyd/index.html#mail Date: Mon, 9 Jun 2003 08:20:55 -0500 From: D J Hawkey Jr To: hackers at FreeBSD Message-ID: <20030609132055.GA14176@sheol.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Backporting burncd w/VCD support to 4.5-REL-p24 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hawkeyd@visi.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 13:20:58 -0000 Hi all. Per the subject, how much work will it be? For giggles, I grabbed the earliest burncd from CVS that supports VCD, saved off my /usr/src/usr.sbin/burncd, then: # cd /usr/src/usr.sbin/burncd # make all The build puked on a few CDR* definitions, and a bunch of other stuff. Later versions than the version I grabbed want stdint.h (which I don't have), so I shied away from that. Can anyone (Soren?) tell me what all I need to pull this off, and not break the rest of the system? If it's easier to build up a Makefile to build it outside of /usr/src, I'd be game to try that, too. Thanks, Dave -- ______________________ ______________________ \__________________ \ D. J. HAWKEY JR. / __________________/ \________________/\ hawkeyd@visi.com /\________________/ http://www.visi.com/~hawkeyd/ From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 07:43:39 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0315C37B401 for ; Mon, 9 Jun 2003 07:43:39 -0700 (PDT) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D814F43FBD for ; Mon, 9 Jun 2003 07:43:36 -0700 (PDT) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.8p1/8.12.8) id h59EhYOk081417; Mon, 9 Jun 2003 16:43:34 +0200 (CEST) (envelope-from sos) From: Soeren Schmidt Message-Id: <200306091443.h59EhYOk081417@spider.deepcore.dk> In-Reply-To: <20030609132055.GA14176@sheol.localdomain> To: hawkeyd@visi.com Date: Mon, 9 Jun 2003 16:43:34 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 cc: hackers at FreeBSD Subject: Re: Backporting burncd w/VCD support to 4.5-REL-p24 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 14:43:39 -0000 It seems D J Hawkey Jr wrote: > Hi all. > > Per the subject, how much work will it be? > > For giggles, I grabbed the earliest burncd from CVS that supports VCD, > saved off my /usr/src/usr.sbin/burncd, then: > # cd /usr/src/usr.sbin/burncd > # make all > The build puked on a few CDR* definitions, and a bunch of other stuff. > Later versions than the version I grabbed want stdint.h (which I don't > have), so I shied away from that. > > Can anyone (Soren?) tell me what all I need to pull this off, and not > break the rest of the system? If it's easier to build up a Makefile to > build it outside of /usr/src, I'd be game to try that, too. Doing a backport to 4.5 will include changes to the ATA driver in the kernel as well as to burncd, and is not a trivial matter (and IMHO not worth the effort as an update will do nicely)... It would be far easier to upgrade the system to something newer like at least 4.7 where the support is already in... -Søren From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 07:52:12 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D10F437B401 for ; Mon, 9 Jun 2003 07:52:12 -0700 (PDT) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DA7D43FAF for ; Mon, 9 Jun 2003 07:52:12 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 28936 invoked from network); 9 Jun 2003 14:51:57 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 9 Jun 2003 14:51:57 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h59EppGI004699; Mon, 9 Jun 2003 10:51:51 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200306090827.AA151912602@gatorzone.com> Date: Mon, 09 Jun 2003 10:51:52 -0400 (EDT) From: John Baldwin To: cd_freebsd cc: freebsd-hackers@freebsd.org Subject: Re: Mapping Physical Memory without a Device? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 14:52:13 -0000 On 09-Jun-2003 cd_freebsd wrote: > John Baldwin wrote: > >>> The first 1 meg of memory is 1:1 mapped at KERNBASE. IOW, you can get to the BIOS at KERNBASE >>> + 0xc0000. That should cover these first two items. > > Even on non-i386 machines? No, other machines don't have BIOSes. :) > I guess it really doesn't matter since I am reading the BIOS area to detect that I am running on > a specific type machine. The other calls are ignored if the data read does not equal the expected > values. Your code would have to be compiled to run on another arch anyways. If it is truly necessary, you can always use #ifdef __i386__ to determine if you are running on an i386. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 10:08:31 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FF9937B40C for ; Mon, 9 Jun 2003 10:08:31 -0700 (PDT) Received: from corb.mc.mpls.visi.com (corb.mc.mpls.visi.com [208.42.156.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E07DC43FBF for ; Mon, 9 Jun 2003 10:08:30 -0700 (PDT) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by corb.mc.mpls.visi.com (Postfix) with ESMTP id 0C9B1816A; Mon, 9 Jun 2003 12:08:30 -0500 (CDT) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6p2/8.11.6) id h59H8PR14526; Mon, 9 Jun 2003 12:08:25 -0500 (CDT) (envelope-from hawkeyd) X-Spam-Policy: http://www.visi.com/~hawkeyd/index.html#mail Date: Mon, 9 Jun 2003 12:08:25 -0500 From: D J Hawkey Jr To: Soeren Schmidt Message-ID: <20030609170825.GA14499@sheol.localdomain> References: <20030609132055.GA14176@sheol.localdomain> <200306091443.h59EhYOk081417@spider.deepcore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306091443.h59EhYOk081417@spider.deepcore.dk> User-Agent: Mutt/1.4.1i cc: hackers at FreeBSD Subject: Re: Backporting burncd w/VCD support to 4.5-REL-p24 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hawkeyd@visi.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 17:08:31 -0000 On Jun 09, at 04:43 PM, Soeren Schmidt wrote: > > It seems D J Hawkey Jr wrote: > > Hi all. > > > > Per the subject, how much work will it be? > > > > For giggles, I grabbed the earliest burncd from CVS that supports VCD, > > saved off my /usr/src/usr.sbin/burncd, then: > > # cd /usr/src/usr.sbin/burncd > > # make all > > The build puked on a few CDR* definitions, and a bunch of other stuff. > > Later versions than the version I grabbed want stdint.h (which I don't > > have), so I shied away from that. > > Doing a backport to 4.5 will include changes to the ATA driver in the > kernel as well as to burncd, and is not a trivial matter... I feared as much. Would this be the ATAPICAM (?) stuff done for 4.6? OTOH, I backported the ICH sound support to 4.3; I'm not afraid of tinkering with the kernel. But p'raps this comparison is apples and oranges in terms of complexity. > It would be far easier to upgrade the system to something newer like > at least 4.7 where the support is already in... I realize this, of course. I'm hesitant to do this because some of my hardware is pretty old now, and I fear that the newer ATA/ATAPI sub- system may not like some of my hardware. I do recall quite a few posts about problems with the newer subsystem, but then again, quite some time has passed now. Lemme ask you this, then: Given a FBSD 4.5 system, is the CAM xpt module patch (T. Quinot) and cdrecord a [more] viable option? Or am I basically SOOL? Thanks, Dave -- ______________________ ______________________ \__________________ \ D. J. HAWKEY JR. / __________________/ \________________/\ hawkeyd@visi.com /\________________/ http://www.visi.com/~hawkeyd/ From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 10:16:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB96F37B401 for ; Mon, 9 Jun 2003 10:16:52 -0700 (PDT) Received: from mail.romero3000.com (ip-216-46-71-240.dsl.nyc.megapath.net [216.46.71.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62D4143FE0 for ; Mon, 9 Jun 2003 10:16:50 -0700 (PDT) (envelope-from romero3000@romero3000.com) Received: from mail.romero3000.com (localhost.megapath.net [127.0.0.1]) by mail.romero3000.com (Postfix) with SMTP id 5B5FB4C4F8 for ; Mon, 9 Jun 2003 13:16:26 -0400 (EDT) Received: from 209.236.210.66 (SquirrelMail authenticated user romero3000) by mail.romero3000.com with HTTP; Mon, 9 Jun 2003 13:16:26 -0400 (EDT) Message-ID: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> Date: Mon, 9 Jun 2003 13:16:26 -0400 (EDT) From: romero3000@romero3000.com To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal Subject: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 17:16:53 -0000 (sorry about cross-posting this question. not sure which list is better) I want to to know how to create a ram file system for /var and /tmp so that i can boot from flash memory and mount those two file systems on ramfs. I've looked for howto's online but haven't found anything. any suggestions???? From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 10:24:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7285737B401 for ; Mon, 9 Jun 2003 10:24:52 -0700 (PDT) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8155443FA3 for ; Mon, 9 Jun 2003 10:24:45 -0700 (PDT) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.8p1/8.12.8) id h59HOW2b008475; Mon, 9 Jun 2003 19:24:32 +0200 (CEST) (envelope-from sos) From: Soeren Schmidt Message-Id: <200306091724.h59HOW2b008475@spider.deepcore.dk> In-Reply-To: <20030609170825.GA14499@sheol.localdomain> To: hawkeyd@visi.com Date: Mon, 9 Jun 2003 19:24:32 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 cc: hackers at FreeBSD Subject: Re: Backporting burncd w/VCD support to 4.5-REL-p24 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 17:24:52 -0000 It seems D J Hawkey Jr wrote: > > Doing a backport to 4.5 will include changes to the ATA driver in the > > kernel as well as to burncd, and is not a trivial matter... > > I feared as much. Would this be the ATAPICAM (?) stuff done for 4.6? > OTOH, I backported the ICH sound support to 4.3; I'm not afraid of > tinkering with the kernel. But p'raps this comparison is apples and > oranges in terms of complexity. I have no idea about the ATAPICAM stuff, what I'm talking about is the hooks for burncd etc... > > It would be far easier to upgrade the system to something newer like > > at least 4.7 where the support is already in... > > I realize this, of course. I'm hesitant to do this because some of my > hardware is pretty old now, and I fear that the newer ATA/ATAPI sub- > system may not like some of my hardware. I do recall quite a few posts > about problems with the newer subsystem, but then again, quite some > time has passed now. Well, you need the new ATA/ATAPI system for this to work I'm afraid... > Lemme ask you this, then: Given a FBSD 4.5 system, is the CAM xpt > module patch (T. Quinot) and cdrecord a [more] viable option? Or am > I basically SOOL? I have no idea, others might have the answer to that.. -Søren From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 10:45:46 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F42A37B401 for ; Mon, 9 Jun 2003 10:45:46 -0700 (PDT) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A6C243F85 for ; Mon, 9 Jun 2003 10:45:45 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (jva619756p4imc3k@dsl-133-253.aei.ca [66.36.133.253]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id h59HjdI10720; Mon, 9 Jun 2003 13:45:39 -0400 (EDT) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 6B2533F1; Mon, 9 Jun 2003 13:45:38 -0400 (EDT) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Mon, 9 Jun 2003 13:45:45 -0400 From: "The Anarcat" Date: Mon, 9 Jun 2003 13:45:45 -0400 To: Soeren Schmidt Message-ID: <20030609174545.GL1203@lenny.anarcat.ath.cx> References: <20030609170825.GA14499@sheol.localdomain> <200306091724.h59HOW2b008475@spider.deepcore.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oC1+HKm2/end4ao3" Content-Disposition: inline In-Reply-To: <200306091724.h59HOW2b008475@spider.deepcore.dk> User-Agent: Mutt/1.5.4i cc: hackers at FreeBSD cc: hawkeyd@visi.com Subject: Re: Backporting burncd w/VCD support to 4.5-REL-p24 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 17:45:46 -0000 --oC1+HKm2/end4ao3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon Jun 09, 2003 at 07:24:32PM +0200, Soeren Schmidt wrote: > It seems D J Hawkey Jr wrote: > > Lemme ask you this, then: Given a FBSD 4.5 system, is the CAM xpt > > module patch (T. Quinot) and cdrecord a [more] viable option? Or am > > I basically SOOL? >=20 > I have no idea, others might have the answer to that.. I've used the ATAPICAM throughout the 4.x branch and now in 5.x without any problems, really enjoying all of cdrecord power. A. --=20 Il n'existe aucune limite sacr=E9e ou non =E0 l'action de l'homme dans l'univers. Depuis nos origines nous avons le choix: =EAtre aveugl=E9 par la v=E9rit=E9 ou coudre nos paupi=E8res. - [no one is innocent] --oC1+HKm2/end4ao3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+5MfJttcWHAnWiGcRAsJdAJ9cKAUW/I/AyER3HJIV+JulLyJbbQCfdo+O i8T9DYXHCA8wsH0HbSm9S0c= =wQgD -----END PGP SIGNATURE----- --oC1+HKm2/end4ao3-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 10:52:15 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A17A37B401 for ; Mon, 9 Jun 2003 10:52:15 -0700 (PDT) Received: from conn.mc.mpls.visi.com (conn.mc.mpls.visi.com [208.42.156.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD23A43F3F for ; Mon, 9 Jun 2003 10:52:14 -0700 (PDT) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by conn.mc.mpls.visi.com (Postfix) with ESMTP id F20F78183; Mon, 9 Jun 2003 12:52:13 -0500 (CDT) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6p2/8.11.6) id h59HqA214678; Mon, 9 Jun 2003 12:52:10 -0500 (CDT) (envelope-from hawkeyd) X-Spam-Policy: http://www.visi.com/~hawkeyd/index.html#mail Date: Mon, 9 Jun 2003 12:52:09 -0500 From: D J Hawkey Jr To: The Anarcat Message-ID: <20030609175209.GA14663@sheol.localdomain> References: <20030609170825.GA14499@sheol.localdomain> <200306091724.h59HOW2b008475@spider.deepcore.dk> <20030609174545.GL1203@lenny.anarcat.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030609174545.GL1203@lenny.anarcat.ath.cx> User-Agent: Mutt/1.4.1i cc: hackers at FreeBSD Subject: Re: Backporting burncd w/VCD support to 4.5-REL-p24 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hawkeyd@visi.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 17:52:15 -0000 On Jun 09, at 01:45 PM, The Anarcat wrote: > > On Mon Jun 09, 2003 at 07:24:32PM +0200, Soeren Schmidt wrote: > > It seems D J Hawkey Jr wrote: > > > Lemme ask you this, then: Given a FBSD 4.5 system, is the CAM xpt > > > module patch (T. Quinot) and cdrecord a [more] viable option? Or am > > > I basically SOOL? > > I've used the ATAPICAM throughout the 4.x branch and now in 5.x > without any problems, really enjoying all of cdrecord power. Um, just to clarify: FBSD 4.6 was the first release with ATAPICAM (I _think_ it was 4.6, but definitely not 4.5). Are you saying that FBSD 4.6 was nice and solid? More to the point, had you applied that CAM xpt patch to a 4.5 (or earlier) release? And solid reliability continued? Thanks for the reply, Dave -- ______________________ ______________________ \__________________ \ D. J. HAWKEY JR. / __________________/ \________________/\ hawkeyd@visi.com /\________________/ http://www.visi.com/~hawkeyd/ From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 11:04:55 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 596D737B401 for ; Mon, 9 Jun 2003 11:04:55 -0700 (PDT) Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id B186D43FBD for ; Mon, 9 Jun 2003 11:04:54 -0700 (PDT) (envelope-from faber@ISI.EDU) Received: from pun.isi.edu (pun.isi.edu [128.9.160.150]) by boreas.isi.edu (8.11.6p2/8.11.2) with ESMTP id h59I4r104537; Mon, 9 Jun 2003 11:04:53 -0700 (PDT) Received: from pun.isi.edu (localhost [127.0.0.1]) by pun.isi.edu (8.12.9/8.12.9) with ESMTP id h59I4qeA064001; Mon, 9 Jun 2003 11:04:52 -0700 (PDT) (envelope-from faber@pun.isi.edu) Received: (from faber@localhost) by pun.isi.edu (8.12.9/8.12.9/Submit) id h59I4qOV064000; Mon, 9 Jun 2003 11:04:52 -0700 (PDT) Date: Mon, 9 Jun 2003 11:04:52 -0700 From: Ted Faber To: romero3000@romero3000.com Message-ID: <20030609180452.GJ61917@pun.isi.edu> References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hNG1vEeyG8BCaHbQ" Content-Disposition: inline In-Reply-To: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> User-Agent: Mutt/1.4.1i X-url: http://www.isi.edu/~faber cc: freebsd-hackers@freebsd.org Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 18:04:55 -0000 --hNG1vEeyG8BCaHbQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 09, 2003 at 01:16:26PM -0400, romero3000@romero3000.com wrote: > (sorry about cross-posting this question. not sure which list is better) > > I want to to know how to create a ram file system for /var and /tmp so > that i can boot from flash memory and mount those two file systems on > ramfs. I've looked for howto's online but haven't found anything. any > suggestions???? On CURRENT: man vnconfig man vn I mount a swap backed fs (which I what I suspect you want) with: vnconfig -e -s labels -S ${vn_tmp_size} ${vn_tmp_device} && \ disklabel -r -w ${vn_tmp_device} auto && \ newfs /dev/${vn_tmp_device}c > /dev/null && \ mount -o nosuid -o nodev /dev/${vn_tmp_device}c /tmp && \ chmod 1777 /tmp N.B. I don't reserve the blocks on swap, which again is what I think you want. Good luck. --hNG1vEeyG8BCaHbQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+5MxEaUz3f+Zf+XsRAm1NAJ0TgLb8OMuThR2N7dKKkV+SQhmBpwCg3zGt 8yicHRHEJteyrqsV5DuxWsg= =I+vL -----END PGP SIGNATURE----- --hNG1vEeyG8BCaHbQ-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 11:09:51 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E18837B401 for ; Mon, 9 Jun 2003 11:09:51 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id B547443FBF for ; Mon, 9 Jun 2003 11:09:50 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 85739 invoked by uid 1001); 9 Jun 2003 18:11:32 -0000 Date: Mon, 9 Jun 2003 11:11:32 -0700 From: Joshua Oreman To: Ted Faber Message-ID: <20030609181132.GC85429@webserver.get-linux.org> References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> <20030609180452.GJ61917@pun.isi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030609180452.GJ61917@pun.isi.edu> User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 18:09:51 -0000 On Mon, Jun 09, 2003 at 11:04:52AM -0700 or thereabouts, Ted Faber seemed to write: > On Mon, Jun 09, 2003 at 01:16:26PM -0400, romero3000@romero3000.com wrote: > > (sorry about cross-posting this question. not sure which list is better) > > > > I want to to know how to create a ram file system for /var and /tmp so > > that i can boot from flash memory and mount those two file systems on > > ramfs. I've looked for howto's online but haven't found anything. any > > suggestions???? > > On CURRENT: You mean -stable, don't you? > > man vnconfig > man vn > > I mount a swap backed fs (which I what I suspect you want) with: > > vnconfig -e -s labels -S ${vn_tmp_size} ${vn_tmp_device} && \ > disklabel -r -w ${vn_tmp_device} auto && \ > newfs /dev/${vn_tmp_device}c > /dev/null && \ > mount -o nosuid -o nodev /dev/${vn_tmp_device}c /tmp && \ > chmod 1777 /tmp > > N.B. I don't reserve the blocks on swap, which again is what I think you > want. On -current: man mdconfig man md How to do the above: vn_tmp_device=`mdconfig -a -t swap -s ${vn_tmp_size}m` && disklabel -r -w ${vn_tmp_device} auto && \ newfs /dev/${vn_tmp_device} >/dev/null && \ mount -o nosuid,nodev /dev/${vn_tmp_device} /tmp && \ chmod 1777 /tmp Replace ${vn_tmp_size} with the size of the disk, in Mb. -- Josh > > Good luck. > From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 11:14:18 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id CF89137B401; Mon, 9 Jun 2003 11:14:18 -0700 (PDT) Date: Mon, 9 Jun 2003 13:14:18 -0500 From: Juli Mallett To: Joshua Oreman Message-ID: <20030609131418.A85608@FreeBSD.org> References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> <20030609180452.GJ61917@pun.isi.edu> <20030609181132.GC85429@webserver.get-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030609181132.GC85429@webserver.get-linux.org>; from oremanj@webserver.get-linux.org on Mon, Jun 09, 2003 at 11:11:32AM -0700 X-Title: Code Maven X-Towel: Yes X-Negacore: Yes X-Authentication-Warning: localhost: juli pwned teh intarweb cc: hackers@freebsd.org cc: Ted Faber Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 18:14:19 -0000 * Joshua Oreman [ Date: 2003-06-09 ] [ w.r.t. Re: ramdisk?? ] > On Mon, Jun 09, 2003 at 11:04:52AM -0700 or thereabouts, Ted Faber seemed to write: > > On Mon, Jun 09, 2003 at 01:16:26PM -0400, romero3000@romero3000.com wrote: > > > (sorry about cross-posting this question. not sure which list is better) > > > > > > I want to to know how to create a ram file system for /var and /tmp so > > > that i can boot from flash memory and mount those two file systems on > > > ramfs. I've looked for howto's online but haven't found anything. any > > > suggestions???? > > > > On CURRENT: > > You mean -stable, don't you? > > > > > man vnconfig > > man vn > > > > I mount a swap backed fs (which I what I suspect you want) with: > > > > vnconfig -e -s labels -S ${vn_tmp_size} ${vn_tmp_device} && \ > > disklabel -r -w ${vn_tmp_device} auto && \ > > newfs /dev/${vn_tmp_device}c > /dev/null && \ > > mount -o nosuid -o nodev /dev/${vn_tmp_device}c /tmp && \ > > chmod 1777 /tmp > > > > N.B. I don't reserve the blocks on swap, which again is what I think you > > want. > > On -current: > > man mdconfig > man md > > How to do the above: > > vn_tmp_device=`mdconfig -a -t swap -s ${vn_tmp_size}m` && > disklabel -r -w ${vn_tmp_device} auto && \ > newfs /dev/${vn_tmp_device} >/dev/null && \ > mount -o nosuid,nodev /dev/${vn_tmp_device} /tmp && \ > chmod 1777 /tmp > > Replace ${vn_tmp_size} with the size of the disk, in Mb. Or if you don't need a disklabel and all that, you could just look at using mount_mfs and fstab entries outright. See the appropriate manual pages. -- juli mallett. email: jmallett@freebsd.org; efnet: juli; From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 11:15:11 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F040B37B401 for ; Mon, 9 Jun 2003 11:15:11 -0700 (PDT) Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5835A43FB1 for ; Mon, 9 Jun 2003 11:15:11 -0700 (PDT) (envelope-from faber@ISI.EDU) Received: from pun.isi.edu (pun.isi.edu [128.9.160.150]) by boreas.isi.edu (8.11.6p2/8.11.2) with ESMTP id h59IF9115787; Mon, 9 Jun 2003 11:15:09 -0700 (PDT) Received: from pun.isi.edu (localhost [127.0.0.1]) by pun.isi.edu (8.12.9/8.12.9) with ESMTP id h59IF9eA064220; Mon, 9 Jun 2003 11:15:09 -0700 (PDT) (envelope-from faber@pun.isi.edu) Received: (from faber@localhost) by pun.isi.edu (8.12.9/8.12.9/Submit) id h59IF9j0064219; Mon, 9 Jun 2003 11:15:09 -0700 (PDT) Date: Mon, 9 Jun 2003 11:15:09 -0700 From: Ted Faber To: Joshua Oreman Message-ID: <20030609181509.GL61917@pun.isi.edu> References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> <20030609180452.GJ61917@pun.isi.edu> <20030609181132.GC85429@webserver.get-linux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nLMor0SRtNCuLS/8" Content-Disposition: inline In-Reply-To: <20030609181132.GC85429@webserver.get-linux.org> User-Agent: Mutt/1.4.1i X-url: http://www.isi.edu/~faber cc: hackers@freebsd.org Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 18:15:12 -0000 --nLMor0SRtNCuLS/8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 09, 2003 at 11:11:32AM -0700, Joshua Oreman wrote: > On Mon, Jun 09, 2003 at 11:04:52AM -0700 or thereabouts, Ted Faber seemed to write: > > On Mon, Jun 09, 2003 at 01:16:26PM -0400, romero3000@romero3000.com wrote: > > > (sorry about cross-posting this question. not sure which list is better) > > > > > > I want to to know how to create a ram file system for /var and /tmp so > > > that i can boot from flash memory and mount those two file systems on > > > ramfs. I've looked for howto's online but haven't found anything. any > > > suggestions???? > > > > On CURRENT: > > You mean -stable, don't you? D'oh! Of course I do, sorry. --nLMor0SRtNCuLS/8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD4DBQE+5M6taUz3f+Zf+XsRAhDRAJjLDveQP8SEeLIld+X5sUiCZXlPAJ9shAyI XdeObLOQ65Iss3I3uTd/Ag== =W5lo -----END PGP SIGNATURE----- --nLMor0SRtNCuLS/8-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 11:17:38 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7ABE537B401; Mon, 9 Jun 2003 11:17:38 -0700 (PDT) Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id B168043FA3; Mon, 9 Jun 2003 11:17:37 -0700 (PDT) (envelope-from faber@ISI.EDU) Received: from pun.isi.edu (pun.isi.edu [128.9.160.150]) by boreas.isi.edu (8.11.6p2/8.11.2) with ESMTP id h59IHb118082; Mon, 9 Jun 2003 11:17:37 -0700 (PDT) Received: from pun.isi.edu (localhost [127.0.0.1]) by pun.isi.edu (8.12.9/8.12.9) with ESMTP id h59IHbeA064265; Mon, 9 Jun 2003 11:17:37 -0700 (PDT) (envelope-from faber@pun.isi.edu) Received: (from faber@localhost) by pun.isi.edu (8.12.9/8.12.9/Submit) id h59IHbcN064264; Mon, 9 Jun 2003 11:17:37 -0700 (PDT) Date: Mon, 9 Jun 2003 11:17:37 -0700 From: Ted Faber To: Juli Mallett Message-ID: <20030609181736.GM61917@pun.isi.edu> References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> <20030609180452.GJ61917@pun.isi.edu> <20030609181132.GC85429@webserver.get-linux.org> <20030609131418.A85608@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i13qRg9tmWEwo36p" Content-Disposition: inline In-Reply-To: <20030609131418.A85608@FreeBSD.org> User-Agent: Mutt/1.4.1i X-url: http://www.isi.edu/~faber cc: hackers@FreeBSD.org cc: Joshua Oreman Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 18:17:38 -0000 --i13qRg9tmWEwo36p Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 09, 2003 at 01:14:18PM -0500, Juli Mallett wrote: > On Mon, Jun 09, 2003 at 11:04:52AM -0700 or thereabouts, Ted Faber seemed to write: > > I mount a swap backed fs (which I what I suspect you want) with: > > Or if you don't need a disklabel and all that, you could just > look at using mount_mfs and fstab entries outright. See the > appropriate manual pages. I used to use mfs, but I think that the vn hack is a more memory efficient and doesn't leave a process hanging around (which mfs used to). If that's no longer true, I'd love to hear it. --i13qRg9tmWEwo36p Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+5M9AaUz3f+Zf+XsRAvfFAJ9hvcpXG92h27OCdItNqhvF3wC3MgCfSDk+ vAZ1yvPNQ/20Z5MkUCNTZ1o= =bv5Q -----END PGP SIGNATURE----- --i13qRg9tmWEwo36p-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 11:18:24 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39B3537B401 for ; Mon, 9 Jun 2003 11:18:23 -0700 (PDT) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FB6B43F75 for ; Mon, 9 Jun 2003 11:18:23 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-2ivfk7o.dialup.mindspring.com ([165.247.208.248] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19PRDn-00063s-00; Mon, 09 Jun 2003 11:18:19 -0700 Message-ID: <3EE4CD9C.12BFAB65@mindspring.com> Date: Mon, 09 Jun 2003 11:10:36 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Vlad GALU References: <20030608201656.5d8102d5.vladg@vipnet.ro> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a48516df04cee192dafde7b94c03ea1c41548b785378294e88350badd9bab72f9c350badd9bab72f9c cc: freebsd-hackers@freebsd.org Subject: Re: kvm questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 18:18:24 -0000 Vlad GALU wrote: > Hello. I am trying to write a monitoring program > which makes use of the kvm interface. My problem here > is that I couldn't find a detailed description of the > kinfo_proc structure anywhere in the system sources or > Google. I have special interests towards the kp_proc & > kp_eproc members. I can't get the process names until > I know what those structures look like. I also posted this > message to freebsd-stable, because I understand that > the kinfo_proc structure has changed a bit between > -stable and -current. My platform is 4.8-STABLE. By the way, accessing this type of data directly from the kernel is evil. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 11:19:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE05337B401 for ; Mon, 9 Jun 2003 11:19:48 -0700 (PDT) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2A7043FCB for ; Mon, 9 Jun 2003 11:19:47 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (impjupyax7dknlak@dsl-133-253.aei.ca [66.36.133.253]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id h59IJkI18319; Mon, 9 Jun 2003 14:19:47 -0400 (EDT) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 0635D3C6; Mon, 9 Jun 2003 14:19:46 -0400 (EDT) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Mon, 9 Jun 2003 14:19:52 -0400 From: "The Anarcat" Date: Mon, 9 Jun 2003 14:19:52 -0400 To: D J Hawkey Jr Message-ID: <20030609181952.GA1981@lenny.anarcat.ath.cx> References: <20030609170825.GA14499@sheol.localdomain> <200306091724.h59HOW2b008475@spider.deepcore.dk> <20030609174545.GL1203@lenny.anarcat.ath.cx> <20030609175209.GA14663@sheol.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: <20030609175209.GA14663@sheol.localdomain> User-Agent: Mutt/1.5.4i cc: hackers at FreeBSD Subject: Re: Backporting burncd w/VCD support to 4.5-REL-p24 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 18:19:49 -0000 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon Jun 09, 2003 at 12:52:09PM -0500, D J Hawkey Jr wrote: > On Jun 09, at 01:45 PM, The Anarcat wrote: > >=20 > > On Mon Jun 09, 2003 at 07:24:32PM +0200, Soeren Schmidt wrote: > > > It seems D J Hawkey Jr wrote: > > > > Lemme ask you this, then: Given a FBSD 4.5 system, is the CAM xpt > > > > module patch (T. Quinot) and cdrecord a [more] viable option? Or am > > > > I basically SOOL? > >=20 > > I've used the ATAPICAM throughout the 4.x branch and now in 5.x > > without any problems, really enjoying all of cdrecord power. >=20 > Um, just to clarify: FBSD 4.6 was the first release with ATAPICAM > (I _think_ it was 4.6, but definitely not 4.5). Are you saying that > FBSD 4.6 was nice and solid? >=20 > More to the point, had you applied that CAM xpt patch to a 4.5 (or > earlier) release? And solid reliability continued? >=20 > Thanks for the reply, > Dave hmmm.. I guess the proper person to ask would be Thomas himself, but on: http://www.cuivre.fr.eu.org/~thomas/atapicam/ I see patches going as far as march 2002, so I guess the 4.6 date fits in pretty well. I *think* I followed the atapicam pretty much from start, so that would indeed be 4.5-stable. Can't say that atapicam always had been nice and solid. As it says on the web page: The only recommended way of using ATAPI/CAM is: * with FreeBSD 4: to upgrade to a version of the RELENG_4 branch * posterior to 2002-11-01 and follow the instructions in * /sys/conf/LINT. YMMV, of course, A. --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+5M/IttcWHAnWiGcRArNLAJ91qMnTjht6L+7yn3cEAOg4KFRuGgCdF8+s Yg73BXqdl/YA8Z83/T5upNM= =367T -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 11:21:28 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 5C9D737B401; Mon, 9 Jun 2003 11:21:28 -0700 (PDT) Date: Mon, 9 Jun 2003 13:21:28 -0500 From: Juli Mallett To: Ted Faber Message-ID: <20030609132128.A86366@FreeBSD.org> References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> <20030609180452.GJ61917@pun.isi.edu> <20030609181132.GC85429@webserver.get-linux.org> <20030609131418.A85608@FreeBSD.org> <20030609181736.GM61917@pun.isi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030609181736.GM61917@pun.isi.edu>; from faber@ISI.EDU on Mon, Jun 09, 2003 at 11:17:37AM -0700 X-Title: Code Maven X-Towel: Yes X-Negacore: Yes X-Authentication-Warning: localhost: juli pwned teh intarweb cc: hackers@FreeBSD.org cc: Joshua Oreman Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 18:21:28 -0000 * Ted Faber [ Date: 2003-06-09 ] [ w.r.t. Re: ramdisk?? ] > On Mon, Jun 09, 2003 at 01:14:18PM -0500, Juli Mallett wrote: > > On Mon, Jun 09, 2003 at 11:04:52AM -0700 or thereabouts, Ted Faber seemed to write: > > > I mount a swap backed fs (which I what I suspect you want) with: > > > > Or if you don't need a disklabel and all that, you could just > > look at using mount_mfs and fstab entries outright. See the > > appropriate manual pages. > > I used to use mfs, but I think that the vn hack is a more memory > efficient and doesn't leave a process hanging around (which mfs used > to). > > If that's no longer true, I'd love to hear it. It uses the md(4) driver in CURRENT. See the mdmfs(8) manpage. -- juli mallett. email: jmallett@freebsd.org; efnet: juli; From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 13:40:25 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19FB037B401 for ; Mon, 9 Jun 2003 13:40:25 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F93C43FA3 for ; Mon, 9 Jun 2003 13:40:20 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 9587572FDC; Mon, 9 Jun 2003 13:40:20 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 9445872FD1; Mon, 9 Jun 2003 13:40:20 -0700 (PDT) Date: Mon, 9 Jun 2003 13:40:20 -0700 (PDT) From: Doug White To: romero3000@romero3000.com In-Reply-To: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> Message-ID: <20030609133927.U30501@carver.gumbysoft.com> References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 20:40:25 -0000 On Mon, 9 Jun 2003 romero3000@romero3000.com wrote: > (sorry about cross-posting this question. not sure which list is better) > > I want to to know how to create a ram file system for /var and /tmp so > that i can boot from flash memory and mount those two file systems on > ramfs. I've looked for howto's online but haven't found anything. any > suggestions???? Did you find rc.diskless2, which sets all this up for you? This is a good description of how to use it (and set up other stuff for diskless/readonly media systems): http://neon1.net/misc/minibsd.html -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 21:09:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9118837B401 for ; Mon, 9 Jun 2003 21:09:32 -0700 (PDT) Received: from ariel.ucs.unimelb.edu.au (ariel.ucs.unimelb.edu.au [128.250.20.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BFCE43FA3 for ; Mon, 9 Jun 2003 21:09:31 -0700 (PDT) (envelope-from jrhoden@unimelb.edu.au) Received: from elkanah.its.unimelb.edu.au (elkanah.its.unimelb.edu.au [128.250.18.41])h5A49SfE027855; Tue, 10 Jun 2003 14:09:29 +1000 (EST) From: JacobRhoden Organization: University of Melbourne To: ferrex@impaled.org, freebsd-hackers@freebsd.org Date: Tue, 10 Jun 2003 14:09:28 +1000 User-Agent: KMail/1.5 References: <20030605155405.62cb3ac8.samy@kerneled.com> <1054931220.712.5.camel@timon.nist> <44927.217.231.252.223.1054950620.squirrel@webmail.impaled.org> In-Reply-To: <44927.217.231.252.223.1054950620.squirrel@webmail.impaled.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306101409.28450.jrhoden@unimelb.edu.au> Subject: Re: Multimedia Keyboard (extra keys) on console X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 04:09:32 -0000 On Sat, 7 Jun 2003 11:50 am, king ferrex wrote: > no it wont, thats the problem ;) as mr.rachinsky, i need to patch my kernel > and add the raw scancodes to produce keycodes, will do that later. > thanks for the help. I would very much like to be able to use the multimedia keys on my keyboard as well (has bugged me for a long time now.. that next/previous track keys for xmms are kind of nice in Windows). Could I please have the ported showkey as well (: (I am happy to do some kernel hacking / testing) if it means I can get my keyboard working properly. - jacob Jacob Rhoden Phone: +61 3 8344 6102 ITS Division Email: jrhoden@unimelb.edu.au Melbourne University Mobile: +61 403 788 386 From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 23:08:38 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A63FA37B401 for ; Mon, 9 Jun 2003 23:08:38 -0700 (PDT) Received: from abigail.blackend.org (blackend.org [212.11.35.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27CC343FA3 for ; Mon, 9 Jun 2003 23:08:37 -0700 (PDT) (envelope-from marc@blackend.org) Received: from nosferatu.blackend.org (nosferatu.blackend.org [192.168.10.205]) by abigail.blackend.org (8.12.3/8.12.3) with ESMTP id h5A68ZbS095487; Tue, 10 Jun 2003 08:08:35 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: from nosferatu.blackend.org (localhost [127.0.0.1]) h5A68UxE000609; Tue, 10 Jun 2003 08:08:31 +0200 (CEST) (envelope-from marc@nosferatu.blackend.org) Received: (from marc@localhost) by nosferatu.blackend.org (8.12.9/8.12.9/Submit) id h5A68Tru000608; Tue, 10 Jun 2003 08:08:29 +0200 (CEST) (envelope-from marc) Date: Tue, 10 Jun 2003 08:08:29 +0200 From: Marc Fonvieille To: romero3000@romero3000.com Message-ID: <20030610060829.GA564@nosferatu.blackend.org> References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> User-Agent: Mutt/1.4i X-Useless-Header: blackend.org X-Operating-System: FreeBSD 5.1-CURRENT cc: freebsd-hackers@freebsd.org Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 06:08:38 -0000 On Mon, Jun 09, 2003 at 01:16:26PM -0400, romero3000@romero3000.com wrote: > (sorry about cross-posting this question. not sure which list is better) > > I want to to know how to create a ram file system for /var and /tmp so > that i can boot from flash memory and mount those two file systems on > ramfs. I've looked for howto's online but haven't found anything. any > suggestions???? > The Handbook covers memory and file-backed file systems: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-virtual.html it could be a good point of entry for your problem. Marc From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 00:02:21 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05EF537B401 for ; Tue, 10 Jun 2003 00:02:21 -0700 (PDT) Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6458943FCB for ; Tue, 10 Jun 2003 00:02:20 -0700 (PDT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp id 19Pd99-0006JE-00 for freebsd-hackers@freebsd.org; Tue, 10 Jun 2003 10:02:19 +0300 X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 10 Jun 2003 10:02:19 +0300 From: Danny Braniss Message-Id: Subject: Is BSD a Linux operating system? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 07:02:21 -0000 http://www.linuxiso.org/ and now back to our local programming, danny From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 00:26:34 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B41F837B401 for ; Tue, 10 Jun 2003 00:26:34 -0700 (PDT) Received: from smtp.omnis.com (smtp.omnis.com [216.239.128.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5610943F3F for ; Tue, 10 Jun 2003 00:26:34 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.homeunix.net (66-91-236-204.san.rr.com [66.91.236.204]) by smtp-relay.omnis.com (Postfix) with ESMTP id 5D0B61B32C; Tue, 10 Jun 2003 00:26:33 -0700 (PDT) From: Wes Peters Organization: Softweyr To: Danny Braniss , freebsd-hackers@freebsd.org Date: Tue, 10 Jun 2003 00:26:31 -0700 User-Agent: KMail/1.5.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306100026.31656.wes@softweyr.com> Subject: Re: Is BSD a Linux operating system? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 07:26:35 -0000 On Tuesday 10 June 2003 12:02 am, Danny Braniss wrote: > http://www.linuxiso.org/ > > and now back to our local programming, > danny Don't get your undies in a bundle, it's really just a free advertising site. All of the downloads are links to existing mirror sites. I sent them a note about 5.1 and all the new architectures; let's see how responsive they are about updates. ;^) -- Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 02:24:57 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AB1637B401 for ; Tue, 10 Jun 2003 02:24:57 -0700 (PDT) Received: from vivaldi.meteo.fr (vivaldi.meteo.fr [137.129.28.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E93143F85 for ; Tue, 10 Jun 2003 02:24:21 -0700 (PDT) (envelope-from igor.pokrovsky@cnrm.meteo.fr) Received: from cti825.cnrm.meteo.fr (localhost.meteo.fr [127.0.0.1]) JAA03255 for ; Tue, 10 Jun 2003 09:23:32 GMT Received: from xdata.cnrm.meteo.fr (xdata.cnrm.meteo.fr [137.129.150.2]) LAA15659; Tue, 10 Jun 2003 11:21:57 +0200 (MESTDST) Received: from exmatis1.cnrm.meteo.fr (exmatis1.cnrm.meteo.fr [137.129.157.46]) by xdata.cnrm.meteo.fr with ESMTP (8.9.3 (PHNE_24419)/8.7.1) id LAA27799; Tue, 10 Jun 2003 11:18:15 +0200 (METDST) Received: from exmatis1.cnrm.meteo.fr (localhost [127.0.0.1]) h5A9G0EG007902; Tue, 10 Jun 2003 11:16:00 +0200 (CEST) (envelope-from pokrovsi@exmatis1.cnrm.meteo.fr) Received: (from pokrovsi@localhost) by exmatis1.cnrm.meteo.fr (8.12.9/8.12.9/Submit) id h5A9EeXl002695; Tue, 10 Jun 2003 11:14:40 +0200 (CEST) Date: Tue, 10 Jun 2003 11:14:40 +0200 From: Igor Pokrovsky To: JacobRhoden Message-ID: <20030610091439.GA4123@exmatis1.cnrm.meteo.fr> Mail-Followup-To: Igor Pokrovsky , JacobRhoden , ferrex@impaled.org, freebsd-hackers@freebsd.org References: <20030605155405.62cb3ac8.samy@kerneled.com> <1054931220.712.5.camel@timon.nist> <44927.217.231.252.223.1054950620.squirrel@webmail.impaled.org> <200306101409.28450.jrhoden@unimelb.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306101409.28450.jrhoden@unimelb.edu.au> User-Agent: Mutt/1.4.1i X-Accept-Language: ru X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (cti825/CNRM) Organization: METEO FRANCE(CNRM) cc: freebsd-hackers@freebsd.org cc: ferrex@impaled.org Subject: Re: Multimedia Keyboard (extra keys) on console X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Igor Pokrovsky List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 09:24:57 -0000 On Tue, Jun 10, 2003 at 02:09:28PM +1000, JacobRhoden wrote: > On Sat, 7 Jun 2003 11:50 am, king ferrex wrote: > > no it wont, thats the problem ;) as mr.rachinsky, i need to patch my kernel > > and add the raw scancodes to produce keycodes, will do that later. > > thanks for the help. > > I would very much like to be able to use the multimedia keys on my keyboard as > well (has bugged me for a long time now.. that next/previous track keys for > xmms are kind of nice in Windows). Could I please have the ported showkey as > well (: (I am happy to do some kernel hacking / testing) if it means I can > get my keyboard working properly. Maybe somebody will submit ported version of showkey to gnats in order to get committed as a port? -- Igor From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 04:27:14 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7912837B401 for ; Tue, 10 Jun 2003 04:27:14 -0700 (PDT) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E75EB43F3F for ; Tue, 10 Jun 2003 04:27:13 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38lc1ah.dialup.mindspring.com ([209.86.5.81] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19PhHT-0001zB-00; Tue, 10 Jun 2003 04:27:12 -0700 Message-ID: <3EE5BF3B.705B2E36@mindspring.com> Date: Tue, 10 Jun 2003 04:21:31 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Ted Faber References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> <20030609180452.GJ61917@pun.isi.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4bce87590781dcb974a28ab56eee93bb0350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: freebsd-hackers@freebsd.org cc: romero3000@romero3000.com Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 11:27:14 -0000 Ted Faber wrote: > On Mon, Jun 09, 2003 at 01:16:26PM -0400, romero3000@romero3000.com wrote: > > (sorry about cross-posting this question. not sure which list is better) > > > > I want to to know how to create a ram file system for /var and /tmp so > > that i can boot from flash memory and mount those two file systems on > > ramfs. I've looked for howto's online but haven't found anything. any > > suggestions???? > > On CURRENT: > > man vnconfig > man vn > > I mount a swap backed fs (which I what I suspect you want) with: I don't think he wants swap backing; I'm going to be that his system will have no swap, in order to avoid write cycles using up his flash... he probably just wants a small amount of volatile storage for /var/run, /var/log, and /tmp, with everything else mounted read-only to avoid the access timestamp updates. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 06:15:01 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46CBF37B401 for ; Tue, 10 Jun 2003 06:15:01 -0700 (PDT) Received: from x12.dk (xforce.dk [80.164.11.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9B8243FDD for ; Tue, 10 Jun 2003 06:14:59 -0700 (PDT) (envelope-from xride@x12.dk) Received: from x12.dk (xride@localhost [127.0.0.1]) by x12.dk (8.12.8/8.12.8) with ESMTP id h5A7H9em017679; Tue, 10 Jun 2003 09:17:10 +0200 (CEST) (envelope-from xride@x12.dk) Received: from localhost (xride@localhost) by x12.dk (8.12.8/8.12.8/Submit) with ESMTP id h5A7H90J017676; Tue, 10 Jun 2003 09:17:09 +0200 (CEST) Date: Tue, 10 Jun 2003 09:17:05 +0200 (CEST) From: Soeren Straarup To: Danny Braniss In-Reply-To: Message-ID: <20030610091621.M5432-100000@x12.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-hackers@freebsd.org Subject: Re: Is BSD a Linux operating system? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 13:15:01 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Take a look at this: ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/FreeBSD-current/src/share/misc/bsd-fam= ily-tree or /usr/share/misc/bsd-family-tree Best regards S=F8ren *----------------------------------------------------------------* | Soeren Straarup Mobile: +45 20 27 62 44 | | FreeBSD wannabe since 2.2.6-R http://xforce.dk | | Also running OpenBSD and NetBSD aka OZ2DAK aka Xride | *----------------------------------------------------------------* On Tue, 10 Jun 2003, Danny Braniss wrote: > > =09http://www.linuxiso.org/ > > and now back to our local programming, > =09danny > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+5YX1XTGeGCdlN14RAnj8AJ4n0Hw/O7CR2lamH6HweY7KKUjPDQCffIBL ZtPT7P2PnyNkbQ1EFNmTDwg=3D =3DzPIr -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 06:17:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 297D737B401 for ; Tue, 10 Jun 2003 06:17:35 -0700 (PDT) Received: from mx.vipnet.ro (cosmic.vipnet.ro [193.230.219.1]) by mx1.FreeBSD.org (Postfix) with SMTP id DDEF243FB1 for ; Tue, 10 Jun 2003 06:17:32 -0700 (PDT) (envelope-from vladg@vipnet.ro) Received: (qmail 35898 invoked from network); 10 Jun 2003 13:19:24 -0000 Received: from unknown (HELO rtfm.vipnet.ro) (193.230.219.12) by cosmic.vipnet.ro with SMTP; 10 Jun 2003 13:19:24 -0000 Date: Tue, 10 Jun 2003 16:16:47 +0300 From: Vlad GALU To: freebsd-hackers@freebsd.org Message-Id: <20030610161647.5dcae1cf.vladg@vipnet.ro> In-Reply-To: <20030610091621.M5432-100000@x12.dk> References: <20030610091621.M5432-100000@x12.dk> Organization: VipNET Bucharest X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.C?I,C6BfI4nz_w" Subject: Re: Is BSD a Linux operating system? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 13:17:35 -0000 --=.C?I,C6BfI4nz_w Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 10 Jun 2003 09:17:05 +0200 (CEST) Soeren Straarup wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 >=20 > Take a look at this: > ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/FreeBSD-current/src/share/misc/bsd-f= amily-tree > or > /usr/share/misc/bsd-family-tree >=20 > Best regards S=F8ren >=20 > *----------------------------------------------------------------* > | Soeren Straarup Mobile: +45 20 27 62 44 | > | FreeBSD wannabe since 2.2.6-R http://xforce.dk | > | Also running OpenBSD and NetBSD aka OZ2DAK aka Xride | > *----------------------------------------------------------------* >=20 > On Tue, 10 Jun 2003, Danny Braniss wrote: >=20 > > > > http://www.linuxiso.org/ > > > > and now back to our local programming, > > danny > > > > > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to > > "freebsd-hackers-unsubscribe@freebsd.org" > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (FreeBSD) >=20 > iD8DBQE+5YX1XTGeGCdlN14RAnj8AJ4n0Hw/O7CR2lamH6HweY7KKUjPDQCffIBL > ZtPT7P2PnyNkbQ1EFNmTDwg=3D > =3DzPIr > -----END PGP SIGNATURE----- >=20 >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" >=20 --=20 Vlad GALU - aka mira- :> Network Administrator VipNET Bucharest tel: 021/3039940 email: vladg@vipnet.ro web: http://www.vipnet.ro PGP: http://mirapoint.vipnet.ro/public_key.pgp --=.C?I,C6BfI4nz_w Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+5dpDBQlxy6GegvARAmM/AKCw8DzWK7Xi1ejhPBE8rS3m03vCBgCdH+rG oMUQ7Hd3eUnHpzePm8kQNK0= =l+/A -----END PGP SIGNATURE----- --=.C?I,C6BfI4nz_w-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 09:30:12 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E56B37B404 for ; Tue, 10 Jun 2003 09:30:12 -0700 (PDT) Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7E8043FE0 for ; Tue, 10 Jun 2003 09:30:11 -0700 (PDT) (envelope-from faber@ISI.EDU) Received: from pun.isi.edu (pun.isi.edu [128.9.160.150]) by boreas.isi.edu (8.11.6p2/8.11.2) with ESMTP id h5AGU9100701; Tue, 10 Jun 2003 09:30:09 -0700 (PDT) Received: from pun.isi.edu (localhost [127.0.0.1]) by pun.isi.edu (8.12.9/8.12.9) with ESMTP id h5AGU9eA069776; Tue, 10 Jun 2003 09:30:09 -0700 (PDT) (envelope-from faber@pun.isi.edu) Received: (from faber@localhost) by pun.isi.edu (8.12.9/8.12.9/Submit) id h5AGU8WG069775; Tue, 10 Jun 2003 09:30:08 -0700 (PDT) Date: Tue, 10 Jun 2003 09:30:08 -0700 From: Ted Faber To: Terry Lambert Message-ID: <20030610163007.GA69675@pun.isi.edu> References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> <20030609180452.GJ61917@pun.isi.edu> <3EE5BF3B.705B2E36@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: <3EE5BF3B.705B2E36@mindspring.com> User-Agent: Mutt/1.4.1i X-url: http://www.isi.edu/~faber cc: freebsd-hackers@freebsd.org cc: romero3000@romero3000.com Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 16:30:12 -0000 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jun 10, 2003 at 04:21:31AM -0700, Terry Lambert wrote: > Ted Faber wrote: > > I mount a swap backed fs (which I what I suspect you want) with: > > I don't think he wants swap backing; I'm going to be that > his system will have no swap, in order to avoid write > cycles using up his flash... he probably just wants a small > amount of volatile storage for /var/run, /var/log, and /tmp, > with everything else mounted read-only to avoid the access > timestamp updates. Yeah, I should have been more clear. The recipe I gave him didn't reserve any swap, and I don't think there's be any attempt to write to disk unless he filled memory. --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+5gePaUz3f+Zf+XsRAlvwAKD5vIqn4xAdhjniRbUvvZiOBa/hpQCbBR2V O1UhVjWvifhVl0Mw4Lb/kho= =fnbS -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 11:14:37 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49F7C37B404; Tue, 10 Jun 2003 11:14:37 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8972943FA3; Tue, 10 Jun 2003 11:14:33 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 31A7C3ABB47; Tue, 10 Jun 2003 20:16:38 +0200 (CEST) Date: Tue, 10 Jun 2003 20:16:38 +0200 From: Pawel Jakub Dawidek To: cerber-list@lists.sourceforge.net Message-ID: <20030610181638.GI443@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="wZdghQXYJzyo6AGC" Content-Disposition: inline X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-security@freebsd.org cc: freebsd-stable@freebsd.org cc: freebsd-hackers@freebsd.org Subject: CerbNG v1.0-RC2 is now avaliable! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 18:14:38 -0000 --wZdghQXYJzyo6AGC Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello! We are proudly announce that CerbNG-1.0 Release Candidate 2 is now avaliable. There are many changes from RC1 (many new functionalities, some bug fixes, new interesting policies, new regression tests and more). It seems that CerbNG is stable for now, so we hope that the next version is going to be final 1.0 series release. We count on feedback from FreeBSD community in founding bugs (if there are any:)), contributing new policies, comments (critism as well) and any help. We want to thank all people that helped us create better, more functional and stable CerbNG. As we all know motivation gives us strength for hard work and in the open-source world motivation is provided by interest and feedback from community. We hope that when 1.0-RELEASE is avaliable, we will be able to present RC1 of CerbNG for FreeBSD 5.x. CerbNG can be found at: http://cerber.sourceforge.net http://sourceforge.net/projects/cerber/ Release notes are at: http://cerber.sourceforge.net/CerbNG-1.0-RC2-RELNOTES.txt Always up to date (snapshot from HEAD) policies are avaliable at: http://cerber.sourceforge.net/policies/ We would also like to invite you to subscribe cerb mailing lists. Enjoy!! Pawel Jakub Dawidek, Slawek Zak. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --wZdghQXYJzyo6AGC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPuYghj/PhmMH/Mf1AQH/nwP9EOsgm1mN4EI2bBHBUUSetldD2i8fCLDv 4Qb8u6SuT+dY9RlbjCmqZ4QPCg+hRrSrW60XZp/t8b8zKACodRJjM5KAeF5zZRiS cVEthUPm4c00NSwaGFVG0fgXlS/w3KCKNWUgAke6JbbJ3oJMt0d4Px7jhQRkpmUz UfoOoep1E40= =/UZc -----END PGP SIGNATURE----- --wZdghQXYJzyo6AGC-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 12:54:11 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36C5A37B401; Tue, 10 Jun 2003 12:54:11 -0700 (PDT) Received: from server.soekris.com (dsl-sj-66-219-69-164.broadviewnet.net [66.219.69.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10F0343FA3; Tue, 10 Jun 2003 12:54:10 -0700 (PDT) (envelope-from soren@soekris.com) Received: from soekris.com (1.4.soekris.com [192.168.1.4] (may be forged)) by server.soekris.com (8.9.2/8.9.2) with ESMTP id MAA92755; Tue, 10 Jun 2003 12:54:14 -0700 (PDT) (envelope-from soren@soekris.com) Message-ID: <3EE63760.6040209@soekris.com> Date: Tue, 10 Jun 2003 12:54:08 -0700 From: Soren Kristensen Organization: Soekris Engineering User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en, da MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-small@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 19:54:11 -0000 Hi Everybody, I've been working like a madman on bringing up a new Geode SC1100 based embedded board, but are stalled right now, and need help for debugging with FreeBSD.... The hardware basically seems to be working just fine, and I can boot both MS-DOS and OpenBSD 2.9 from a CompactFlash. But I can't boot FreeBSD, and need to find out why, and I'm looking for somebody that can help me, as I'm just the hardware guy.... When booting freeBSD I get: Type '?' for a list of commands, 'help' for more detailed help. ok boot -v Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.4-RELEASE #1: Sun Jun 8 19:08:24 PDT 2003 soren@Server600.soekris.com:/usr/src/sys/compile/KERN_NSC Calibrating clock(s) ... TSC clock: 266667486 Hz, i8254 clock: 1193267 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method CPU: Cyrix GXm (266.65-MHz 586-class CPU) Origin = "CyrixInstead" Id = 0x540 DIR=0x81b7 Stepping=8 Revision=1 real memory = 134217728 (131072K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x003c1000 - 0x07ff7fff, 130248704 bytes (31799 pages) avail memory = 126984192 (124008K bytes) bios32: Found BIOS32 Service Directory header at 0xc00f0080 bios32: Entry = 0xf00c0 (c00f00c0) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xe1 Other BIOS signatures found: ACPI: 00000000 Preloaded elf kernel "kernel" at 0xc039b000. md0: Malloc disk Creating DISK md0 Math emulator present pci_open(1): mode 1 addr port (0x0cf8) is 0x800090d0 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=00011078) And there it just hangs forever.... Normally it would continue with: npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard . . . So it looks like it hangs between first PCI check probe and printing the NPX info. The question is, what hardware specific could there be that could hang ? It's probably PCI config or floating point related, I tried to follow the source, but couldn't really.... Some additional info: The PCI bus seems fine, I can netboot, but it then hangs the same place. Same with a 4.2-release and 4.8-release. Same with and without NSC VSA extension. Same with GENERIC kernel. I did some search on the net, and all info indicated that a stock FreeBSD should work, although a patch for the TSC counter is needed for optimal performance and a patch if you use the Video (which the SC1100 don't have). I have tried every single register in the SC1100 chip (And there are tons of them...) I also tried changed the chip ID from "Geode by NSC" to "CyrixInstead", but that just resulted in FreeBSD recognizing the CPU and providing a little better CPU information. More info on the hardware at: http://www.soekris.com/net4801.htm So I need: All qualified help pinpointing the problem. Or a kernel hacker that can come by Morgan Hill, CA and debug the FreeBSD kernel telling me exactly where and why it hangs. Once I know that, it's usually easy to fix. I'm prepared to pay for solving the problem, cash and/or net4801 hardware.... Regards, Soren From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 19:38:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BEAE37B404 for ; Tue, 10 Jun 2003 19:38:15 -0700 (PDT) Received: from smtp8.access.co.jp (smtp8.access.co.jp [157.78.36.253]) by mx1.FreeBSD.org (Postfix) with SMTP id D15A543FD7 for ; Tue, 10 Jun 2003 19:38:13 -0700 (PDT) (envelope-from iap_sraja@access.co.jp) Received: (qmail 11820 invoked from network); 11 Jun 2003 11:38:13 +0900 Received: from unknown (HELO smtp5.access.co.jp) (157.78.36.243) by 0 with SMTP; 11 Jun 2003 11:38:13 +0900 Received: (qmail 18251 invoked by alias); 11 Jun 2003 11:38:12 +0900 Received: (qmail 18229 invoked from network); 11 Jun 2003 11:38:12 +0900 Received: from unknown (HELO ADMIN) (157.78.69.163) by 0 with SMTP; 11 Jun 2003 11:38:12 +0900 MIME-Version: 1.0 Message-Id: <3EE69613.000387.01384@ADMIN.access.co.jp> Date: Wed, 11 Jun 2003 11:38:11 +0900 Content-Type: Multipart/related; type="multipart/alternative"; boundary="------------Boundary-00=_NZPAGE1L3SH3LVC00000" X-Mailer: IncrediMail 2001 (2001155.2001155) From: "Raja Saleru" X-FID: FLAVOR00-NONE-0000-0000-000000000000 X-FVER: 3.0 X-CNT: ; X-Priority: 3 To: "freebsd-small@freebsd.org" , "freebsd-hackers@freebsd.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: GDB - Query Section Offset X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 02:38:16 -0000 --------------Boundary-00=_NZPAGE1L3SH3LVC00000 Content-Type: Text/Plain; charset="shift_jis" Content-Transfer-Encoding: quoted-printable Hi, I have query related gdb and gdbserver communication.=0D =0D Query Section Offset(qOffset)=0D =0D This request sent by the gdb to determine what relocation, if any, the target applies to applications and data during the download process. =20 Target responds with the offsets it applies to the application`s .text, =20 data, .bss sections.=0D =0D Does this request supports in cross compiled gdbserver for sh-elf ?=0D =0D where this request is implemented in gdb ? which source file / function ?= =0D =0D Where the corresponding request is handled in gdbserver ? which source fi= le / function ?=0D =0D If the gdbserver doesn't returning the requested value... I can I implemented the same ?=0D Any example code if possible.=0D =0D Any more details regarding this will be usefull.=0D =0D Regards=0D Raja Saleru --------------Boundary-00=_NZPAGE1L3SH3LVC00000-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 01:52:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EF3237B411; Wed, 11 Jun 2003 01:52:32 -0700 (PDT) Received: from server.soekris.com (dsl-sj-66-219-69-164.broadviewnet.net [66.219.69.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AAD943F3F; Wed, 11 Jun 2003 01:52:31 -0700 (PDT) (envelope-from soren@soekris.com) Received: from soekris.com (1.4.soekris.com [192.168.1.4] (may be forged)) by server.soekris.com (8.9.2/8.9.2) with ESMTP id BAA00874; Wed, 11 Jun 2003 01:52:36 -0700 (PDT) (envelope-from soren@soekris.com) Message-ID: <3EE6EDCE.3040006@soekris.com> Date: Wed, 11 Jun 2003 01:52:30 -0700 From: Soren Kristensen Organization: Soekris Engineering User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en, da MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-small@freebsd.org References: <3EE63760.6040209@soekris.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 08:52:32 -0000 Hi Everybody, First, thanks to everybody offering tips and help. The good news is that the problem is solved. I couldn't wait, so I finally decided to learn a little FreeBSD kernel debugging. After reading lots of not very comprehensive man pages and other guides, I got a 4.4 kernel compiled with ddb and set up remote debugging over the 2nd serial port with gdb. Again, after reading even more on using gdb, I set a bunch of breakpoints a did a little tracing and got the problem localized to a PCI configuration problem, probably a undocumented hardware bug in the Geode SC1100 processor combined with not very smart PCI config code in FreeBSD. I have patched FreeBSD to boot on the net4801 board, more details after I know exactly what's the issue is. Lesson learned: Advanced FreeBSD documentation sucks if you're not a kernel hacker, but remote kernel debugging works great and are actually kinda fun.... Regards, Soren Kristensen From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 03:01:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27CFB37B407; Wed, 11 Jun 2003 03:01:48 -0700 (PDT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD3C943FE0; Wed, 11 Jun 2003 03:01:39 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from localhost (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.9/8.12.8) with ESMTP id h5BA1YDo024224; Wed, 11 Jun 2003 19:31:35 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Soren Kristensen Date: Wed, 11 Jun 2003 19:31:33 +0930 User-Agent: KMail/1.5 References: <3EE63760.6040209@soekris.com> <3EE6EDCE.3040006@soekris.com> In-Reply-To: <3EE6EDCE.3040006@soekris.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306111931.33833.doconnor@gsoft.com.au> X-Spam-Score: -1.2 () CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: freebsd-hackers@freebsd.org cc: freebsd-small@freebsd.org Subject: Re: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 10:01:48 -0000 On Wed, 11 Jun 2003 18:22, Soren Kristensen wrote: > Lesson learned: > > Advanced FreeBSD documentation sucks if you're not a kernel hacker, but > remote kernel debugging works great and are actually kinda fun.... Procedural things are more likely to be usefully documented in the handbook or FAQ (or The Complete FreeBSD), rather than a specific man page. They can be a bit stale though :( Serial GDB is very nice.. You can even do firewire debugging, but I guess you guys can't really use that :) (Firewire mini-PCI board? 8-) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 03:26:24 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E63537B401; Wed, 11 Jun 2003 03:26:24 -0700 (PDT) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A2B443F93; Wed, 11 Jun 2003 03:26:24 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38lc0s4.dialup.mindspring.com ([209.86.3.132] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19Q2nu-0002FN-00; Wed, 11 Jun 2003 03:26:07 -0700 Message-ID: <3EE702CD.F8BEB94B@mindspring.com> Date: Wed, 11 Jun 2003 03:22:05 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Daniel O'Connor References: <3EE63760.6040209@soekris.com> <3EE6EDCE.3040006@soekris.com> <200306111931.33833.doconnor@gsoft.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a42fb2a6bd6da68d16d99841493086556a350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: freebsd-small@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 10:26:24 -0000 Daniel O'Connor wrote: > Serial GDB is very nice.. You can even do firewire debugging, but I guess you > guys can't really use that :) > (Firewire mini-PCI board? 8-) Someone should port the network debugging from Darwin using the tiny IP stack from NetBSD. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 05:55:55 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A158837B407 for ; Wed, 11 Jun 2003 05:55:55 -0700 (PDT) Received: from deadfrog.net (deadfrog.net [206.183.9.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id B948C43FA3 for ; Wed, 11 Jun 2003 05:55:54 -0700 (PDT) (envelope-from ryan@deadfrog.net) Received: from [192.168.1.10] ([192.168.1.10]) by deadfrog.net (8.11.6/8.11.6) with ESMTP id h5BCttd25284 for ; Wed, 11 Jun 2003 08:55:55 -0400 From: Ryan Wilkins To: freebsd-hackers@freebsd.org Content-Type: text/plain Organization: Deadfrog Networking Systems Message-Id: <1055336153.3963.26.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 11 Jun 2003 08:55:53 -0400 Content-Transfer-Encoding: 7bit Subject: Policy Routing / NAT Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 12:55:56 -0000 Hello.. I'm setting up a TCP protocol testbed for testing various enhanced TCP stacks for use over high bandwidth, high latency links such as Satellite. Due to hardware limitations of the FreeBSD boxes we're using (1U rackmount), there are no expansion slots left for additional network cards. This forces me to have to run some traffic over one gateway and the rest of the traffic over another gateway, all through one ethernet. The problem I have is I need to change the source address of some packets based on destination address. I was able to accomplish this in Linux using Source NAT. I'm not real well versed in FreeBSD hence the reason I'm asking for any assistance here. Does anyone have an idea how to change the source address based on destination address? Thanks in advance for any help. Ryan Wilkins From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 06:00:42 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E31D537B401 for ; Wed, 11 Jun 2003 06:00:42 -0700 (PDT) Received: from mx.vipnet.ro (cosmic.vipnet.ro [193.230.219.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 5F85B43FB1 for ; Wed, 11 Jun 2003 06:00:38 -0700 (PDT) (envelope-from vladg@vipnet.ro) Received: (qmail 34204 invoked from network); 11 Jun 2003 13:02:21 -0000 Received: from unknown (HELO rtfm.vipnet.ro) (193.230.219.12) by cosmic.vipnet.ro with SMTP; 11 Jun 2003 13:02:21 -0000 Date: Wed, 11 Jun 2003 15:59:51 +0300 From: Vlad GALU To: freebsd-hackers@freebsd.org Message-Id: <20030611155951.1f434cdc.vladg@vipnet.ro> In-Reply-To: <1055336153.3963.26.camel@localhost.localdomain> References: <1055336153.3963.26.camel@localhost.localdomain> Organization: VipNET Bucharest X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=..LvzpF'v5igMy/" Subject: Re: Policy Routing / NAT Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 13:00:43 -0000 --=..LvzpF'v5igMy/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On 11 Jun 2003 08:55:53 -0400 Ryan Wilkins wrote: > Hello.. > > I'm setting up a TCP protocol testbed for testing various enhanced TCP > stacks for use over high bandwidth, high latency links such as > Satellite. Due to hardware limitations of the FreeBSD boxes we're > using(1U rackmount), there are no expansion slots left for additional > network cards. This forces me to have to run some traffic over one > gateway and the rest of the traffic over another gateway, all through > one ethernet. The problem I have is I need to change the source > address of some packets based on destination address. I was able to > accomplish this in Linux using Source NAT. I'm not real well versed > in FreeBSD hence the reason I'm asking for any assistance here. Does > anyone have an idea how to change the source address based on > destination address? > yes. in the ipnat configuration file you should write something like this: map from to -> one thing though ... I've noticed the kernel trying to send the packets on the default gateway, no matter what the was. So I used ipfw as well, for policy routing of nat'ed packets. I might have done something wrong as well, I really don't know, but searching the newsgroups archives I found no answer at all, and this seemed to be the only option. > Thanks in advance for any help. > > Ryan Wilkins > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > -- Vlad GALU Network Administrator VipNET Bucharest tel: 021/3039940 email: vladg@vipnet.ro web: http://www.vipnet.ro PGP: http://mirapoint.vipnet.ro/public_key.pgp --=..LvzpF'v5igMy/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+5yfLBQlxy6GegvARAq5AAJ9/IXTDPXNG/MzL2b8dVGj6UCkkkwCg0sTV kDWO0kUfMo1k2stSnZJWU+k= =u2fU -----END PGP SIGNATURE----- --=..LvzpF'v5igMy/-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 06:02:53 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C366137B401 for ; Wed, 11 Jun 2003 06:02:53 -0700 (PDT) Received: from foem.leiden.webweaving.org (fia224-72.dsl.hccnet.nl [62.251.72.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1530043FBD for ; Wed, 11 Jun 2003 06:02:50 -0700 (PDT) (envelope-from dirkx@webweaving.org) Received: from foem (IDENT:chuckwebweaving.org@foem [10.11.0.2]) h5BD2mv7098684; Wed, 11 Jun 2003 15:02:48 +0200 (CEST) (envelope-from dirkx@webweaving.org) Date: Wed, 11 Jun 2003 15:02:48 +0200 (CEST) From: Dirk-Willem van Gulik X-X-Sender: dirkx@foem To: Vlad GALU In-Reply-To: <20030611155951.1f434cdc.vladg@vipnet.ro> Message-ID: <20030611150155.G97836-100000@foem> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: Policy Routing / NAT Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 13:02:54 -0000 On Wed, 11 Jun 2003, Vlad GALU wrote: > > Satellite. Due to hardware limitations of the FreeBSD boxes we're > > using(1U rackmount), there are no expansion slots left for additional There are several 4, 6 and 8 port ethernet cards on the marked - which only take up one slot. I've also solved this issue in the past by using an expensive switch and a gigabit card to fan out to 100mbit/full-duplex. Dw From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 07:33:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2318D37B401; Wed, 11 Jun 2003 07:33:50 -0700 (PDT) Received: from revelstoke.panasas.com (gw2.panasas.com [65.194.124.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id D924F43FCB; Wed, 11 Jun 2003 07:33:48 -0700 (PDT) (envelope-from nlanza@premodern.org) Received: from revelstoke.panasas.com (localhost [127.0.0.1]) h5BEXl6i066561; Wed, 11 Jun 2003 10:33:47 -0400 (EDT) (envelope-from nlanza@premodern.org) Received: (from nlanza@localhost) by revelstoke.panasas.com (8.12.6/8.12.6/Submit) id h5BEXj4C066560; Wed, 11 Jun 2003 10:33:45 -0400 (EDT) X-Authentication-Warning: revelstoke.panasas.com: nlanza set sender to nlanza@premodern.org using -f From: Nat Lanza To: Terry Lambert In-Reply-To: <3EE702CD.F8BEB94B@mindspring.com> References: <3EE63760.6040209@soekris.com> <3EE6EDCE.3040006@soekris.com> <200306111931.33833.doconnor@gsoft.com.au> <3EE702CD.F8BEB94B@mindspring.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1055342024.66473.4.camel@revelstoke.panasas.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 11 Jun 2003 10:33:45 -0400 cc: freebsd-small@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 14:33:50 -0000 On Wed, 2003-06-11 at 06:22, Terry Lambert wrote: > Someone should port the network debugging from Darwin using > the tiny IP stack from NetBSD. Well, there's this: http://ipgdb.sourceforge.net/ > IPGDB is a collection of extensions to GDB and FreeBSD-4.3 > to allow two-machine kernel debugging over UDP. It behaves > much like two-machine kernel debugging over serial ports. > > These extensions can easily be applied to other releases of > FreeBSD. With a little bit of modification, these extension > can be applied to other BSD variants. It hasn't been updated in a while, but it's definitely a start. It works pretty well for 4.3, and I know it's been updated to work with 4.6 (though possibly not in the sourceforge distribution). --nat From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 08:55:38 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E88F37B401 for ; Wed, 11 Jun 2003 08:55:38 -0700 (PDT) Received: from ns.aus.com (adsl-63-196-7-152.dsl.snfc21.pacbell.net [63.196.7.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id A844A43FD7 for ; Wed, 11 Jun 2003 08:55:35 -0700 (PDT) (envelope-from rsharpe@richardsharpe.com) Received: from localhost (rsharpe@localhost) by ns.aus.com (8.11.6/8.11.6) with ESMTP id h5BG1B203699; Wed, 11 Jun 2003 09:01:11 -0700 X-Authentication-Warning: ns.aus.com: rsharpe owned process doing -bs Date: Wed, 11 Jun 2003 09:01:11 -0700 (PDT) From: Richard Sharpe X-X-Sender: To: Nat Lanza In-Reply-To: <1055342024.66473.4.camel@revelstoke.panasas.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: grog@lemis.org Subject: Re: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 15:55:38 -0000 On Wed, 11 Jun 2003, Nat Lanza wrote: > On Wed, 2003-06-11 at 06:22, Terry Lambert wrote: > > Someone should port the network debugging from Darwin using > > the tiny IP stack from NetBSD. > > Well, there's this: > > http://ipgdb.sourceforge.net/ > > > IPGDB is a collection of extensions to GDB and FreeBSD-4.3 > > to allow two-machine kernel debugging over UDP. It behaves > > much like two-machine kernel debugging over serial ports. > > > > These extensions can easily be applied to other releases of > > FreeBSD. With a little bit of modification, these extension > > can be applied to other BSD variants. > > It hasn't been updated in a while, but it's definitely a start. It works > pretty well for 4.3, and I know it's been updated to work with 4.6 > (though possibly not in the sourceforge distribution). I think that Groggy was working on this a while back. Regards ----- Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 10:20:30 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8506037B404 for ; Wed, 11 Jun 2003 10:20:30 -0700 (PDT) Received: from mout2.freenet.de (mout2.freenet.de [194.97.50.155]) by mx1.FreeBSD.org (Postfix) with ESMTP id B67FE43FBF for ; Wed, 11 Jun 2003 10:20:28 -0700 (PDT) (envelope-from ino-qc@spotteswoode.de.eu.org) Received: from [194.97.55.148] (helo=mx5.freenet.de) by mout2.freenet.de with asmtp (Exim 4.20) id 19Q9Gt-0001up-O8 for freebsd-hackers@freebsd.org; Wed, 11 Jun 2003 19:20:27 +0200 Received: from pd9501630.dip.t-dialin.net ([217.80.22.48] helo=spotteswoode.dnsalias.org) by mx5.freenet.de with asmtp (ID inode@freenet.de) (Exim 4.20 #1) id 19Q9Gt-0004gV-4Q for freebsd-hackers@freebsd.org; Wed, 11 Jun 2003 19:20:27 +0200 Received: (qmail 1480 invoked by uid 0); 11 Jun 2003 17:20:26 -0000 Date: 11 Jun 2003 19:20:26 +0200 Message-ID: From: "clemens fischer" To: cerber-list@lists.sourceforge.net In-Reply-To: <20030610181638.GI443@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Tue, 10 Jun 2003 20:16:38 +0200") References: <20030610181638.GI443@garage.freebsd.pl> User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-security@freebsd.org cc: freebsd-stable@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: [Cerb-list] CerbNG v1.0-RC2 is now avaliable! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 17:20:30 -0000 * Pawel Jakub Dawidek: > We are proudly announce that CerbNG-1.0 Release Candidate 2 is now > avaliable. congratulations! may i suggest to always include the CVS tag of any release announced here? i just tried to make(1) the CVS HEAD on my freebsd-4.8, but this failed the compilation. clemens From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 10:31:19 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12D3F37B401 for ; Wed, 11 Jun 2003 10:31:19 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id F281843FBF for ; Wed, 11 Jun 2003 10:31:16 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h5BHVEl00509 for ; Wed, 11 Jun 2003 14:31:14 -0300 Message-ID: <3EE76761.1030103@tcoip.com.br> Date: Wed, 11 Jun 2003 14:31:13 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4b) Gecko/20030606 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: hackers Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: build-tools and sed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 17:31:19 -0000 Shouldn't sed be part of the build tools? It's used in src//gnu/usr.bin/binutils/libbfd/Makefile, at the very least: targmatch.h: targmatch.sed config.bfd sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET} config.h: config.h.fbsd .if ${TARGET_ARCH} == "i386" sed -e 's,!!TRAD_HEADER!!,"hosts/i386bsd.h",g' ${.ALLSRC} > ${.TARGET} .else sed -e 's,!!TRAD_HEADER!!,,g' ${.ALLSRC} > ${.TARGET} .endif Which was rather annoying when I got caught in the sed bug. Updating sources did not fix the problem, because it kept using the install sed... -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net May the Fleas of a Thousand Camels infest one of your Erogenous Zones. From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 10:42:12 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B266837B401 for ; Wed, 11 Jun 2003 10:42:12 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36B7143FAF for ; Wed, 11 Jun 2003 10:42:12 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.9/8.12.3) with ESMTP id h5BHgAvN017907 for ; Wed, 11 Jun 2003 10:42:10 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.9/8.12.3/Submit) id h5BHg9lf017906 for hackers@freebsd.org; Wed, 11 Jun 2003 10:42:09 -0700 Date: Wed, 11 Jun 2003 10:42:09 -0700 From: Brooks Davis To: hackers@freebsd.org Message-ID: <20030611174209.GA16302@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Subject: remote gdb through terminal server? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 17:42:13 -0000 --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Does anyone know if it's possiable to run remote GDB through a terminal server? Connections to the terminal server are via SSH to portslave. I've got some boxes I upgraded fom 4.6-STABLE to 4.8-STABLE which now reliably crash under heavy FS load that I'm trying to debug and my easiest acess is via the terminal server. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --M9NhX3UHpAaciwkO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+52nnXY6L6fI4GtQRAp8uAKC8ISsB6xNjol4a4z7Q2Y65VHbaPgCfXX95 ZVbpM+0m4PtBW1VMtFxTA00= =XD4c -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 11:01:31 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85E3337B401; Wed, 11 Jun 2003 11:01:31 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6D3343F93; Wed, 11 Jun 2003 11:01:27 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h5BI1MmV016190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Jun 2003 21:01:22 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h5BI1MQP016185; Wed, 11 Jun 2003 21:01:22 +0300 (EEST) (envelope-from ru) Date: Wed, 11 Jun 2003 21:01:22 +0300 From: Ruslan Ermilov To: "Daniel C. Sobral" Message-ID: <20030611180122.GC14100@sunbay.com> References: <3EE76761.1030103@tcoip.com.br> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1sNVjLsmu1MXqwQ/" Content-Disposition: inline In-Reply-To: <3EE76761.1030103@tcoip.com.br> User-Agent: Mutt/1.5.4i cc: Tony Finch cc: hackers Subject: Re: build-tools and sed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 18:01:31 -0000 --1sNVjLsmu1MXqwQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 11, 2003 at 02:31:13PM -0300, Daniel C. Sobral wrote: > Shouldn't sed be part of the build tools? >=20 No. build-tools are a different beastie; they are the tools that are only built during buildworld to "build" something else. sed(1) isn't such a tool. Yes, it can be put under the bootstrap-tools if there's some backward incompatibility it in, but there's just no reason to do it right now. Please see below for a further explanation. > It's used in src//gnu/usr.bin/binutils/libbfd/Makefile, at the very least: >=20 > targmatch.h: targmatch.sed config.bfd > sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET} >=20 > config.h: config.h.fbsd > .if ${TARGET_ARCH} =3D=3D "i386" > sed -e 's,!!TRAD_HEADER!!,"hosts/i386bsd.h",g' ${.ALLSRC} >=20 > ${.TARGET} > .else > sed -e 's,!!TRAD_HEADER!!,,g' ${.ALLSRC} > ${.TARGET} > .endif >=20 >=20 > Which was rather annoying when I got caught in the sed bug. Updating=20 > sources did not fix the problem, because it kept using the install sed... >=20 I asked for an UPDATING entry when I saw this bug for the first time, and got a positive reply saying this was a good idea, but this never actually happened, and this is now the third report I have heard. In short: if your build environment is broken, the chances are low you will be able to build your world. E.g., if you do not have /usr/include you cannot win. Similarly, when your gcc(1) is broken (for example), you won't be able to build world too. We depend on a good shape of the build environment, and if it breaks, we put this sort of info into UPDATING. When we create a backward incompatibility, this is completely another case, and we put stuff either in bootstrap-tools or cross-tools, depending on their nature. (cross-tools are similar to bootstrap-tools except for also directly depending on the value of TARGET_ARCH/TARGET.) Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --1sNVjLsmu1MXqwQ/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+525yUkv4P6juNwoRAnKHAJsHX24fVGyiNEBp9B71OVQKfVc68wCdGmBs sAf8CMxuH0m+/RE83xgaMXw= =BWHa -----END PGP SIGNATURE----- --1sNVjLsmu1MXqwQ/-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 11:09:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8405037B401; Wed, 11 Jun 2003 11:09:56 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDBF743FBD; Wed, 11 Jun 2003 11:09:53 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h5BI9ql02913; Wed, 11 Jun 2003 15:09:52 -0300 Message-ID: <3EE77070.7000604@tcoip.com.br> Date: Wed, 11 Jun 2003 15:09:52 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4b) Gecko/20030606 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Ruslan Ermilov References: <3EE76761.1030103@tcoip.com.br> <20030611180122.GC14100@sunbay.com> In-Reply-To: <20030611180122.GC14100@sunbay.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Tony Finch cc: hackers Subject: Re: build-tools and sed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 18:09:56 -0000 Thanks for the clarificaton. Ruslan Ermilov wrote: > On Wed, Jun 11, 2003 at 02:31:13PM -0300, Daniel C. Sobral wrote: > >>Shouldn't sed be part of the build tools? >> > > No. build-tools are a different beastie; they are the tools > that are only built during buildworld to "build" something > else. sed(1) isn't such a tool. Yes, it can be put under > the bootstrap-tools if there's some backward incompatibility > it in, but there's just no reason to do it right now. Please > see below for a further explanation. > > >>It's used in src//gnu/usr.bin/binutils/libbfd/Makefile, at the very least: >> >>targmatch.h: targmatch.sed config.bfd >> sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET} >> >>config.h: config.h.fbsd >>.if ${TARGET_ARCH} == "i386" >> sed -e 's,!!TRAD_HEADER!!,"hosts/i386bsd.h",g' ${.ALLSRC} > >>${.TARGET} >>.else >> sed -e 's,!!TRAD_HEADER!!,,g' ${.ALLSRC} > ${.TARGET} >>.endif >> >> >>Which was rather annoying when I got caught in the sed bug. Updating >>sources did not fix the problem, because it kept using the install sed... >> > > I asked for an UPDATING entry when I saw this bug for the first > time, and got a positive reply saying this was a good idea, but > this never actually happened, and this is now the third report I > have heard. > > In short: if your build environment is broken, the chances are > low you will be able to build your world. E.g., if you do not > have /usr/include you cannot win. Similarly, when your gcc(1) > is broken (for example), you won't be able to build world too. > We depend on a good shape of the build environment, and if it > breaks, we put this sort of info into UPDATING. > > When we create a backward incompatibility, this is completely > another case, and we put stuff either in bootstrap-tools or > cross-tools, depending on their nature. (cross-tools are similar > to bootstrap-tools except for also directly depending on the > value of TARGET_ARCH/TARGET.) > > > Cheers, -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net Life is a whim of several billion cells to be you for a while. From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 11:15:54 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 025CC37B404 for ; Wed, 11 Jun 2003 11:15:54 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70AF843FBD for ; Wed, 11 Jun 2003 11:15:50 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h5BIFUmV017517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Jun 2003 21:15:30 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h5BIFTGj017512; Wed, 11 Jun 2003 21:15:29 +0300 (EEST) (envelope-from ru) Date: Wed, 11 Jun 2003 21:15:29 +0300 From: Ruslan Ermilov To: Ryan Wilkins Message-ID: <20030611181529.GD14100@sunbay.com> References: <1055336153.3963.26.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EXKGNeO8l0xGFBjy" Content-Disposition: inline In-Reply-To: <1055336153.3963.26.camel@localhost.localdomain> User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: Policy Routing / NAT Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 18:15:54 -0000 --EXKGNeO8l0xGFBjy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 11, 2003 at 08:55:53AM -0400, Ryan Wilkins wrote: > Hello.. >=20 > I'm setting up a TCP protocol testbed for testing various enhanced TCP > stacks for use over high bandwidth, high latency links such as > Satellite. Due to hardware limitations of the FreeBSD boxes we're using > (1U rackmount), there are no expansion slots left for additional network > cards. This forces me to have to run some traffic over one gateway and > the rest of the traffic over another gateway, all through one ethernet.= =20 > The problem I have is I need to change the source address of some > packets based on destination address. I was able to accomplish this in > Linux using Source NAT. I'm not real well versed in FreeBSD hence the > reason I'm asking for any assistance here. Does anyone have an idea how > to change the source address based on destination address? >=20 If all of these possible source addresses belong to the same interface of the box in question (it's unclear from your message), this can be done with route(8). For example: # ifconfig rl0 inet rl0: flags=3D8843 mtu 1500 inet 192.168.4.115 netmask 0xffffff00 broadcast 192.168.4.255 inet 10.0.0.1 netmask 0xff000000 broadcast 10.255.255.255 inet 10.0.0.2 netmask 0xffffffff broadcast 10.0.0.2 # route add -net 11 10.0.0.3 add net 11: gateway 10.0.0.3 # route add -net 12 -ifa 10.0.0.2 10.0.0.4 add net 12: gateway 10.0.0.4 The route to the network 12 says to use 10.0.0.2 as the source address when sending anonymous (with unfilled source address) datagrams. But if you need to change the traffic originated from other hosts on your box, there are several NAT solutions for you. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --EXKGNeO8l0xGFBjy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+53HBUkv4P6juNwoRAgB9AJ9EjaUds/k7vcSjDhJDEKa2IDLQ0wCfQQiY UM0DBNXNzSBDQC+EuIaTAPg= =eiuM -----END PGP SIGNATURE----- --EXKGNeO8l0xGFBjy-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 11:19:09 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7458737B405; Wed, 11 Jun 2003 11:19:09 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8EDC43FAF; Wed, 11 Jun 2003 11:19:07 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 758E63ABB51; Wed, 11 Jun 2003 20:21:19 +0200 (CEST) Date: Wed, 11 Jun 2003 20:21:19 +0200 From: Pawel Jakub Dawidek To: cerber-list@lists.sourceforge.net Message-ID: <20030611182119.GR443@garage.freebsd.pl> References: <20030610181638.GI443@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="uLzYCuFow5JXEQYy" Content-Disposition: inline In-Reply-To: X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-security@freebsd.org cc: freebsd-stable@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: [Cerb-list] CerbNG v1.0-RC2 is now avaliable! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 18:19:10 -0000 --uLzYCuFow5JXEQYy Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 11, 2003 at 07:20:26PM +0200, clemens fischer wrote: +> > We are proudly announce that CerbNG-1.0 Release Candidate 2 is now +> > avaliable. +>=20 +> congratulations! may i suggest to always include the CVS tag of any +> release announced here? i just tried to make(1) the CVS HEAD on my +> freebsd-4.8, but this failed the compilation. Could you please send any compilation output on cerb mailing list? Maybe it's just because cerb releases don't needed bison and source from CVS head branch does. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --uLzYCuFow5JXEQYy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPudzHz/PhmMH/Mf1AQFg2QP+N8wZQxZMqTaRUnULwmANh1mbjWn00T3g U5pV2mGgXDxh28aTmxcGbE4PCPFw2VXW4Yu0+N8mnGHomQCrYdsE1ZkBXm4DBCpI MRi9RN9xtuBCheG8Vr8CYCS3oa+CRgoEMzG7fzVsl1qMksOxl3XllmVTa/I2Vpsz 6Uq5ACfAEgQ= =C4dZ -----END PGP SIGNATURE----- --uLzYCuFow5JXEQYy-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 11:37:43 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E52137B401 for ; Wed, 11 Jun 2003 11:37:43 -0700 (PDT) Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CB8843FE0 for ; Wed, 11 Jun 2003 11:37:42 -0700 (PDT) (envelope-from kmacy@netapp.com) Received: from frejya.corp.netapp.com (frejya [10.10.20.91]) h5BIbfJo018697; Wed, 11 Jun 2003 11:37:42 -0700 (PDT) Received: from cranford-fe.eng.netapp.com (cranford-fe.eng.netapp.com [10.56.10.106])h5BIbftf020113; Wed, 11 Jun 2003 11:37:41 -0700 (PDT) Received: from localhost (kmacy@localhost)h5BIbeJ15725; Wed, 11 Jun 2003 11:37:41 -0700 (PDT) Date: Wed, 11 Jun 2003 11:37:40 -0700 (PDT) From: Kip Macy To: Brooks Davis In-Reply-To: <20030611174209.GA16302@Odin.AC.HMC.Edu> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/Mixed; MICALG=pgp-sha1; PROTOCOL="application/pgp-signature"; BOUNDARY=M9NhX3UHpAaciwkO Content-ID: Content-Disposition: INLINE cc: hackers@freebsd.org Subject: Re: remote gdb through terminal server? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 18:37:43 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --M9NhX3UHpAaciwkO Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Content-Disposition: INLINE The filers here are all debugged through terminal servers using gdb on the client and a gdb stub on the server. So if it doesn't work it is likely due to your setup or a bug in FreeBSD's gdb stub. -Kip On Wed, 11 Jun 2003, Brooks Davis wrote: > Does anyone know if it's possiable to run remote GDB through a terminal > server? Connections to the terminal server are via SSH to portslave. > I've got some boxes I upgraded fom 4.6-STABLE to 4.8-STABLE which now > reliably crash under heavy FS load that I'm trying to debug and my > easiest acess is via the terminal server. > > -- Brooks > > -- > Any statement of the form "X is the one, true Y" is FALSE. > PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 > --M9NhX3UHpAaciwkO Content-Type: APPLICATION/PGP-SIGNATURE; CHARSET=US-ASCII Content-ID: Content-Description: Content-Disposition: INLINE -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+52nnXY6L6fI4GtQRAp8uAKC8ISsB6xNjol4a4z7Q2Y65VHbaPgCfXX95 ZVbpM+0m4PtBW1VMtFxTA00= =XD4c -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 12:45:37 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 994BF37B40B for ; Wed, 11 Jun 2003 12:45:37 -0700 (PDT) Received: from mout2.freenet.de (mout2.freenet.de [194.97.50.155]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFBB443F93 for ; Wed, 11 Jun 2003 12:45:35 -0700 (PDT) (envelope-from ino-qc@spotteswoode.de.eu.org) Received: from [194.97.50.136] (helo=mx3.freenet.de) by mout2.freenet.de with asmtp (Exim 4.20) id 19QBXL-00070q-09 for freebsd-hackers@freebsd.org; Wed, 11 Jun 2003 21:45:35 +0200 Received: from pd9501630.dip.t-dialin.net ([217.80.22.48] helo=spotteswoode.dnsalias.org) by mx3.freenet.de with asmtp (ID inode@freenet.de) (Exim 4.20 #1) id 19QBXK-0003eI-EE for freebsd-hackers@freebsd.org; Wed, 11 Jun 2003 21:45:34 +0200 Received: (qmail 2643 invoked by uid 0); 11 Jun 2003 19:45:33 -0000 Date: 11 Jun 2003 21:45:33 +0200 Message-ID: <65nc8kki.fsf@ID-23066.news.dfncis.de> From: "clemens fischer" To: cerber-list@lists.sourceforge.net In-Reply-To: <20030611182119.GR443@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Wed, 11 Jun 2003 20:21:19 +0200") References: <20030610181638.GI443@garage.freebsd.pl> <20030611182119.GR443@garage.freebsd.pl> User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-security@freebsd.org cc: freebsd-stable@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: [Cerb-list] CerbNG v1.0-RC2 is now avaliable! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 19:45:38 -0000 * Pawel Jakub Dawidek: > On Wed, Jun 11, 2003 at 07:20:26PM +0200, clemens fischer wrote: > +> > We are proudly announce that CerbNG-1.0 Release Candidate 2 is now > +> > avaliable. > +> > +> congratulations! may i suggest to always include the CVS tag of any > +> release announced here? i just tried to make(1) the CVS HEAD on my > +> freebsd-4.8, but this failed the compilation. > > Could you please send any compilation output on cerb mailing list? > Maybe it's just because cerb releases don't needed bison and source > from CVS head branch does. (i have bison installed) this is what i did: 1509 cvs up -A 1510 make clean all install ===> ucerb cc -O -pipe -g -Wall -Wno-unused -I. -I/www/src/cerb-ng/ucerb/../kcerb -c -o clang2.o clang2.c In file included from clang2.y:21: libtree.h:5: y.tab.h: No such file or directory In file included from clang2.y:21: libtree.h:8: syntax error before `int' libtree.h:9: syntax error before `int' libtree.h:10: syntax error before `expr_list' libtree.h:11: syntax error before `char' libtree.h:12: syntax error before `int' libtree.h:13: syntax error before `int' libtree.h:14: syntax error before `char' libtree.h:15: syntax error before `expr' libtree.h:16: syntax error before `char' libtree.h:17: syntax error before `char' libtree.h:18: syntax error before `char' libtree.h:19: syntax error before `expr' *** Error code 1 Stop in /www/src/cerb-ng/ucerb. *** Error code 1 Stop in /www/src/cerb-ng. clemens From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 14:22:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D94437B401 for ; Wed, 11 Jun 2003 14:22:05 -0700 (PDT) Received: from deadfrog.net (deadfrog.net [206.183.9.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id C660E43FA3 for ; Wed, 11 Jun 2003 14:22:03 -0700 (PDT) (envelope-from ryan@deadfrog.net) Received: from [192.168.1.10] ([192.168.1.10]) by deadfrog.net (8.11.6/8.11.6) with ESMTP id h5BLM3d26583 for ; Wed, 11 Jun 2003 17:22:03 -0400 From: Ryan Wilkins To: freebsd-hackers@freebsd.org In-Reply-To: <20030611181529.GD14100@sunbay.com> References: <1055336153.3963.26.camel@localhost.localdomain> <20030611181529.GD14100@sunbay.com> Content-Type: text/plain Organization: Deadfrog Networking Systems Message-Id: <1055366522.1169.22.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 11 Jun 2003 17:22:03 -0400 Content-Transfer-Encoding: 7bit Subject: Re: Policy Routing / NAT Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 21:22:05 -0000 Hi.. thanks for your response.. it did exactly what I needed. I tried some of the other solutions provided earlier in the day and ended up locking up a machine 340 miles away from here which is a good 6-7 hour drive from where I am currently. Thanks again, Ryan Wilkins On Wed, 2003-06-11 at 14:15, Ruslan Ermilov wrote: > On Wed, Jun 11, 2003 at 08:55:53AM -0400, Ryan Wilkins wrote: > > Hello.. > > > > I'm setting up a TCP protocol testbed for testing various enhanced TCP > > stacks for use over high bandwidth, high latency links such as > > Satellite. Due to hardware limitations of the FreeBSD boxes we're using > > (1U rackmount), there are no expansion slots left for additional network > > cards. This forces me to have to run some traffic over one gateway and > > the rest of the traffic over another gateway, all through one ethernet. > > The problem I have is I need to change the source address of some > > packets based on destination address. I was able to accomplish this in > > Linux using Source NAT. I'm not real well versed in FreeBSD hence the > > reason I'm asking for any assistance here. Does anyone have an idea how > > to change the source address based on destination address? > > > If all of these possible source addresses belong to the same interface of > the box in question (it's unclear from your message), this can be done > with route(8). For example: > > # ifconfig rl0 inet > rl0: flags=8843 mtu 1500 > inet 192.168.4.115 netmask 0xffffff00 broadcast 192.168.4.255 > inet 10.0.0.1 netmask 0xff000000 broadcast 10.255.255.255 > inet 10.0.0.2 netmask 0xffffffff broadcast 10.0.0.2 > # route add -net 11 10.0.0.3 > add net 11: gateway 10.0.0.3 > # route add -net 12 -ifa 10.0.0.2 10.0.0.4 > add net 12: gateway 10.0.0.4 > > The route to the network 12 says to use 10.0.0.2 as the source > address when sending anonymous (with unfilled source address) > datagrams. > > But if you need to change the traffic originated from other > hosts on your box, there are several NAT solutions for you. > > > Cheers, -- Ryan Wilkins Deadfrog Networking Systems From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 01:24:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E87337B401 for ; Thu, 12 Jun 2003 01:24:43 -0700 (PDT) Received: from mail.bellavista.cz (mail.bellavista.cz [213.235.167.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57BCA43FDD for ; Thu, 12 Jun 2003 01:24:42 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: from freepuppy.bellavista.cz (freepuppy.bellavista.cz [10.0.0.10]) by mail.bellavista.cz (Postfix) with ESMTP id 7145F45E for ; Thu, 12 Jun 2003 10:24:40 +0200 (CEST) Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id 480412FDAB2; Thu, 12 Jun 2003 10:24:40 +0200 (CEST) Date: Thu, 12 Jun 2003 10:24:40 +0200 From: Roman Neuhauser To: freebsd-hackers Message-ID: <20030612082440.GK381@freepuppy.bellavista.cz> Mail-Followup-To: freebsd-hackers References: <20030425184400.GS13541@freepuppy.bellavista.cz> <20030426115336.GF761@straylight.oblivion.bg> <20030427124812.GU13541@freepuppy.bellavista.cz> <20030429103404.GA680@straylight.oblivion.bg> <20030429130143.GK13541@freepuppy.bellavista.cz> <20030516123001.GD2047@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030516123001.GD2047@sunbay.com> User-Agent: Mutt/1.5.1i Subject: Re: make: variable expansion in .for/.endfor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 08:24:44 -0000 # ru@freebsd.org / 2003-05-16 15:30:01 +0300: > > > On Sun, Apr 27, 2003 at 02:48:12PM +0200, Roman Neuhauser wrote: > > > > # roam@ringlet.net / 2003-04-26 14:53:36 +0300: > > > > > On Fri, Apr 25, 2003 at 08:44:00PM +0200, Roman Neuhauser wrote: > > > > > > Try the following makefile: it works if called with -DONE, but does not > > > > > > if called with -DTWO. Should I treat it as a bug and file a PR? > > > > > > > > > > > > LIST= foo bar baz > > > > > > > > > > > > .if defined(ONE) > > > > > > . for v in ${LIST} > > > > > > . if !defined(WITHOUT_${v:U}) > > > > > > WITH_${v:U}=yes > > > > > > . endif > > > > > > . endfor > > > > > > .endif > > > > > > > > > > > > .if defined(TWO) > > > > > > . for v in ${LIST} > > > > > > V=${v:U} > > > > > > . if !defined(WITHOUT_${V}) > > > > > > WITH_${V}=yes > > > > > > . endif > > > > > > . endfor > > > > > > .endif > > > > > > > > > > > > a: > > > > > > @echo \$${WITH_FOO}: ${WITH_FOO} > > > > > > @echo \$${WITH_BAR}: ${WITH_BAR} > > > > > > @echo \$${WITH_BAZ}: ${WITH_BAZ} > > > > > > > > > > > > .PHONY: a > > > > > > > > > > I think this is a known bug, and it seems to even be documented > > > > > in the BUGS section of -STABLE's make(1) manual page. > > > > > > > > I don't think this is covered. Can you point out the relevant text? > Yes, BUGS section talks about a different problem (...) > FWIW, the code snippet above works perfectly under 5.x make(1). > I recall this problem was fixed (perhaps, it was even me, not > sure). Sorry, but I don't have enough time to invest into > backporting the bugfix into RELENG_4, the latter is becoming > less priority for me as 5.x evolves. > > If you'll be able to extract it from HEAD (there is a huge > backlog of non-backported fixes for make(1) there), I will > happily commit it for you. > > $ uname -r > 5.1-BETA > $ make -DONE > ${WITH_FOO}: yes > ${WITH_BAR}: yes > ${WITH_BAZ}: yes > $ make -DTWO > ${WITH_FOO}: yes > ${WITH_BAR}: yes > ${WITH_BAZ}: yes I've spent two hours in cvsweb but haven't noticed a commit message that would indicate a relation to this problem, and the source code is obviously over my head. But it looks like the problem is in the order of processing loops, and applying modifiers... or something: roman@freepuppy ~ 1024:0 > cat tmp/scratch4 LIST= foo bar baz .for v in ${LIST} V= ${v:U} V_${v}= ${V} v_${v}= ${v} .endfor all: .for v in ${LIST} @echo \$${V_${v}}: ${V_${v}} .endfor .for v in ${LIST} @echo \$${v_${v}}: ${v_${v}} .endfor .PHONY: all roman@freepuppy ~ 1025:0 > make -f tmp/scratch4 ${V_foo}: BAZ ${V_bar}: BAZ ${V_baz}: BAZ ${v_foo}: foo ${v_bar}: bar ${v_baz}: baz roman@freepuppy ~ 1026:0 > uname -a FreeBSD freepuppy.bellavista.cz 4.8-STABLE FreeBSD 4.8-STABLE #2: Thu Jun 5 12:57:47 CEST 2003 root@freepuppy.bellavista.cz:/usr/obj/usr/src/sys/FREEPUPPY2_5 i386 Does this help identifying the responsible code? I'd really like to continue using 4.x for some time, and this bitrot in make is quite unfortunate for me. -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 02:25:04 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6013E37B401 for ; Thu, 12 Jun 2003 02:25:04 -0700 (PDT) Received: from web8203.mail.in.yahoo.com (web8203.mail.in.yahoo.com [203.199.70.117]) by mx1.FreeBSD.org (Postfix) with SMTP id 29A2A43FCB for ; Thu, 12 Jun 2003 02:25:02 -0700 (PDT) (envelope-from jaya_bhat100@yahoo.co.in) Message-ID: <20030612092500.76180.qmail@web8203.mail.in.yahoo.com> Received: from [203.200.17.158] by web8203.mail.in.yahoo.com via HTTP; Thu, 12 Jun 2003 10:25:00 BST Date: Thu, 12 Jun 2003 10:25:00 +0100 (BST) From: =?iso-8859-1?q?Jayasheela=20Bhat?= To: Valentin Nechayev In-Reply-To: <20030531073933.GB5288@iv.nn.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-hackers@freebsd.org Subject: Re: kqueue/kevent support in scsi device drivers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 09:25:04 -0000 yeah, I would like to implement it in scsi_target driver. I am using scsi HBA in target to emulate as a sequential device. My userland application needs to be notified of some events taking place in scsi_target driver. Could you pls suggest me the best approach for this?? Thanks, Jaya Valentin Nechayev wrote: Fri, May 30, 2003 at 12:14:50, jaya_bhat100 (Jayasheela Bhat) wrote about "kqueue/kevent support in scsi device drivers": JB> At present, kevent is supported for vnode, fifos, pipes and sockets, I believe. JB> I would like to use kevent notification in scsi devices. But the drivers scsi_xx.c do not support it. Whether I can implement it in scsi device driver using KNOTE? JB> I was going through tty.c where KNOTE is used. struct 'tty' has the support for it. The same is not available in struct 'disk'. JB> Could anyone tell me whether it is possible to implement it and how?? What is the aim to do it? tty, sockets, pipes, fifos are sequential devices with data pushing to it. Disks are random access devices, this is the main reason why disk/filesystem read() can't be nonblocking by itself: there are two different operations in them - 1) process says to kernel what it want read, 2) kernel returns data. (And similarly for write().) To read from random access devices, AIO API was created (aio_read(), aio_write(), etc.), and it doesn't require your explicit KNOTE adding: it already supports EVFILT_AIO and SIGEV_KEVENT. If you can access something at SCSI subsystem as sequential device, let you go. But, it's better to implement KNOTE in driver of this device itself, not common SCSI layer, which is too complicated to allow it. -netch- Catch all the cricket action. Download Yahoo! Score tracker From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 04:14:57 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A1E937B408 for ; Thu, 12 Jun 2003 04:14:57 -0700 (PDT) Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F53543F3F for ; Thu, 12 Jun 2003 04:14:55 -0700 (PDT) (envelope-from alsbergt@cs.huji.ac.il) Received: from lurch.cs.huji.ac.il ([132.65.80.139] ident=exim) by cs.huji.ac.il with esmtp id 19QQ2g-0008ko-00 for freebsd-hackers@freebsd.org; Thu, 12 Jun 2003 14:14:54 +0300 Received: from alsbergt by lurch.cs.huji.ac.il with local (Exim 4.12) id 19QQ2g-00061C-00 for freebsd-hackers@freebsd.org; Thu, 12 Jun 2003 14:14:54 +0300 Date: Thu, 12 Jun 2003 14:14:53 +0300 From: Tom Alsberg To: FreeBSD Hackers List Message-ID: <20030612111453.GA23053@cs.huji.ac.il> Mail-Followup-To: Tom Alsberg , FreeBSD Hackers List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Face: "5"j@Y1Peoz1; ftTv>\|['ox-csmV+:_RDNdi/2lSe2x?0:HVAeVW~ajwQ7RfDlcb^18eJ; t,O,s5-aNdU/DJ2E8h1s,..4}N9$27u`pWmH|; s!zlqqVwr9R^_ji=1\3}Z6gQBYyQ]{gd5-V8s^fYf{$V2*_&S>eA|SH@Y\hOVUjd[5eah{EO@gCr.ydSpJHJIU[QsH~bC?$C@O:SzF=CaUxp80-iknM(]q(W List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 11:14:57 -0000 Having got a new machine here a few days ago, an Intel ICH D865 PERL board based Pentium IV machine, with an on-board Intel EtherExpress Pro 100 VE, it failed to detect the network adapter. Seeing that it is an EtherExpress Pro 100, I though the fxp module should work with it, and found out that the PCI ID (8086:1050) just isn't recognized as one (new chip or something, apparently). With the following patch to if_fxp.c: --- sys/dev/fxp/if_fxp.c.orig Thu Jun 12 14:08:22 2003 +++ sys/dev/fxp/if_fxp.c Thu Jun 12 13:29:37 2003 @@ -162,6 +162,7 @@ { 0x103C, "Intel 82801DB (ICH4) Pro/100 Ethernet" }, { 0x103D, "Intel 82801DB (ICH4) Pro/100 VE Ethernet" }, { 0x103E, "Intel 82801DB (ICH4) Pro/100 VM Ethernet" }, + { 0x1050, "Intel 82801BA (D865) Pro/100 VE Ethernet" }, { 0x1059, "Intel 82551QM Pro/100 M Mobile Connection" }, { 0x1209, "Intel 82559ER Embedded 10/100 Ethernet" }, { 0x1229, "Intel 82557/8/9 EtherExpress Pro/100(B) Ethernet" }, it seems to work. I am not sure how reliable it is and whether other modifications should be made, but it worked fine for now. Of course, the ID string is also perhaps not the best - perhaps it needs to be changed. Anyway, I would like it to be added to the driver, so new machines with that adapter will work out of the box. Should I submit this trivial patch to anywhere else, or can it be picked up from this list? BTW, I had the same story with Linux (that's what they wanted on it, I was just diagnosing the problem) before, and a similar change to the Linux eepro100 driver worked as well - had it worked with Linux out of the box, I wouldn't probably try FreeBSD on it... Thanks, -- Tom -- Tom Alsberg - hacker (being the best description fitting this space) Web page: http://www.cs.huji.ac.il/~alsbergt/ DISCLAIMER: The above message does not even necessarily represent what my fingers have typed on the keyboard, save anything further. From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 04:19:43 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 298B137B401 for ; Thu, 12 Jun 2003 04:19:43 -0700 (PDT) Received: from mx.vipnet.ro (cosmic.vipnet.ro [193.230.219.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 3AB7943FA3 for ; Thu, 12 Jun 2003 04:19:37 -0700 (PDT) (envelope-from vladg@vipnet.ro) Received: (qmail 2510 invoked from network); 12 Jun 2003 11:21:25 -0000 Received: from unknown (HELO rtfm.vipnet.ro) (193.230.219.12) by cosmic.vipnet.ro with SMTP; 12 Jun 2003 11:21:25 -0000 Date: Thu, 12 Jun 2003 14:19:14 +0300 From: Vlad GALU To: freebsd-hackers@freebsd.org Message-Id: <20030612141914.715d1f05.vladg@vipnet.ro> In-Reply-To: <20030612111453.GA23053@cs.huji.ac.il> References: <20030612111453.GA23053@cs.huji.ac.il> Organization: VipNET Bucharest X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.u0Oi7rCB0Ts6sS" Subject: Re: PCI ID Patch for Intel Ether Express Pro 100 VE (82801BA) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 11:19:43 -0000 --=.u0Oi7rCB0Ts6sS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 12 Jun 2003 14:14:53 +0300 Tom Alsberg wrote: > Having got a new machine here a few days ago, an Intel ICH D865 PERL > board based Pentium IV machine, with an on-board Intel EtherExpress > Pro 100 VE, it failed to detect the network adapter. > > Seeing that it is an EtherExpress Pro 100, I though the fxp module > should work with it, and found out that the PCI ID (8086:1050) just > isn't recognized as one (new chip or something, apparently). > > With the following patch to if_fxp.c: > > --- sys/dev/fxp/if_fxp.c.orig Thu Jun 12 14:08:22 2003 > +++ sys/dev/fxp/if_fxp.c Thu Jun 12 13:29:37 2003 > @@ -162,6 +162,7 @@ > { 0x103C, "Intel 82801DB (ICH4) Pro/100 Ethernet" }, > { 0x103D, "Intel 82801DB (ICH4) Pro/100 VE Ethernet" }, > { 0x103E, "Intel 82801DB (ICH4) Pro/100 VM Ethernet" }, > + { 0x1050, "Intel 82801BA (D865) Pro/100 VE Ethernet" }, > { 0x1059, "Intel 82551QM Pro/100 M Mobile Connection" }, > { 0x1209, "Intel 82559ER Embedded 10/100 Ethernet" }, > { 0x1229, "Intel 82557/8/9 EtherExpress Pro/100(B) > Ethernet" }, > > it seems to work. I am not sure how reliable it is and whether other > modifications should be made, but it worked fine for now. > Of course, the ID string is also perhaps not the best - perhaps it > needs to be changed. > > Anyway, I would like it to be added to the driver, so new machines > with that adapter will work out of the box. Should I submit this > trivial patch to anywhere else, or can it be picked up from this list? You should check send-pr(1). Thanks for the contribution! > > BTW, I had the same story with Linux (that's what they wanted on it, I > was just diagnosing the problem) before, and a similar change to the > Linux eepro100 driver worked as well - had it worked with Linux out of > the box, I wouldn't probably try FreeBSD on it... > > Thanks, > -- Tom > > -- > Tom Alsberg - hacker (being the best description fitting this space) > Web page: http://www.cs.huji.ac.il/~alsbergt/ > DISCLAIMER: The above message does not even necessarily represent > what my fingers have typed on the keyboard, save anything further. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > -- Vlad GALU Network Administrator VipNET Bucharest tel: 021/3039940 email: vladg@vipnet.ro web: http://www.vipnet.ro PGP: http://mirapoint.vipnet.ro/public_key.pgp --=.u0Oi7rCB0Ts6sS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+6GG0BQlxy6GegvARAvIDAKChHHUJEPJkNHTqeYNs3ygULGHQAwCeKIXf 0GXSuJtiXwASatlvKIwICc0= =P7bp -----END PGP SIGNATURE----- --=.u0Oi7rCB0Ts6sS-- From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 04:21:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02F3837B401 for ; Thu, 12 Jun 2003 04:21:50 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 916CE43FA3 for ; Thu, 12 Jun 2003 04:21:49 -0700 (PDT) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id 772EE2ED427; Thu, 12 Jun 2003 04:21:49 -0700 (PDT) Date: Thu, 12 Jun 2003 13:21:49 +0200 From: Maxime Henrion To: Tom Alsberg , FreeBSD Hackers List Message-ID: <20030612112149.GJ21011@elvis.mu.org> References: <20030612111453.GA23053@cs.huji.ac.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030612111453.GA23053@cs.huji.ac.il> User-Agent: Mutt/1.4.1i Subject: Re: PCI ID Patch for Intel Ether Express Pro 100 VE (82801BA) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 11:21:50 -0000 Tom Alsberg wrote: > Having got a new machine here a few days ago, an Intel ICH D865 PERL > board based Pentium IV machine, with an on-board Intel EtherExpress > Pro 100 VE, it failed to detect the network adapter. > > Seeing that it is an EtherExpress Pro 100, I though the fxp module > should work with it, and found out that the PCI ID (8086:1050) just > isn't recognized as one (new chip or something, apparently). Patch committed, thanks! Maxime From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 05:01:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CDB237B401 for ; Thu, 12 Jun 2003 05:01:52 -0700 (PDT) Received: from proxy.danet.lt (adsl-212-59-9-151.takas.lt [212.59.9.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F59243FAF for ; Thu, 12 Jun 2003 05:01:48 -0700 (PDT) (envelope-from baliuka@danet.lt) Received: from DANLTWS07 ([134.101.234.4]) by proxy.danet.lt (8.12.6p2/8.12.3) with SMTP id h5CC04KT030733 for ; Thu, 12 Jun 2003 14:00:04 +0200 (EET) (envelope-from baliuka@danet.lt) Message-ID: <002901c330e2$e6dc8660$04ea6586@DANLTWS07> From: "Pranas Baliuka" To: Date: Thu, 12 Jun 2003 15:02:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Fw: SAPDB FreeBSD Port Anouncement X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 12:01:52 -0000 fyi!!!!!!!!!!! ----- Original Message ----- From: "Kai Mosebach" Newsgroups: gmane.comp.db.sapdb.sources Sent: Saturday, May 31, 2003 1:47 AM Subject: SAPDB FreeBSD Port Anouncement > Dear all, > > I am pleased to announce the first working binary preview of the SAPDB > 7.4.3 for FreeBSD 5.0. > > I would like to invite you to install it and try it out, to give me > feedback and bug reporting. > > I would also like to know, if it is possible to run the port on FreeBSD > 4.x. > (You might need to replace the liblinuxthread.* files in the sapdb-lib > folder then) > > The latest binary build can be found on Mirror #2 at : > http://www.komadev.de/downloads > > Have fun, and please give me feedback. > > Regards Kai > > PS : Thanx to Daniel Dittmar, who was a real big help to me (and will > hopefully be in future ;) ! From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 05:29:19 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F91837B410 for ; Thu, 12 Jun 2003 05:29:19 -0700 (PDT) Received: from mobile.hub.org (u153n214.eastlink.ca [24.224.153.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6458243FAF for ; Thu, 12 Jun 2003 05:29:18 -0700 (PDT) (envelope-from scrappy@hub.org) Received: by mobile.hub.org (Postfix, from userid 1001) id D4BFB1C2; Thu, 12 Jun 2003 09:29:16 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mobile.hub.org (Postfix) with ESMTP id 6ED0E1A0; Thu, 12 Jun 2003 09:29:16 -0300 (ADT) Date: Thu, 12 Jun 2003 09:29:16 -0300 (ADT) From: The Hermit Hacker To: Pranas Baliuka In-Reply-To: <002901c330e2$e6dc8660$04ea6586@DANLTWS07> Message-ID: <20030612092714.S27289@hub.org> References: <002901c330e2$e6dc8660$04ea6586@DANLTWS07> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: Fw: SAPDB FreeBSD Port Anouncement X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 12:29:19 -0000 'K, I'm curious here ... is this a native port, or a linux port? the liblinuxthread.* mention here makes me think its more a linux binary running on a FreeBSD machine, but just want to clarify ... On Thu, 12 Jun 2003, Pranas Baliuka wrote: > fyi!!!!!!!!!!! > ----- Original Message ----- > From: "Kai Mosebach" > Newsgroups: gmane.comp.db.sapdb.sources > Sent: Saturday, May 31, 2003 1:47 AM > Subject: SAPDB FreeBSD Port Anouncement > > > > Dear all, > > > > I am pleased to announce the first working binary preview of the SAPDB > > 7.4.3 for FreeBSD 5.0. > > > > I would like to invite you to install it and try it out, to give me > > feedback and bug reporting. > > > > I would also like to know, if it is possible to run the port on FreeBSD > > 4.x. > > (You might need to replace the liblinuxthread.* files in the sapdb-lib > > folder then) > > > > The latest binary build can be found on Mirror #2 at : > > http://www.komadev.de/downloads > > > > Have fun, and please give me feedback. > > > > Regards Kai > > > > PS : Thanx to Daniel Dittmar, who was a real big help to me (and will > > hopefully be in future ;) ! > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 05:51:19 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B75F37B401 for ; Thu, 12 Jun 2003 05:51:19 -0700 (PDT) Received: from hotmail.com (bay4-f32.bay4.hotmail.com [65.54.171.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id D103F43F3F for ; Thu, 12 Jun 2003 05:51:18 -0700 (PDT) (envelope-from oykai@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 12 Jun 2003 05:51:18 -0700 Received: from 218.104.107.71 by by4fd.bay4.hotmail.msn.com with HTTP; Thu, 12 Jun 2003 12:51:18 GMT X-Originating-IP: [218.104.107.71] X-Originating-Email: [oykai@msn.com] From: "ouyang kai" To: freebsd-hackers@freebsd.org Date: Thu, 12 Jun 2003 20:51:18 +0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 12 Jun 2003 12:51:18.0706 (UTC) FILETIME=[5158E120:01C330E1] Subject: how can I hack my com interrupt? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 12:51:19 -0000 Hi, guys, I want to hack my com interface to specail purpose. I want to use the Modem Status Register. When the high 4 bits change, it could spring an interrupt. So, I set the Intertupt Enable Register(in sioattach fuction) to the interrupt, which support changing in the state of the modem input pins(IER_EMSC). I set the MSR successfully. But when the MSR state change, the siointr print anything(I add a printf as the first line of the function). I found there are 4 level interrupt(IIR). I want to set the IIR 4 level to support Modem status. But I couldn't set the Interrupt Identification Register, why? the code of set IIR is in the sioattach function: sio_setreg(com, com_iir, IIR_MLSC); I found the com_iir content is not changed. How can I do that? My OS is FreeBSD4.8-Release. Thanks a lot! Best Regards Ouyang Kai _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 06:30:34 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C23337B401 for ; Thu, 12 Jun 2003 06:30:34 -0700 (PDT) Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6104C43FE0 for ; Thu, 12 Jun 2003 06:30:33 -0700 (PDT) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 06F8CA804; Thu, 12 Jun 2003 23:30:28 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id E2B205430; Thu, 12 Jun 2003 23:30:28 +1000 (EST) Date: Thu, 12 Jun 2003 23:30:28 +1000 (EST) From: Andrew To: ticso@cicely.de In-Reply-To: <20030608150625.GO509@cicely12.cicely.de> Message-ID: <20030612232122.H82617-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: ugen example X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 13:30:34 -0000 On Sun, 8 Jun 2003, Bernd Walter wrote: > But there is lot of sample code available. Thanks I'll take a look at that. > You must be doing something wrong - the values are 16bit only. Ooops...quite right. My mistake. > If you have no /dev/ugen?.? then the device has no other endpoints in > its current configuration. > The usbctl tool mentioned above is good to check devices about their > capabilities. usbctl reports quite a few end points so clearly something else is amiss. I'll have a play and see what I come up with. Do these devices just appear automatically thanks to devfs? Thanks, Andrew From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 06:43:37 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9FCB37B401 for ; Thu, 12 Jun 2003 06:43:37 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id B746F43FAF for ; Thu, 12 Jun 2003 06:43:36 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h5CDhVHq099076 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 12 Jun 2003 15:43:34 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h5CDhTIf073797 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Jun 2003 15:43:29 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h5CDhS9F038291; Thu, 12 Jun 2003 15:43:29 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h5CDhSRf038290; Thu, 12 Jun 2003 15:43:28 +0200 (CEST) Date: Thu, 12 Jun 2003 15:43:28 +0200 From: Bernd Walter To: Andrew Message-ID: <20030612134327.GH26807@cicely12.cicely.de> References: <20030608150625.GO509@cicely12.cicely.de> <20030612232122.H82617-100000@starbug.ugh.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030612232122.H82617-100000@starbug.ugh.net.au> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-RELEASE alpha User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org cc: ticso@cicely.de Subject: Re: ugen example X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 13:43:38 -0000 On Thu, Jun 12, 2003 at 11:30:28PM +1000, Andrew wrote: > On Sun, 8 Jun 2003, Bernd Walter wrote: > > If you have no /dev/ugen?.? then the device has no other endpoints in > > its current configuration. > > The usbctl tool mentioned above is good to check devices about their > > capabilities. > > usbctl reports quite a few end points so clearly something else is amiss. > I'll have a play and see what I come up with. Do these devices just appear > automatically thanks to devfs? Not all endpoints have to be available in the current configuration. If you show me the output for your device I can tell you what is available under which condition. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 06:47:58 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4289D37B401 for ; Thu, 12 Jun 2003 06:47:58 -0700 (PDT) Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CB8B43FBD for ; Thu, 12 Jun 2003 06:47:57 -0700 (PDT) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id E28EAA804; Thu, 12 Jun 2003 23:47:55 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id DD8135430; Thu, 12 Jun 2003 23:47:55 +1000 (EST) Date: Thu, 12 Jun 2003 23:47:55 +1000 (EST) From: Andrew To: ticso@cicely.de In-Reply-To: <20030612134327.GH26807@cicely12.cicely.de> Message-ID: <20030612234638.R82617-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: ugen example X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 13:47:58 -0000 On Thu, 12 Jun 2003, Bernd Walter wrote: > Not all endpoints have to be available in the current configuration. > If you show me the output for your device I can tell you what is > available under which condition. Thanks, output below. Andrew -- DEVICE addr 2 DEVICE descriptor: bLength=18 bDescriptorType=device(1) bcdUSB=1.00 bDeviceClass=255 bDeviceSubClass=255 bDeviceProtocol=255 bMaxPacketSize=64 idVendor=0x0743 idProduct=0x0002 bcdDevice=1 iManufacturer=0() iProduct=0() iSerialNumber=0() bNumConfigurations=1 CONFIGURATION descriptor 0: bLength=9 bDescriptorType=config(2) wTotalLength=218 bNumInterface=1 bConfigurationValue=1 iConfiguration=0() bmAttributes=80 bMaxPower=100 mA INTERFACE descriptor 0: bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=0 bNumEndpoints=0 bInterfaceClass=255 bInterfaceSubClass=255 bInterfaceProtocol=255 iInterface=0() INTERFACE descriptor 1: bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=1 bNumEndpoints=13 bInterfaceClass=255 bInterfaceSubClass=255 bInterfaceProtocol=255 iInterface=0() ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-in bmAttributes=interrupt wMaxPacketSize=16 bInterval=10 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-in bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-out bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=4-in bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=4-out bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=6-in bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=6-out bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=8-in bmAttributes=isochronous wMaxPacketSize=16 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=8-out bmAttributes=isochronous wMaxPacketSize=16 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=9-in bmAttributes=isochronous wMaxPacketSize=16 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=9-out bmAttributes=isochronous wMaxPacketSize=16 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=10-in bmAttributes=isochronous wMaxPacketSize=16 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=10-out bmAttributes=isochronous wMaxPacketSize=16 bInterval=1 INTERFACE descriptor 2: bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=2 bNumEndpoints=13 bInterfaceClass=255 bInterfaceSubClass=255 bInterfaceProtocol=255 iInterface=0() ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-in bmAttributes=interrupt wMaxPacketSize=64 bInterval=10 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-in bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-out bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=4-in bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=4-out bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=6-in bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=6-out bmAttributes=bulk wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=8-in bmAttributes=isochronous wMaxPacketSize=256 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=8-out bmAttributes=isochronous wMaxPacketSize=256 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=9-in bmAttributes=isochronous wMaxPacketSize=16 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=9-out bmAttributes=isochronous wMaxPacketSize=16 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=10-in bmAttributes=isochronous wMaxPacketSize=16 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=10-out bmAttributes=isochronous wMaxPacketSize=16 bInterval=1 current configuration 1 From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 07:00:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13D7637B401 for ; Thu, 12 Jun 2003 07:00:50 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3854843FBF for ; Thu, 12 Jun 2003 07:00:48 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h5CE0hHq099244 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 12 Jun 2003 16:00:45 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h5CE0fIf073886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Jun 2003 16:00:42 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h5CE0f9F038374; Thu, 12 Jun 2003 16:00:41 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h5CE0eCP038373; Thu, 12 Jun 2003 16:00:40 +0200 (CEST) Date: Thu, 12 Jun 2003 16:00:40 +0200 From: Bernd Walter To: Andrew Message-ID: <20030612140040.GI26807@cicely12.cicely.de> References: <20030612134327.GH26807@cicely12.cicely.de> <20030612234638.R82617-100000@starbug.ugh.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030612234638.R82617-100000@starbug.ugh.net.au> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-RELEASE alpha User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org cc: ticso@cicely.de Subject: Re: ugen example X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 14:00:50 -0000 On Thu, Jun 12, 2003 at 11:47:55PM +1000, Andrew wrote: > > > On Thu, 12 Jun 2003, Bernd Walter wrote: > > > Not all endpoints have to be available in the current configuration. > > If you show me the output for your device I can tell you what is > > available under which condition. > > Thanks, output below. > > Andrew > > -- > > DEVICE addr 2 > DEVICE descriptor: > bLength=18 bDescriptorType=device(1) bcdUSB=1.00 bDeviceClass=255 > bDeviceSubClass=255 > bDeviceProtocol=255 bMaxPacketSize=64 idVendor=0x0743 idProduct=0x0002 > bcdDevice=1 > iManufacturer=0() iProduct=0() iSerialNumber=0() bNumConfigurations=1 > > CONFIGURATION descriptor 0: > bLength=9 bDescriptorType=config(2) wTotalLength=218 bNumInterface=1 > bConfigurationValue=1 iConfiguration=0() bmAttributes=80 bMaxPower=100 mA > > INTERFACE descriptor 0: > bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 > bAlternateSetting=0 > bNumEndpoints=0 bInterfaceClass=255 bInterfaceSubClass=255 > bInterfaceProtocol=255 iInterface=0() This is interface 0, which is used by default. It has no endpoints of it's own. Beside endpoint 0 which is always available. > INTERFACE descriptor 1: > bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 > bAlternateSetting=1 > bNumEndpoints=13 bInterfaceClass=255 bInterfaceSubClass=255 > bInterfaceProtocol=255 iInterface=0() > > ENDPOINT descriptor: > bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-in > bmAttributes=interrupt wMaxPacketSize=16 bInterval=10 This one and the following endpoints are for interface 1. This is an alternate Interface, which means, that you can either use this or another interface - therefor ugen doesn't offer you the endpoint of interface 1 - it's not active. You have to select this interface with USB_SET_ALTINTERFACE. > INTERFACE descriptor 2: > bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 > bAlternateSetting=2 > bNumEndpoints=13 bInterfaceClass=255 bInterfaceSubClass=255 > bInterfaceProtocol=255 iInterface=0() The same for Interface 2 and his endpoints. It's an alternate interface. Which one you want to use depends on your application and device. You may want to read the device documentation to select the interface which offers you the features that your application needs. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 07:48:45 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BA8037B401 for ; Thu, 12 Jun 2003 07:48:45 -0700 (PDT) Received: from quelrod.quelrod.net (cs679136-172.austin.rr.com [67.9.136.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C80D43F93 for ; Thu, 12 Jun 2003 07:48:44 -0700 (PDT) (envelope-from quel@quelrod.net) Received: from quelrod.net (cs679136-172.austin.rr.com [67.9.136.172]) by quelrod.quelrod.net (8.12.9/8.12.6) with ESMTP id h5CEn24V030755 for ; Thu, 12 Jun 2003 09:49:02 -0500 (CDT) Received: from localhost (quel@localhost) by quelrod.net (8.12.9/8.12.9/Submit) with ESMTP id h5CEn1qT010718 for ; Thu, 12 Jun 2003 09:49:02 -0500 (CDT) Date: Thu, 12 Jun 2003 09:49:01 -0500 (CDT) From: quel To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: BCM4401 ethernet driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 14:48:45 -0000 This is the onboard ethernet on my dell inspiron 8500 laptop and I wondered when drivers might get to freebsd. The linux kernel just imported the drivers that the broadcom wrote for it found: http://www.broadcom.com/docs/driver-download.html It doesn't appear they intend to make any freebsd drivers. Thanks in advance, James Nobis From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 09:40:59 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B1BA37B401 for ; Thu, 12 Jun 2003 09:40:59 -0700 (PDT) Received: from relay4.mail.uk.psi.net (relay4.mail.uk.psi.net [154.32.111.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53F0743FB1 for ; Thu, 12 Jun 2003 09:40:58 -0700 (PDT) (envelope-from dmlb@dmlb.org) Received: from gate.ttpcom.com ([193.119.175.2] helo=vader) by relay4.mail.uk.psi.net with smtp (Exim 2.12 #2) id 19QV8A-0002TJ-01 for freebsd-hackers@freebsd.org; Thu, 12 Jun 2003 17:40:54 +0100 Received: from matrix.ttpcom.com ([193.119.172.14]) by vader; Thu, 12 Jun 2003 17:39:44 +0100 (BST) Received: from matrix [193.119.172.14] by matrix.ttpcom.com (SMTPD32-7.07) id ADFEDF301E6; Thu, 12 Jun 2003 17:44:46 +0100 Received: FROM DJK1Comp BY matrix ; Thu Jun 12 17:44:46 2003 +0100 Message-ID: <003301c33101$48c3ddb0$a7ac77c1@DJK1Comp> From: "Duncan Barclay" To: "quel" , References: Date: Thu, 12 Jun 2003 17:40:08 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 Subject: Re: BCM4401 ethernet driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 16:40:59 -0000 I am in the process of rewriting this driver for FreeBSD. It can transmit, but RX is not yet going properly. As this is evening work, it's likely to take at elast another week. > This is the onboard ethernet on my dell inspiron 8500 laptop and I > wondered when drivers might get to freebsd. The linux kernel just > imported the drivers that the broadcom wrote for it found: > http://www.broadcom.com/docs/driver-download.html > It doesn't appear they intend to make any freebsd drivers. > > Thanks in advance, > James Nobis > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 11:08:59 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3927037B401; Thu, 12 Jun 2003 11:08:58 -0700 (PDT) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7F6443FAF; Thu, 12 Jun 2003 11:08:57 -0700 (PDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost.cnd.mcgill.ca [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.3p2/8.12.3) with ESMTP id h5CIBujC009707; Thu, 12 Jun 2003 14:11:56 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.3p2/8.12.3/Submit) id h5CIBuOw009706; Thu, 12 Jun 2003 14:11:56 -0400 (EDT) Date: Thu, 12 Jun 2003 14:11:56 -0400 From: Mathew Kanner To: freebsd-multimedia@freebsd.org, freebsd-hackers@freebsd.org Message-ID: <20030612181156.GH87709@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: I speak for myself, operating in Montreal, CANADA User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Subject: MIDI testers wanted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 18:08:59 -0000 Hello, If you have external midi hardware and Sounblaster 5.1 or a cmi soundcard, I would appreciate it if you help test out my new midi and sequencer implementation. http://www.cnd.mcgill.ca/~mat/midi2-jun1303.tgz I'm looking for .mid's that jam it up or sound wrong. You can play songs with midiplay (included, comes from netbsd) or playmidi (in the ports). --Mat -- Brain: Are you pondering what I'm pondering? Pinky: I think so Brain, but the Rockettes, it's mostly girls, isn't it? From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 12 14:57:27 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B87A37B401; Thu, 12 Jun 2003 14:57:27 -0700 (PDT) Received: from memphis.mephi.ru (memphis.mephi.ru [194.67.67.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17B0F43F3F; Thu, 12 Jun 2003 14:57:25 -0700 (PDT) (envelope-from timon@memphis.mephi.ru) Received: from [192.168.0.3] (ppp8-252.pppoe.mtu-net.ru [81.195.8.252]) (authenticated bits=0) by memphis.mephi.ru (8.12.6p2/8.12.6) with ESMTP id h5CLvFPb042762; Fri, 13 Jun 2003 01:57:17 +0400 (MSD) (envelope-from timon@memphis.mephi.ru) From: "Artem 'Zazoobr' Ignatjev" To: hackers@freebsd.org, current@freebsd.org Content-Type: text/plain Organization: Message-Id: <1055455058.966.4.camel@timon.nist> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 13 Jun 2003 01:57:38 +0400 Content-Transfer-Encoding: 7bit Subject: Understanding newPCM driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 21:57:27 -0000 Hi I wish to teach FreeBSD (5.0-CURRENT, somewhere in mid-may, last cvsup was week ago) make use of that fancy S/P-DIF connector on my Yamaha soundcard. OTOH, I want to implement it in a Right Way (tm), so that one can choose, whether he wish to use or not to use this feature, if it's present. Which is the Right Way(tm) to add such functionality to existing newPCM driver? PS: I'm crossposting both -hackers and -current... -- Artem 'Zazoobr' Ignatjev From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 08:45:22 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31A0E37B404 for ; Fri, 13 Jun 2003 08:45:22 -0700 (PDT) Received: from mx1.lphp.org (APastourelles-107-1-7-82.w217-128.abo.wanadoo.fr [217.128.208.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05E1B43F85 for ; Fri, 13 Jun 2003 08:45:20 -0700 (PDT) (envelope-from ajacoutot@lphp.org) Received: from srv01.lphp.org.local (localhost [127.0.0.1]) by mx1.lphp.org (8.12.8p1/8.12.8) with ESMTP id h5DFjIwc091533 for ; Fri, 13 Jun 2003 17:45:18 +0200 (CEST) (envelope-from ajacoutot@lphp.org) Received: (from www@localhost) by srv01.lphp.org.local (8.12.8p1/8.12.8/Submit) id h5DFjCfL091532 for freebsd-hackers@freebsd.org; Fri, 13 Jun 2003 17:45:12 +0200 (CEST) (envelope-from ajacoutot@lphp.org) X-Authentication-Warning: srv01.lphp.org.local: www set sender to ajacoutot@lphp.org using -f Received: from sta01.lphp.org.local (sta01.lphp.org.local [192.168.0.4]) by webmail.lphp.org (IMP) with HTTP for ; Fri, 13 Jun 2003 17:45:12 +0200 Message-ID: <1055519112.3ee9f1889860e@webmail.lphp.org> Date: Fri, 13 Jun 2003 17:45:12 +0200 From: Antoine Jacoutot To: "freebsd-hackers@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 / FreeBSD-4.8 Subject: problem with UMASS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 15:45:22 -0000 Hi ! I'm using a USB adapter to plug a HDD into my FreeBSD-4.8 box. If I boot with the device pluged-in, it works fine, but if I plug it in after boot or unplug then replug it, it doesn't work anymore (I get timeout errors). Here is some information about this device: from dmesg.boot: umass0: QTS USB 2.0 ATAPI Bridge, rev 2.00/11.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 650KB/s transfers da0: 117800MB (241254720 512 byte sectors: 64H 32S/T 52264C) from /var/log/messages: srv01 /kernel: (da0:umass-sim0:0:0:0): READ(6)/WRITE(6) not supported, increasing minimum_cmd_size to 10. Someone told me to try adding the device to da_quirk_table in src/sys/cam/scsi/scsi_da.c and recompiling, but I'm not sure how to add the thing. Any help would be greatly appreciated. Regards. -- Antoine Jacoutot ajacoutot@lphp.org http://www.lphp.org pgp key: http://www.lphp.org/ressources/ajacoutot.asc From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 08:59:53 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 749D437B404 for ; Fri, 13 Jun 2003 08:59:53 -0700 (PDT) Received: from nexus.oss.uswest.net (nexus.oss.uswest.net [209.180.20.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id C905043F85 for ; Fri, 13 Jun 2003 08:59:52 -0700 (PDT) (envelope-from novak@nexus.oss.uswest.net) Received: from nexus.oss.uswest.net (localhost [127.0.0.1]) by nexus.oss.uswest.net (8.12.9/8.12.9) with ESMTP id h5DFxqqQ038654 for ; Fri, 13 Jun 2003 10:59:52 -0500 (CDT) (envelope-from novak@nexus.oss.uswest.net) Received: (from novak@localhost) by nexus.oss.uswest.net (8.12.9/8.12.9/Submit) id h5DFxqfa038653 for freebsd-hackers@freebsd.org; Fri, 13 Jun 2003 10:59:52 -0500 (CDT) Date: Fri, 13 Jun 2003 10:59:52 -0500 From: Jamie Novak To: freebsd-hackers@freebsd.org Message-ID: <20030613155952.GA38455@qwest.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: "jumpstation" configuration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 15:59:53 -0000 I hope this is okay to post here. I was torn between this list and freebsd-general... At work, we have a FreeBSD jumpstart server configured, more or less, as described on Alfred Perlstein's web page. (http://people.freebsd.org/~alfred/pxe/) The jumpstation itself works great and we've been using it for well over a year to do automated installs of FreeBSD on Intel-based systems of varying types. They've all had NICs which used the "fxp" driver. Recently, however, we've started purchasing new servers that have onboard gigabit NICs which use the "em" driver. FreeBSD recognizes it and handles it just fine (tested using a CD install), but we're running into a problem with the network boot/install that I thought maybe somebody else could help me with. On the fxp servers, they'll network boot and install without complaint, so we know we have DHCP, tftp, nfs, etc. working (I would assume) the way they should. Our the em-based servers, the jumpstart process will get an IP address from DHCP, it'll get the kernel image from tftp, it'll go through the boot screen and get to the actual FreeBSD install.cfg (sets a bunch of variables, the hostname, the netDev=em0, etc.) but as soon as it gets to "mediaSetNFS" in the install.cfg, it dies without warning or error -- the install screen just says "Command `mediSetNFS' failed." Does anybody know what sorts of things I could look for to figure out why it gets this far, but then fails? (As I mentioned before, nfs appears to be configured correctly, because the fxp-based servers blow right past that point and get to the actual install without a problem.) I don't even know where to start... - Jamie From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 09:47:18 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33CBE37B401 for ; Fri, 13 Jun 2003 09:47:18 -0700 (PDT) Received: from nexus.oss.uswest.net (nexus.oss.uswest.net [209.180.20.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74A9C43F3F for ; Fri, 13 Jun 2003 09:47:17 -0700 (PDT) (envelope-from novak@nexus.oss.uswest.net) Received: from nexus.oss.uswest.net (localhost [127.0.0.1]) by nexus.oss.uswest.net (8.12.9/8.12.9) with ESMTP id h5DGlHqQ039219 for ; Fri, 13 Jun 2003 11:47:17 -0500 (CDT) (envelope-from novak@nexus.oss.uswest.net) Received: (from novak@localhost) by nexus.oss.uswest.net (8.12.9/8.12.9/Submit) id h5DGlG5K039218 for freebsd-hackers@freebsd.org; Fri, 13 Jun 2003 11:47:16 -0500 (CDT) Date: Fri, 13 Jun 2003 11:47:16 -0500 From: Jamie Novak To: freebsd-hackers@freebsd.org Message-ID: <20030613164716.GB38455@qwest.net> References: <20030613155952.GA38455@qwest.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030613155952.GA38455@qwest.net> User-Agent: Mutt/1.4i Subject: Re: "jumpstation" configuration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 16:47:18 -0000 Forgive me for the spam. Steve & Ceri pointed me in the right direction by basically saying (although much more nicely), "Hey, idiot. Check to see that the kernel image you're loading actually has support for the em driver" -- which it didn't. I thought we were still using a generic kernel during the installs, but I guess that had changed at some point and I never noticed. :sigh: Thanks for the help and, again, I'm sorry for the spam. :) -Jamie From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 09:48:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4C6F37B401 for ; Fri, 13 Jun 2003 09:48:26 -0700 (PDT) Received: from gatorzone.com (gatormail.gatorzone.com [216.53.131.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06FEF43FBF for ; Fri, 13 Jun 2003 09:48:26 -0700 (PDT) (envelope-from cd_freebsd@gatorzone.com) Date: Fri, 13 Jun 2003 12:53:17 -0400 Message-Id: <200306131253.AA111083662@gatorzone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "cd_freebsd" To: X-Mailer: Subject: Using Newer Version of GCC on 4.8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cd_freebsd@gatorzone.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 16:48:27 -0000 I am currently developing on FreeBSD 4.8 with gcc 2.95.3. Is there any problem upgrading to a newer version of GCC to use for compiling device drivers? I want to get unnamed structure support. From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 10:17:43 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7876537B401 for ; Fri, 13 Jun 2003 10:17:42 -0700 (PDT) Received: from herbelot.dyndns.org (herbelot.net1.nerim.net [62.212.117.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DBD443FB1 for ; Fri, 13 Jun 2003 10:17:41 -0700 (PDT) (envelope-from thierry@herbelot.com) Received: from diversion.herbelot.nom (diversion.herbelot.nom [192.168.2.6]) by herbelot.dyndns.org (8.12.9/8.12.9) with ESMTP id h5DHFnoh010474; Fri, 13 Jun 2003 19:15:50 +0200 (CEST) From: Thierry Herbelot To: Jamie Novak , freebsd-hackers@freebsd.org Date: Fri, 13 Jun 2003 19:17:26 +0200 User-Agent: KMail/1.5.2 References: <20030613155952.GA38455@qwest.net> In-Reply-To: <20030613155952.GA38455@qwest.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306131917.26645.thierry@herbelot.com> Subject: strange 5.1 fxp behaviour [was Re: "jumpstation" configuration] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 17:17:43 -0000 [I've seen your previous answer, but I still will describe my setup] [problems netbooting machines between fxp and em NICs] Hello, I am too seeing problems jumpstarting a machine (client) using a fxp NIC from a server (runnning 5.1-Rel) using an em NIC : the em NIC is wired down as 100baseTX full-duplex, but the 5.1-Release kernel seems unable to see it and tries to use a half-duplex setting (this surprisingly works when loading the install bits via ftp, with a rate of around 44kB/s, but fails completely when NFS is selected as install media). Everything works finer after switching virtual consoles on the client and "ifconfig'ing" the fxp1 as full-duplex, from the holographic shell. What is even more startling is that the same fxp1 is correctly set up as full duplex with the 4.8-RELEASE install kernel (from the same boot server, with the same setup for its NIC : I've installed two tftpboot directories so as to select which release is loaded via PXE). On monday , I'll try to wire the server em NIC as half-duplex to see wether the client fxp1 has a better throughput (afterwards, I'll try and look for differences in the 4.8 and 5.1 fxp drivers). Happy hacking TfH From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 10:38:33 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF9F637B401 for ; Fri, 13 Jun 2003 10:38:33 -0700 (PDT) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BFD543F3F for ; Fri, 13 Jun 2003 10:38:31 -0700 (PDT) (envelope-from kientzle@acm.org) Received: from acm.org (big.x.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id h5DHcUtJ039755; Fri, 13 Jun 2003 10:38:30 -0700 (PDT) (envelope-from kientzle@acm.org) Message-ID: <3EEA0C9F.10407@acm.org> Date: Fri, 13 Jun 2003 10:40:47 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cd_freebsd@gatorzone.com References: <200306131253.AA111083662@gatorzone.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Using Newer Version of GCC on 4.8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 17:38:34 -0000 cd_freebsd wrote: > I am currently developing on FreeBSD 4.8 with gcc 2.95.3. Is > there any problem upgrading to a newer version of GCC to use > for compiling device drivers? I want to get unnamed structure support. It _might_ work, but keep in mind that compiling the kernel (or even kernel modules) with anything other than the provided system compiler is _untested_ and _unsupported_. There is a real possibility that things will break in mysterious and difficult-to-diagnose ways. If you're willing to break the kernel just to get unnamed structures, try -CURRENT. ;-) Tim Kientzle From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 11:36:30 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A369C37B405; Fri, 13 Jun 2003 11:36:30 -0700 (PDT) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94BEA43F93; Fri, 13 Jun 2003 11:36:29 -0700 (PDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost.cnd.mcgill.ca [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.3p2/8.12.3) with ESMTP id h5DIdSjC017386; Fri, 13 Jun 2003 14:39:28 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.3p2/8.12.3/Submit) id h5DIdSQr017385; Fri, 13 Jun 2003 14:39:28 -0400 (EDT) Date: Fri, 13 Jun 2003 14:39:28 -0400 From: Mathew Kanner To: freebsd-multimedia@freebsd.org, freebsd-hackers@freebsd.org Message-ID: <20030613183928.GB11598@cnd.mcgill.ca> References: <20030612181156.GH87709@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <20030612181156.GH87709@cnd.mcgill.ca> Organization: I speak for myself, operating in Montreal, CANADA User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-16.3 required=5.0 tests=IN_REP_TO,REFERENCES,USER_AGENT_MUTT version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Subject: Re: MIDI testers wanted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 18:36:31 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I've had a surprising response, mostly of people needing instructions on how to install. So I've update the snapshot to include the attached readme. Also, Yuriy Tsibizov has reported some success with an Audigy card so that may be usable via his driver. --Mat -- Brain: Pinky, are you pondering what I'm pondering? Pinky: Well, I think so Brain, but balancing a family, and a career? Ooh, it's all too much for me. --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=README This is an experimental sequencer. There are many sections that are completely missing (like midimapper, take a look if you don't believe me). The module currently assumes 1 sequencer, 1 midi port. It probably won't work any other way. What works: I can use playmidi from the ports or midiplay (included) to play most midi files I've found so far on an external Yamaha keyboard. I use a DB15 (joystick+midi) -> midiin / midiout/ joystick cable. It cost me $20 (canadian) and is a generic product. Kldload'ing and kldunload'ing seems to work. For fun and games, playmidi in the ports can be hacked to do some interesting things. Included soundcard drivers -------------------------- Anything that was supported in 5.1 using snd_cmi or snd_emu10k1. Installation & Testing ---------------------- 0/ Use FreeBSD 5-x 1/ Backup snd_cmi.ko and snd_emu10k1.ko in /boot/kernel 2/ untar midi2-xxx 3/ cd midi2/mod 4/ make 5/ make install 6/ cd ../emu 7/ make 8/ make install 9/ cd ../cmi 10/ make 11/ make install 12/ kldload snd_emu10k1 OR kldload snd_cmi 13/ cd ../midiplay 14/ make 15/ ./midiplay -x -f /dev/music0 (plays a midi file internal to midiplay, used for testing). 16/ ./midiplay -f /dev/music0 ~/eminem-thewayiam.mid BUGS ---- Probably lots. Please report them to mat@cnd.mcgill.ca --EeQfGwPcQSOJBaQU-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 12:30:07 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B60C37B401 for ; Fri, 13 Jun 2003 12:30:07 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35B5743FCB for ; Fri, 13 Jun 2003 12:30:06 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h5DJU2Hq025524 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 13 Jun 2003 21:30:03 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h5DJU1xZ082312 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Jun 2003 21:30:01 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h5DJU09F067677; Fri, 13 Jun 2003 21:30:00 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h5DJTxjq067676; Fri, 13 Jun 2003 21:29:59 +0200 (CEST) Date: Fri, 13 Jun 2003 21:29:59 +0200 From: Bernd Walter To: Antoine Jacoutot Message-ID: <20030613192958.GZ26807@cicely12.cicely.de> References: <1055519112.3ee9f1889860e@webmail.lphp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1055519112.3ee9f1889860e@webmail.lphp.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-RELEASE alpha User-Agent: Mutt/1.5.4i cc: "freebsd-hackers@freebsd.org" Subject: Re: problem with UMASS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 19:30:07 -0000 On Fri, Jun 13, 2003 at 05:45:12PM +0200, Antoine Jacoutot wrote: > Hi ! > > I'm using a USB adapter to plug a HDD into my FreeBSD-4.8 box. > If I boot with the device pluged-in, it works fine, but if I plug it in after > boot or unplug then replug it, it doesn't work anymore (I get timeout errors). > Here is some information about this device: > > from dmesg.boot: > umass0: QTS USB 2.0 ATAPI Bridge, rev 2.00/11.00, addr 2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-0 device > da0: 650KB/s transfers > da0: 117800MB (241254720 512 byte sectors: 64H 32S/T 52264C) > > from /var/log/messages: > srv01 /kernel: (da0:umass-sim0:0:0:0): READ(6)/WRITE(6) not supported, > increasing minimum_cmd_size to 10. > > Someone told me to try adding the device to da_quirk_table in > src/sys/cam/scsi/scsi_da.c and recompiling, but I'm not sure how to add the > thing. > Any help would be greatly appreciated. Your device doesn't support 6 byte commands and the kernel switches to 10 byte alternatives. Where is your problem? Is it just because the kernel told you what he does? -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 13:22:54 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D95B537B404 for ; Fri, 13 Jun 2003 13:22:54 -0700 (PDT) Received: from mail.econolodgetulsa.com (mail.econolodgetulsa.com [198.78.66.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37EE943F93 for ; Fri, 13 Jun 2003 13:22:52 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Received: from mail (mail [198.78.66.163])h5DKMqnW003003 for ; Fri, 13 Jun 2003 13:22:52 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Date: Fri, 13 Jun 2003 13:22:52 -0700 (PDT) From: Josh Brooks To: freebsd-hackers@freebsd.org Message-ID: <20030613131940.J87307-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: How do I see open sockets count (kern.ipc.maxsockets, but status) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 20:22:55 -0000 Hello, When I run out of files, I can see how many files are actually open by looking at the kern.openfiles sysctl. This makes it easy to see if I am hitting my limit or not. However, I am experiencing "No buffer space available" errors, and since I am not running out of mbufs: netstat -m 1728/2496/34816 mbufs in use (current/peak/max): 1714 mbufs allocated to data 14 mbufs allocated to packet headers 677/1430/8704 mbuf clusters in use (current/peak/max) 3484 Kbytes allocated to network (13% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines My natural choice is to increase: kern.ipc.maxsockets: 16424 But before I do that, I want to see how many I am currently using. So, whereas with open files I would simply check the kern.openfiles sysctl, how do I check how many sockets I currently have open ? Thanks you. From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 13:31:53 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB62A37B401 for ; Fri, 13 Jun 2003 13:31:53 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id 67CCE43FF9 for ; Fri, 13 Jun 2003 13:31:50 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 26139 invoked by uid 5013); 7 Jun 2003 12:23:49 -0000 Date: Sat, 7 Jun 2003 13:23:48 +0100 From: Bruce M Simpson To: cd_freebsd Message-ID: <20030607122348.GG23471@spc.org> Mail-Followup-To: Bruce M Simpson , cd_freebsd , freebsd-hackers@freebsd.org References: <200306061330.AA25428118@gatorzone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306061330.AA25428118@gatorzone.com> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org Subject: Re: Mapping Physical Memory without a Device? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 20:31:54 -0000 On Fri, Jun 06, 2003 at 01:30:28PM -0400, cd_freebsd wrote: > I would like to be able to map memory before I have a device to work with (to read system BIOS information or mess with the video buffer). Is this possible? In linux, I would just call ioremap_nocache or request region. Is there a way to use bus_alloc_resource or something similar to accomplish this? I assume you wish to do this from within the kernel. The key ingredient here is pmap_kenter(). You would want to do something like this: ... struct pcmem_softc { int sc_unit; device_t sc_dev; dev_t sc_cdev; ... /* common memory mapping descriptors */ u_int32_t sc_cm_base; int sc_cm_size; vm_offset_t sc_cm_kva_base; u_int32_t sc_cm_kva_size; ... }; static vm_offset_t pcmem_phys_map(struct pcmem_softc *sc) { int i; u_int32_t off; u_int32_t pa; vm_offset_t va; vm_offset_t size; /* * ensure the range to be mapped fits within page boundaries. */ pa = round_page((u_int32_t) sc->sc_cm_base); sc->sc_cm_kva_size = size = round_page((u_int32_t) sc->sc_cm_size); off = (u_int32_t) sc->sc_cm_base - pa; /* * reserve a pageable memory range within the kva. */ va = kmem_alloc_pageable(kernel_map, size); if (va == (vm_offset_t) 0) return (va); /* * wire each page into kva. */ for (i = 0; i < size; i += PAGE_SIZE) { pmap_kenter(va + i, pa + i); } #ifdef __i386__ invltlb(); #endif return (va + off); } I wrote the above segment knowing much less about vm than I do now, so it's probably too pmap and arch specific and could be done better. Anything more elaborate (e.g. exporting pages to userland) would require you to use a pager of type OBJT_PHYS. BMS From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 13:39:13 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 983E637B401 for ; Fri, 13 Jun 2003 13:39:13 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4C0243FDD for ; Fri, 13 Jun 2003 13:39:07 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h5DKcxVd037530 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Jun 2003 23:39:00 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h5DKcxo0037525; Fri, 13 Jun 2003 23:38:59 +0300 (EEST) (envelope-from ru) Date: Fri, 13 Jun 2003 23:38:59 +0300 From: Ruslan Ermilov To: Josh Brooks Message-ID: <20030613203859.GB29368@sunbay.com> References: <20030613131940.J87307-100000@mail.econolodgetulsa.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline In-Reply-To: <20030613131940.J87307-100000@mail.econolodgetulsa.com> User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: How do I see open sockets count (kern.ipc.maxsockets, but status) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 20:39:13 -0000 --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 13, 2003 at 01:22:52PM -0700, Josh Brooks wrote: >=20 > Hello, >=20 > When I run out of files, I can see how many files are actually open by > looking at the kern.openfiles sysctl. This makes it easy to see if I am > hitting my limit or not. >=20 > However, I am experiencing "No buffer space available" errors, and since I > am not running out of mbufs: >=20 > netstat -m > 1728/2496/34816 mbufs in use (current/peak/max): > 1714 mbufs allocated to data > 14 mbufs allocated to packet headers > 677/1430/8704 mbuf clusters in use (current/peak/max) > 3484 Kbytes allocated to network (13% of mb_map in use) > 0 requests for memory denied > 0 requests for memory delayed > 0 calls to protocol drain routines >=20 > My natural choice is to increase: >=20 > kern.ipc.maxsockets: 16424 >=20 > But before I do that, I want to see how many I am currently using. So, > whereas with open files I would simply check the kern.openfiles sysctl, > how do I check how many sockets I currently have open ? >=20 In 5.x, there's the kern.ipc.numopensockets sysctl(8). However, this is unlikely to fix your ENOBUFS problem. : 55 ENOBUFS No buffer space available. An operation on a socket or pipe : was not performed because the system lacked sufficient buffer : space or because a queue was full. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+6jZjUkv4P6juNwoRAttoAKCFDiFk7AL1zFFn+9qGtx5yCu7ibQCcCRLO OtAHMu2Z3tBPPNlXfceAPck= =nRPV -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 13:40:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BA6137B401 for ; Fri, 13 Jun 2003 13:40:48 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id 73C7D43FBD for ; Fri, 13 Jun 2003 13:40:47 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 28594 invoked by uid 5013); 7 Jun 2003 20:39:26 -0000 Date: Sat, 7 Jun 2003 21:39:26 +0100 From: Bruce M Simpson To: cd_freebsd Message-ID: <20030607203926.GH23471@spc.org> Mail-Followup-To: Bruce M Simpson , cd_freebsd , freebsd-hackers@freebsd.org References: <200306071339.AA203489334@gatorzone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306071339.AA203489334@gatorzone.com> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org Subject: Re: Mapping Physical Memory without a Device? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 20:40:49 -0000 On Sat, Jun 07, 2003 at 01:39:44PM -0400, cd_freebsd wrote: > After sending my first note, I found pmap_mapdev. Anything wrong with using that? It's quite evil and not machine independent..avoid. BMS From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 15:18:43 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EFE737B401 for ; Fri, 13 Jun 2003 15:18:43 -0700 (PDT) Received: from mx1.lphp.org (APastourelles-107-1-12-93.w193-251.abo.wanadoo.fr [193.251.80.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A19C43FA3 for ; Fri, 13 Jun 2003 15:18:41 -0700 (PDT) (envelope-from ajacoutot@lphp.org) Received: from sta01 (sta01.lphp.org.local [192.168.0.4]) by mx1.lphp.org (8.12.8p1/8.12.8) with ESMTP id h5DMIcwc093544; Sat, 14 Jun 2003 00:18:38 +0200 (CEST) (envelope-from ajacoutot@lphp.org) From: Antoine Jacoutot To: ticso@cicely.de, Bernd Walter Date: Sat, 14 Jun 2003 00:18:39 +0200 User-Agent: KMail/1.5.2 References: <1055519112.3ee9f1889860e@webmail.lphp.org> <20030613192958.GZ26807@cicely12.cicely.de> In-Reply-To: <20030613192958.GZ26807@cicely12.cicely.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200306140018.39187.ajacoutot@lphp.org> cc: "freebsd-hackers@freebsd.org" Subject: Re: problem with UMASS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 22:18:43 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 13 June 2003 21:29, Bernd Walter wrote: > Your device doesn't support 6 byte commands and the kernel switches > to 10 byte alternatives. > Where is your problem? In my message ! : > > If I boot with the device pluged-in, it works fine, but if I plug > > it in after boot or unplug then replug it, it doesn't work anymore > > (I get timeout errors). But nevermind, someone sent me a patch. =2D --=20 Antoine Jacoutot ajacoutot@lphp.org http://www.lphp.org pgp key: http://www.lphp.org/ressources/ajacoutot.asc =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+6k2/Y3Hnhkr+5cQRAqoJAJsHm9VjN7NI6mhZg4PrHvAnpuHwCQCePJDP KydQueuXNNjMSU9dVJTSt3E=3D =3D6+GR =2D----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 16:30:41 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B40637B401 for ; Fri, 13 Jun 2003 16:30:41 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 4300743FB1 for ; Fri, 13 Jun 2003 16:30:40 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 7326 invoked by uid 65534); 13 Jun 2003 23:30:39 -0000 Received: from p508E5CC8.dip.t-dialin.net (EHLO galatea.local) (80.142.92.200) by mail.gmx.net (mp009) with SMTP; 14 Jun 2003 01:30:39 +0200 Received: from tmm by galatea.local with local (Exim 4.20 #1) id 19Qy0e-0000Jj-VC for ; Sat, 14 Jun 2003 01:31:04 +0200 Date: Sat, 14 Jun 2003 01:31:04 +0200 From: Thomas Moestl To: freebsd-hackers@freebsd.org Message-ID: <20030613233104.GC670@crow.dom2ip.de> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gKMricLos+KVdGMg" Content-Disposition: inline User-Agent: Mutt/1.4.1i Sender: Thomas Moestl Subject: PLEASE REVIEW: Adding a pci_if method to facilitate specialized PCI bus drivers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 23:30:41 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I've attached a patch that adds a new pci_if method, assign_interrupt, and makes the PCI code implement and use it. This is private to the PCI bus and is only used internally (to find an interrupt of a child device); it is a method so that derived PCI bus drivers can override it. This is very useful for the sparc64 OFW PCI bus driver which I will commit soon, hopefully. On sparc64, there are some on-board devices which have special interrupt lines. To route their interrupts, we need not only know the device to route for, but also an interrupt index which is stored in the firmware for this device, and which is used to route on bridges instead of the intpin (in other cases, there's even the complete interrupt number stored there; for devices in PCI slots, we (usually) can use the intpin). This requires us to get this firmware property in the OFW PCI bus driver before routing the interrupt; that can't be done in the pcib route_interrupt method, since we don't know whether we are routing for another bridge (where we use whichever index we get passed) or for a child device (in which case we would need to look at the firmware property). Currently, the OFW PCI bus driver solves this by providing a stub version of the alloc_resource method, trapping the cases where rerouting is required and doing it before calling the generic PCI bus routine, but that leads to code duplication and is generally a bit ugly, as we are second-guessing where the PCI bus routines will want to route an interrupt. By moving the actual routing in a method which can be overridden, this can be solved cleanly, while not complicating the generic PCI bus code by much. If there are no objections, I would like to commit this soonish. Thoughts? Thanks, - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="pci-intr.diff" Index: dev/acpica/acpi_pci.c =================================================================== RCS file: /vol/ncvs/src/sys/dev/acpica/acpi_pci.c,v retrieving revision 1.3 diff -u -r1.3 acpi_pci.c --- dev/acpica/acpi_pci.c 17 Feb 2003 21:20:34 -0000 1.3 +++ dev/acpica/acpi_pci.c 13 Jun 2003 20:57:13 -0000 @@ -111,6 +111,7 @@ /* XXX: We should override these two. */ DEVMETHOD(pci_get_powerstate, pci_get_powerstate_method), DEVMETHOD(pci_set_powerstate, pci_set_powerstate_method), + DEVMETHOD(pci_assign_interrupt, pci_assign_interrupt_method), { 0, 0 } }; Index: dev/cardbus/cardbus.c =================================================================== RCS file: /vol/ncvs/src/sys/dev/cardbus/cardbus.c,v retrieving revision 1.38 diff -u -r1.38 cardbus.c --- dev/cardbus/cardbus.c 18 Feb 2003 21:24:00 -0000 1.38 +++ dev/cardbus/cardbus.c 13 Jun 2003 21:51:29 -0000 @@ -387,6 +387,7 @@ DEVMETHOD(pci_disable_io, pci_disable_io_method), DEVMETHOD(pci_get_powerstate, pci_get_powerstate_method), DEVMETHOD(pci_set_powerstate, pci_set_powerstate_method), + DEVMETHOD(pci_assign_interrupt, pci_assign_interrupt_method), {0,0} }; Index: dev/pci/pci.c =================================================================== RCS file: /vol/ncvs/src/sys/dev/pci/pci.c,v retrieving revision 1.219 diff -u -r1.219 pci.c --- dev/pci/pci.c 9 Jun 2003 18:08:46 -0000 1.219 +++ dev/pci/pci.c 13 Jun 2003 21:36:01 -0000 @@ -70,7 +70,8 @@ static int pci_memen(device_t pcib, int b, int s, int f); static int pci_add_map(device_t pcib, int b, int s, int f, int reg, struct resource_list *rl); -static void pci_add_resources(device_t pcib, device_t dev); +static void pci_add_resources(device_t pcib, device_t bus, + device_t dev); static int pci_probe(device_t dev); static int pci_attach(device_t dev); static void pci_load_vendor_data(void); @@ -119,6 +120,7 @@ DEVMETHOD(pci_disable_io, pci_disable_io_method), DEVMETHOD(pci_get_powerstate, pci_get_powerstate_method), DEVMETHOD(pci_set_powerstate, pci_set_powerstate_method), + DEVMETHOD(pci_assign_interrupt, pci_assign_interrupt_method), { 0, 0 } }; @@ -776,7 +778,7 @@ } static void -pci_add_resources(device_t pcib, device_t dev) +pci_add_resources(device_t pcib, device_t bus, device_t dev) { struct pci_devinfo *dinfo = device_get_ivars(dev); pcicfgregs *cfg = &dinfo->cfg; @@ -805,7 +807,7 @@ * If the re-route fails, then just stick with what we * have. */ - irq = PCIB_ROUTE_INTERRUPT(pcib, dev, cfg->intpin); + irq = PCI_ASSIGN_INTERRUPT(bus, dev); if (PCI_INTERRUPT_VALID(irq)) { pci_write_config(dev, PCIR_INTLINE, irq, 1); cfg->intline = irq; @@ -848,7 +850,7 @@ pcib = device_get_parent(bus); dinfo->cfg.dev = device_add_child(bus, NULL, -1); device_set_ivars(dinfo->cfg.dev, dinfo); - pci_add_resources(pcib, dinfo->cfg.dev); + pci_add_resources(pcib, bus, dinfo->cfg.dev); pci_print_verbose(dinfo); } @@ -1347,8 +1351,7 @@ */ if (!PCI_INTERRUPT_VALID(cfg->intline) && (cfg->intpin != 0)) { - cfg->intline = PCIB_ROUTE_INTERRUPT( - device_get_parent(dev), child, cfg->intpin); + cfg->intline = PCI_ASSIGN_INTERRUPT(dev, child); if (PCI_INTERRUPT_VALID(cfg->intline)) { pci_write_config(child, PCIR_INTLINE, cfg->intline, 1); @@ -1468,6 +1471,16 @@ cfg->subvendor, cfg->subdevice, cfg->baseclass, cfg->subclass, cfg->progif); return (0); +} + +int +pci_assign_interrupt_method(device_t dev, device_t child) +{ + struct pci_devinfo *dinfo = device_get_ivars(child); + pcicfgregs *cfg = &dinfo->cfg; + + return (PCIB_ROUTE_INTERRUPT(device_get_parent(dev), child, + cfg->intpin)); } static int Index: dev/pci/pci_if.m =================================================================== RCS file: /vol/ncvs/src/sys/dev/pci/pci_if.m,v retrieving revision 1.5 diff -u -r1.5 pci_if.m --- dev/pci/pci_if.m 16 Apr 2003 03:15:08 -0000 1.5 +++ dev/pci/pci_if.m 13 Jun 2003 21:06:02 -0000 @@ -77,3 +77,8 @@ device_t child; int space; }; + +METHOD int assign_interrupt { + device_t dev; + device_t child; +}; Index: dev/pci/pci_private.h =================================================================== RCS file: /vol/ncvs/src/sys/dev/pci/pci_private.h,v retrieving revision 1.8 diff -u -r1.8 pci_private.h --- dev/pci/pci_private.h 16 Apr 2003 03:15:08 -0000 1.8 +++ dev/pci/pci_private.h 13 Jun 2003 21:41:53 -0000 @@ -72,4 +72,5 @@ char *buf, size_t buflen); int pci_child_pnpinfo_str_method(device_t cbdev, device_t child, char *buf, size_t buflen); +int pci_assign_interrupt_method(device_t dev, device_t child); #endif /* _PCI_PRIVATE_H_ */ --gKMricLos+KVdGMg-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 18:57:54 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3D5F37B401 for ; Fri, 13 Jun 2003 18:57:54 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id 0E01C43FB1 for ; Fri, 13 Jun 2003 18:57:54 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 1469 invoked by uid 5013); 8 Jun 2003 17:29:52 -0000 Date: Sun, 8 Jun 2003 18:29:51 +0100 From: Bruce M Simpson To: Vlad GALU Message-ID: <20030608172951.GI23471@spc.org> Mail-Followup-To: Bruce M Simpson , Vlad GALU , freebsd-hackers@freebsd.org References: <20030608201656.5d8102d5.vladg@vipnet.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030608201656.5d8102d5.vladg@vipnet.ro> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org Subject: Re: kvm questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 01:57:55 -0000 On Sun, Jun 08, 2003 at 08:16:56PM +0300, Vlad GALU wrote: > Hello. I am trying to write a monitoring program > which makes use of the kvm interface. My problem here Please don't use the kvm interface; consider using sysctls instead. These are well documented within phk's recent article on the subject in Daemonnews. BMS From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 21:59:37 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1768A37B426 for ; Fri, 13 Jun 2003 21:59:36 -0700 (PDT) Received: from web13402.mail.yahoo.com (web13402.mail.yahoo.com [216.136.175.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 89F2643FBF for ; Fri, 13 Jun 2003 21:59:35 -0700 (PDT) (envelope-from giffunip@yahoo.com) Message-ID: <20030614045935.27124.qmail@web13402.mail.yahoo.com> Received: from [200.91.194.245] by web13402.mail.yahoo.com via HTTP; Sat, 14 Jun 2003 06:59:35 CEST Date: Sat, 14 Jun 2003 06:59:35 +0200 (CEST) From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" To: hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Problems with international keymaps X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 04:59:38 -0000 Hi guys; I submitted the first latin-american keymap ages ago, and it looks like I'm the only user because I recently have had some problems with it and no one seems to have complained at all !! Anyways, the keymap configuration is done differently today. /stand/sysinstall doesn't seem to use the keymaps files it used before.. it can't find them but it does change the keymap. Where do I permanently hack some keys to get it working correctly? cheers, Pedro. ______________________________________________________________________ Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro Anti-spam http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/ From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 14 11:15:14 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BDBD37B401 for ; Sat, 14 Jun 2003 11:15:14 -0700 (PDT) Received: from mailg.telia.com (mailg.telia.com [194.22.194.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02AE543FBF for ; Sat, 14 Jun 2003 11:15:13 -0700 (PDT) (envelope-from pvz@e.kth.se) Received: from e.kth.se (t1o902p40.telia.com [62.20.254.40]) by mailg.telia.com (8.12.9/8.12.9) with ESMTP id h5EIFAgN002410 for ; Sat, 14 Jun 2003 20:15:11 +0200 (CEST) X-Original-Recipient: Date: Sat, 14 Jun 2003 20:15:32 +0200 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed From: Per von Zweigbergk To: freebsd-hackers@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <2FA0B648-9E94-11D7-9827-000393C59E6C@e.kth.se> X-Mailer: Apple Mail (2.552) Subject: Samsung SC-152A CD-ROM not working with FreeBSD 4.8/5.0/5.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 18:15:14 -0000 First of all, i offer my sincerest apologies if this is sent to an inappropriate list. I got no helpful responses to this question / bug report neither on the freebsd-current mailing list nor on IRC. Also, since the web based bug reporting software was offline, I had no way to send the bug report, not having a working FreeBSD machine anywhere. I've tried submitting it to freebsd-bugs@freebsd.org, but I received no confirmation of the message having been received and recorded in the bug tracking database, nor did it turn up on a GNATS search. So, I figured it was just "lost in the noise". So, on the recommendation by a person on IRC, I decided to post it here, even though it may not be the best forum to post this in. Anyway... I have recently built two computers: 1) shiba: Microstar 865PE-Neo2 LS motherboard Intel Pentium 4 2.4 GHz processor with 800 MHz bus Three Intel Pro/100 (fxp) adapters One cheap Geforce4MX AGP card Western Digital 120 GB hard drive Some floppy disk drive Samsung SC-152A CD-ROM drive 2) danneman: Asus P4P800 motherbord (also with the same Intel 865PE chipset) Intel Pentium 4 2.4 GHz processor with 800 MHz bus One Intel Pro/100 (fxp) adapters One cheap Geforce4MX AGP card 3ware Escalade 7500-4 IDE RAID card Three Western Digital 120 GB hard drives in a RAID-5 configuration Some pretty generic Tekram card for SCSI (can't remember exact model number. It seems to work though.) One HP DAT72 drive connected via SCSI Some floppy disk drive Samsung SC-152A CD-ROM drive The Samsung drives are on a seperate IDE buses, connected with UDMA33 40-conductor cables to the IDE bus on the motherboard. The CD-ROM drives are all properly jumpered for IDE master operation. The problem I'm experiencing with both these computers is with the CD-ROM drive. Linux has no problem with the drive (as tested using Debian GNU/Linux rescue disks as well as GNU parted boot disks). However, upon attempting to run it with FreeBSD 5.1-RELEASE (5.0-RELEASE gave the same results), I got the following error messages on the console: ata1-master: timeout waiting for interrupt ata1-master: ATAPI identify failed (Booting verbosely gave no more information.) And the CD-ROM was nowhere to be found in the system. Even though the system had just booted of that very disk. This in itself however, is not surprising. I have very little knowledge about bootable CD-ROM:s, but from what I've understood, (this could be wrong, but the general idea is probably valid), you basically put some bootstrap code on a floppy image in a special place on the CD, and the BIOS "pretends" that the part of the CD is actually a bootable floppy. This allows FreeBSD to boot off the pseudo-floppy-on-CD without knowing how to access the rest of the CD without the help of the BIOS. All right, so FreeBSD basically can't access the CD-ROM drive. You'd generally suspect FreeBSD not liking the IDE controller or the chipset. Not so. When the drive is swapped for a CD-ROM drive of another (non-)brand, it works flawlessly. The same behaviour is displayed on both systems (not surprising, since the motherboards use the same chipsets.) What about 4.8-RELEASE I hear you think? Well, 4.8 didn't really like the drive either, but it disliked it in a different way. :-) I don't have the exact error messages available, but I believe it just got stuck in a long loop complaining about something similar to "ATAPI_SEEK_BIG". If you find it relevant, I can make bootdisks for FreeBSD 4.8 and check this out and post the exact error messages sequence. Either way, if there is any other pertinent information I can give you for resolving this bug, I'll be more than happy to provide it. And again, I apologise if this e-mail has been sent to an inappropriate e-mail address. -- Per von Zweigbergk From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 14 13:05:58 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81FB537B401 for ; Sat, 14 Jun 2003 13:05:57 -0700 (PDT) Received: from nd250009.gab.xdsl.ne.jp (nd250009.gab.xdsl.ne.jp [61.202.250.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id B509E43FA3 for ; Sat, 14 Jun 2003 13:05:56 -0700 (PDT) (envelope-from nork@FreeBSD.org) Received: from nd250009.gab.xdsl.ne.jp (nadesico.ninth-nine.com [192.168.36.3]) by nd250009.gab.xdsl.ne.jp (8.12.9/8.12.9/NinthNine) with SMTP id h5EK5s1I017984 for ; Sun, 15 Jun 2003 05:05:55 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sun, 15 Jun 2003 05:05:54 +0900 (JST) Message-Id: <200306142005.h5EK5s1I017984@nd250009.gab.xdsl.ne.jp> From: Norikatsu Shigemura To: freebsd-hackers@FreeBSD.org X-Mailer: Sylpheed version 0.9.2 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [SUGGEST] CPUTYPE reflects to FFLAGS in bsd.cpu.mk X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 20:05:58 -0000 When I checked octave port, I noticed that FORTRAN source was compiled without reflecting CPUTYPE. I think this should be changed behavior. If no problem, please commit this. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Index: bsd.cpu.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.cpu.mk,v retrieving revision 1.28 diff -u -r1.28 bsd.cpu.mk --- bsd.cpu.mk 22 May 2003 16:56:46 -0000 1.28 +++ bsd.cpu.mk 14 Jun 2003 19:52:28 -0000 @@ -147,4 +147,5 @@ .if !defined(NO_CPU_CFLAGS) CFLAGS += ${_CPUCFLAGS} +FFLAGS += ${_CPUCFLAGS} .endif - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 14 17:11:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19C9437B401; Sat, 14 Jun 2003 17:11:56 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-104-32.dsl.lsan03.pacbell.net [64.169.104.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5740743F75; Sat, 14 Jun 2003 17:11:55 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 1890266D6A; Sat, 14 Jun 2003 17:11:55 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 0EE21B7A; Sat, 14 Jun 2003 17:11:55 -0700 (PDT) Date: Sat, 14 Jun 2003 17:11:55 -0700 From: Kris Kennaway To: Norikatsu Shigemura Message-ID: <20030615001154.GA1373@rot13.obsecurity.org> References: <200306142005.h5EK5s1I017984@nd250009.gab.xdsl.ne.jp> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <200306142005.h5EK5s1I017984@nd250009.gab.xdsl.ne.jp> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org Subject: Re: [SUGGEST] CPUTYPE reflects to FFLAGS in bsd.cpu.mk X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2003 00:11:56 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 15, 2003 at 05:05:54AM +0900, Norikatsu Shigemura wrote: > When I checked octave port, I noticed that FORTRAN source was > compiled without reflecting CPUTYPE. I think this should be > changed behavior. If no problem, please commit this. >=20 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -= - - - > Index: bsd.cpu.mk > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/ncvs/src/share/mk/bsd.cpu.mk,v > retrieving revision 1.28 > diff -u -r1.28 bsd.cpu.mk > --- bsd.cpu.mk 22 May 2003 16:56:46 -0000 1.28 > +++ bsd.cpu.mk 14 Jun 2003 19:52:28 -0000 > @@ -147,4 +147,5 @@ > =20 > .if !defined(NO_CPU_CFLAGS) > CFLAGS +=3D ${_CPUCFLAGS} > +FFLAGS +=3D ${_CPUCFLAGS} > .endif The better place to do this would be in sys.mk. See how CXXFLAGS is handle= d there. Kris --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+67nKWry0BWjoQKURArYoAKCbwpwDQuGpkHwdtwmplSAXeNFAZgCgmQQI MZCDw09z2f5w/AvxpSxzL30= =4ZUQ -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--