Serial Console on XServe and yaboot???
Hi Ethan,
Quoted 25 lines · Ethan Benson
Quoted 8 lines · Bill Fink
I'd like to use the serial port on the XServe as a serial console. I enabled
CONFIG_SERIAL_CONSOLEin a 2.4.20-0.7b (YDL 2.3) kernel, set the OF input-device and output-device parameters to ttya, and booted with the kernel argument "console=ttyS0,38400".This actually works once the system starts booting. My problem is that I never get a chance to interact with yaboot and thus for
you will need to use a different first stage (magicboot) or none at all (if OF will boot that way, some models refuse to autoboot binaries without the CHRP bootinfos). the default ofboot script installed with yaboot forces the output to screen to work around stupid hacks in apple OF to prevent `archaic peecee text' from appearing on the screen.
Quoted 3 lines
example can't select a different Linux kernel to boot. Is there any way to accomplish this, for example by some suitable modification to the ofboot.b file in the boot partition? Or is this just not
never modify the bootstrap partition, edit the magicboot= line in
/etc/yaboot.confto point to an alternate script. you can make a copy of the/usr/lib/yaboot/ofbootfile, then find and change the line:
Quoted 7 lines
" screen" output
to
" ttya" output
later im going to fix this so it won't have this problem.
Thanks a bunch for the info! Using this method, with scca instead of ttya, and a baud rate of 57600 (using a laptop), I was able to verify this basically works. The initial menu that asks you what you want to boot (Linux, MacOS 9, MacOS X, etc) still goes to the screen (at least it does if you have a screen attached) but the yaboot menu where you select the Linux kernel to boot does show up on the serial port of the XServe, and this is what I'm most interested in. Now if I can just figure out how to set the baud rate of the serial console for OF to 38400 or less to make my console server happy, I'd be in business. If nothing else I can use the laptop approach which is at least a lot easier than toting a big monitor around.
-Bill
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 6 lines · Bill Fink
Thanks a bunch for the info! Using this method, with scca instead of ttya, and a baud rate of 57600 (using a laptop), I was able to verify this basically works. The initial menu that asks you what you want to boot (Linux, MacOS 9, MacOS X, etc) still goes to the screen (at least it does if you have a screen attached) but the
yes this is because i had to write all my text directly to the framebuffer, apple takes all kinds of special efforts to prevent `archaic peecee text' from showing up on the screen... this problem should be fixed in yaboot 2.0
i don't consider it too serious right now since if your doing serial console your probably not running any macos.
you could probably fix this easily enough for your setup by altering the `.printf' definition in ofboot.
Quoted 7 lines
yaboot menu where you select the Linux kernel to boot does show up on the serial port of the XServe, and this is what I'm most interested in. Now if I can just figure out how to set the baud rate of the serial console for OF to 38400 or less to make my console server happy, I'd be in business. If nothing else I can use the laptop approach which is at least a lot easier than toting a big monitor around.
hmm, not sure on that one.
--
Ethan Benson
http://www.alaska.net/~erbenson/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Hi Ethan,
Quoted 13 lines · Ethan Benson
Quoted 6 lines · Bill Fink
Thanks a bunch for the info! Using this method, with scca instead of ttya, and a baud rate of 57600 (using a laptop), I was able to verify this basically works. The initial menu that asks you what you want to boot (Linux, MacOS 9, MacOS X, etc) still goes to the screen (at least it does if you have a screen attached) but the
yes this is because i had to write all my text directly to the framebuffer, apple takes all kinds of special efforts to prevent `archaic peecee text' from showing up on the screen... this problem should be fixed in yaboot 2.0
Quoted 5 lines
i don't consider it too serious right now since if your doing serial console your probably not running any macos.
you could probably fix this easily enough for your setup by altering the `.printf' definition in ofboot.
It's not a big deal since I only want to run Linux at the moment.
Quoted 9 lines
Quoted 7 lines
yaboot menu where you select the Linux kernel to boot does show up on the serial port of the XServe, and this is what I'm most interested in. Now if I can just figure out how to set the baud rate of the serial console for OF to 38400 or less to make my console server happy, I'd be in business. If nothing else I can use the laptop approach which is at least a lot easier than toting a big monitor around.
hmm, not sure on that one.
I figured it out. I just set the OpenFirmware parameters input-device and output-device to scca:38400 and it worked fine (except it put my window into reverse video mode for some reason).
-Thanks again
-Bill
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/