Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot]  unable to login to buildroot
@ 2010-03-25 18:11 sunr2007
  2010-03-26 11:37 ` Yury Luneff
  0 siblings, 1 reply; 13+ messages in thread
From: sunr2007 @ 2010-03-25 18:11 UTC (permalink / raw)
  To: buildroot


Hi all,
i built a jffs2 filesystem by using make at91sam9261ek_config for
buildroot.2010.02 . everything went fine 
but im unable to login on to my target board :(

when i type root and press enter 
it is redirecting me back to the login

 and when i press any other name , it asks for password but again come back
to login when i press enter 



"Welcome to Buildroot

buildroot login: root


Welcome to Buildroot

buildroot login: ravi
Password: 


Welcome to Buildroot

buildroot login: "


below is my /etc/inittab file  any idea what might be wrong?

# /etc/inittab
#
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
#
# Note: BusyBox init doesn't support runlevels.  The runlevels field is
# completely ignored by BusyBox init. If you want runlevels, use
# sysvinit.
#
# Format for each entry: <id>:<runlevels>:<action>:<process>
#
# id        == tty to run on, or empty for /dev/console
# runlevels == ignored
# action    == one of sysinit, respawn, askfirst, wait, and once
# process   == program to run

# Startup the system
null::sysinit:/bin/mount -o remount,rw /
null::sysinit:/bin/mount -t proc proc /proc
null::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
null::sysinit:/sbin/ifconfig lo 127.0.0.1 up
null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
# now run any rc scripts
::sysinit:/etc/init.d/rcS

# Set up a couple of getty's
#tty1::respawn:/sbin/getty 38400 tty1
#tty2::respawn:/sbin/getty 38400 tty2

# Put a getty on the serial port
ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100


# Logging junk
null::sysinit:/bin/touch /var/log/messages
null::respawn:/sbin/syslogd -n -m 0
null::respawn:/sbin/klogd -n
tty3::respawn:/usr/bin/tail -f /var/log/messages

# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
null::shutdown:/usr/bin/killall klogd
null::shutdown:/usr/bin/killall syslogd
null::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a

any idea what is wrong ? how to debug this?
warm regards,
Ravi Kulkarni.

-- 
View this message in context: http://old.nabble.com/unable-to-login-to-buildroot-tp28032853p28032853.html
Sent from the BuildRoot mailing list archive at Nabble.com.

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

* [Buildroot] unable to login to buildroot
  2010-03-25 18:11 [Buildroot] unable to login to buildroot sunr2007
@ 2010-03-26 11:37 ` Yury Luneff
  0 siblings, 0 replies; 13+ messages in thread
From: Yury Luneff @ 2010-03-26 11:37 UTC (permalink / raw)
  To: buildroot

the one way to search is to recheck your toolchain + libc.

I recall, the same problem occurs when getty or bash are aborted 
abnormally due to libc or gcc problems and you will have what you're 
dealing with.

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

