Raptor Computing Systems Community Forums (BETA)

Software => User Zone => Topic started by: twenex on June 07, 2023, 02:36:47 pm

Title: BMC console com2 on Talos II
Post by: twenex on June 07, 2023, 02:36:47 pm
Hello, I've got one of these TTL/USB serial adapters that are suggested in the wiki and am
able to get output at 115200bps 8n1 which appears to boot up the BMC.  Unfortunately I don't seem
to be able to interrupt the boot process by "pressing any key" nor able to login.  I've tried setting
and unsetting software flow control to see if I can get any input.

The cable is pretty simple, TXD/RXD and GND.  I am not using the power lead (it shouldn't be necessary).

Is there something else I should be doing?

Quote
DRAM Init-V12-DDR4
0abc1-4Gb-Done
Read margin-DL:0.3470/DH:0.3470 CK (min:0.30)


U-Boot 2016.07 (Mar 17 2021 - 04:57:57 +0000)

       Watchdog enabled
DRAM:  496 MiB
Flash: 32 MiB
In:    serial
Out:   serial
Err:   serial
Net:   aspeednic#0
Hit any key to stop autoboot:  0
## Loading kernel from FIT Image at 20080000 ...
   Using 'conf@aspeed-bmc-opp-talos.dtb' configuration
...
[  OK  ] Started OpenBMC Software Update Manager.
[  OK  ] Started OpenPower Software Update Manager.
[  OK  ] Started Phosphor SNMP conf Manager.
[  OK  ] Started Phosphor Network Manager.
[  OK  ] Started Wait for /xyz/openbmc_project/state/chassis0.
[  OK  ] Started Phosphor Ldap config updater.
[   66.758448] ftgmac100 1e660000.ethernet eth0: Set package 0x0, channel 0x0 as preferred
[   66.769830] ftgmac100 1e660000.ethernet eth0: NCSI: No channel with link found, configuring channel 0

Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro) 0.1.0 talos ttyS4

