kumquat-buildroot/configs
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_aria_g25_128mb_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
acmesystems_aria_g25_256mb_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
acmesystems_arietta_g25_128mb_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
acmesystems_arietta_g25_256mb_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
altera_socdk_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
altera_sockit_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
arm_foundationv8_defconfig configs/arm_foundationv8: bump to Linux 4.4.3 2016-02-26 19:43:33 +01:00
arm_juno_defconfig board: add support for ARM Juno r0 and r1 Development Boards 2016-02-04 21:55:00 +01:00
armadeus_apf27_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
armadeus_apf28_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
armadeus_apf51_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
armadeus_apf9328_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
at91sam9g20dfc_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
at91sam9g45m10ek_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
at91sam9rlek_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
at91sam9x5ek_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
at91sam9260eknf_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
atmel_sama5d2_xplained_mmc_defconfig configs: atmel: add sama5d2 xplained sd card image generation 2016-04-13 23:47:37 +02:00
atmel_sama5d3_xplained_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
atmel_sama5d3_xplained_mmc_defconfig configs: atmel: add sama5d3 xplained sd card image generation 2016-04-13 23:47:44 +02:00
atmel_sama5d3xek_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
atmel_sama5d4_xplained_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
atmel_sama5d4_xplained_mmc_defconfig configs: atmel: add sama5d4 xplained sd card image generation 2016-04-13 23:47:42 +02:00
atmel_sama5d4ek_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
beaglebone_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
calao_qil_a9260_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
calao_tny_a9g20_lpw_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
calao_usb_a9g20_lpw_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
calao_usb_a9260_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
calao_usb_a9263_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
ci20_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
cubieboard2_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
cubieboard_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
firefly_rk3288_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
firefly_rk3288_demo_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
freescale_imx6dlsabreauto_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
freescale_imx6dlsabresd_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
freescale_imx6qsabreauto_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
freescale_imx6qsabresd_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
freescale_imx6sololiteevk_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
freescale_imx6sxsabresd_defconfig freescale_imx6sxsabresd_defconfig: fix kernel headers version 2016-04-15 13:43:26 +02:00
freescale_imx6ulevk_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
freescale_imx28evk_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
freescale_imx31_3stack_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
freescale_mpc8315erdb_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
freescale_p1010rdb_pa_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
freescale_p2020ds_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
galileo_defconfig configs: galileo: correct genimage dependencies 2016-03-13 22:56:05 +01:00
kb9202_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
lego_ev3_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
mini2440_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
minnowboard_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
minnowboard_max_defconfig configs/minnowboard_max: configure eth0 through dhcp 2016-04-15 10:17:18 +02:00
mx53loco_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
nitrogen6sx_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
nitrogen6x_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
nitrogen7_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
olimex_a20_olinuxino_lime2_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
olimex_a20_olinuxino_lime_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
olimex_a20_olinuxino_lime_mali_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
olimex_a20_olinuxino_micro_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
olimex_imx233_olinuxino_defconfig olimex_imx233_olinuxino_defconfig: genimage support 2016-03-11 13:14:54 +01:00
openblocks_a6_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
orangepipc_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
pandaboard_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
qemu_aarch64_virt_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_arm_versatile_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
qemu_arm_vexpress_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
qemu_m68k_q800_defconfig qemu-m68k: add new board 2016-03-20 15:28:55 +01:00
qemu_microblazebe_mmu_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_microblazeel_mmu_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_mips64_malta_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_mips64el_malta_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_mips_malta_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_mipsel_malta_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_ppc64_pseries_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_ppc_g3beige_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_ppc_mpc8544ds_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_ppc_virtex_ml507_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_sh4_r2d_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
qemu_sh4eb_r2d_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
qemu_sparc64_sun4u_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_sparc_ss10_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
qemu_x86_64_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_x86_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qemu_xtensa_lx60_defconfig configs/qemu: bump to the latest linux versions 2016-03-14 22:14:56 +01:00
qmx6_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
raspberrypi2_defconfig raspberrypi, raspberrypi2: add a serial console 2016-04-18 13:36:11 +02:00
raspberrypi_defconfig raspberrypi, raspberrypi2: add a serial console 2016-04-18 13:36:11 +02:00
riotboard_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
s6lx9_microboard_defconfig s6lx9_microboard_defconfig: lock kernel version 2016-04-15 11:48:43 +02:00
sheevaplug_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
snps_aarch64_vdk_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
snps_axs101_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
snps_axs103_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
snps_hs38_smp_vdk_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
snps_hs38_vdk_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
stm32f429_disco_defconfig configs/stm32f429_disco: new configuration for STM32F429 Discovery board 2016-04-16 12:43:28 +02:00
stm32f469_disco_defconfig configs/stm32f469_disco: new configuration for STM32F469 Discovery board 2016-04-16 12:44:07 +02:00
telit_evk_pro3_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
ts5x00_defconfig defconfigs: all use the headers from the kernel 2016-02-06 10:59:15 +01:00
udoo_quad_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
via_imx6_vab820_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
wandboard_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
warpboard_defconfig linux: use zImage by default on ARM 2016-04-05 22:23:54 +02:00
zynq_microzed_defconfig configs: rename Zynq defconfig files 2016-03-31 18:40:43 +02:00
zynq_zc706_defconfig configs: rename Zynq defconfig files 2016-03-31 18:40:43 +02:00
zynq_zed_defconfig configs: rename Zynq defconfig files 2016-03-31 18:40:43 +02:00