unreliable serial console output?!
#1
Bug 
Together with Rock64/1GB board, I have bought the USB serial console as listed on Pine/Rock64 site. Booting the board with the community build of 'xenial-i3-rock64-0.5.10-118-arm64.img'. On a linux workstation, using minicom (1500000 8N1 | NOR | Minicom 2.7 | VT102 | Offline | ttyUSB0), I can interact with the board check the following excerpts:
[email protected]:~# uname -a
Linux rock64 4.4.77-rockchip-ayufan-118 #1 SMP Thu Sep 14 21:59:24 UTC 2017 aarch64 aarch64 aarch64 GNU/Linux
[email protected]:~#



The issue is: it is highly unstable meaning if I run the same following command:
[email protected]:~# cat /proc/cpuinfo

multiple times, gives different outputs for each run (as shown below)!! Is this a common problem? is it hardware or software related?
appreciated your help on this matter.
---------------------------------------------------------
[email protected]:~# cat /proc/cpuinfo 

processor       : 0
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture        : 0xd03
CPU revision    : 4

processor       : 1
BogoMIPS        : 48.00
F       : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd0 asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41n : 4

processor       : 3
BogoMIPS        : 48.00
Features        : fp asimd evcture: 8
CPU variant     : 0x0
CPU part        : 0xd03
[email protected]:~# cat /proc/cpuinfo 
processor       : 0
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU partoMIPS   : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 c
                                                        CPU part        : 0xd03
CPU revision    : 4

processor       : 2
BogoMIPS        :ementer        : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU partres     : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementePU revision       : 4

Serial          : b5f2b912efc3f49b
[email protected]:~# 
  Reply
#2
hi, 
Please describe your topology;  also, which usb to serial TTL bridge adapter are you using ( which model, chipset ) ?
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
  Reply
#3
(10-14-2017, 09:36 AM)MarkHaysHarris777 Wrote: hi, 
Please describe your topology;  also, which usb to serial TTL bridge adapter are you using ( which model, chipset ) ?

Hi, 
As stated, the usb to serial TTL bridge adapter is the one listed on Pine64 site: 
https://www.pine64.org/?product=padi-serial-console
I believe this should be the most compatible serial-to-usb adapter to connect with rock64?!

The unstable behavior was there although have tried the following combinations: 
1. with jumer (on the serial-adapter) on 3v3 and 5v0, 
2. with/without connecting 5v from the serial-adapter to pin4 of Pi-2 Bus, 
3. same unstable behavior on both u-boot console and that of Linux console of different images, 
4. tried different images xenial-i3-rock64-0.5.10-118-arm64.img, jessie-openmediavault-rock64-0.5.10-118-arm64.img, my own built images.

As you know, a stable serial console is very crucial to the success of rock64 and that of RK3328, Thus, does anybody experiencing such unstable behavior?

appreciated your answer/contribution
  Reply
#4
I have a different adapter (based on FTDI FT232RL) and my serial console works reliably.

My connections:

Adapter         Rock64 (Pi-2 Bus)

GND     <--->   pin 6   GND
RXD     <--->   pin 8   GPIO2_A0 (UART2_TX_M1)
TXD     <--->   pin 10  GPIO2_A1 (UART2_RX_M1)


Are your connections the same?
If yes, I would start with replacing wires between adapter and Rock64.
I would also replace USB cable between adapter and workstation.

Also it's very important that you keep your adapter set at 3.3V (I think pin 10 on Pi-2 Bus is connected directly to the RK3328 chip).
  Reply
#5
(10-14-2017, 11:01 AM)consoleadam Wrote:
(10-14-2017, 09:36 AM)MarkHaysHarris777 Wrote: hi, 
Please describe your topology;  also, which usb to serial TTL bridge adapter are you using ( which model, chipset ) ?

Hi, 
As stated, the usb to serial TTL bridge adapter is the one listed on Pine64 site: 
https://www.pine64.org/?product=padi-serial-console


hi ,  when I asked for your topology I meant that I want to know how 'specifically' you have it wired.  

The chipset I believe you are using is the CH340g;  this is the best adapter we can recommend and it is reliable, but because of the higher frequencies (1.5M baud rate) the topology is more critical; hap-hazzard wiring will not work well.  Here are some tips:

1) DO NOT connect the voltage lead of the CH340g adapter ANYWHERE...  ( words to the wise )
2) make sure you have a good ground connection 
3) place the adapter CH340g as close to the Rock64 as possible ( no more than 6" leads, but the shorter the better )
4) use three wires:  Tx,  Rx,  Ground
5) use a 'short' usb extension cable from the adapter to the monitor computer.
6) use minicom with gnu+linux   ( any distro )
7) use the settings and disable both flow controls ( hardware and software )


If still unstable or unreliable, try plugging the CH340g into a powered hub.  Plug the powered usb hub into the monitor computer, then plug the CH340g into the powered hub.  Often the CH340g will not work well at higher baud rates on all ports unless it gets better power feed;  this is particularly true if you're trying to use the Pinebook left hand usb port !  Any powered usb hub ( Belkin's is nice ) will work;  however, make sure that your powered hub does not provide back-feed -- do your research.

Also not all usb ports are identical;  some have internal hubs ( which work better for terminals ).  For instance the Pinebook's right hand usb port is a hub, and it works brilliantly with the CH340g no worries.

Shy


PS,  if you have another SBC ( Rapsberry PI, PineA64+, etc ) you can use that SBC uart directly ( no adapter ) to monitor the Rock64 serial console output !

.
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
  Reply
#6
Thank you for following up on this matter. Well, since from the very beginning, I was able to interact with the serial using minicom, I believe the wiring was not an issue, in other words, connected RX/TX/GND correctly, more over connecting/not-connecting voltage did not have any effect.

Also since I have a PandaES that works fine with my current Linux/Minicom/USB port configuration, I rule out anything to do with that part, and probably you are right to suggest it might be some hardware issues specifically related to my board.

still it would be great if anybody can assert that running any command in-tandem more than once produces the same consistent output !!!
  Reply
#7
(10-15-2017, 03:41 AM)consoleadam Wrote: Thank you for ... <snip>

still it would be great if anybody can assert that running any command in-tandem more than once produces the same consistent output !!!


I'm not sure what the emphasis is about...  the assertion you're looking for depends on the command and the specific circumstances ( obviously ).

The specific inconsistency in your examples is due to your comm link...  fix the comm link, and the output will become consistent. The Rock64 has up'd the anti a bit;  1.5M baud is trickier to get 'consistent' results from on the lab top.

Computers in general ( outside of hardware errors ) must be consistent, or they are useless.  Of course you should be able to get consistent results from your gnu+linux commands.
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
  Reply
#8
(10-16-2017, 10:00 PM)MarkHaysHarris777 Wrote:
(10-15-2017, 03:41 AM)consoleadam Wrote: Thank you for ... <snip>

still it would be great if anybody can assert that running any command in-tandem more than once produces the same consistent output !!!


I'm not sure what the emphasis is about...  the assertion you're looking for depends on the command and the specific circumstances ( obviously ).

The specific inconsistency in your examples is due to your comm link...  fix the comm link, and the output will become consistent. The Rock64 has up'd the anti a bit;  1.5M baud is trickier to get 'consistent' results from on the lab top.

Computers in general ( outside of hardware errors ) must be consistent, or they are useless.  Of course you should be able to get consistent results from your gnu+linux commands.

This certainly an assertion of a known shortcoming of laptops .. [ Rock64 has up'd the anti a bit;  1.5M baud is trickier to get 'consistent' results from on the lab top ]  or maybe the RK3328 SoC ;)
thanxxx
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Information Serial Console for the Rock64 MarkHaysHarris777 32 11,358 03-30-2019, 04:08 PM
Last Post: jekohk
Big Grin Rock64 as a retro-gaming console: early impressions Luke 51 22,360 01-16-2019, 04:40 PM
Last Post: Luke
  Rock64 as a retro-gaming console: personal thoughts Danielsan 8 1,877 09-13-2018, 03:45 PM
Last Post: jessiehughes
Sad Rock64 2GB Version Can't output 4K Signal leonqin 1 387 08-18-2018, 05:59 PM
Last Post: leonqin
  ROCK64 uboot HDMI no signal output LemonZou 2 1,071 10-17-2017, 02:15 AM
Last Post: dkryder
  Newbie question - should a Rock64 with no mmc card still output some video ? sgk 6 1,390 10-14-2017, 08:16 PM
Last Post: fusionneur
  Monitor Rock64 serial console with PineA64 MarkHaysHarris777 7 3,300 09-09-2017, 04:35 PM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 1 Guest(s)