Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2002 09:33:55 -0400 (EDT)
From:      Andy <andy@wantpackets.com>
To:        freebsd-ppc@freebsd.org
Subject:   Re: psim non-blocking i/o
Message-ID:  <1027517635.3d3eacc358a89@www.wantpackets.com>
In-Reply-To: <3D3CA108.5CCABC4E@ptree32.com.au>
References:  <3D3CA108.5CCABC4E@ptree32.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <OpenFirmware Nexus device>
ofwd0: <OpenFirmware disk> 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: <OpenFirmware Nexus device>
ofwd0: <OpenFirmware disk> 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<LOOPBACK,MULTICAST> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1027517635.3d3eacc358a89>