fs/common: Create initial console device
PATCH v3 1/1 fs/common: Create initial console device
From: Markos Chandras <[email protected]>
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.
--- fs/cpio/cpio.mk | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
fs/cpio/cpio.mk +2 -0
@@ -21,6 +21,8 @@ define ROOTFS_CPIO_ADD_INIT fi endef +PACKAGES_PERMISSIONS_TABLE += /dev/console c 622 0 0 5 1 - - -$(sep) + endif # BR2_ROOTFS_DEVICE_CREATION_STATIC ROOTFS_CPIO_PRE_GEN_HOOKS += ROOTFS_CPIO_ADD_INIT
Signature · 1 line
1.7.1
PATCH v3 1/1 fs/common: Create initial console device
Quoted 6 lines · Markos Chandras
From: Markos Chandras<[email protected]>
A
/dev/consolenode 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"
Quoted 7 lines
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<[email protected]>
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH v3 1/1 fs/common: Create initial console device
Quoted 14 lines · Arnout Vandecappelle
Quoted 13 lines · Markos Chandras
From: Markos Chandras<[email protected]>
A
/dev/consolenode 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.
Quoted 9 lines
Quoted 1 line
Signed-off-by Markos Chandras<[email protected]>Regards,
Arnout
Hi Arnout,
Thanks. Lets see if this will make it to the final release as this warning is a bit annoying :)
Signature · 2 lines
Regards, Markos
PATCH v3 1/1 fs/common: Create initial console device
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Markos" == Markos Chandras <[email protected]> writes:
Regards,
Arnout
Markos> Hi Arnout,
Markos> Thanks. Lets see if this will make it to the final release as this Markos> warning is a bit annoying :)
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard