View previous topic :: View next topic |
Author |
Message |
Arcardy n00b
Joined: 05 Feb 2024 Posts: 2
|
Posted: Wed Feb 07, 2024 12:38 am Post subject: Booting Gentoo via serial console |
|
|
Hey,
I am new to this forum and I hope you can help me. I managed to install gentoo to several virtual servers before, but now I want to install it onto my newly built homeserver.
I want to use RS232 for a connection though. I have a null modem cable connection to my computer.
I did boot the latest gentoo minimal CD (I connected a keyboard and monitor ). I choose c in the GRUB menu for console access.
Then I typed in
grub> serial --unit=0 --speed=115200
grub> terminal_input serial; terminal_output serial
And now I can see the GRUB menu over a RS232 connection on my computer! So it works and ttyS0 is the serial device that is being used.
But Gentoo itself does not boot over the serial console, sadly.
So I pressed e to edit the commands.
What do I have to type in to boot the Gentoo Live CD over serial console / RS232?
Thank you very much!
Code: |
GNU GRUB version 2.06
+----------------------------------------------------------------------------+
|setparams 'Boot LiveCD (kernel: gentoo)' |
| |
| linux /boot/gentoo dokeymap looptype=squashfs loop=/image.squashfs \|
|cdroot |
| initrd /boot/gentoo.igz |
| |
| |
| |
| |
| |
| |
| |
+----------------------------------------------------------------------------+
Minimum Emacs-like screen editing is supported. TAB lists
completions. Press Ctrl-x or F10 to boot, Ctrl-c or F2 for
a command-line or ESC to discard edits and return to the GRUB menu.
|
My Gentoo homeserver specifications:
Quote: | Mainboard: ASUS PRIME N100I-D D4
CPU: Intel® Processor N100
RAM: 32GB DDR4 SO-DIMM
SSD: Crucial P3 1TB NVMe
ODD: Matshita/Panasonic UJ8C5 DVD±RW
|
|
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1136 Location: Richmond Hill, Canada
|
Posted: Wed Feb 07, 2024 1:39 am Post subject: |
|
|
Arcardy,
Welcome to Gentoo.
You most likely need "console=ttyS0,115200n8" kernel command line options.
However I cannot said for sure it is ttyS0, since I cannot tell from your post when you reference ttyS0 mean you are refer to your workstation end or it is on the node that being setup.
You can have additional "console=..." on kernel command line. for example setting "console=ttyS0,115200n8 console=tty0" will display kernel output to both serial port and virtual console. the last console=... in the kernel command line will be used by any process that open /dev/console. |
|
Back to top |
|
|
Arcardy n00b
Joined: 05 Feb 2024 Posts: 2
|
Posted: Wed Feb 07, 2024 3:34 am Post subject: |
|
|
pingtoo wrote: | Arcardy,
Welcome to Gentoo.
You most likely need "console=ttyS0,115200n8" kernel command line options. |
Thank you very much! It works perfectly now!
And sorry for expressing myself poorly, ttyS0 is the serial port of the node that is being set up.
If someone else has the ASUS Prime N100I-D D4 motherboard and needs help: ttyS0 is the DB9 socket on the back. ttyS1 is the internal serial RS232 connector on the motherboard. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3788
|
Posted: Wed Feb 07, 2024 7:39 am Post subject: |
|
|
Hi, just a side question:
I don't expect USB 2 serial adapter to work there with USB on the grub side, or does it?
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
M95D Tux's lil' helper
Joined: 03 Jan 2020 Posts: 94
|
Posted: Thu Mar 07, 2024 6:04 pm Post subject: |
|
|
The kernel console can be set to ttyUSB0 if you have the adapter drivers installed or built-in, but Grub probably won't work (it will boot, but no output).
Make sure you start a console on that tty from inittab. |
|
Back to top |
|
|
|