Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Cant type anything into Serial Console login
@ 2012-01-11 11:46 Jigar SOLANKI
  2012-01-11 11:56 ` Will Newton
  2012-01-11 13:52 ` Peter Korsgaard
  0 siblings, 2 replies; 11+ messages in thread
From: Jigar SOLANKI @ 2012-01-11 11:46 UTC (permalink / raw)
  To: buildroot

Hi all and happy new year :-)

I'm trying to build a Linux Environment using buildroot on a Leon3
architecture.

I've managed to compile and successfully run the Linux image with
initramfs.
At boot prompt, welcomme tobuildroot, buildroot login, I can't type
anything in there. The serial console client (I've tried Kermit,
Minicom, GTKTerm) just hangs, my keyboard is useless at that time.

For what I have googled, I already checked the following :

1- the kernel command line (console=/dev/ttyS0,115200)

2- and also checked in target options->generic serial config->put a
getty on ttyS0, 115200.

3- I checked the inittab :

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

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


4- and I checked the /etc/securetty file too (ttyS0 is there).

What am I missing here?


-- 
Jigar SOLANKI

LaBRI - UMR 5800
Universit? Bordeaux 1
351 Cours de la Lib?ration
F-33405 Talence Cedex
Phone : (+33) 5 4000 24 87
Fax   : (+33) 5 4000 66 69
Web   : http://www.labri.fr/perso/solanki

* Please do not print this e-mail unless it's really necessary *
---


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120111/0b1a6022/attachment-0001.asc>

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

* [Buildroot] Cant type anything into Serial Console login
  2012-01-11 11:46 [Buildroot] Cant type anything into Serial Console login Jigar SOLANKI
@ 2012-01-11 11:56 ` Will Newton
  2012-01-11 13:52 ` Peter Korsgaard
  1 sibling, 0 replies; 11+ messages in thread
From: Will Newton @ 2012-01-11 11:56 UTC (permalink / raw)
  To: buildroot

On Wed, Jan 11, 2012 at 11:46 AM, Jigar SOLANKI <jigar.solanki@labri.fr> wrote:
> Hi all and happy new year :-)
>
> I'm trying to build a Linux Environment using buildroot on a Leon3
> architecture.
>
> I've managed to compile and successfully run the Linux image with
> initramfs.
> At boot prompt, welcomme tobuildroot, buildroot login, I can't type
> anything in there. The serial console client (I've tried Kermit,
> Minicom, GTKTerm) just hangs, my keyboard is useless at that time.
>
> For what I have googled, I already checked the following :
>
> 1- the kernel command line (console=/dev/ttyS0,115200)
>
> 2- and also checked in target options->generic serial config->put a
> getty on ttyS0, 115200.

Have you made sure to disable hardware flow control?

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

* [Buildroot] Cant type anything into Serial Console login
  2012-01-11 11:46 [Buildroot] Cant type anything into Serial Console login Jigar SOLANKI
  2012-01-11 11:56 ` Will Newton
@ 2012-01-11 13:52 ` Peter Korsgaard
  2012-01-11 14:22   ` Jigar SOLANKI
  1 sibling, 1 reply; 11+ messages in thread
From: Peter Korsgaard @ 2012-01-11 13:52 UTC (permalink / raw)
  To: buildroot

>>>>> "Jigar" == Jigar SOLANKI <jigar.solanki@labri.fr> writes:

Hi,

 Jigar> 1- the kernel command line (console=/dev/ttyS0,115200)

 Jigar> 2- and also checked in target options->generic serial config->put a
 Jigar> getty on ttyS0, 115200.

 Jigar> 3- I checked the inittab :

 Jigar> # Set up a couple of getty's
 Jigar> tty1::respawn:/sbin/getty 115200 tty1
 Jigar> tty2::respawn:/sbin/getty 115200 tty2

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

 Jigar> 4- and I checked the /etc/securetty file too (ttyS0 is there).

 Jigar> What am I missing here?

Seems good. Can you interact with the shell over serial if you boot with
init=/bin/sh ?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] Cant type anything into Serial Console login
  2012-01-11 13:52 ` Peter Korsgaard
