|
ttyS3 on breakout-gs: msg#00186linux.distributions.gumstix.general
Sorry for the oft asked question, but I have not been able to find the right combination of responses to work for me so far. I have a gumstix 200 without bluetooth. I have connected it thru a waysmall board and a full cable to a serial gps with no problems. I am now trying to make the same connection to the new breakout-gs on HWUART. I realize that my problem relates to CTS, RTS and DTR but haven't found the right solution yet. I edited the pxa.c file as described in previous comments to similar problems (removed 4 lines in the function serial_pxa_set_mctrl) and rebuilt the root file system, which I loaded onto the gumstix. I edited the scripts in init.d to not start bluetooth and created one to run the following: modprobe proc_gpio # AF1 are alternative function 1 from the pxa25 developers manual (section 4.1.2) # gpio48 is hwuart txd echo AF1 out > /proc/gpio/GPIO48 # gpio49 is hwuart rxd echo AF1 in > /proc/gpio/GPIO49 # gpio50 is hwuart cts -- lets reset this to gpio in for a test #echo AF1 in > /proc/gpio/GPIO50 echo GPIO in > /proc/gpio/GPIO50 # gpio51 is hwuart rts -- lets reset this to gpio in for a test #echo AF1 out > /proc/gpio/GPIO51 echo GPIO out > /proc/gpio/GPIO51 # 42-45 are alternative versions of the hwuart pins (used by bluetooth) for i in 42 43 44 45;do echo GPIO in > /proc/gpio/GPIO$i;done # set the terminal with no controls stty -F /dev/ttyS3 clocal -ixon -ixoff -crtscts speed 4800 When I run cat /proc/tty/driver/PXA\ serial -- while a program is accessing the /dev/ttyS3, I get this serinfo:1.0 driver revision: 0: uart:FFUART mmio:0x40100000 irq:15 tx:312 rx:0 RTS|CTS|DTR|DSR|CD|RI 1: uart:BTUART mmio:0x40200000 irq:14 tx:0 rx:0 2: uart:STUART mmio:0x40700000 irq:13 tx:0 rx:0 3: uart:HWUART mmio:0x41600000 irq:0 tx:49522 rx:41283 fe:10427 brk:136 RTS|CTS|DTR After access is completed I get this cat /proc/tty/driver/PXA\ serial serinfo:1.0 driver revision: 0: uart:FFUART mmio:0x40100000 irq:15 tx:312 rx:0 RTS|CTS|DTR|DSR|CD|RI 1: uart:BTUART mmio:0x40200000 irq:14 tx:0 rx:0 2: uart:STUART mmio:0x40700000 irq:13 tx:0 rx:0 3: uart:HWUART mmio:0x41600000 irq:0 tx:55710 rx:46392 fe:11596 brk:158 CTS No data is accessable at /dev/ttyS3 though. My "build" was from sometime in late June, and I noticed tonight that Craig had added a HWUART patch in early July, so I picked up the new stuff from svn tonight (version 516),but the make fails (this is a new problem, I make my root_fs because I need crond in busybox -- my system is FC4) late in the processing with this message: /home/cole/gumstix/gumstix-buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-strip --remove-section=.comment --remove-section=.note --strip-unneeded /home/cole/gumstix/gumstix-buildroot/build_arm/root/usr/bin/ntpdate CFLAGS=-I/home/cole/gumstix/gumstix-buildroot/build_arm/linux-2.6.11gum/include make -j3 LINUXDIR=/home/cole/gumstix/gumstix-buildroot/build_arm/linux-2.6.11gum -C /home/cole/gumstix/gumstix-buildroot/build_arm/mtd/util mkfs.jffs2 make[1]: Entering directory `/home/cole/gumstix/gumstix-buildroot/build_arm/mtd/util' make[1]: *** No rule to make target `/usr/lib/gcc/i386-redhat-linux/3.4.3/include/stddef.h', needed by `compr_rtime.o'. Stop. make[1]: Leaving directory `/home/cole/gumstix/gumstix-buildroot/build_arm/mtd/util' make: *** [/home/cole/gumstix/gumstix-buildroot/build_arm/mtd/util/mkfs.jffs2] Error 2 Currently I am stumped any help will be greatly appreciated. Sorry for the long post John ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: headers for breakout-gs: 00186, John Alfredo |
|---|---|
| Next by Date: | Robostix: Quadrature Encoder Counters: 00186, Brendan Simon |
| Previous by Thread: | breakout-gs USB poweri: 00186, Doug Sutherland |
| Next by Thread: | Robostix: Quadrature Encoder Counters: 00186, Brendan Simon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |