[Buildroot] [PATCH] system: run getty on boot console by default

Alexey Brodkin Alexey.Brodkin at synopsys.com
Fri Jan 9 18:15:39 UTC 2015


Hi Thomas,

On Wed, 2014-12-24 at 12:03 +0300, Alexey Brodkin wrote:
> > On Tue, 23 Dec 2014 21:18:56 +0000, Alexey Brodkin wrote:
> > 
> > > Interesting, then how it worked for me?
> > > 
> > > I have the same login prompt as usual:
> > > --->---
> > > Welcome to Buildroot
> > > buildroot login:
> > > --->---
> > > 
> > > Here I enter "root" as usual, press Enter and that's it.
> > > "whoami" says "root" and I may modify any files etc.
> > > 
> > > What do I do wrong?
> > 
> > Weird, when I tested I had to add "console" to /etc/securetty,
> > otherwise login would not let me log in as root. Are you using just
> > Busybox, or some other login/getty implementation? Are you using an
> > unmodified /etc/securetty?
> 
> Indeed it's strange.
> I've just re-tested it and still see root login working perfectly.
> 
> I'm on mainline/master branch with my patch applied (no other changes):
> --->---
> (my patch) 7af7de3 system: run getty on boot console by default
> f7add51 qemu: add host/target Linux version check
> --->---
> 
> And this is output of "make savedefconfig":
> --->---
> BR2_x86_pentiumpro=y
> BR2_KERNEL_HEADERS_VERSION=y
> BR2_DEFAULT_KERNEL_VERSION="3.18"
> BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
> BR2_LINUX_KERNEL=y
> BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.18"
> BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86/linux-3.18.config"
> BR2_TARGET_ROOTFS_EXT2=y
> # BR2_TARGET_ROOTFS_TAR is not set
> --->---
> 
> Note that this is based on "qemu_x86_defconfig" and with my patch
> applied that's why you don't see mention of "console".
> 
> You may try even without my patch and manually set
> BR2_TARGET_GENERIC_GETTY_PORT=console

I'm wondering if there's anything else I may help with this one?
Or if there're no other objections please consider applying.

Regards,
Alexey


More information about the buildroot mailing list