Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] buildroot requires a password
@ 2013-10-12 12:11 Sabri Altunbas
  2013-10-12 12:50 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Sabri Altunbas @ 2013-10-12 12:11 UTC (permalink / raw)
  To: buildroot

Hi folks,

I created a initramfs with buildroot.
I attach my config

It works. But it requires a password which I have not configured and I wanna
have no password.

I investigate in forums and find out 
 
http://buildroot-busybox.2317881.n4.nabble.com/Console-login-root-needing-a-
password-td15155.html

http://buildroot-busybox.2317881.n4.nabble.com/Bug-5366-New-can-t-login-root
-or-default-td30020.html

I followed all recommendations

- taking output/images/rootfs.cpio
-  BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS not defined

but only the following solution worked

#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
ttyS0::respawn:/bin/sh  # GENERIC_SERIAL

overlooked something ?

regards,
s.altunbas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 31759 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131012/07b6ec16/attachment-0001.obj>

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

* [Buildroot] buildroot requires a password
  2013-10-12 12:11 [Buildroot] buildroot requires a password Sabri Altunbas
@ 2013-10-12 12:50 ` Thomas Petazzoni
       [not found]   ` <72BD24884B4745F4BE4A855D78178642@M58p>
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2013-10-12 12:50 UTC (permalink / raw)
  To: buildroot

Dear Sabri Altunbas,

On Sat, 12 Oct 2013 14:11:10 +0200, Sabri Altunbas wrote:

> I created a initramfs with buildroot.
> I attach my config
> 
> It works. But it requires a password which I have not configured and I wanna
> have no password.
> 
> I investigate in forums and find out 
>  
> http://buildroot-busybox.2317881.n4.nabble.com/Console-login-root-needing-a-
> password-td15155.html
> 
> http://buildroot-busybox.2317881.n4.nabble.com/Bug-5366-New-can-t-login-root
> -or-default-td30020.html
> 
> I followed all recommendations
> 
> - taking output/images/rootfs.cpio
> -  BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS not defined
> 
> but only the following solution worked
> 
> #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
> ttyS0::respawn:/bin/sh  # GENERIC_SERIAL
> 
> overlooked something ?

By default, there is no password. Can you share your Buildroot .config
file so we can see if something might be causing problems?

Thanks,

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

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

* [Buildroot] buildroot requires a password
       [not found]   ` <72BD24884B4745F4BE4A855D78178642@M58p>
@ 2013-10-12 14:56     ` Thomas Petazzoni
       [not found]       ` <DE9772AAEF4F4E35B1CA8F3B5A7C7865@M58p>
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2013-10-12 14:56 UTC (permalink / raw)
  To: buildroot

Dear Sabri Altunbas,

Please keep the list in Cc.

On Sat, 12 Oct 2013 15:47:50 +0200, Sabri Altunbas wrote:

> BR2_PREFER_STATIC_LIB=y

This,

> BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201305=y

together with this cannot work. The Sourcery CodeBench toolchains use
the glibc C library, which simply doesn't work for static linking. Even
if you statically link Busybox, it will still need some of the shared
libraries, loaded dynamically at runtime.

So, switch to use shared libraries, or use a C library that works
properly with static linking: uClibc.

I'll send a patch to ensure that glibc toolchains aren't used when
static linking is selected.

Best regards,

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

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

* [Buildroot] buildroot requires a password
       [not found]       ` <DE9772AAEF4F4E35B1CA8F3B5A7C7865@M58p>
@ 2013-10-12 15:41         ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2013-10-12 15:41 UTC (permalink / raw)
  To: buildroot

Dear Sabri Altunbas,

I believe I asked you to keep the Buildroot list in Cc. Please do it.

On Sat, 12 Oct 2013 17:35:15 +0200, Sabri Altunbas wrote:

> Perfectly, i deactivated BR2_PREFER_STATIC_LIB and perform "make clean and
> make all" only "make all" doesn't work (why not ?)

See http://buildroot.org/downloads/manual/manual.html#full-rebuild.

> But I think (as you). It must be safely that a faulty operation can not
> happen.

I agree. As I said, I'll send a patch to make sure this situation
cannot happen.

Thanks,

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

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

end of thread, other threads:[~2013-10-12 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-12 12:11 [Buildroot] buildroot requires a password Sabri Altunbas
2013-10-12 12:50 ` Thomas Petazzoni
     [not found]   ` <72BD24884B4745F4BE4A855D78178642@M58p>
2013-10-12 14:56     ` Thomas Petazzoni
     [not found]       ` <DE9772AAEF4F4E35B1CA8F3B5A7C7865@M58p>
2013-10-12 15:41         ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox