View unanswered posts | View active topics It is currently Thu Jun 27, 2019 8:15 am



Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
 Installing OS using TS serial port 
Author Message
Site Admin

Joined: Sun Mar 13, 2011 11:52 am
Posts: 390
Post Re: Issues Installing Debian
The Trim-Slice boot-loader (U-Boot) does not support display output and keyboard and can only be accessed via the Trim-Slice RS-232 serial port.
I suggest that first we make sure that your host PC serial port setup is working properly.
The required serial port settings are 115200 baud rate, 1N8. All flow-control (HW and SW) must be off. Carrier detection should also be turned off.

A simple test of the serial port setup would be setting everything as mentioned above and then shorting pins 2 and 3 on the DB-9 connector (instead of connecting it to the Trim-Slice cable). This should turn your serial cable into a loop-back and if everything is working you'll be getting back what you type in your minicom console.

_________________
---------------------------
Igor Vaisbein
Utilite Product Manager

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


Thu Sep 29, 2011 6:41 pm
Profile

Joined: Fri Aug 19, 2011 11:07 pm
Posts: 6
Post Re: Issues Installing Debian
You can't usa a simple 9-pin gender changer.

Serial ports come in two flavors, DCE (modem etc) and DCT (computer etc) and those have different gender and pinout as you are normally meant to connect DCE<->DCT.

If the adapter you have have the wrong gender for fitting the TrimSlice cable then you need a null-modem cable/adapter in between. This is normally the case.

I normally use screen as communication program.

screen /dev/ttyS0 115200
or
screen /dev/ttyUSB0 115200

depending on if a built-in serial port or an USB dongle is being used.


Thu Sep 29, 2011 6:41 pm
Profile

Joined: Sat Aug 06, 2011 3:26 pm
Posts: 50
Post Re: Issues Installing Debian
The adapter I have says "null modem" on it...

Do they make a USB to femal 9-pin serial? I search on amazon and called several stores and none had anything like this.

~Jeff


Thu Sep 29, 2011 6:45 pm
Profile

Joined: Wed May 25, 2011 11:05 am
Posts: 521
Post Re: Issues Installing Debian
JeffHoogland wrote:
Do they make a USB to femal 9-pin serial?

No
Seach your favourite store for null modem, choose a 9 pin female female


Thu Sep 29, 2011 8:25 pm
Profile

Joined: Sat Aug 06, 2011 3:26 pm
Posts: 50
Post Re: Issues Installing Debian
Pardon my ignorance - but is this the correct thing?

Image

What I've been trying to use. Says it is a null modem adapter - is it lying to me?

~Jeff


Thu Sep 29, 2011 8:56 pm
Profile

Joined: Mon Jun 13, 2011 9:04 am
Posts: 21
Post Re: Issues Installing Debian
If you have a continuity checker (e.g. the buzzer on a multi-meter or something similar) you should be able to check your null modem adapter. The connections should be pins as below

5 <--> 5
2 <--> 3
3 <--> 2


None of the other pins should matter for now.


Thu Sep 29, 2011 10:41 pm
Profile

Joined: Sat Aug 06, 2011 3:26 pm
Posts: 50
Post Re: Issues Installing Debian
I lack such a device. I get free two day shipping from amazon though and a different brand null modem adapter was only 4$. If that one doesn't work as well I'll try to find a tester for them :)

Will post again once I get the new adapter.

~Jeff


Thu Sep 29, 2011 10:55 pm
Profile

Joined: Wed May 25, 2011 11:05 am
Posts: 521
Post Re: Issues Installing Debian
It looks like you have all the right cables, wonder if usb-serial adapter is ok?
All on just your "main" system
screen /dev/ttyUSB0 115200
The picture you showed, short with a piece of wire 2 to 3
Now when you type on the screen session, things should echo back

If that don't work, unplug the usb, then plug in and type dmesg
Copy last 10 lines here


Fri Sep 30, 2011 9:26 am
Profile

Joined: Sat Aug 06, 2011 3:26 pm
Posts: 50
Post Re: Installing OS using TS serial port
Alright so I got a different null modem adapter and it works now!

Now, the only issue is that I still can't get it to boot into debian. I tried running:

Code:
usb start 1
mmc init 0
setenv bootargs root=/dev/mmcblk3p1 rw rootwait console=ttyS0,115200n8 mem=448M@0M mem=512M@512M nvmem=64M@448M vmalloc=320M nohdparm init=/bin/sh
ext2load usb 0:1 4080000 /boot/uImage
bootm 4080000


I also tried running it with the first /dev/mmcblk0p1 and it also failed to work. System still boots to a root prompt for Ubuntu 11.04

Here is the output of it booting up in case there is something meaningful in there: http://pastebin.com/Nm292C7M

Suggestions, comments, baking tips?

~Jeff


Sun Oct 02, 2011 3:27 pm
Profile

Joined: Wed May 25, 2011 11:05 am
Posts: 521
Post Re: Installing OS using TS serial port
Back in your first post, you said you were using an SD card
So possibly it would be this
Code:
usb start 1
mmc init 0
setenv bootargs root=/dev/mmcblk0p1 rw rootwait console=ttyS0,115200n8 mem=448M@0M mem=512M@512M nvmem=64M@448M vmalloc=320M nohdparm init=/bin/sh
ext2load mmc 0:1 4080000 /boot/uImage
bootm 4080000


Mon Oct 03, 2011 11:31 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 44 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.