--- In Mika Westerberg <> wrote:
>
> Hi Jon,
>
> On Thu, Dec 10, 2009 at 06:13:36PM -0000, Jon L wrote:
> > Current architecture:
> >
> > TS-7500 mounted on the TS-752 development kit,
> > Talk to the TS-7500 through the TS-752 Console port using a hypertrm
> > session running from a Windows XP pro PC.
> >
> >
> > And its been 9 years since I programmed in a unix environment too :-/ (and
> > at that not programming at the hardware level)
> > so please be kind.
> >
> > The skinny is,
> >
> > I want to make a simple loopback test, send out, say 5 characters, on one
> > port, and every time the second port receives the 5 characters it sends
> > back a message "got 5 chars". If the receiving process gets the first
> > char, but within say 3 seconds doesn't get the 5th, it sends the string
> > "got less than 5 chars".
> >
> >
> > Here's what I've got so far:
> >
> > I wrote a bunch of Uart handlers software for a Rabbit Processor and they
> > all work fine, but my boss wants it to run on the busybox linux processor
> > on the TS-7500 board. So I got me a TS-7500 that has the busybox linux on
> > the flash memory for fast boot, and the full debian linux on the removable
> > card for a development suite. I got my hello world program working just
> > fine (writing to stdio), and it even runs fine on the busybox linux (you
> > must compile with the --static option!!!)
> >
> > I've got my TS-7500 mounted on the development kit TS-752 that has broken
> > out all sorts of the pins as described here:
> >
> > http://www.embeddedarm.com/about/resource.php?item=414 (section "3.1")
> >
> > meantime along with confusion about the pinouts (looks like there are typos
> > describing pins 28 and 29 for example)
> >
> > I'm lost on how to begin. Can anybody point me in the right direction to
> > programming the UART's in this TS-7xxx environment? Even if its for one of
> > the other boards, I'm sure it should be not too difficult to convert it.
> >
>
> Are you trying to use the UARTs on top of bare-bones metal or on "busybox
> linux" as
> you described above? For the later, it is easy: just check for example:
>
> http://tldp.org/HOWTO/Serial-Programming-HOWTO/
>
> or something similar for starters.
>
> If, on the other hand, you are trying to use UARTs without any OS, then you
> need
> to get yourself familiar with the machine you are working with. TS has rather
> good
> documentation so that should get you started. At least in my TS-7260 this
> kind of
> test software was pretty easy to build, once I got cross-compilers etc.
> running.
>
> Hope this helps,
> MW
>
Hi Mika,
>Are you trying to use the UARTs on top of bare-bones metal or on "busybox
>linux" as you described above?
well, here's what I got,
I believe its the ash shell from busy box, here's a snippet of a console
session I'll reboot it and do a few LS commands:
#
#
#
#
#
# ts7500ctl -R
>> TS-BOOTROM - built Aug 26 2009 13:35:32
>> Copyright (c) 2009, Technologic Systems
>> Booting from onboard SPI flash...
.
.
.
Finished booting in 2.65 seconds
Type 'tshelp' for help
# ls
bin linuxrc-fastboot modules.tar.gz sys
dev linuxrc-sdroot proc tmp
etc lost+found root ts7500.subr
lib mnt sbin usr
linuxrc mnt2 shinit var
# cd bin
# ls
ash cttyhack fgrep login netstat sleep vi
busybox date grep ls ping stty zcat
cat dd gunzip mkdir ps sync
chgrp df gzip mknod pwd tar
chmod dmesg hostname more rm true
chown echo hush mount rmdir umount
cp egrep kill msh sed uname
cpio false ln mv sh usleep
# uname -a
uname: applet not found
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2011 1183 828 59% /
none 31456 0 31456 0% /dev/shm
tmpfs 31456 0 31456 0% /tmp
/dev/nbd4 507748 320873 160661 67% /mnt/root
# cd /dev
# ls -F
console nbd0 nbd14 nbd6 ptmx random sda4 urandom
full nbd1 nbd15 nbd7 pts/ root@ shm/ zero
i2c-0 nbd10 nbd2 nbd8 ram0 sda tty
kmem nbd11 nbd3 nbd9 ram1 sda1 ttyAM0
kmsg nbd12 nbd4 null ram2 sda2 ttyS0
mem nbd13 nbd5 port ram3 sda3 ttyS1
#
#
# ps
PID USER VSZ STAT COMMAND
1 root 896 S /bin/sh /linuxrc
2 root 0 SW< [kthreadd]
3 root 0 SW< [ksoftirqd/0]
4 root 0 SW< [events/0]
5 root 0 SW< [khelper]
26 root 0 SW< [kblockd/0]
48 root 0 SW [pdflush]
49 root 0 SW [pdflush]
50 root 0 SW< [kswapd0]
51 root 0 SW< [aio/0]
84 root 0 SW< [rpciod/0]
94 root 584 S ts7500ctl --getrtc --resetswitchon --autofeed 2
101 root 920 S /bin/sh -i
108 root 892 S telnetd
111 root 664 S xuartctl --server
116 root 4492 S sdctl -z 65536 --nbdserver lun0:disc,lun0:part1,lun0:
117 root 572 S nbd-client 127.0.0.1 7500 /dev/nbd0
119 root 572 S nbd-client 127.0.0.1 7501 /dev/nbd1
121 root 572 S nbd-client 127.0.0.1 7502 /dev/nbd2
123 root 572 S nbd-client 127.0.0.1 7503 /dev/nbd3
125 root 572 S nbd-client 127.0.0.1 7504 /dev/nbd4
126 root 0 SW< [kjournald]
132 root 896 R ps
#
I'm pretty sure that's the busybox linux that is up and running.
Your link looks like a good resource, looks like it gives some examples of
several RS232 listeners in sections 3.1, 3.2, 3.3. I'll see if they can be
applied to my linux box as shown above.
I'm curious about that other program they talked about,
All examples have been derived from miniterm.c.
I wonder if implementing that is both the talker and listeners.
I'll keep you posted.
- Jon
Thanks.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|