Subject: G4 serial ports, and other questions
To: None <port-macppc@netbsd.org>
From: Joseph Sarkes <jsarkes@tiac.net>
List: port-macppc
Date: 05/22/2002 22:32:48
Does anyone know what the serial ports are in the G4? They show up in
the dmesg, and seem to be tty0 and tty1? but... are they in the chipset
apple used to build the machine and just not pinned out?

Another related question is where is the modem in the G4? Is it on one
of the above mysterious serial ports? I get some vague impression that
it is on a serial port and has an at command set, but I have no idea how
to set up to access it. I had no good result using tip to dty0c and 
dty1c.

On a third and totally unrelated matter, is there any progress yet on
enabling the second processor of a 1GHz G4? There is nothing in the
config directory for macppc that I could find to play with. I should at 
least
be able to play with the knobs, dials, and switches. but there don't 
really
seem to be many options to play with on macppc compared with i386.

Continuing onward on an even different topic, is there any support for
the multiple virtual console setup like on the i386 port? I could cut and
paste the flags from the i386 GENERIC config, but since I have to really
futz around to get a new kernel in a bootable location, it is easier to 
ask
what actually works in macppc that isn't yet ready for prime time and in
the config files.

A related question to my last paragraph, is whether ofwboot can load a
kernel from my second hard drive where I have my netbsd stuff installed.
I have been doing a 0> boot hd:,ofwboot.xcf netbsd command with
netbsd  and ofwboot.xcf on my first hard drive which is a single hfs+
partition. It seems to me that ofwboot can't recognize partitions on a
drive that has an apple partition table. I am assuming that if the drive
was set up with just a netbsd disklabel on it I could get things to work.
However, my second disk is used as a playground for  a number of things,
and has an hfs+, an apple ufs partition, and 5 netbsd partitions on it. 
I also
wanted to put linux back on that drive but... I think something 
interferes
between netbsd and yellowdog linux partitions.

Finally, will X work on my G4? I have a cinema display on it. If I 
install the
xbase.tgz, etc., will I end up with a useable X server? If all I will 
have to do
is generate an XF86Config file or something, I can start playing around, 
but
my impression is that the Xserver is actually for the macppc and has 
nothing
to do with XF86. Again, I am totally in the dark on this, and need a 
place to
start from. If I can avoid known pitfalls, all the better.

Aside from questions, I have to say that my macppc looks remarkably like
an i386 netbsd system :). I have successfully done a generation of a 
-current
macppc release, but should now install it and test it to make sure 
everything
went ok. There is something funny about newer G4 systems that prevents
booting unless you use the netbsd.GENERIC_MD kernel. I don't know enough
about where things get loaded to be able to explain why this is, but 
hopefully
this info can be used by the port maintainer to create GENERIC kernels 
that
do boot properly.

Anyways, Thanks for any help/info you can provide. Despite Darwin/OSX
being "unix", I prefer netbsd from past familiarity and overall feel. 
Trying to
find where apple hid the configuration for various things is driving me 
nuts.
I have yet to get a working nfs mount between netbsd and osx.

TIA,

Joseph Sarkes
jsarkes@tiac.net