Download raw body.
powerpc64 boot: echo 1st key
> It annoys me that powerpc64 boot doesn't echo the 1st key; I type > "bsd.rd" and see "boot> sd.rd". This is because rdboot turns off ECHO > while waiting 5 seconds for the 1st key. (After 5 seconds, it times > out and boots the default bsd.) > > If I turn on ECHO, the 1st key echoes twice: "boot> bbsd.rd". > > This diff works for me: getchar, putchar for echo, ungetc(3) before > the next fgets(3). There is a race where the serial port can try to > type a 2nd key before rdboot turns on ECHO. (I always typed by hand > and never pasted a string.) Even so, I guess that echoing 1 key is > better than 0, then is this ok? FWIW, I have noticed the same behaviour on Octeon. I am not sure whether your diff is the right way to fix this, but if it does, the same diff will need to be applied to sys/arch/octeon/stand/rdboot/cmd.c as well (perhaps with a boot version update for both platforms).
powerpc64 boot: echo 1st key