* [Buildroot] Unable to login to buildroot
@ 2011-02-24  9:48 Guillaume Dargaud
  2011-02-24  9:54 ` Baruch Siach
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Guillaume Dargaud @ 2011-02-24  9:48 UTC (permalink / raw)
  To: buildroot

Hello all,
I just compiled 2011.02-rc1 because I wish to use oprofile and it doesn't 
compile in previous versions (known bug). I kept my previous kernel compiled 
with the toolchain from 2010.08 (maybe that's the problem).

I had no problem creating a new system, but I cannot login (there's no 
password in /etc/shadow):

Welcome to the Gandalf acquisition
gandalf login: root
Jan  1 00:00:10 login[254]: root login on 'ttyUL0'

Welcome to the Gandalf acquisition
gandalf login:

And it repeats... I also cannot login via ssh (I configured dropbear) and I 
have a feeling none of the init.d scripts got started. I use the default 
inittab.
The drive is mounted via nfs, and there are some missing stuff (when looking at 
them from the NFS server side):
 
$ ll proc tmp
proc:
total 8
drwxr-xr-x  2 root root 4096 Feb 24 08:31 ./
drwxr-xr-x 16 root root 4096 Feb 24 09:19 ../

tmp:
total 12
drwxrwxrwt  3 root root 4096 Feb 24 09:24 ./
drwxr-xr-x 16 root root 4096 Feb 24 09:19 ../
drwxr-xr-x  2 root root 4096 Feb 24 08:54 ldconfig/
-rw-r--r--  1 root root    0 Feb 24 09:24 utmp

$ cat etc/inittab
null::sysinit:/bin/mount -o remount,rw /
null::sysinit:/bin/mount -t proc proc /proc
null::sysinit:/bin/mkdir -p /dev/pts
null::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
# now run any rc scripts
::sysinit:/etc/init.d/rcS

# Set up a couple of getty's
tty1::respawn:/sbin/getty 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2

# Put a getty on the serial port
ttyUL0::respawn:/sbin/getty -L ttyUL0 115200 vt100 # GENERIC_SERIAL

# Logging junk
null::sysinit:/bin/touch /var/log/messages
null::respawn:/sbin/syslogd -n -m 0
null::respawn:/sbin/klogd -n
tty3::respawn:/usr/bin/tail -f /var/log/messages

# Stuff to do for the 3-finger salute
#::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
null::shutdown:/usr/bin/killall klogd
null::shutdown:/usr/bin/killall syslogd
null::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a

Anything I overlooked ?

For what it's worth, here's my full boot sequence:

*** Command line edit ***
zImage starting: loaded at 0x00400000 (sp: 0x00561fb0)
Allocating 0x2e65c8 bytes for kernel ...
gunzipping (0x00000000 <- 0x0040d000:0x00560f9a)...done 0x2d08d0 bytes

Linux/PowerPC load: console=ttyUL0,115200 root=/dev/nfs rw ip=bootp
Finalizing device tree... flat tree at 0x56e300
[    0.000000] Using Xilinx Virtex machine description
[    0.000000] Linux version 2.6.35+ (dargaud@lpsc0174x) (gcc version 4.3.5 
(Buildroot 2010.08) ) #22 Wed Feb 23 17:32:1
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00007000
[    0.000000]   Normal   empty
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00007000
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 28448
[    0.000000] Kernel command line: console=ttyUL0,115200 root=/dev/nfs rw 
ip=bootp
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 110672k/114688k available (2708k kernel code, 4016k 
reserved, 176k data, 85k bss, 108k init)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffdf000..0xfffff000  : fixmap
[    0.000000]   * 0xfde00000..0xfe000000  : consistent mem
[    0.000000]   * 0xfde00000..0xfde00000  : early ioremap
[    0.000000]   * 0xc8000000..0xfde00000  : vmalloc & ioremap
[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, 
Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Verbose stalled-CPUs detection is disabled.
[    0.000000] NR_IRQS:512
[    0.000000] clocksource: timebase mult[d55555] shift[22] registered
[    0.000000] Console: colour dummy device 80x25
[   42.950231] pid_max: default: 32768 minimum: 301
[   42.950522] Mount-cache hash table entries: 512
[   42.960539] NET: Registered protocol family 16
[   43.015617] bio: create slab <bio-0> at 0
[   43.024397] Switching to clocksource timebase
[   43.036232] NET: Registered protocol family 2
[   43.037227] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[   43.039215] TCP established hash table entries: 4096 (order: 3, 32768 
bytes)
[   43.039909] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   43.040303] TCP: Hash tables configured (established 4096 bind 4096)
[   43.040340] TCP reno registered
[   43.040393] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   43.040700] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   43.041714] NET: Registered protocol family 1
[   43.042979] RPC: Registered udp transport module.
[   43.043035] RPC: Registered tcp transport module.
[   43.043061] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   43.146725] alg: No test for stdrng (krng)
[   43.267337] io scheduler noop registered
[   43.267403] io scheduler deadline registered (default)
[   43.267899] io scheduler cfq registered
[   43.365390] 84000000.serial: ttyUL0 at MMIO 0x84000000 (irq = 16) is a 
uartlite
[   43.624127] console [ttyUL0] enabled
[   43.628764] 84020000.serial: ttyUL1 at MMIO 0x84020000 (irq = 17) is a 
uartlite
[   43.638900] Device Tree Probing 'ethernet'
[   43.642905] xilinx_lltemac 81c00000.ethernet: MAC address is now  0: 
a:35:72:43: 0
[   43.649501] xilinx_lltemac 81c00000.ethernet: XLlTemac: using DMA mode.
[   43.655956] XLlTemac: Dma base address: phy: 0x84600100, virt: 0xc8020100
[   43.662703] XLlTemac: buffer descriptor size: 32768 (0x8000)
[   43.668243] XLlTemac: Allocating DMA descriptors with kmalloc
[   43.673867] XLlTemac: (buffer_descriptor_init) phy: 0x68c8000, virt: 
0xc68c8000, size: 0x8000
[   43.687084] XTemac: PHY detected at address 7.
[   43.693445] xilinx_lltemac 81c00000.ethernet: eth0: Xilinx TEMAC at 
0x81C00000 mapped to 0xC801A000, irq=18
[   43.706689] mice: PS/2 mouse device common for all mice
[   43.710867] oprofile: using timer interrupt.
[   43.717704] TCP cubic registered
[   43.719678] NET: Registered protocol family 17
[   44.233653] eth0: XLlTemac: Options: 0x3fa
[   44.236720] eth0: XLlTemac: allocating interrupt 20 for dma mode tx.
[   44.242989] eth0: XLlTemac: allocating interrupt 19 for dma mode rx.
[   46.259742] eth0: XLlTemac: speed set to 1000Mb/s
[   46.263281] eth0: XLlTemac: Send Threshold = 24, Receive Threshold = 4
[   46.269791] eth0: XLlTemac: Send Wait bound = 254, Receive Wait bound = 254
[   47.280597] Sending BOOTP requests . OK
[   47.288685] IP-Config: Got BOOTP answer from 192.168.1.185, my address is 
192.168.1.233
[   47.296618] IP-Config: Complete:
[   47.298761]      device=eth0, addr=192.168.1.233, mask=255.255.255.0, 
gw=192.168.1.185,
[   47.306625]      host=gandalf, domain=, nis-domain=(none),
[   47.312157]      bootserver=192.168.1.185, rootserver=192.168.1.185, 
rootpath=/media/gandalf,v3,rsize=1024,wsize=3275
[   47.338961] Looking up port of RPC 100005/3 on 192.168.1.185
[   47.381957] VFS: Mounted root (nfs filesystem) on device 0:10.
[   47.386801] Freeing unused kernel memory: 108k init

Welcome to the Gandalf acquisition
gandalf login: 



Bonus question: if you configure buildroot without an FPU, then what is the 
difference between hard floats and soft floats ? Why can you have both and what 
is preferable ?

Thanks
-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

* [Buildroot] Unable to login to buildroot
  2011-02-24  9:48 [Buildroot] Unable " Guillaume Dargaud
@ 2011-02-24  9:54 ` Baruch Siach
  2011-02-24 10:55   ` Guillaume Dargaud
  2011-02-24 11:30 ` Daniel Nyström
  2011-02-24 11:53 ` Peter Korsgaard
  2 siblings, 1 reply; 13+ messages in thread
From: Baruch Siach @ 2011-02-24  9:54 UTC (permalink / raw)
  To: buildroot

Hi Guillaume,

On Thu, Feb 24, 2011 at 10:48:48AM +0100, Guillaume Dargaud wrote:
> Hello all,
> I just compiled 2011.02-rc1 because I wish to use oprofile and it doesn't 
> compile in previous versions (known bug). I kept my previous kernel compiled 
> with the toolchain from 2010.08 (maybe that's the problem).
> 
> I had no problem creating a new system, but I cannot login (there's no 
> password in /etc/shadow):

[snip]

> Anything I overlooked ?

Do you have /etc/securetty? What is its content? It should contain a 'ttyUL0' 
line to allow login.

baruch

> 
> For what it's worth, here's my full boot sequence:
> 
> *** Command line edit ***
> zImage starting: loaded at 0x00400000 (sp: 0x00561fb0)
> Allocating 0x2e65c8 bytes for kernel ...
> gunzipping (0x00000000 <- 0x0040d000:0x00560f9a)...done 0x2d08d0 bytes
> 
> Linux/PowerPC load: console=ttyUL0,115200 root=/dev/nfs rw ip=bootp
> Finalizing device tree... flat tree at 0x56e300
> [    0.000000] Using Xilinx Virtex machine description
> [    0.000000] Linux version 2.6.35+ (dargaud at lpsc0174x) (gcc version 4.3.5 
> (Buildroot 2010.08) ) #22 Wed Feb 23 17:32:1
> [    0.000000] Zone PFN ranges:
> [    0.000000]   DMA      0x00000000 -> 0x00007000
> [    0.000000]   Normal   empty
> [    0.000000] Movable zone start PFN for each node
> [    0.000000] early_node_map[1] active PFN ranges
> [    0.000000]     0: 0x00000000 -> 0x00007000
> [    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total 
> pages: 28448
> [    0.000000] Kernel command line: console=ttyUL0,115200 root=/dev/nfs rw 
> ip=bootp
> [    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
> [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
> [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
> [    0.000000] Memory: 110672k/114688k available (2708k kernel code, 4016k 
> reserved, 176k data, 85k bss, 108k init)
> [    0.000000] Kernel virtual memory layout:
> [    0.000000]   * 0xfffdf000..0xfffff000  : fixmap
> [    0.000000]   * 0xfde00000..0xfe000000  : consistent mem
> [    0.000000]   * 0xfde00000..0xfde00000  : early ioremap
> [    0.000000]   * 0xc8000000..0xfde00000  : vmalloc & ioremap
> [    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, 
> Nodes=1
> [    0.000000] Hierarchical RCU implementation.
> [    0.000000]  Verbose stalled-CPUs detection is disabled.
> [    0.000000] NR_IRQS:512
> [    0.000000] clocksource: timebase mult[d55555] shift[22] registered
> [    0.000000] Console: colour dummy device 80x25
> [   42.950231] pid_max: default: 32768 minimum: 301
> [   42.950522] Mount-cache hash table entries: 512
> [   42.960539] NET: Registered protocol family 16
> [   43.015617] bio: create slab <bio-0> at 0
> [   43.024397] Switching to clocksource timebase
> [   43.036232] NET: Registered protocol family 2
> [   43.037227] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
> [   43.039215] TCP established hash table entries: 4096 (order: 3, 32768 
> bytes)
> [   43.039909] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
> [   43.040303] TCP: Hash tables configured (established 4096 bind 4096)
> [   43.040340] TCP reno registered
> [   43.040393] UDP hash table entries: 256 (order: 0, 4096 bytes)
> [   43.040700] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
> [   43.041714] NET: Registered protocol family 1
> [   43.042979] RPC: Registered udp transport module.
> [   43.043035] RPC: Registered tcp transport module.
> [   43.043061] RPC: Registered tcp NFSv4.1 backchannel transport module.
> [   43.146725] alg: No test for stdrng (krng)
> [   43.267337] io scheduler noop registered
> [   43.267403] io scheduler deadline registered (default)
> [   43.267899] io scheduler cfq registered
> [   43.365390] 84000000.serial: ttyUL0 at MMIO 0x84000000 (irq = 16) is a 
> uartlite
> [   43.624127] console [ttyUL0] enabled
> [   43.628764] 84020000.serial: ttyUL1 at MMIO 0x84020000 (irq = 17) is a 
> uartlite
> [   43.638900] Device Tree Probing 'ethernet'
> [   43.642905] xilinx_lltemac 81c00000.ethernet: MAC address is now  0: 
> a:35:72:43: 0
> [   43.649501] xilinx_lltemac 81c00000.ethernet: XLlTemac: using DMA mode.
> [   43.655956] XLlTemac: Dma base address: phy: 0x84600100, virt: 0xc8020100
> [   43.662703] XLlTemac: buffer descriptor size: 32768 (0x8000)
> [   43.668243] XLlTemac: Allocating DMA descriptors with kmalloc
> [   43.673867] XLlTemac: (buffer_descriptor_init) phy: 0x68c8000, virt: 
> 0xc68c8000, size: 0x8000
> [   43.687084] XTemac: PHY detected at address 7.
> [   43.693445] xilinx_lltemac 81c00000.ethernet: eth0: Xilinx TEMAC at 
> 0x81C00000 mapped to 0xC801A000, irq=18
> [   43.706689] mice: PS/2 mouse device common for all mice
> [   43.710867] oprofile: using timer interrupt.
> [   43.717704] TCP cubic registered
> [   43.719678] NET: Registered protocol family 17
> [   44.233653] eth0: XLlTemac: Options: 0x3fa
> [   44.236720] eth0: XLlTemac: allocating interrupt 20 for dma mode tx.
> [   44.242989] eth0: XLlTemac: allocating interrupt 19 for dma mode rx.
> [   46.259742] eth0: XLlTemac: speed set to 1000Mb/s
> [   46.263281] eth0: XLlTemac: Send Threshold = 24, Receive Threshold = 4
> [   46.269791] eth0: XLlTemac: Send Wait bound = 254, Receive Wait bound = 254
> [   47.280597] Sending BOOTP requests . OK
> [   47.288685] IP-Config: Got BOOTP answer from 192.168.1.185, my address is 
> 192.168.1.233
> [   47.296618] IP-Config: Complete:
> [   47.298761]      device=eth0, addr=192.168.1.233, mask=255.255.255.0, 
> gw=192.168.1.185,
> [   47.306625]      host=gandalf, domain=, nis-domain=(none),
> [   47.312157]      bootserver=192.168.1.185, rootserver=192.168.1.185, 
> rootpath=/media/gandalf,v3,rsize=1024,wsize=3275
> [   47.338961] Looking up port of RPC 100005/3 on 192.168.1.185
> [   47.381957] VFS: Mounted root (nfs filesystem) on device 0:10.
> [   47.386801] Freeing unused kernel memory: 108k init
> 
> Welcome to the Gandalf acquisition
> gandalf login: 
> 
> 
> 
> Bonus question: if you configure buildroot without an FPU, then what is the 
> difference between hard floats and soft floats ? Why can you have both and what 
> is preferable ?
> 
> Thanks
> -- 
> Guillaume Dargaud
> http://www.gdargaud.net/
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

* [Buildroot] Unable to login to buildroot
  2011-02-24  9:54 ` Baruch Siach
@ 2011-02-24 10:55   ` Guillaume Dargaud
  0 siblings, 0 replies; 13+ messages in thread
From: Guillaume Dargaud @ 2011-02-24 10:55 UTC (permalink / raw)
  To: buildroot

> Do you have /etc/securetty? What is its content? It should contain a
> 'ttyUL0' line to allow login.

Yes, it's there.

I just noticed that I'd forgotten to compile RPC in buildroot, which would 
explain why there's nothing in /tmp on my NFS filesystem, but I did a make 
clean; make, reinstall the filesystem and there's no difference, I still can't 
login.

I put an 'echo' in rcS and it's not being executed.
But if i put some 
ttyUL0::sysinit:/bin/echo AAAAAAAAAAAAAAAAAA
in inittab, I see them.

Any other idea ?
-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

* [Buildroot] Unable to login to buildroot
  2011-02-24  9:48 [Buildroot] Unable " Guillaume Dargaud
  2011-02-24  9:54 ` Baruch Siach
@ 2011-02-24 11:30 ` Daniel Nyström
  2011-02-24 12:59   ` Guillaume Dargaud
  2011-02-24 11:53 ` Peter Korsgaard
  2 siblings, 1 reply; 13+ messages in thread
From: Daniel Nyström @ 2011-02-24 11:30 UTC (permalink / raw)
  To: buildroot

2011/2/24 Guillaume Dargaud <dargaud@lpsc.in2p3.fr>:
> # Put a getty on the serial port
> ttyUL0::respawn:/sbin/getty -L ttyUL0 115200 vt100 # GENERIC_SERIAL

Try replace this line with:

::respawn:-/bin/sh

And see if that works?

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

* [Buildroot] Unable to login to buildroot
  2011-02-24  9:48 [Buildroot] Unable " Guillaume Dargaud
  2011-02-24  9:54 ` Baruch Siach
  2011-02-24 11:30 ` Daniel Nyström
@ 2011-02-24 11:53 ` Peter Korsgaard
  2011-02-24 14:56   ` Guillaume Dargaud
  2 siblings, 1 reply; 13+ messages in thread
From: Peter Korsgaard @ 2011-02-24 11:53 UTC (permalink / raw)
  To: buildroot

>>>>> "Guillaume" == Guillaume Dargaud <dargaud@lpsc.in2p3.fr> writes:

Hi,

 Guillaume> Welcome to the Gandalf acquisition
 Guillaume> gandalf login: root
 Guillaume> Jan  1 00:00:10 login[254]: root login on 'ttyUL0'

 Guillaume> Welcome to the Gandalf acquisition
 Guillaume> gandalf login:

 Guillaume> And it repeats... I also cannot login via ssh (I configured
 Guillaume> dropbear) and I have a feeling none of the init.d scripts
 Guillaume> got started. I use the default inittab.

The default skeleton doesn't have a password set for root, and dropbear
doesn't allow root login without a password.

 Guillaume> The drive is mounted via nfs, and there are some missing
 Guillaume> stuff (when looking at them from the NFS server side):
 
 Guillaume> $ ll proc tmp
 Guillaume> proc:
 Guillaume> total 8
 Guillaume> drwxr-xr-x  2 root root 4096 Feb 24 08:31 ./
 Guillaume> drwxr-xr-x 16 root root 4096 Feb 24 09:19 ../

 Guillaume> tmp:
 Guillaume> total 12
 Guillaume> drwxrwxrwt  3 root root 4096 Feb 24 09:24 ./
 Guillaume> drwxr-xr-x 16 root root 4096 Feb 24 09:19 ../
 Guillaume> drwxr-xr-x  2 root root 4096 Feb 24 08:54 ldconfig/
 Guillaume> -rw-r--r--  1 root root    0 Feb 24 09:24 utmp

Looks normal. Proc is a virtual filesystem and /tmp/ is normally a
ramdisk.

 Guillaume> Anything I overlooked ?

Not as far as I can see. You are creating your nfsroot from rootfs.tar
and extracting as root, right?

 Guillaume> Bonus question: if you configure buildroot without an FPU,
 Guillaume> then what is the difference between hard floats and soft
 Guillaume> floats ? Why can you have both and what is preferable ?

Hard float means let the compiler insert hardware FPU instructions
in the code stream whenever floating point calculations are done. Soft
float means add calls to software emulation functions instead.

On a system without a hardware FPU you CAN run hard float binaries if
you have configured the kernel to emulate those instructions, but it
will be very slow. Soft float is preferred.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] Unable to login to buildroot
  2011-02-24 11:30 ` Daniel Nyström
@ 2011-02-24 12:59   ` Guillaume Dargaud
  2011-02-24 13:28     ` Baruch Siach
       [not found]     ` <4D665ADD.10608@daccii.it>
  0 siblings, 2 replies; 13+ messages in thread
From: Guillaume Dargaud @ 2011-02-24 12:59 UTC (permalink / raw)
  To: buildroot

On Thursday 24 February 2011 12:30:51 Daniel Nystr?m wrote:
> 2011/2/24 Guillaume Dargaud <dargaud@lpsc.in2p3.fr>:
> > # Put a getty on the serial port
> > ttyUL0::respawn:/sbin/getty -L ttyUL0 115200 vt100 # GENERIC_SERIAL
> 
> Try replace this line with:
> ::respawn:-/bin/sh
> 
> And see if that works?

Boot stops after:
Freeing unused kernel memory: 108k init

I have a feeling the mounts at the begining of inittab don't work... As seen 
from the NFS server, there's nothing in /proc, /tmp. /dev/pts, /sys...

-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

* [Buildroot] Unable to login to buildroot
  2011-02-24 12:59   ` Guillaume Dargaud
@ 2011-02-24 13:28     ` Baruch Siach
       [not found]     ` <4D665ADD.10608@daccii.it>
  1 sibling, 0 replies; 13+ messages in thread
