Tiny Core Linux

General TC => General TC Talk => Topic started by: aris on October 28, 2017, 09:21:15 PM

Title: wrap alix :How to user serial console on wrap to access other device
Post by: aris on October 28, 2017, 09:21:15 PM
I've got new toys (wrap alix) and want to play with it....

I installed core 8.2 on wrap1e2 PC Engine (burn the iso to cf, mount cf and configure ssh on virtualbox than revert back to wrap, boot OK and I can ssh it inside network..work just fine)

I want to use my alix to accept serial input from other (mikrotik etc, so I can access mikrotik boot via wrap). I use my pc to access serial console from other device before, its tcl 7.2 and it work just fine..I want to move the pc to another room and replace it with wrap.

But I cant get anything on minicom
Code: [Select]
Welcome to minicom 2.7

OPTIONS: I18n
Compiled on Nov 21 2015, 23:28:04.
Port /dev/ttyS1, 00:07:48

Press CTRL-A Z for help on special keys


Just a blank ..I also tried 3 or 4 baud rate combinations..

Code: [Select]
tc@box:~$ dmesg | grep serial
serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 921600) is a NS16550A

this mean that my serial console is detected, isn it ?

I already disable it (serial), and also enable it in bios but it still nothing on minicom

So...where should I start ?

Title: Re: wrap alix :How to user serial console on wrap to access other device
Post by: Rich on October 28, 2017, 10:02:50 PM
Hi aris
Code: [Select]
Welcome to minicom 2.7

OPTIONS: I18n
Compiled on Nov 21 2015, 23:28:04.
Port /dev/ttyS1, 00:07:48

Press CTRL-A Z for help on special keys

Code: [Select]
tc@box:~$ dmesg | grep serial
serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 921600) is a NS16550A

Shouldn't minicom be using ttyS0, or am I misunderstanding the problem?
Title: Re: wrap alix :How to user serial console on wrap to access other device
Post by: aris on November 06, 2017, 01:41:32 AM
no output from minicom ..it load and detected my serial console but it doesnt display anything...
so..where do I begin ..?
Title: Re: wrap alix :How to user serial console on wrap to access other device
Post by: Rich on November 06, 2017, 06:51:19 AM
Hi aris
Maybe your  RX  and  TX  lines are swapped? Set handshaking to  None  at both ends.
Title: Re: wrap alix :How to user serial console on wrap to access other device
Post by: cochon on November 06, 2017, 12:59:29 PM
I never have much luck with minicom either, feel I should put in some effort to find out why, but always end up using screen...

Code: [Select]
me@host:~$ tce-load -iw screen
me@host:~$ screen /dev/ttyS0 921600

Edit: BTW the escape sequence is <ctrl>A <shift>K                                           
Title: Re: wrap alix :How to user serial console on wrap to access other device
Post by: aris on November 09, 2017, 06:21:59 AM
@rich..I dont think so..I use the cable using tinycore in desktop to mikrotik..and its working just fine.

@chocon..thanks I will try screen...actually I endup buying USB to db9 (2$) and using my laptop to do it... :D ... I got bored with alix ..for now
Title: Re: wrap alix :How to user serial console on wrap to access other device
Post by: aris on December 02, 2017, 04:34:19 PM
Shouldn't minicom be using ttyS0, or am I misunderstanding the problem?

I re read the thread...I did miss something important..
Turn out its just a silly wrong port setup...Thanks Rich
Screen and minicom on tcl both working...using ttys0

Thank You all

Title: Re: wrap alix :How to user serial console on wrap to access other device
Post by: Rich on December 02, 2017, 04:46:22 PM
Hi aris
Aha, so I did understand the problem after all. ::)