talos login:
Title: Re: BMC console com2 on Talos II
Post by: MPC7500 on June 07, 2023, 06:28:41 pm
Hi, did you connect it to the internal header? Also pay attention to the correct pinout (DTK/Intel compatible) (https://wiki.raptorcs.com/wiki/Talos_II/Hardware_Compatibility_List#Serial_Adapters_for_J7701_Header)?
Title: Re: BMC console com2 on Talos II
Post by: twenex on June 07, 2023, 09:26:25 pm
Yes, it is connected to the internal header on pints 3, 5 and 9 (gnd).

The part I have is from the Adafruit site which is linked on the page you've linked to.  But I'm willing to try another connector if these
do not really work.

Quote
Serial Adapters for BMC TTL Auxiliary Serial Header
Adafruit USB to TTL Serial Cable - Debug / Console Cable for Raspberry Pi [5]
Title: Re: BMC console com2 on Talos II
Post by: atomicdog on June 08, 2023, 01:04:07 pm
Have you tried a different terminal program?
Title: Re: BMC console com2 on Talos II
Post by: twenex on June 08, 2023, 02:57:54 pm
I'm trying with putty and teraterm.

I did check the J7701 pinout with the wiki concerning DTK/INTEL as I noticed the header had IC style numbering rather than as pin pairs.

3: RXD
5: TXD
9: GND

On the Adafruit USB to TTL serial the color scheme is:

BLK: GND
WHT: RX
GRN: TX

Red is for +5v which I do not have hooked up.

I also tried strapping CTS to RTS thinking they may need to be looped.

Right now, I just get output when BMC boots up, but I cannot input.  Reversing TX/RX makes the output look garbled.

Voltages on the J7701 header are all zero, except 3(RX) is -5.6, 4(RTS) 6.1+ and 7(DTR) 6.1+

Title: Re: BMC console com2 on Talos II
Post by: ClassicHasClass on June 08, 2023, 03:28:37 pm
Just turn off flow-control entirely. You can get it working later.
Title: Re: BMC console com2 on Talos II
Post by: atomicdog on June 08, 2023, 03:44:31 pm
PuTTY doesn't work with some devices because the line ending type is hard coded. You can change it in TeraTerm though, so I would try different setting for CR/LF in TeraTerm.
Title: Re: BMC console com2 on Talos II
Post by: twenex on June 08, 2023, 04:41:52 pm
OK, flow control is off, and I'm using TeraTerm with CR+LF with transmit,
no luck.  I'm going to order another unit, as now that I think of it when it arrived it was
"open box" but I didn't think much of it at the time.

Title: Re: BMC console com2 on Talos II
Post by: atomicdog on June 08, 2023, 05:08:09 pm
Sorry, I don't know if CR/LF is the correct setting, just meant you should try different ones.

You can also connect the TX and RX together on the dongle and see if you get what you type to loop back.
Title: Re: BMC console com2 on Talos II
Post by: twenex on June 12, 2023, 12:38:19 pm
You're right, connecting TX to RX in loopback is simple enough to show that the USB adapter is working properly.
Meanwhile a second adapter arrived which was new and behaves the same way.  Basically, connect the adapter, open a TeraTerm session, apply mains power and watch it boot up.  Input from TeraTerm (with or without CR, CR/LF on transmit) isn't making it and when it gets to the Talos login: prompt input continues to not make it.

If I press the soft power after the BMC gets to the login: prompt the machine will attempt to IPL and display on the VGA port, but gets to a point where no progress is made.

I also have LAN1 on ethernet where it could DHCP, but I'm not seeing any requests.
Title: Re: BMC console com2 on Talos II
Post by: atomicdog on June 12, 2023, 03:20:11 pm
There are a few issues. The connection should be RS232 not TTL. So you need a USB to RS232 adapter not USB to TTL.
I tried my USB/TTL and got the same result you did. So, I checked the schematic and noticed it shouldn't be TTL and also the pinout in the schematic is different from the manual.

In the manual pin numbers alternate rows. So, ground is the bottom right most pin9 (pin 5 in schematic).

Title: Re: BMC console com2 on Talos II
Post by: ClassicHasClass on June 12, 2023, 05:00:25 pm
For the record, this is how mine is hooked up: basically one of those 10 pin to DE-9 headers, and then a regular USB serial connector. https://www.talospace.com/2020/04/what-to-do-when-bmc-wont-talk-to-you.html
Title: Re: BMC console com2 on Talos II
Post by: MPC7500 on June 13, 2023, 01:15:52 pm
I have the DIGITUS AK-610300-003-E (https://www.assmann.com/product-pdf/ahr/4016032301509?PL=en). But until today I haven't needed it yet.
Title: Re: BMC console com2 on Talos II
Post by: twenex on June 15, 2023, 03:02:16 pm
Wow, OK so I hope that for others this thread helps to understand type of cable and connection needed for COM2 J7701 on the Talos II board.

* It is not TTL and following the manual pinout and using a TTL/USB might give you false hope
* Pin out is incorrect

It is DTK/INTEL DB9M to IDC10 which is part number 07121 from pccables.com
Use with a RS232 serial cable with a null modem.

Thanks!

After that I was able to interrupt the boot and can poke around.  Unfortunately it does look like the BMC root password is no longer 0penBmc though, so that will be the next step for me.

https://wiki.raptorcs.com/wiki/BMC_Default_Password

I do not have the slip of paper.  :o
Title: Re: BMC console com2 on Talos II
Post by: MPC7500 on June 15, 2023, 04:14:58 pm
Why don't you have the paper with the password? It's in the mainboard box. Is the Talos used? If yes, I would ask the seller.
Title: Re: BMC console com2 on Talos II
Post by: twenex on June 19, 2023, 03:04:49 pm

Either a fat fingered the password many times in attempts to login, or this worked for me:

https://docs.graphcore.ai/projects/bmc-user-guide/en/latest/serial-rescue.html

In particular:

ast# setenv openbmconce factory-reset
ast# save
ast# save
ast# reset

I'm where I need to be now.
Title: Re: BMC console com2 on Talos II
Post by: MPC7500 on June 19, 2023, 03:15:35 pm
Wow, did not know it's that easy. Thanks for the link.