Jump to content

USB TTY


rsegoly

Recommended Posts

Nope, nothing

When I connect Raspberry I see all boot messages

 

If it's really nothing then connection is wrong or something else that's hardware related (on your side, it's absolutely no problem to use the serial console on any Orange Pi board). But to be honest: Regarding boot messages we just recently changed this and prior to (yet not released) Armbian 5.15 boot messages are sent to HDMI display instead of serial console unless you tweak /boot/boot.cmd (beginning with 5.15 we're using both outputs parallel)

Link to comment
Share on other sites

speed is 115200?

I use same connection with Raspberry and it works fine so I do not suspect its wrong connection

 

I use

minicom -D /dev/cu.usbserial -b 115200

with every RPi or any of the countless other SBCs that are lying here around (only exception is Solid-Run's Clearfog since this board contains an own USB-to-UART onboard chip). Not a single problem. Ever. GND <--> GND, TX <--> RX, RX <--> TX, done

 

http://linux-sunxi.org/Orange_Pi_One#Locating_the_UART

Link to comment
Share on other sites

Well I interconnect 2 Pis uart in order to get serial console with 3.3V lines. Cheap and simple. With sometimes curious side effect : power led glowing without power supply on bpiM2+ (powered by uart !) or boot fail on monitoring BPI when bpiM2+ crashed in unknown state during boot ...

 

N.B. On bpiM2+ tx/rx order is inverted in comparison of RPI or bpiM1.

Link to comment
Share on other sites

speed is 115200?

I use same connection with Raspberry and it works fine so I do not suspect its wrong connection

 

Speed is 15200.

 

The Raspis have the serial console on the rows of GPIO pins. Orange PI ONE has a separate UART-connector (three pins, no power connection) see link @tkaiser.

I used the serial console regularly from Linux host with

screen /dev/ttyUSB0 115200

I just rechecked with Armbian_5.14 and it looks like there is no login console anymore. Boot messages appear and then the console switches to HDMI.

Leave the host side connected and reboot the OPI. You should see start messages in your terminal window. This would confirm you have a correct

hardware setup. For the needed changes in configuration see @tkaiser's posts above.

Link to comment
Share on other sites

I just rechecked with Armbian_5.14 and it looks like there is no login console anymore. 

 

Huh. There is no console output but login should be possible from serial.

 

It's possible than we produced a bug ;)

Link to comment
Share on other sites

Quick workaround to enable serial console on OPI :

 

cd /boot

sudo nano boot.cmd

 

-----------------------------------enable serial console

setenv bootargs "console=tty1 console=ttyS0,115200 root=/dev/mmcblk0p1 ......................

-----------------------------------

 

sudo mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr

 

reboot

 

enjoy !

 

 

 

Link to comment
Share on other sites

Orange Pi One serial console works normally.

U-Boot 2016.05-armbian (Jun 23 2016 - 09:03:24 +0200) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi One
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2465 bytes read in 172 ms (13.7 KiB/s)
## Executing script at 43100000
gpio: pin PL10 (gpio 298) value is 1
   Warning: value of pin is still 0
gpio: pin PG11 (gpio 203) value is 1
** File not found /boot/.verbose **
** File not found /boot/.next **
** Unrecognized filesystem type **
** File not found .next **
35908 bytes read in 507 ms (68.4 KiB/s)
3136501 bytes read in 3263 ms (938.5 KiB/s)
5011808 bytes read in 5166 ms (947.3 KiB/s)
Kernel image @ 0x48000000 [ 0x000000 - 0x4c7960 ]
## Loading init Ramdisk from Legacy Image at 42000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3136437 Bytes = 3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
Using machid 0x1029 from environment

Starting kernel ...

[sun8i_fixup]: From boot, get meminfo:
        Start:  0x40000000
        Size:   512MB
ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1
ion_reserve_select: ion chipid  [0x2004620!
ion_reserve_common: ion reserve: [0x56000000, 0x60000000]!

Ubuntu 16.04 LTS orangepione ttyS0

orangepione login:
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines