kumquat-buildroot/board
Luca Ceresoli 20878a1017 raspberrypi, raspberrypi2: add a serial console
The current Buildroot defconfigs for Raspberry Pi and Raspberry Pi 2
instantiate a console on tty1, which appears on HDMI. Add a console on
the serial port (ttyAMA0) to be more consistent with other defconfigs
and provide a better out-of-the-box experience to users used to have a
serial console from Buildroot defconfigs.

This requires three changes:
 1. have two 'console=' entries in the kernel command line: tty1,
    then ttyAMA0;
 2. change BR2_TARGET_GENERIC_GETTY_PORT to "console", so it starts
    a getty on the last console= passed to the kernel, ttyAMA0;
 3. add a new getty on tty1 to the generated inittab.

Step 2 is actually obtained by removing BR2_TARGET_GENERIC_GETTY_PORT
entirely from the defconfigs, since "console" is the default value.

Step 3 requires a post-build script since the Buildroot makefiles can
configure only one console.

Note: instead of simply adding a new getty on ttyAMA0 (which would
work) this patch actually changes BR2_TARGET_GENERIC_GETTY_PORT to
instantiate a console on UART, then adds back tty1 via
post-build.sh. This is done only to avoid the "GENERIC_SERIAL" comment
where we instantiate an HDMI console, then instantiate a really-serial
console on another line.

The result is these two inittab lines:

  console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL
  tty1::respawn:/sbin/getty -L  tty1 0 vt100 # HDMI console

Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-04-18 13:36:11 +02:00
..
acmesystems board: Add support for Acmesystems Arietta g25 2016-02-17 17:00:59 +01:00
altera altera: remove whitespace before colon 2016-03-22 23:59:36 +01:00
arm configs/arm_foundationv8: bump to Linux 4.4.3 2016-02-26 19:43:33 +01:00
armadeus
atmel board/atmel: update documentation for SD card generation 2016-04-13 23:47:48 +02:00
avnet configs: rename Zynq defconfig files 2016-03-31 18:40:43 +02:00
beaglebone
boundarydevices/common board/boundarydevices: rename folder and update readme 2016-03-03 17:42:14 +01:00
calao board/calao: drop remaining snowball files 2016-02-22 12:12:11 +01:00
ci20
congatec/qmx6
cubietech configs: update cubieboard2 defconfig 2015-12-29 18:03:22 +01:00
embest/riotboard
firefly/firefly-rk3288 board/firefly_rk3288: add new board 2016-02-20 12:06:40 +01:00
freescale board: add support for Freescale i.MX6UL Evaluation Kit 2016-01-31 23:43:26 +01:00
intel/galileo
lego/ev3
minnowboard
minnowboard-max board/minnowboard-max: Rework to generate SD card image 2016-04-13 23:06:36 +02:00
olimex olimex_imx233_olinuxino_defconfig: genimage support 2016-03-11 13:14:54 +01:00
orangepi/orangepipc configs/orangepi: Changing Linux kernel to v4.5-rc1 2016-01-29 17:50:11 +01:00
pandaboard pandabord: use genimage to generate sdcard image 2016-02-26 15:56:12 +01:00
qemu configs/qemu: enable modules for x86 and x86_64 2016-03-29 03:01:44 +02:00
raspberrypi raspberrypi, raspberrypi2: add a serial console 2016-04-18 13:36:11 +02:00
stmicroelectronics configs/stm32f469_disco: new configuration for STM32F469 Discovery board 2016-04-16 12:44:07 +02:00
synopsys
telit/evk-pro3
ts/ts5x00
via/imx6_vab820
wandboard
xilinx/zc706 configs: rename Zynq defconfig files 2016-03-31 18:40:43 +02:00
raspberrypi2