From patchwork Tue Jun 21 05:35:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 638487 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rYbzG4r3Gz9sf9 for ; Tue, 21 Jun 2016 15:35:22 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=vanguardiasur-com-ar.20150623.gappssmtp.com header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.b=0QrI56he; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3D1E58B06C; Tue, 21 Jun 2016 05:35:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OnldOdUadL5G; Tue, 21 Jun 2016 05:35:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C81F58AEB0; Tue, 21 Jun 2016 05:35:17 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 85EE31C1031 for ; Tue, 21 Jun 2016 05:35:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8429989C3E for ; Tue, 21 Jun 2016 05:35:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z5DRX4y6sLAs for ; Tue, 21 Jun 2016 05:35:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id E13CE89C24 for ; Tue, 21 Jun 2016 05:35:15 +0000 (UTC) Received: by mail-qk0-f172.google.com with SMTP id a186so7206883qkf.0 for ; Mon, 20 Jun 2016 22:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=FmB69gSnouClMLm/WBXqZDC1TWqYcmA8s6sXXhFvzU4=; b=0QrI56hemtF5MiJKoMY5HOPJcLxu4BA9uPPoQFsRwS9yAvLsCZWgKjZSG2rltoVIpy hnfVPYWoSX5ueRyTDxPqtY5cbVieWWrEfT4YOGZ+bJ6HM2ZVJcHiXb0JKyeDovz+tVTo UH+iwenvN33DK6cDrhip9wsBX8e5/YO7iwki4/gK/6luymks7QvyhDIjPuzL5BIxBoMo wFt0NhL/CDffnZZKqZQ26TPHLdIaqpPe7PXnJ7ZfL7SZ/Y0cUgLckwbNUmv97wnPSQIL iXgRYy2QW6LBVI581DWNobCzMBxi6z/6x4Y1e55e+Q83+RiXq7powvpAHJyiEX5vMTKD EUdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FmB69gSnouClMLm/WBXqZDC1TWqYcmA8s6sXXhFvzU4=; b=WpMkf+Syqav8oucEyCeJWV58zEIayKReBdTw0B1xbgZoxCLYp7aJ5lJyVHcqenDltj bq92V/svEWdAsmDo41mnUuGNZXnJjS4X3swOfoVf1OQu4Uljl1v2GdduRa1dJ9KPUGsA eSPCJPf3PguPDLOYFLlhaCzY3ltBznVaVDxJ9wun74IIxWk3mSrMX/UOiysB3pEYLO0c wMSJ0535t8GgRFPusYiS0S+A+oh5pXicyo3W1gVmLB05RBccXWlSKFs0RmeFbUhJUy9K /5Nnd+GvgI8aBlPPGX4SH26KtnUBhT9H/u4aW6CSNvC1bKM57EbLDnDVFbfd+KfKSIvC ukNA== X-Gm-Message-State: ALyK8tK3CySlwWktJhoTX/2SlHu3BumaWZWHutW5+nw28Y+J6B2NC6m0T22w7VfCZBpabQ== X-Received: by 10.55.94.135 with SMTP id s129mr17874880qkb.70.1466487314836; Mon, 20 Jun 2016 22:35:14 -0700 (PDT) Received: from localhost.localdomain ([190.2.108.156]) by smtp.gmail.com with ESMTPSA id y17sm10614748qtc.20.2016.06.20.22.35.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Jun 2016 22:35:14 -0700 (PDT) From: Ezequiel Garcia To: Date: Tue, 21 Jun 2016 02:35:01 -0300 Message-Id: <1466487301-7585-1-git-send-email-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.0 Subject: [Buildroot] [PATCH] minnowboard-max: Enable serial and HDMI consoles X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Following what's done in Raspberry Pi's defconfigs, let's unify the consoles in Minnowboard Max defconfigs, providing consoles on HDMI and serial port. Signed-off-by: Ezequiel Garcia --- board/minnowboard/post-build.sh | 5 +++++ board/minnowboard/readme.txt | 3 +++ configs/minnowboard_max-graphical_defconfig | 1 - configs/minnowboard_max_defconfig | 1 - 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/board/minnowboard/post-build.sh b/board/minnowboard/post-build.sh index f3a11e99f0f5..f03a607b9b4d 100755 --- a/board/minnowboard/post-build.sh +++ b/board/minnowboard/post-build.sh @@ -3,3 +3,8 @@ # $2 board name cp -v board/minnowboard/grub-${2}.cfg ${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg + +# Add a console on tty1 +grep -qE '^tty0::' ${TARGET_DIR}/etc/inittab || \ +sed -i '/GENERIC_SERIAL/a\ +tty0::respawn:/sbin/getty -L tty0 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab diff --git a/board/minnowboard/readme.txt b/board/minnowboard/readme.txt index 8cf35b79c562..f76cd77c3403 100644 --- a/board/minnowboard/readme.txt +++ b/board/minnowboard/readme.txt @@ -23,6 +23,9 @@ How to get started with the MinnowBoard (MAX) $ dd if=output/images/sdcard.img of=/dev/mmcblk0; sync + The system starts two consoles: one on the serial port + and one on HDMI. + 3. Enjoy Additional information about this board can be found at diff --git a/configs/minnowboard_max-graphical_defconfig b/configs/minnowboard_max-graphical_defconfig index a5f60a7e3c68..d84544be86c5 100644 --- a/configs/minnowboard_max-graphical_defconfig +++ b/configs/minnowboard_max-graphical_defconfig @@ -9,7 +9,6 @@ BR2_TOOLCHAIN_BUILDROOT_CXX=y # System configuration BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y -BR2_TARGET_GENERIC_GETTY_PORT="tty0" BR2_ROOTFS_OVERLAY="board/minnowboard/fs-overlay-graphical" BR2_ROOTFS_POST_BUILD_SCRIPT="board/minnowboard/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/minnowboard/post-image.sh" diff --git a/configs/minnowboard_max_defconfig b/configs/minnowboard_max_defconfig index 1bb22f9ec132..0adb382f0c4b 100644 --- a/configs/minnowboard_max_defconfig +++ b/configs/minnowboard_max_defconfig @@ -3,7 +3,6 @@ BR2_x86_64=y BR2_x86_atom=y # Misc -BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" BR2_SYSTEM_DHCP="eth0" BR2_ROOTFS_POST_BUILD_SCRIPT="board/minnowboard/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/minnowboard/post-image.sh"