@ 2012-01-11 14:22   ` Jigar SOLANKI
  2012-01-11 14:26     ` Peter Korsgaard
  0 siblings, 1 reply; 11+ messages in thread
From: Jigar SOLANKI @ 2012-01-11 14:22 UTC (permalink / raw)
  To: buildroot

Le 11/01/2012 14:52, Peter Korsgaard a ?crit :
>>>>>> "Jigar" == Jigar SOLANKI <jigar.solanki@labri.fr> writes:
> 
> Hi,
> 
>  Jigar> 1- the kernel command line (console=/dev/ttyS0,115200)
> 
>  Jigar> 2- and also checked in target options->generic serial config->put a
>  Jigar> getty on ttyS0, 115200.
> 
>  Jigar> 3- I checked the inittab :
> 
>  Jigar> # Set up a couple of getty's
>  Jigar> tty1::respawn:/sbin/getty 115200 tty1
>  Jigar> tty2::respawn:/sbin/getty 115200 tty2
> 
>  Jigar> # Put a getty on the serial port
>  Jigar> ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
> 
>  Jigar> 4- and I checked the /etc/securetty file too (ttyS0 is there).
> 
>  Jigar> What am I missing here?
> 
> Seems good. Can you interact with the shell over serial if you boot with
> init=/bin/sh ?
> 

Nope. It hangs on Booting Linux...and that's all. I can't do anything,
can't type anything on keyboard.


-- 
Jigar SOLANKI

LaBRI - UMR 5800
Universit? Bordeaux 1
351 Cours de la Lib?ration
F-33405 Talence Cedex
Phone : (+33) 5 4000 24 87
Fax   : (+33) 5 4000 66 69
Web   : http://www.labri.fr/perso/solanki

* Please do not print this e-mail unless it's really necessary *
---


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120111/f3e72b15/attachment.asc>

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

* [Buildroot] Cant type anything into Serial Console login
  2012-01-11 14:22   ` Jigar SOLANKI
@ 2012-01-11 14:26     ` Peter Korsgaard
  2012-01-11 14:30       ` Jigar SOLANKI
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Korsgaard @ 2012-01-11 14:26 UTC (permalink / raw)
  To: buildroot

>>>>> "Jigar" == Jigar SOLANKI <jigar.solanki@labri.fr> writes:

 >> Seems good. Can you interact with the shell over serial if you boot with
 >> init=/bin/sh ?
 >> 

 Jigar> Nope. It hangs on Booting Linux...and that's all. I can't do anything,
 Jigar> can't type anything on keyboard.

You did keep the console=.. part, right? What is your entire kernel
cmdline?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] Cant type anything into Serial Console login
  2012-01-11 14:26     ` Peter Korsgaard
@ 2012-01-11 14:30       ` Jigar SOLANKI
  2012-01-11 15:17         ` Peter Korsgaard
  0 siblings, 1 reply; 11+ messages in thread
From: Jigar SOLANKI @ 2012-01-11 14:30 UTC (permalink / raw)
  To: buildroot

Le 11/01/2012 15:26, Peter Korsgaard a ?crit :
>>>>>> "Jigar" == Jigar SOLANKI <jigar.solanki@labri.fr> writes:
> 
>  >> Seems good. Can you interact with the shell over serial if you boot with
>  >> init=/bin/sh ?
>  >> 
> 
>  Jigar> Nope. It hangs on Booting Linux...and that's all. I can't do anything,
>  Jigar> can't type anything on keyboard.
> 
> You did keep the console=.. part, right? What is your entire kernel
> cmdline?
> 
Yes I did keep this ^^.
Here's the complete command line :

LB_MKLI_CMDLINE="console=ttyS2,38400 init=/bin/sh"


-- 
Jigar SOLANKI

LaBRI - UMR 5800
Universit? Bordeaux 1
351 Cours de la Lib?ration
F-33405 Talence Cedex
Phone : (+33) 5 4000 24 87
Fax   : (+33) 5 4000 66 69
Web   : http://www.labri.fr/perso/solanki

* Please do not print this e-mail unless it's really necessary *
---


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120111/b6d90e27/attachment-0001.asc>

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