From: Baruch Siach @ 2011-02-24 13:28 UTC (permalink / raw)
  To: buildroot

Hi Guillaume,

On Thu, Feb 24, 2011 at 01:59:42PM +0100, Guillaume Dargaud wrote:
> On Thursday 24 February 2011 12:30:51 Daniel Nystr?m wrote:
> > 2011/2/24 Guillaume Dargaud <dargaud@lpsc.in2p3.fr>:
> > > # Put a getty on the serial port
> > > ttyUL0::respawn:/sbin/getty -L ttyUL0 115200 vt100 # GENERIC_SERIAL
> > 
> > Try replace this line with:
> > ::respawn:-/bin/sh
> > 
> > And see if that works?
> 
> Boot stops after:
> Freeing unused kernel memory: 108k init
> 
> I have a feeling the mounts at the begining of inittab don't work... As seen 
> from the NFS server, there's nothing in /proc, /tmp. /dev/pts, /sys...

These content of these directories (virtual filesystems) is only seen on the 
target machine, not the host.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

* [Buildroot] Unable to login to buildroot
       [not found]     ` <4D665ADD.10608@daccii.it>
@ 2011-02-24 14:16       ` Guillaume Dargaud
  2011-02-24 15:15         ` Williams, Michael
  0 siblings, 1 reply; 13+ messages in thread
From: Guillaume Dargaud @ 2011-02-24 14:16 UTC (permalink / raw)
  To: buildroot

> There isn't any reason that these folders for containing something 
> because proc, sysfs, devpts and tmpfs (generally used on /tmp) are 
> virtual filesystems handled by the kernel ... there isn't anything 
> written on the disk.

OK, I suspected as much...

> If you didn't see anything it means that init get executed but the 
> console isn't started on the serial port.
> Do a simply test: set as init, on boot options, /bin/ls (for example), 
> just to see if something is showed on the serial console after the boot.

I'm not sure I understand.
sbin/init is already a symbolic link to bin/busybox. Should I make that a 
symbolic link to ls ?

If I add the following to inittab:
::wait:/bin/ls -alF / /tmp

I get:
...
[   33.070279] Freeing unused kernel memory: 108k init
/:
total 52
drwxr-xr-x   16 root     root          4096 Feb 24  2011 ./
drwxr-xr-x   16 root     root          4096 Feb 24  2011 ../
drwxr-xr-x    2 root     root          4096 Feb 24  2011 bin/
drwxr-xr-x    6 root     root          4096 Feb 24  2011 dev/
drwxr-xr-x    7 root     root          4096 Feb 24  2011 etc/
drwxr-xr-x    3 root     root          4096 Feb 24  2011 home/
drwxr-xr-x    2 root     root          4096 Feb 24  2011 lib/
lrwxrwxrwx    1 root     root            11 Feb 24  2011 linuxrc -> 
bin/busybox*
drwxr-xr-x    2 root     root          4096 Feb 24  2011 mnt/
drwxr-xr-x    2 root     root          4096 Feb 24  2011 opt/
dr-xr-xr-x   26 root     root             0 Jan  1 00:00 proc/
drwxr-xr-x    2 root     root          4096 Feb 24  2011 root/
drwxr-xr-x    2 root     root          4096 Feb 24  2011 sbin/
drwxr-xr-x   11 root     root             0 Jan  1 00:00 sys/
drwxrwxrwt    2 root     root            80 Jan  1 00:00 tmp/
drwxr-xr-x    6 root     root          4096 Feb 24  2011 usr/
drwxr-xr-x    3 root     root          4096 Feb 14  2011 var/

/tmp:
total 4
drwxrwxrwt    2 root     root            80 Jan  1 00:00 ./
drwxr-xr-x   16 root     root          4096 Feb 24  2011 ../
-rw-r--r--    1 root     root             0 Jan  1 00:00 messages
-rw-r--r--    1 root     root             0 Jan  1 00:00 utmp

Welcome to the Gandalf acquisition
gandalf login: root
Password:
Jan  1 00:00:57 login[255]: root login on 'ttyUL0'

Welcome to the Gandalf acquisition
gandalf login:

And still can't login.
And if it's only a tty problem, why is rcS not launched ?

> If something get showed, it means that, with high probability, the only 
> problem is that getty isn't started on the right console. Have you tried 
> to start getty on ttyUL1? Can be that ttyUL0 is used for something else 
> on the board (but really, i don't know).

That doesn't display anything after "Freeing unused kernel memory"
-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

* [Buildroot] Unable to login to buildroot
  2011-02-24 11:53 ` Peter Korsgaard
@ 2011-02-24 14:56   ` Guillaume Dargaud
  0 siblings, 0 replies; 13+ messages in thread
From: Guillaume Dargaud @ 2011-02-24 14:56 UTC (permalink / raw)
  To: buildroot

> The default skeleton doesn't have a password set for root, and dropbear
> doesn't allow root login without a password.

I set it up in /etc/shadow. I get an error message if I try with the wrong 
pwd. And also tried without one in /etc/shadow.

> Not as far as I can see. You are creating your nfsroot from rootfs.tar
> and extracting as root, right?

Yes, with tar xvf. Any option I forgot ?

> On a system without a hardware FPU you CAN run hard float binaries if
> you have configured the kernel to emulate those instructions, but it
> will be very slow. Soft float is preferred.

Thanks. I was confused by the float options in both the kernel and uclibc.
-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

* [Buildroot] Unable to login to buildroot
  2011-02-24 14:16       ` Guillaume Dargaud
@ 2011-02-24 15:15         ` Williams, Michael
  2011-02-24 15:57           ` Guillaume Dargaud
  0 siblings, 1 reply; 13+ messages in thread
From: Williams, Michael @ 2011-02-24 15:15 UTC (permalink / raw)
  To: buildroot



> -----Original Message-----
> From: buildroot-bounces at busybox.net [mailto:buildroot-
> bounces at busybox.net] On Behalf Of Guillaume Dargaud
> Sent: Thursday, February 24, 2011 9:16 AM
> To: buildroot at busybox.net
> Subject: Re: [Buildroot] Unable to login to buildroot
> 
> > There isn't any reason that these folders for containing something
> > because proc, sysfs, devpts and tmpfs (generally used on /tmp) are
> > virtual filesystems handled by the kernel ... there isn't anything
> > written on the disk.
> 
> OK, I suspected as much...
> 
> > If you didn't see anything it means that init get executed but the
> > console isn't started on the serial port.
> > Do a simply test: set as init, on boot options, /bin/ls (for
> example),
> > just to see if something is showed on the serial console after the
> boot.
> 
> I'm not sure I understand.
> sbin/init is already a symbolic link to bin/busybox. Should I make
that
> a
> symbolic link to ls ?
> 
> If I add the following to inittab:
> ::wait:/bin/ls -alF / /tmp
> 
> I get:
> ...
> [   33.070279] Freeing unused kernel memory: 108k init
> /:
> total 52
> drwxr-xr-x   16 root     root          4096 Feb 24  2011 ./
> drwxr-xr-x   16 root     root          4096 Feb 24  2011 ../
> drwxr-xr-x    2 root     root          4096 Feb 24  2011 bin/
> drwxr-xr-x    6 root     root          4096 Feb 24  2011 dev/
> drwxr-xr-x    7 root     root          4096 Feb 24  2011 etc/
> drwxr-xr-x    3 root     root          4096 Feb 24  2011 home/
> drwxr-xr-x    2 root     root          4096 Feb 24  2011 lib/
> lrwxrwxrwx    1 root     root            11 Feb 24  2011 linuxrc ->
> bin/busybox*
> drwxr-xr-x    2 root     root          4096 Feb 24  2011 mnt/
> drwxr-xr-x    2 root     root          4096 Feb 24  2011 opt/
> dr-xr-xr-x   26 root     root             0 Jan  1 00:00 proc/
> drwxr-xr-x    2 root     root          4096 Feb 24  2011 root/
> drwxr-xr-x    2 root     root          4096 Feb 24  2011 sbin/
> drwxr-xr-x   11 root     root             0 Jan  1 00:00 sys/
> drwxrwxrwt    2 root     root            80 Jan  1 00:00 tmp/
> drwxr-xr-x    6 root     root          4096 Feb 24  2011 usr/
> drwxr-xr-x    3 root     root          4096 Feb 14  2011 var/
> 
> /tmp:
> total 4
> drwxrwxrwt    2 root     root            80 Jan  1 00:00 ./
> drwxr-xr-x   16 root     root          4096 Feb 24  2011 ../
> -rw-r--r--    1 root     root             0 Jan  1 00:00 messages
> -rw-r--r--    1 root     root             0 Jan  1 00:00 utmp
> 
> Welcome to the Gandalf acquisition
> gandalf login: root
> Password:
> Jan  1 00:00:57 login[255]: root login on 'ttyUL0'
> 
> Welcome to the Gandalf acquisition
> gandalf login:
> 
> And still can't login.
> And if it's only a tty problem, why is rcS not launched ?

