Serial Port Console Redirection - how to make it work?

Post Reply
aw_
Posts: 14
Joined: Wed Jul 24, 2019 2:50 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Serial Port Console Redirection - how to make it work?

Unread post by aw_ » Mon Jul 29, 2019 4:31 am

I was excited to see the Serial Port Console Redirection option in the BIOS (1.05), but it appears to not be functional. Entering the menu I see:

COM0 (Pci Bus0,Dev0,Func0) (Disabled)
Console Redirection Port Is Disabled

Entering the Legacy Console Redirection Settings sub-menu, there's no other selection for the Redirection COM Port. Changing the EMS settings also makes no difference. In the SIO menu I have both serial port 1 and 2 enabled and marked active at the standard COM0/COM1 I/O ports. Disabling these doesn't improve anything.

Has anyone figured out how to make this work? FWIW, an ESP-01 flashed with esp-link makes a nice WiFi serial console for the H2. Is there a 3.3v pin somewhere that's always powered? It's a minor annoyance that 3.3v on the header drops when the system reboots.

User avatar
odroid
Site Admin
Posts: 32355
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 145 times
Been thanked: 325 times
Contact:

Re: Serial Port Console Redirection - how to make it work?

Unread post by odroid » Mon Jul 29, 2019 11:31 am

I have no experience of using the Console Redirection feature in the BIOS. We need to learn what it is exactly.
But the Linux serial console should be working with ttyS0 or ttyS1.
https://help.ubuntu.com/community/SerialConsoleHowto

BTW, 3.3Volt power rail must be cycled/reset by the BIOS for implementing a proper reboot process.

aw_
Posts: 14
Joined: Wed Jul 24, 2019 2:50 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Serial Port Console Redirection - how to make it work?

Unread post by aw_ » Mon Jul 29, 2019 11:55 am

odroid wrote:
Mon Jul 29, 2019 11:31 am
I have no experience of using the Console Redirection feature in the BIOS. We need to learn what it is exactly.
But the Linux serial console should be working with ttyS0 or ttyS1.
https://help.ubuntu.com/community/SerialConsoleHowto
Yes, serial console is working, but serial port console redirection should allow access to the BIOS via the serial console, or even non-serial enabled, text mode boot loaders. That's what doesn't seem to work.
odroid wrote:
Mon Jul 29, 2019 11:31 am
BTW, 3.3Volt power rail must be cycled/reset by the BIOS for implementing a proper reboot process.
Is this also true of the 5v rail on the header? Both are listed as "RUN_H" in the wiki.

User avatar
odroid
Site Admin
Posts: 32355
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 145 times
Been thanked: 325 times
Contact:

Re: Serial Port Console Redirection - how to make it work?

Unread post by odroid » Mon Jul 29, 2019 12:26 pm

Oh.. I didn't know that about the console redirection.
We will check what's wrong.
BTW, how did you connect the serial port to your host PC?

In the Hibernation(suspend) mode, those power rails should be on.

aw_
Posts: 14
Joined: Wed Jul 24, 2019 2:50 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Serial Port Console Redirection - how to make it work?

Unread post by aw_ » Mon Jul 29, 2019 12:51 pm

odroid wrote:
Mon Jul 29, 2019 12:26 pm
Oh.. I didn't know that about the console redirection.
We will check what's wrong.
BTW, how did you connect the serial port to your host PC?
Ultimately I'm simply using UART1_TXD & UART1_RXD from the 2x10 pin header. The next level of detail is that I'm also using 3.3v and GND from the same header and all four of these wires plug into an ESP-01 (esp8266 microcontroller) flashed with esp-link, where I can connect to a port on the micro-controller over WiFi to access the serial console. The micro-controller being powered from the 2x10 pin header is what leads to my questions regarding a system power invariant power source, though the ESP-01 restarts so quickly that the serial console is back before the monitor connected to the H2 powers back on after a reboot.

lsc1117
Posts: 160
Joined: Thu Aug 22, 2013 12:46 am
languages_spoken: english
Location: South Korea
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Serial Port Console Redirection - how to make it work?

Unread post by lsc1117 » Fri Aug 09, 2019 4:06 pm

