You are not logged in.

#1 2014-11-19 15:28:32

gshearer
Member
From: Cincinnati, OH, USA
Registered: 2014-01-14
Posts: 50

USB Serial Console

Good morning all,

  I'm having problems getting serial console to work using /dev/ttyUSB0. I have several machines that use LUKS for everything, even root partition, and therefor I must type passwords if they ever need rebooted. I've setup a cheap terminal server to access the array of servers.  I can communicate fine with the serial ports, for example, ps xafw >/dev/ttyUSB0 works just fine.

  I'm using EFIBOOTSTUB, and my command line includes "console=ttyUSB0,9600 console=tty0" among other things, but this didn't work. I'm wondering if I need to add "usb_common usbcore usbserial pl2303" to MODULES= in mkinitcpio.conf, I planned to try that later today but thought I'd check with you all first.

  I haven't compiled a kernel in some time (though I used to routinely back in the slackware/MCC days), I'm wondering if the regular Arch kernel build includes the option to support Serial Console on USB/RS-232 adapters?

  Thank you for your time.


--
George Shearer
doc at lame dot org
Linux Nerd since the MCC Interim Days

Offline

#2 2015-09-28 22:27:49

darkbasic
Member
Registered: 2015-06-22
Posts: 27

Re: USB Serial Console

Hi, did you succeed? Becuase it doesn't work for me sad

Offline

#3 2015-09-29 18:17:16

darkbasic
Member
Registered: 2015-06-22
Posts: 27

Re: USB Serial Console

Found the culprit: Arch's kernel has CONFIG_USB_SERIAL_CONSOLE not set. So I had to rebuild kernel and I get rid of the mkinitcpio.conf MODULES= stuff: http://smackerelofopinion.blogspot.it/2 … nsole.html
Everything works flawlessly.

Last edited by darkbasic (2015-09-29 18:17:53)

Offline

#4 2015-09-30 09:47:37

R00KIE
Forum Moderator
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,682

Re: USB Serial Console

That is a good candidate for a feature request. You could have left the drivers as modules, then you would still add them in MODULES=, but having the driver in the kernel does make things easier.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2015-09-30 14:47:02

darkbasic
Member
Registered: 2015-06-22
Posts: 27

Re: USB Serial Console

Unless Arch kernel will start shipping with CONFIG_USB_SERIAL_CONSOLE there is no point to compile them as modules: if I have to recompile the kernel it's easier to do it statically smile
Anyway I agree it would be a good candidate for a feature request, but I'm new to Arch and I still don't know the proper place to ask such things.

Offline

#6 2015-09-30 15:27:17

R00KIE
Forum Moderator
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,682

Re: USB Serial Console

This would be done on the bug tracker, open a bug, mark it as a feature request and explain why it should be enabled. The person(s) in charge of maintaining the kernel package will look at it and either agree and implement it or deny it as say why.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#7 2015-10-01 07:57:59

darkbasic
Member
Registered: 2015-06-22
Posts: 27

Re: USB Serial Console

Offline

Board footer

Powered by FluxBB