Comment 3 for bug 697824

Revision history for this message
Loïc Minier (lool) wrote :

Hmm it would be nice if latest linaro-image-tools could keep supporting older images though

Grepping for ttyS2, there are two blocks matching in linaro-media-create:
- the beagle|igep case (console=ttyS2,115200n8 and serialtty=ttyS2)
- a seeminly bogus consoles snippet:
serial_opts=""
if [ "$consoles" ]; then
  for c in ${consoles}; do
    serial_opts="$serial_opts console=$c"
  done
  if [ "$IS_LIVE" -eq 1 ]; then
    serial_opts="$serial_opts serialtty=ttyS2"
  fi
fi

(I think this second snippet is currently bogus in that it hardcodes ttyS2 for all boards.)

I can't think of something elegant right now to handle this change; in an ideal world, we would simply be telling the kernel we want to see console output on the usual serial port, and keep the information about which serial port that is in the kernel itself. We could do something clever in the initramfs or in the rootfs, but not for kernel boot messages :-/

For now, maybe we should just duplicate beagle|igep support into an oldbeagle|oldigep and use ttyS2 in the latter and ttyO2 in the former? alternatively, we could have a new --omap-newserial or --omap-oldserial flag which would select the other tty device.