* [Buildroot] Cant type anything into Serial Console login
  2012-01-11 14:30       ` Jigar SOLANKI
@ 2012-01-11 15:17         ` Peter Korsgaard
  2012-01-11 15:22           ` Jigar SOLANKI
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Korsgaard @ 2012-01-11 15:17 UTC (permalink / raw)
  To: buildroot

>>>>> "Jigar" == Jigar SOLANKI <jigar.solanki@labri.fr> writes:

Hi,

 Jigar> Yes I did keep this ^^.
 Jigar> Here's the complete command line :

 Jigar> LB_MKLI_CMDLINE="console=ttyS2,38400 init=/bin/sh"

That doesn't seem to match your first mail:

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

-- 
Bye, Peter Korsgaard

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

* [Buildroot] Cant type anything into Serial Console login
  2012-01-11 15:17         ` Peter Korsgaard
@ 2012-01-11 15:22           ` Jigar SOLANKI
  2012-01-11 15:28             ` Peter Korsgaard
  0 siblings, 1 reply; 11+ messages in thread
From: Jigar SOLANKI @ 2012-01-11 15:22 UTC (permalink / raw)
  To: buildroot

Le 11/01/2012 16:17, Peter Korsgaard a ?crit :
>>>>>> "Jigar" == Jigar SOLANKI <jigar.solanki@labri.fr> writes:
> 
> Hi,
> 
>  Jigar> Yes I did keep this ^^.
>  Jigar> Here's the complete command line :
> 
>  Jigar> LB_MKLI_CMDLINE="console=ttyS2,38400 init=/bin/sh"
> 
> That doesn't seem to match your first mail:
> 
> # Put a getty on the serial port
> ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
> 

Yep, sorry, I was just testing every ttySx at random. The command line
indeed was with ttyS0 of course, everything in kernel command/serial
console client/inittab/security is coherent with the ttySx I choose.

Same result with both.



-- 
Jigar SOLANKI

LaBRI - UMR 5800
Universit? Bordeaux 1
351 Cours de la Lib?ration
F-33405 Talence Cedex
Phone : (+33) 5 4000 24 87
Fax   : (+33) 5 4000 66 69
Web   : http://www.labri.fr/perso/solanki

* Please do not print this e-mail unless it's really necessary *
---


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120111/a61ba684/attachment.asc>

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

* [Buildroot] Cant type anything into Serial Console login
  2012-01-11 15:22           ` Jigar SOLANKI
@ 2012-01-11 15:28             ` Peter Korsgaard
  2012-01-11 15:35               ` Jigar SOLANKI
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Korsgaard @ 2012-01-11 15:28 UTC (permalink / raw)
  To: buildroot

>>>>> "Jigar" == Jigar SOLANKI <jigar.solanki@labri.fr> writes:

 >> That doesn't seem to match your first mail:
 >> 
 >> # Put a getty on the serial port
 >> ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
 >> 

 Jigar> Yep, sorry, I was just testing every ttySx at random. The command line
 Jigar> indeed was with ttyS0 of course, everything in kernel command/serial
 Jigar> console client/inittab/security is coherent with the ttySx I choose.

 Jigar> Same result with both.

What do you mean with 'same result'? From your first mail you mentioned
you got 'Welcome to Buildroot' and a Login prompt. If you boot with
init=/bin/sh you shouldn't get any of that.

I notice you don't provide any root=. What kind of file system are you
trying to boot?

Perhaps just paste the entire boot log.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] Cant type anything into Serial Console login
  2012-01-11 15:28             ` Peter Korsgaard
@ 2012-01-11 15:35               ` Jigar SOLANKI
  2012-01-11 15:38                 ` Jigar SOLANKI
  0 siblings, 1 reply; 11+ messages in thread
From: Jigar SOLANKI @ 2012-01-11 15:35 UTC (permalink / raw)
  To: buildroot

