From Tue Jun 26 11:11:28 2001
Received: from ( []) by (8.11.3/8.8.5) with ESMTP id f5QHBRp3628077; Tue, 26 Jun 2001
11:11:28 -0600 (MDT)
Received: from ( [])
	by (8.11.4/8.11.4/(ccn-5)) with ESMTP id f5QHBRH25022;
	Tue, 26 Jun 2001 11:11:27 -0600
Received: from ( [])
	by (8.11.4/8.11.4/(ccn-5)) with ESMTP id f5QHBRS06079;
	Tue, 26 Jun 2001 11:11:27 -0600
Received: from ( [])
	by (CSE Mail Server) with ESMTP
	id 4764E199ED; Tue, 26 Jun 2001 13:11:14 -0400 (EDT)
Received: from ( [])
	by (CSE Mail Server) with ESMTP id 31CEB199C1
	for <>; Tue, 26 Jun 2001 13:10:46 -0400 (EDT)
Received: from ( [])
	by (8.9.3/8.9.3) with ESMTP id NAA03705;
	Tue, 26 Jun 2001 13:10:45 -0400 (EDT)
From: Dan Cross <>
Received: (from cross@localhost)
	by (8.9.3+Sun/8.9.3) id NAA06056;
	Tue, 26 Jun 2001 13:10:45 -0400 (EDT)
Message-Id: <>
Newsgroups: comp.os.plan9
In-Reply-To: <>
Organization: Mememememememmeme
Subject: [9fans] Re: bitsy question
X-Mailman-Version: 2.0.1
Precedence: bulk
List-Id: Fans of the OS Plan 9 from Bell Labs <>
List-Archive: <>
Date: Tue, 26 Jun 2001 13:10:45 -0400 (EDT)
Status: RO

In article <> you write:
>I have Plan9 installed on my ipaq, but I don't have a pcmcia sleeve,
>or wavelan on my network.

Ouch; that makes it much more difficult to use, as you have discovered.

>So I have been trying to link the bitsy to my terminal using ppp over
>the serial port. (I made a ramdisk with ip/ppp).
>PPP tries to authenticate for 30 seconds (through chap, I think) then
>times out.
>I've tried running ppp a few different ways, but something like
> ip/ppp -df -b 115200 -p /dev/eia0 -s $user:$secret
>on the bitsy and something like
> ip/ppp -dfS -b 115200 -p /dev/eia0
>on the server.
>Has anyone tried this? What am I doing wrong?

Well, at least one thing that you're probably encountering is that the
bitsy tries to use the serial port as a console device, and is
hardwired in the kernel to do so. In order to fix that, you have to
edit the kernel sources in /sys/src/9/bitsy/ and recompile; I managed
to turn it off by changing the argument to sa1110_uartsetup() to zero
in main.c. However, if you do ONLY that, the machine panics when it
comes up because the keyboard input queue for the console device is
nil. Whoops! You have to change sa1110_uartsetup() in sa1110uart.c
(the last routine in the file) to assign a valid Queue pointer to
kbdq. I just changed the relevant section to be:

	if(console) {
		uartspecial(p, 115200, &kbdq, &printq, kbdcr2nl);
	} else {
		kbdq = qopen(4*1024, 0, 0, 0);

That is, adding the ``else'' clause which calls qopen. I'm not sure
that this is the best method; if there's a better one, I'd be
interested to know.

btw- the serial console mode can be really handy at times; it's nice to
be able to put the bitsy on it's cradle, start up con, and then type
into bitsy windows without using bitsy/keyboard. The hand becomes much
less cramped.

Anyway, I'm assuming this is something you haven't messed with yet;
it'd most definately mess with ip/ppp, since every other character gets
redirected to /dev/cons!

Another problem you may have is that the bitsy uart driver doesn't
really do modem control; actually, it might be more accurate to say
that the StrongARM SA1100 doesn't do modem control signaling directly.
Instead, it simulates it using the GPIO pins on the 1100. I'm not sure
what exactly, if anything, the bitsy does differently in this regard
(the driver has a comment about the RTS/CTS stuff being h3600 specific,
but nothing more); my attempts to add DTR and RTS/CTS modem control to
the serial driver didn't work the way I had expected them to (I was
trying to hack them in in order to get my Targus stowaway keyboard
working; I did get it to mostly ``do the right thing,'' but it wasn't
perfect and I got busy with other stuff. I'll get back to it

I've been meaning to try out ppp on the bitsy, using my ricochet modem,
but I haven't round a serial cable for it yet (well, I haven't exactly
been looking that hard). I definately thing it'd be pretty cool to use
my bitsy to send email from the train., huh? You in New York? Anyone else on the list in NYC? We
ought to start a New York Plan 9 Club or something.

	- Dan C.