From 37c236672446dd76795dc3dd15b301e7d34f5f6b Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Fri, 22 Apr 2016 11:24:37 +0200 Subject: [PATCH] linux-raspberrypi: Set baudrate and use serial0 for kgdboc The driver for 8250 defaults to 9600. We setup it on 115200 to be consistent with getty configuration. The firmware can do its magic with kgdboc too as it searches and replaces =serial0 and =serial1. So, use serial0 for kgdboc too. Signed-off-by: Andrei Gherzan --- recipes-kernel/linux/linux-raspberrypi.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index eccbbc6..4799c74 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -20,10 +20,10 @@ KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig" # CMDLINE for raspberrypi -CMDLINE = "dwc_otg.lpm_enable=0 console=serial0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" +CMDLINE = "dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" # Add the kernel debugger over console kernel command line option if enabled -CMDLINE_append = ' ${@base_conditional("ENABLE_KGDB", "1", "kgdboc=ttyAMA0,115200", "", d)}' +CMDLINE_append = ' ${@base_conditional("ENABLE_KGDB", "1", "kgdboc=serial0,115200", "", d)}' UDEV_GE_141 ?= "1"