Skip to contentSkip to conversation

Serial Console on XServe and yaboot???

DISCUSSION Bill Fink 4 participants 8 messages Mar 12, 2003 – Mar 14, 2003

lore
Share & tools
lore

Bill Fink

author
#0 lore raw

I'd like to use the serial port on the XServe as a serial console. I enabled CONFIG_SERIAL_CONSOLE in 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 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 supported by the hardware?

Thanks in advance for any help or pointers, or even for informing me that this is a hopeless quest.

-Bill

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 12 lines · Bill Fink

I'd like to use the serial port on the XServe as a serial console. I enabled CONFIG_SERIAL_CONSOLE in 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 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 supported by the hardware?

Quoted 2 lines

Thanks in advance for any help or pointers, or even for informing me that this is a hopeless quest.

iirc, there is something weird with the OF params for the console on the xserve. Try changing these:

intput-device    "scca"
output-device    "scca"
input-device-1   "scca"
output-device-1  "scca"

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#7 lore raw
In reply to Bill Fink
Quoted 8 lines · Bill Fink

I'd like to use the serial port on the XServe as a serial console. I enabled CONFIG_SERIAL_CONSOLE in 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.conf to point to an alternate script. you can make a copy of the /usr/lib/yaboot/ofboot file, then find and change the line:

" screen" output

to

" ttya" output

later im going to fix this so it won't have this problem.

--
Ethan Benson
http://www.alaska.net/~erbenson/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Benjamin Herrenschmidt
Quoted 7 lines · Benjamin Herrenschmidt

iirc, there is something weird with the OF params for the console on the xserve. Try changing these:

intput-device    "scca"
output-device    "scca"
input-device-1   "scca"
output-device-1  "scca"

It may be different on the xserve, but on my 7600, the names of the serial ports in OF are 'ttya' and 'ttyb'.

Brad Boyer
[email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw

Re: Serial Console on XServ and yaboot???

Quoted 11 lines · Brad Boyer
Quoted 7 lines · Benjamin Herrenschmidt

iirc, there is something weird with the OF params for the console on the xserve. Try changing these:

intput-device    "scca"
output-device    "scca"
input-device-1   "scca"
output-device-1  "scca"

It may be different on the xserve, but on my 7600, the names of the serial ports in OF are 'ttya' and 'ttyb'.

Those are the alias names I found in an xserve device-tree dump I keep around here. Looks like Apple changed them since the 7600...

Actually, "scca" and "sccb" are also the alias names on my tipb, so I beleive this is a change on all newworlds or maybe all core99's

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

author
#4 lore raw
In reply to Benjamin Herrenschmidt

Hi Ben,

Quoted 16 lines · Benjamin Herrenschmidt
Quoted 12 lines · Bill Fink

I'd like to use the serial port on the XServe as a serial console. I enabled CONFIG_SERIAL_CONSOLE in 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 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 supported by the hardware?

Quoted 2 lines

Thanks in advance for any help or pointers, or even for informing me that this is a hopeless quest.

Quoted 7 lines

iirc, there is something weird with the OF params for the console on the xserve. Try changing these:

intput-device    "scca"
output-device    "scca"
input-device-1   "scca"
output-device-1  "scca"

Thanks for the idea, but unfortunately it had no effect, as I saw no yaboot screens show up when I did a reboot. Is it possible that the initial OF uses a different baud rate than 38400 (although I didn't even see any garbage show up)?

-Bill

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#5 lore raw
Quoted 28 lines · Bill Fink

Hi Ben,

Quoted 16 lines · Benjamin Herrenschmidt
Quoted 12 lines · Bill Fink

I'd like to use the serial port on the XServe as a serial console. I enabled CONFIG_SERIAL_CONSOLE in 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 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 supported by the hardware?

Quoted 2 lines

Thanks in advance for any help or pointers, or even for informing me that this is a hopeless quest.

Quoted 7 lines

iirc, there is something weird with the OF params for the console on the xserve. Try changing these:

intput-device    "scca"
output-device    "scca"
input-device-1   "scca"
output-device-1  "scca"
Quoted 4 lines

Thanks for the idea, but unfortunately it had no effect, as I saw no yaboot screens show up when I did a reboot. Is it possible that the initial OF uses a different baud rate than 38400 (although I didn't even see any garbage show up)?

Hrm... I did manage to get it last time I played with an xserve. I don't remember the baudrate though (maybe 57600...)

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

author
#6 lore raw
Quoted 12 lines · Benjamin Herrenschmidt
Quoted 11 lines · Bill Fink
Quoted 7 lines · Benjamin Herrenschmidt

iirc, there is something weird with the OF params for the console on the xserve. Try changing these:

intput-device    "scca"
output-device    "scca"
input-device-1   "scca"
output-device-1  "scca"
Quoted 7 lines
Quoted 4 lines

Thanks for the idea, but unfortunately it had no effect, as I saw no yaboot screens show up when I did a reboot. Is it possible that the initial OF uses a different baud rate than 38400 (although I didn't even see any garbage show up)?

Hrm... I did manage to get it last time I played with an xserve. I don't remember the baudrate though (maybe 57600...)

I determined it is indeed 57600. Does anyone know of any OpenFirmware parameter on the XServe to set the baud rate of the serial port? Unfortunately my current console server maxes out at 38400.

-Bill

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/