From owner-freebsd-ppc Wed Jul 24 6:30:46 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE51D37B427 for ; Wed, 24 Jul 2002 06:30:40 -0700 (PDT) Received: from wantpackets.com (wantpackets.com [208.8.54.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7F1C43E42 for ; Wed, 24 Jul 2002 06:30:39 -0700 (PDT) (envelope-from andy@wantpackets.com) Received: from wantpackets.com (www@wantpackets.com [208.8.54.110]) by wantpackets.com (8.12.3/8.12.3) with ESMTP id g6ODXua6066428 for ; Wed, 24 Jul 2002 09:34:01 -0400 (EDT) (envelope-from andy@wantpackets.com) Received: (from www@localhost) by wantpackets.com (8.12.3/8.12.3/Submit) id g6ODXtil066427 for freebsd-ppc@freebsd.org; Wed, 24 Jul 2002 09:33:55 -0400 (EDT) (envelope-from andy@wantpackets.com) From: Andy X-Authentication-Warning: wantpackets.com: www set sender to andy@localhost using -f To: freebsd-ppc@freebsd.org Subject: Re: psim non-blocking i/o Message-ID: <1027517635.3d3eacc358a89@www.wantpackets.com> Date: Wed, 24 Jul 2002 09:33:55 -0400 (EDT) References: <3D3CA108.5CCABC4E@ptree32.com.au> In-Reply-To: <3D3CA108.5CCABC4E@ptree32.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.7 X-Originating-IP: 216.65.176.203 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I did this with partial success. This only seems to work with the stand-alone version, and did not work for the internal version (internal to gdb). I was using gdb-5.2 sources. > I had mentioned previously that psim does blocking i/o by default, > which > stalls the system when the polling ofw console driver does a read. > > Psim can do non-blocking i/o if it's built with the right options. > > - pass the '--enable-sim-stdio=no' option on the configure command > line > > - in the device tree, insert the line > > /openprom/options/use-stdio? false > > *after* the '/#address-cells 1', if it's present. > > later, > > Peter. > Here is my output... %./run -r 16777216 -f tree/src/sys/powerpc/compile/PowerPC/psim-tree tree/src/sy s/powerpc/compile/PowerPC/kernel.debug chirp: note descriptor missing load-base powerpc_init: no loader metadata. Copyright (c) 1992-2002 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 5.0-CURRENT #8: Tue Jul 23 23:36:56 GMT 2002 andy@laptop.marlene.lan:/usr/home/andy/src/tree/src/sys/powerpc/compile/Powe rPC CPU: PowerPC Simulator (psim) (Revision 0) real memory = 16609280 (16220K bytes) avail memory = 12816384 (12516K bytes) nexus_probe: can't get interrupt-controller nexus0: ofwd0: on nexus0 ofwd0: located at /phb@0x70000000/ide@1/disk@0 Initializing GEOMetry subsystem Timecounters tick every 10.000 msec Timecounter "powerpc" frequency 16666666 Hz Mounting root from cd9660:ofwd0 cd9660: RockRidge Extension Jan 1 00:00:01 init: login_getclass: unknown class 'daemon' (null): entered sh.. (null): set locale (null): calling sh init() : Can't open : No such file or directory pmap_release: does not really exist (HELP!) Jan 1 00:00:04 init: /etc/pwd.db: No such file or directory Enter full pathname of shell or RETURN for /bin/sh: (null): entered sh.. (null): set locale (null): calling sh init() (null): state 2, going to 3... (null): state 3, going to 4... (null): state 4..., going to command loop # echo * echo * bin build-image.sh dev etc libexec sbin tmp usr var # echo bin/* echo bin/* bin/csh bin/date bin/hostname bin/ln bin/ls bin/ps bin/sh bin/sync bin/sysctl # echo sbin/* echo sbin/* sbin/dhclient sbin/dmesg sbin/fsck sbin/fsck_ffs sbin/hello.c sbin/ifconfig sbin/init sbin/init.bak sbin/mount sbin/newfs sbin/ping sbin/reboot sbin/route sbin/shutdown sbin/swapon sbin/umount # # sbin/dmesg sbin/dmesg Copyright (c) 1992-2002 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 5.0-CURRENT #8: Tue Jul 23 23:36:56 GMT 2002 andy@laptop.marlene.lan:/usr/home/andy/src/tree/src/sys/powerpc/compile/PowerPC CPU: PowerPC Simulator (psim) (Revision 0) real memory = 16609280 (16220K bytes) avail memory = 12816384 (12516K bytes) nexus_probe: can't get interrupt-controller nexus0: ofwd0: on nexus0 ofwd0: located at /phb@0x70000000/ide@1/disk@0 Initializing GEOMetry subsystem Timecounters tick every 10.000 msec Timecounter "powerpc" frequency 16666666 Hz Mounting root from cd9660:ofwd0 pmap_release: does not really exist (HELP!) pmap_release: does not really exist (HELP!) # sbin/ifconfig sbin/ifconfig lo0: flags=8008 mtu 16384 pmap_release: does not really exist (HELP!) # bin/ls bin/ls --- it locks up here. I was thoroughly amused to see "#"... Hitting control-c with the gdb-psim is not my idea of debugging. -andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message