Le 11/01/2012 16:28, Peter Korsgaard a ?crit :
>>>>>> "Jigar" == Jigar SOLANKI <jigar.solanki@labri.fr> writes:
> 
>  >> That doesn't seem to match your first mail:
>  >> 
>  >> # Put a getty on the serial port
>  >> ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
>  >> 
> 
>  Jigar> Yep, sorry, I was just testing every ttySx at random. The command line
>  Jigar> indeed was with ttyS0 of course, everything in kernel command/serial
>  Jigar> console client/inittab/security is coherent with the ttySx I choose.
> 
>  Jigar> Same result with both.
> 
> What do you mean with 'same result'? From your first mail you mentioned
> you got 'Welcome to Buildroot' and a Login prompt. If you boot with
> init=/bin/sh you shouldn't get any of that.
> 
> I notice you don't provide any root=. What kind of file system are you
> trying to boot?
> 
> Perhaps just paste the entire boot log.
> 

Yes, I didn't get anything of that.

So, with ttyS0, with complete command = console=ttyS0,38400,
I get to the boot prompt, where I can't type anything, the keyboard
doesnt respond.

And with complete command = console=ttyS0,38400 init=/bin/sh
The boot process hangs on the first line which is Booting Linux....
and then..nothing. If I tried to type anything with my keyboard at that
time, same result, which is : nothing happens, the keyboard still doesnt
responding at all.

I also tried with a USB<->Serial converter (so, with ttyUSB0 then) and
had the same result without init=/bin/sh, I get to the Buildroot boot
prompt and then cannot login because I can't type anything ; and also
wiith init=/bin/sh where the boot process stops at Booting Linux...and
then nothing happens, even if I type something. Even with ENTER key, the
output doesnt go to the next blank line...

Sigh...
-- 
Jigar SOLANKI

LaBRI - UMR 5800
Universit? Bordeaux 1
351 Cours de la Lib?ration
F-33405 Talence Cedex
Phone : (+33) 5 4000 24 87
Fax   : (+33) 5 4000 66 69
Web   : http://www.labri.fr/perso/solanki

* Please do not print this e-mail unless it's really necessary *
---


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120111/9d1110fd/attachment.asc>

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

* [Buildroot] Cant type anything into Serial Console login
  2012-01-11 15:35               ` Jigar SOLANKI
@ 2012-01-11 15:38                 ` Jigar SOLANKI
  0 siblings, 0 replies; 11+ messages in thread
From: Jigar SOLANKI @ 2012-01-11 15:38 UTC (permalink / raw)
  To: buildroot

Le 11/01/2012 16:35, Jigar SOLANKI a ?crit :
> Le 11/01/2012 16:28, Peter Korsgaard a ?crit :
>>>>>>> "Jigar" == Jigar SOLANKI <jigar.solanki@labri.fr> writes:
>>
>>  >> That doesn't seem to match your first mail:
>>  >> 
>>  >> # Put a getty on the serial port
>>  >> ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
>>  >> 
>>
>>  Jigar> Yep, sorry, I was just testing every ttySx at random. The command line
>>  Jigar> indeed was with ttyS0 of course, everything in kernel command/serial
>>  Jigar> console client/inittab/security is coherent with the ttySx I choose.
>>
>>  Jigar> Same result with both.
>>
>> What do you mean with 'same result'? From your first mail you mentioned
>> you got 'Welcome to Buildroot' and a Login prompt. If you boot with
>> init=/bin/sh you shouldn't get any of that.
>>
>> I notice you don't provide any root=. What kind of file system are you
>> trying to boot?

Initramfs

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120111/993176f4/attachment.asc>

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

end of thread, other threads:[~2012-01-11 15:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11 11:46 [Buildroot] Cant type anything into Serial Console login Jigar SOLANKI
2012-01-11 11:56 ` Will Newton
2012-01-11 13:52 ` Peter Korsgaard
2012-01-11 14:22   ` Jigar SOLANKI
2012-01-11 14:26     ` Peter Korsgaard
2012-01-11 14:30       ` Jigar SOLANKI
2012-01-11 15:17         ` Peter Korsgaard
2012-01-11 15:22           ` Jigar SOLANKI
2012-01-11 15:28             ` Peter Korsgaard
2012-01-11 15:35               ` Jigar SOLANKI
2012-01-11 15:38                 ` Jigar SOLANKI

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