Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting Gentoo via serial console
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Arcardy
n00b
n00b


Joined: 05 Feb 2024
Posts: 2

PostPosted: Wed Feb 07, 2024 12:38 am    Post subject: Booting Gentoo via serial console Reply with quote

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
View user's profile Send private message
pingtoo
l33t
l33t


Joined: 10 Sep 2021
Posts: 926
Location: Richmond Hill, Canada

PostPosted: Wed Feb 07, 2024 1:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Arcardy
n00b
n00b


Joined: 05 Feb 2024
Posts: 2

PostPosted: Wed Feb 07, 2024 3:34 am    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Wed Feb 07, 2024 7:39 am    Post subject: Reply with quote

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.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
M95D
n00b
n00b


Joined: 03 Jan 2020
Posts: 52

PostPosted: Thu Mar 07, 2024 6:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum