To avoid you an hard and long search, here is a copy of the mail.
You will have problems with the GPIO configuration. Follow the instruction and
use ttyS2 if you have a waysmall second generation. (And ttyS3 if it's a first generation)

Tell us if it doesn't work or if you don't understand anything... ;-)

Cyril

---------------------------------------------------------------------------------------------------------------------------------------
On 7/18/05, Sir Graham (Terra) <grahamsir@terra.es > wrote:
Hi Cryril,
 
Here you are.
 
# cat /proc/gpio/GPIO4[6789]
46      GPIO    in      set
47      GPIO    in      set
48      AF2     in      set
49      AF2     out     set

Very bad!
Neither ttyS2 nor ttyS3 are configured correctly!
It's normal that you don't have anything on your output
 
The correct configuration would be:

# cat /proc/gpio/GPIO4[6789]
46      AF2    in     ...
47      AF1    out      ...
48      AF1    out      ...
49      AF1    in     ...

The GPIO 46-47 are for ttyS2, 48-49 are for ttyS3.

Set them all correctly using the magic formula:

modprobe proc_gpio

echo "AF2 in" >/proc/gpio/GPIO46
echo "AF1 out" >/proc/gpio/GPIO47
stty -F /dev/ttyS2 -ixon speed 115200

echo "AF1 out" >/proc/gpio/GPIO48
echo "AF1 in" >/proc/gpio/GPIO49
stty -F /dev/ttyS3 -ixon speed 115200

A better approach is to create a file in "/etc/init.d"  named  "S99SpecialConfig" with the following content:

#------------------------------------------------------------
#
# Special config
#

start() {
    modprobe proc_gpio
        echo "AF2 in" >/proc/gpio/GPIO46
        echo "AF1 out" >/proc/gpio/GPIO47
        stty -F /dev/ttyS2 -ixon speed 115200

        echo "AF1 out" >/proc/gpio/GPIO48
    echo "AF1 in" >/proc/gpio/GPIO49
    stty -F /dev/ttyS3 -ixon speed 115200
}

stop() {
}

restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?
#-------------------------------------------------

That what we  made  on our gumstix and it work perfectly. Since that, we don't worry about ttyS*.

Don't hesitate to tell us if it works or not. But, it should work.
If it doesn't verify the state of your GPIOs.

>  we have the Build 516. Where are the configuration of the Second port, what is this configuration... and Why donīt work like the the first port?

That's a classical GPIO  problem, the processor of the gumstix : Intel PXA255 can do different things using the same input/output.
For example, it can do bluetooth I/O or Serial I/O on the same connector. So, you need to configure by hand if you want the first or the second.

We will connect a bluetooth module to the second port.... We try this module in a red hat with bluez and works perfect. But I canīt configurate
the second port to works with bluez.... ŋ?

After looking at your GPIO configuration the verdict is: Hopefully, it doesn't work! Else the problem would be very strange.
To test, you should try to communicate with a PC using hyperterminal or minicom.

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


On 7/29/05, Cyril Bazin <cyril.bazin@gmail.com> wrote:
The second serial port is ttyS2 or ttyS3.

Try to find an old from me to the list about how using these port. It should help you.

Cyril


On 29 Jul 2005 10:41:47 +0100, James Coxon < jac208@cam.ac.uk> wrote:
Hi I recently got a waysmall 200 without bluetooth and am trying to connect
a serial gps reciever to it. I have managed to get the reciever to connect
to the first serial port ttyS0 (as in the one nearest the power jack) and
using gpsd get a position. However when I attempt to use the second serial
port I don't get the same results (i get nothing even if i use stty to
reduce the baud rate and cat /dev/ttyS1) Am i using the correct ttyS? Are
there any additional things that are required. Thanks in advance (I reckon
i'm just being stupid and have overlooked something!) James



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users