Cant type anything into Serial Console login
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?
Signature · 21 lines
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>
Quoted 11 lines · Jigar SOLANKI
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.
Quoted 6 lines
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->genericserialconfig->puta getty on ttyS0, 115200.
Have you made sure to disable hardware flow control?
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jigar" == Jigar SOLANKI <[email protected]> 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 ?
Signature · 1 line
Bye, Peter Korsgaard
Le 11/01/2012 14:52, Peter Korsgaard a ?crit :
Quoted 18 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jigar" == Jigar SOLANKI <[email protected]> writes:
Hi,
Jigar> 1- the kernel command line (console=/dev/ttyS0,115200)
Jigar> 2- and also checked in target
options->genericserialconfig->puta 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 tty2Jigar> # Put a getty on the serial port
Jigar> ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 #GENERIC_SERIAL
Quoted 7 lines
Jigar> 4- and I checked the
/etc/securettyfile 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.
Signature · 21 lines
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>
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jigar" == Jigar SOLANKI <[email protected]> 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?
Signature · 1 line
Bye, Peter Korsgaard
Le 11/01/2012 15:26, Peter Korsgaard a ?crit :
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jigar" == Jigar SOLANKI <[email protected]> writes:
Seems good. Can you interact with the shell over serial if you boot with init=/bin/sh ?
Quoted 6 lines
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"
Signature · 21 lines
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>
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jigar" == Jigar SOLANKI <[email protected]> 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
Signature · 1 line
Bye, Peter Korsgaard
Le 11/01/2012 16:17, Peter Korsgaard a ?crit :
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jigar" == Jigar SOLANKI <[email protected]> writes:
Hi,
Jigar> Yes I did keep this ^^.
Jigar> Here's the complete command line :
Quoted 7 lines
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.
Signature · 21 lines
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>
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jigar" == Jigar SOLANKI <[email protected]> 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.
Signature · 1 line
Bye, Peter Korsgaard
Le 11/01/2012 16:28, Peter Korsgaard a ?crit :
Quoted 14 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jigar" == Jigar SOLANKI <[email protected]> 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_SERIALJigar> 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.
Quoted 9 lines
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...
Signature · 21 lines
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>
Le 11/01/2012 16:35, Jigar SOLANKI a ?crit :
Quoted 21 lines
Le 11/01/2012 16:28, Peter Korsgaard a ?crit :
Quoted 20 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jigar" == Jigar SOLANKI <[email protected]> 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_SERIALJigar> 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>