From patchwork Thu Nov 1 10:28:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markos Chandras X-Patchwork-Id: 196143 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 63EAD2C00AC for ; Thu, 1 Nov 2012 21:29:21 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CE2F1A00CF; Thu, 1 Nov 2012 10:29:19 +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 MoU91FVi7pLH; Thu, 1 Nov 2012 10:29:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id DD9C5A01BA; Thu, 1 Nov 2012 10:29:17 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B43938F74A for ; Thu, 1 Nov 2012 10:29:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EE76180C0F for ; Thu, 1 Nov 2012 10:29: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 hsMmrDp1o6Nz for ; Thu, 1 Nov 2012 10:29:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from multi.imgtec.com (multi.imgtec.com [194.200.65.239]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8201180C18 for ; Thu, 1 Nov 2012 10:29:15 +0000 (UTC) From: Markos Chandras To: Date: Thu, 1 Nov 2012 10:28:05 +0000 Message-ID: <1351765685-8128-1-git-send-email-markos.chandras@gmail.com> X-Mailer: git-send-email 1.7.1 X-OriginalArrivalTime: 01 Nov 2012 10:28:08.0307 (UTC) FILETIME=[95F48430:01CDB81B] MIME-Version: 1.0 X-SEF-Processed: 7_3_0_01181__2012_11_01_10_29_12 Subject: [Buildroot] [PATCH v2] fs/common: Create initial console device X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Markos Chandras A /dev/console node must be present in rootfs when the Linux kernel boots otherwise the kernel will print the following warning: "Warning: unable to open an initial console" This is because when we use an initramfs the /dev directory is not populated at this point. This can cause problems when a program (e.g ldso with early debugging enabled) opens a standard file descriptor for read/write before these descriptors are actually created by the init process later on. Signed-off-by: Markos Chandras --- fs/cpio/cpio.mk | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/cpio/cpio.mk b/fs/cpio/cpio.mk index aa20b41..3293bc9 100644 --- a/fs/cpio/cpio.mk +++ b/fs/cpio/cpio.mk @@ -21,6 +21,8 @@ define ROOTFS_CPIO_ADD_INIT fi endef +PACKAGES_PERMISSIONS_TABLE += /dev/console c 622 0 0 5 1 + endif # BR2_ROOTFS_DEVICE_CREATION_STATIC ROOTFS_CPIO_PRE_GEN_HOOKS += ROOTFS_CPIO_ADD_INIT