All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Unable to login as root to new buildroot system
@ 2015-07-25  0:25 Adam Baxter
  2015-07-25  1:46 ` Stanislav Vlasic
  2015-07-26 16:25 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Adam Baxter @ 2015-07-25  0:25 UTC (permalink / raw)
  To: buildroot

I'm using the latest Git version of buildroot and the following config -
https://github.com/voltagex/serial-vm-buildroot

It builds and boots with qemu just fine, but no matter what combination of
getty/no getty/shell/root password I use, I can't login. Even with a blank
root password I'm told that the password is incorrect, and I can't work out
how to make it boot straight to a root prompt.

Can anyone help? The repo above should be able to be built with make
serial_defconfig, but if there's still hardcoded paths to a 'voltagex' or
'ubuntu' user you'll have to let me know how to remove them.

I've read http://lists.busybox.net/pipermail/buildroot/2012-July/056177.html
and similar threads found by googling "buildroot root login"

Regards,
Adam Baxter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150724/06490608/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Unable to login as root to new buildroot system
  2015-07-25  0:25 [Buildroot] Unable to login as root to new buildroot system Adam Baxter
@ 2015-07-25  1:46 ` Stanislav Vlasic
  2015-07-25 17:51   ` Adam Baxter
  2015-07-26 16:25 ` Thomas Petazzoni
  1 sibling, 1 reply; 5+ messages in thread
From: Stanislav Vlasic @ 2015-07-25  1:46 UTC (permalink / raw)
  To: buildroot

Hi,

On 07/25/2015 02:25 AM, Adam Baxter wrote:
> I'm using the latest Git version of buildroot and the following config -
> https://github.com/voltagex/serial-vm-buildroot
>
> It builds and boots with qemu just fine, but no matter what combination
> of getty/no getty/shell/root password I use, I can't login. Even with a
> blank root password I'm told that the password is incorrect, and I can't
> work out how to make it boot straight to a root prompt.
>
> Can anyone help? The repo above should be able to be built with make
> serial_defconfig, but if there's still hardcoded paths to a 'voltagex'
> or 'ubuntu' user you'll have to let me know how to remove them.
>
> I've read
> http://lists.busybox.net/pipermail/buildroot/2012-July/056177.html and
> similar threads found by googling "buildroot root login"
>
> Regards,
> Adam Baxter
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>

Try edit system/skeleton/etc/passwd file (or overlay one if you're using 
overlays) and replace 1st line:

root:x:0:0:root:/root:/bin/sh

with:

root::0:0:root:/root:/bin/sh

Never had that problem on Buildroot, but did on Ubuntu Core rootfs and 
this method fixed it.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Unable to login as root to new buildroot system
  2015-07-25  1:46 ` Stanislav Vlasic
@ 2015-07-25 17:51   ` Adam Baxter
  0 siblings, 0 replies; 5+ messages in thread
From: Adam Baxter @ 2015-07-25 17:51 UTC (permalink / raw)
  To: buildroot

On 24 Jul 2015 6:46 pm, "Stanislav Vlasic" <svlasic@gmail.com> wrote:
>
> Hi,
>
>
> On 07/25/2015 02:25 AM, Adam Baxter wrote:
>>
>> I'm using the latest Git version of buildroot and the following config -
>> https://github.com/voltagex/serial-vm-buildroot
>>
>> It builds and boots with qemu just fine, but no matter what combination
>> of getty/no getty/shell/root password I use, I can't login. Even with a
>> blank root password I'm told that the password is incorrect, and I can't
>> work out how to make it boot straight to a root prompt.
>>
>> Can anyone help? The repo above should be able to be built with make
>> serial_defconfig, but if there's still hardcoded paths to a 'voltagex'
>> or 'ubuntu' user you'll have to let me know how to remove them.
>>
>> I've read
>> http://lists.busybox.net/pipermail/buildroot/2012-July/056177.html and
>> similar threads found by googling "buildroot root login"
>>
>> Regards,
>> Adam Baxter
>>
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
>>
>
> Try edit system/skeleton/etc/passwd file (or overlay one if you're using
overlays) and replace 1st line:
>
> root:x:0:0:root:/root:/bin/sh
>
> with:
>
> root::0:0:root:/root:/bin/sh
>
> Never had that problem on Buildroot, but did on Ubuntu Core rootfs and
this method fixed it.
>

That worked, but I do wonder what the underlying problem is.

Thanks again,
Adam
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150725/010023e2/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Unable to login as root to new buildroot system
  2015-07-25  0:25 [Buildroot] Unable to login as root to new buildroot system Adam Baxter
  2015-07-25  1:46 ` Stanislav Vlasic
@ 2015-07-26 16:25 ` Thomas Petazzoni
  2015-07-26 16:26   ` Adam Baxter
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2015-07-26 16:25 UTC (permalink / raw)
  To: buildroot

Dear Adam Baxter,

On Fri, 24 Jul 2015 17:25:00 -0700, Adam Baxter wrote:
> I'm using the latest Git version of buildroot and the following config -
> https://github.com/voltagex/serial-vm-buildroot
> 
> It builds and boots with qemu just fine, but no matter what combination of
> getty/no getty/shell/root password I use, I can't login. Even with a blank
> root password I'm told that the password is incorrect, and I can't work out
> how to make it boot straight to a root prompt.
> 
> Can anyone help? The repo above should be able to be built with make
> serial_defconfig, but if there's still hardcoded paths to a 'voltagex' or
> 'ubuntu' user you'll have to let me know how to remove them.

Your configuration has:

BR2_TARGET_GENERIC_GETTY_OPTIONS="-n"

Are you sure you really want this getty option?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Unable to login as root to new buildroot system
  2015-07-26 16:25 ` Thomas Petazzoni
@ 2015-07-26 16:26   ` Adam Baxter
  0 siblings, 0 replies; 5+ messages in thread
From: Adam Baxter @ 2015-07-26 16:26 UTC (permalink / raw)
  To: buildroot

On 26 July 2015 at 09:25, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:

> Dear Adam Baxter,
>
>
> Your configuration has:
>
> BR2_TARGET_GENERIC_GETTY_OPTIONS="-n"
>
> Are you sure you really want this getty option?
>

Probably not, thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150726/c27205bf/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-26 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-25  0:25 [Buildroot] Unable to login as root to new buildroot system Adam Baxter
2015-07-25  1:46 ` Stanislav Vlasic
2015-07-25 17:51   ` Adam Baxter
2015-07-26 16:25 ` Thomas Petazzoni
2015-07-26 16:26   ` Adam Baxter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.