We have created a wiki page about SPCR on H2.
https://wiki.odroid.com/odroid-h2/hardw ... _odroid-h2

To use the SPCR feature, you need to upgrade the BIOS to v1.06 or higher.
Please refer the BIOS firmware release history.
https://wiki.odroid.com/odroid-h2/hardw ... glk-sf_107

User avatar
mad_ady
Posts: 6674
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 194 times
Been thanked: 148 times
Contact:

Re: Serial Port Console Redirection - how to make it work?

Unread post by mad_ady » Fri Aug 09, 2019 5:28 pm

Nice!

pragmatic_mike
Posts: 1
Joined: Tue Sep 10, 2019 4:38 am
languages_spoken: english; polish
ODROIDs: 3xOdroid H2 + 64GB eMMC
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Serial Port Console Redirection - how to make it work?

Unread post by pragmatic_mike » Tue Sep 10, 2019 6:08 am

Hi there!
I think it's time to update wiki page about Serial Port Console Redirection [SPCR].

We can use USB-UART modules based on FT232, CP210*, PL2303 etc.
Personally I'm using module based on FT232.

Wiring
The "MUST BE" wiring:
RX -TX
TX - RX
GND - GND

We can additionally connect (this part is used for flow control):
RTS - CTS
CTS - RTS
IMG_20190908_214358.jpg
IMG_20190908_214358.jpg (518.51 KiB) Viewed 369 times
After wiring we need to connect USB to host PC/Another ODROID board/RPi etc.
Console Redirection Setting:
Terminal type:
- [VT100] (no color support)
- [VT100+] (Extends VT100 to support color) [Recommended? :)]

Flow Control: [Hardware RTS/CTS] (if connected!!! if not then [Disabled])

Resolution 100x31: [Enabled] I recommend this to enable. It's simple fix for information in changelog for BIOS 1.07 "Disable the Serial Port Console Redirection as default because of decrease the resolution on BIOS."
Maybe in future BIOS, it will be default value and one COM will be enabled? Perfect world :D no display connected, no keyboard :D
Console_Redirecion_Settings.png
Console_Redirecion_Settings.png (62.95 KiB) Viewed 384 times
After simple configuration and after installing minicom we can connect to our ODROID H2 via USB-UART module:
you can check connected modules by: ls /dev/ttyUSB*

Of course you need to do some configuration as in SPCR wiki page. (minicom -s)
Best regards for john1117 who wrote wiki about SPCR!

To connect without colour, type:
$ minicom -D /dev/ttyUSB0
Main_information_no_color.png
Main_information_no_color.png (83.57 KiB) Viewed 384 times
To connect with colour, type:
$ minicom -c on -D /dev/ttyUSB0
Main_information.png
Main_information.png (79.75 KiB) Viewed 384 times
Dialog_box.png
Dialog_box.png (61.6 KiB) Viewed 384 times


BTW! It's perfect solution for me because I start my project to build Home Lab with Proxmox + Ceph and probably 4 Odroid H2 Node. Just now i have 3... I'm waiting to October to order more. USB-UART module is substitute for KVM for me.

User avatar
odroid
Site Admin
Posts: 32355
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 145 times
Been thanked: 325 times
Contact:

Re: Serial Port Console Redirection - how to make it work?

Unread post by odroid » Tue Sep 10, 2019 9:35 am

Colorful BIOS screen over serial port looks much better. Thank you for the pictures. :D
I've slightly edited the WiKi page.
https://wiki.odroid.com/odroid-h2/hardw ... matic_mike

But we may not enable it by default since still much more users connect HDMI/DP monitors probably.

aw_
Posts: 14
Joined: Wed Jul 24, 2019 2:50 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Serial Port Console Redirection - how to make it work?

Unread post by aw_ » Mon Sep 16, 2019 8:09 am

Yay, thanks for fixing this! To anyone looking to have a built-in serial console, it's easy to power an ESP-01 from the GPIO header and esp-link allows wireless access to the console. One glitch is that the power on the GPIO bounces during system reboot, causing the ESP to reboot, so you'll need to reconnect until someone figures out a capacitor hack that can bridge the gap without killing either board.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests