Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Login on a ttyS fails
@ 2008-09-16 15:31 Stéphane Mancini
  2008-09-16 18:37 ` Peter Korsgaard
  0 siblings, 1 reply; 9+ messages in thread
From: Stéphane Mancini @ 2008-09-16 15:31 UTC (permalink / raw)
  To: buildroot

Hi,
I'm trying to set up linux on a Xilinx platform.
The boot starts but the root login fails 
after prompting :


I've made some prompt in login.c (busybox) and I have the following

################ LOG ######################
boot stuff 
init started: BusyBox v1.12.0 (2008-09-16 16:37:51 CEST)
command='/bin/mount -t proc proc /proc' action=1 tty='/dev/null'

command='/etc/init.d/rcS' action=1 tty=''

command='/sbin/getty -L ttyUL0 57600 vt100 ' action=2 tty='/dev/ttyUL0'

command='/bin/touch /var/log/messages' action=1 tty='/dev/null'

command='/sbin/reboot' action=32 tty=''

command='/sbin/swapoff -a' action=64 tty='/dev/null'

Welcome to the Erik's uClibc development environment.
(none) login: root
Dec 31 17:00:12 login[169]: root login succeeded  on the TTY : 'ttyUL0'
-> /bin/ash
Dec 31 17:00:12 login[169]: Run t


Welcome to the Erik's uClibc development environment.
(none) login: 

#######

I've modified the login.c text to be sure of which code is executing.

It appears that it goes up to the call to the shell. But, then, nothing
happens. 
I've put a 
	syslog(LOG_INFO, "Get to the shell ash!!\n");
at the begining of ash.c:ash_main(int argc UNUSED_PARAM, char **argv)
It's never displayed !

I've also modified inittab to execute "ash" instead of "/init" but
nothing happen also.

It seems that there's a trouble with the shell......

I'm using the Xilinx UARTLITE and the driver comming with linux 2.6.26.2

Maybe there's something wrong with this device but it seems to work
perfectly since I can see all the boot process !

Please, can you tell me :
 what are the configuration parameters to be set to run a a shell on
this tty properly ?
To mean, in buildroot, busybox, libc, linux, etc ....

I set the console on ttyUL0. Is it correct ?

Greetings !

St?phane Mancini


-- 
|St?phane Mancini   Ma?tre de Conference ENSIMAG/GIPSA-lab DIS
| Tel : 04 76 57 43 58
| 961 rue de la Houille Blanche
| Domaine universitaire - BP 46
| 38402 Saint Martin d'H?res cedex
| Email : stephane.mancini at grenoble-inp.fr
| http://www.lis.inpg.fr/pages_perso/mancini
================================================
Join us for the DASIP'08 Conference
ULB, Bruxelles, Belgique
Visit http://www.ecsi.org/dasip/
================================================

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

end of thread, other threads:[~2008-09-17 14:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 15:31 [Buildroot] Login on a ttyS fails Stéphane Mancini
2008-09-16 18:37 ` Peter Korsgaard
2008-09-17 10:48   ` Stéphane Mancini
2008-09-17 10:55     ` Flemming Madsen
2008-09-17 11:31     ` Peter Korsgaard
     [not found]       ` <1221652957.30276.16.camel@chip.lis.inpg.fr>
2008-09-17 12:24         ` Stéphane Mancini
2008-09-17 12:34           ` Peter Korsgaard
2008-09-17 14:09             ` Stéphane Mancini
2008-09-17 14:20               ` Peter Korsgaard

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