Just a heads up, I fought with a similar problem with bizarre,
inconsistent results running programs from init, with the same symptoms
from sysv init as busybox's. Have you tried tracing using
::respawn:-strace /bin/sh in inittab? In my case, everything worked
perfectly on 2.6.38-rc5, but failed on kernel 2.6.24.

In the end, it turned out to be a floating-point support configuration
mismatch between buildroot and my old kernel (2.6.24). After changing
everything to a soft FPU on the old kernel and the buildroot toolchain,
it all worked.


> 
> > If something get showed, it means that, with high probability, the
> only
> > problem is that getty isn't started on the right console. Have you
> tried
> > to start getty on ttyUL1? Can be that ttyUL0 is used for something
> else
> > on the board (but really, i don't know).
> 
> That doesn't display anything after "Freeing unused kernel memory"
> --
> Guillaume Dargaud
> http://www.gdargaud.net/
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] Unable to login to buildroot
  2011-02-24 15:15         ` Williams, Michael
@ 2011-02-24 15:57           ` Guillaume Dargaud
  0 siblings, 0 replies; 13+ messages in thread
From: Guillaume Dargaud @ 2011-02-24 15:57 UTC (permalink / raw)
  To: buildroot

> In the end, it turned out to be a floating-point support configuration
> mismatch between buildroot and my old kernel (2.6.24). After changing
> everything to a soft FPU on the old kernel and the buildroot toolchain,
> it all worked.

Hmmm, that ties up nicely with the end quesion of my 1st msg... I had an app 
throw a soft/hard float error on link. I was carefull to get fresh 
kernel+buildroot together with minimal changes but there must be something 
screwy.

I reverted to my old config and will give up oprofile for now...
-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

end of thread, other threads:[~2011-02-24 15:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 18:11 [Buildroot] unable to login to buildroot sunr2007
2010-03-26 11:37 ` Yury Luneff
  -- strict thread matches above, loose matches on Subject: below --
2011-02-24  9:48 [Buildroot] Unable " Guillaume Dargaud
2011-02-24  9:54 ` Baruch Siach
2011-02-24 10:55   ` Guillaume Dargaud
2011-02-24 11:30 ` Daniel Nyström
2011-02-24 12:59   ` Guillaume Dargaud
2011-02-24 13:28     ` Baruch Siach
     [not found]     ` <4D665ADD.10608@daccii.it>
2011-02-24 14:16       ` Guillaume Dargaud
2011-02-24 15:15         ` Williams, Michael
2011-02-24 15:57           ` Guillaume Dargaud
2011-02-24 11:53 ` Peter Korsgaard
2011-02-24 14:56   ` Guillaume Dargaud

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