hi:
I want to make use of the serial port on tweener, which is should be ttyS0. I did what the wiki said to free it. but after I boot the gumstix, it still print out the massages. after then, I run a simple code to configure ttyS0 but I failed to change the baudrate. I updated the uboot when I update kernel to 2.6.15. I wonder who knows the reason for that? thanks.
the code to configure ttyS0 is as followed:

printf("Current termios: iFlag %x oFlag %x cFlag %x lFlag %x speed %d\n", tio.c_iflag,tio.c_oflag,tio.c_cflag,tio.c_lflag,tio.c_ispeed);
tcgetattr(fd,&tio);
tio.c_cflag=B115200 | CS8 |CREAD |CLOCAL;
tio.c_cflag &=~ HUPCL; //| PARENB |CSTOPB |CSIZE |CNEW_RTSCTS);
tio.c_lflag=0;
tio.c_iflag=IGNPAR;
tio.c_iflag &=~(IXON | IXOFF | IXANY);
tio.c_oflag=0;
tio.c_cc[VMIN]=0;
tio.c_cc[VTIME]=0;
tcsetattr(fd,TCSANOW,&tio);
printf("NEW termios: iFlag %x oFlag %x cFlag %x lFlag %x speed %d\n", tio.c_iflag,tio.c_oflag,tio.c_cflag,tio.c_lflag,tio.c_ispeed);

the output run on gumstix is:

Current termios: iFlag 8560 oFlag 1 cFlag 8744 lFlag 4000411c speed 0
NEW termios: iFlag 4 oFlag 0 cFlag 18b2 lFlag 0 speed 0

on uboot, I did this:

GUM> pri
bootcmd=fsload a2000000 boot/uImage;bootm 0xa2000000
baudrate=115200
ethaddr=00:0A:95:A5:47:3A
serial#=120009005B41AD7C
bootdelay=5
bootargs=console=ttyS0,115200n8 root=1f01 rootfstype=jffs2
silent=false
stdin=serial
stdout=serial
stderr=serial

Environment size: 245/4092 bytes
GUM> setenv bootarts console=null root=1f01 rootfstype=jffs2 reboot=cold,hard
GUM> setenv silent true
GUM> saveenv
Saving Environment to Flash...
.
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... done
.
Protected 1 sectors
GUM> boot
### JFFS2 loading 'boot/uImage' to 0xa2000000
Scanning JFFS2 FS:   Unknown node type: 2005 len 24 offset 0x0
.  Unknown node type: 2005 len 24 offset 0x20000
| Unknown node type: 2005 len 24 offset 0x40000
Unknown node type: 2005 len 24 offset 0x60000
/ Unknown node type: 2005 len 24 offset 0x80000
Unknown node type: 2005 len 24 offset 0xa0000
- Unknown node type: 2005 len 24 offset 0xc0000
Unknown node type: 2005 len 24 offset 0xe0000
\ Unknown node type: 2005 len 24 offset 0x100000
.  Unknown node type: 2005 len 24 offset 0x120000
| Unknown node type: 2005 len 24 offset 0x140000
Unknown node type: 2005 len 24 offset 0x160000
./ Unknown node type: 2005 len 24 offset 0x180000
Unknown node type: 2005 len 24 offset 0x1a0000
- Unknown node type: 2005 len 24 offset 0x1c0000
Unknown node type: 2005 len 24 offset 0x1e0000
\ Unknown node type: 2005 len 24 offset 0x200000
Unknown node type: 2005 len 24 offset 0x220000
| Unknown node type: 2005 len 24 offset 0x240000
.  Unknown node type: 2005 len 24 offset 0x260000
/ Unknown node type: 2005 len 24 offset 0x280000
Unknown node type: 2005 len 24 offset 0x2a0000
.- Unknown node type: 2005 len 24 offset 0x2c0000
Unknown node type: 2005 len 24 offset 0x2e0000
\ Unknown node type: 2005 len 24 offset 0x300000
Unknown node type: 2005 len 24 offset 0x320000
| Unknown node type: 2005 len 24 offset 0x340000
Unknown node type: 2005 len 24 offset 0x360000
/ Unknown node type: 2005 len 24 offset 0x380000
Unknown node type: 2005 len 24 offset 0x3a0000
 done.
### JFFS2 load complete: 744364 bytes loaded to 0xa2000000
## Booting image at a2000000 ...
   Image Name:   uImage
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    744300 Bytes = 726.9 kB
   Load Address: a0008000
   Entry Point:  a0008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.................................................. done, booting the kernel.
Linux version 2.6.15gum (root@linux) (gcc version 3.4.4) #1 Mon Feb 20 19:04:17 PST 2006
CPU: XScale-PXA255 [69052d06] revision 6 (ARMv5TE)
Machine: The Gumstix Platform
Memory policy: ECC disabled, Data cache writeback
Memory clock: 99.53MHz (*27)
Run Mode clock: 199.07MHz (*2)
Turbo Mode clock: 199.07MHz (*1.0, inactive)
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists
Kernel command line: console=ttyS0,115200n8 root=1f01 rootfstype=jffs2
PID hash table entries: 512 (order: 9, 8192 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 63280KB available (1235K code, 242K data, 56K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 15) is a FFUART
pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 14) is a BTUART
pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 13) is a STUART
pxa2xx-uart.3: ttyS3 at MMIO 0x41600000 (irq = 0) is a HWUART
Probing Gumstix Flash ROM at physical address 0x00000000 (16-bit bankwidth)
Gumstix Flash ROM: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Using static partitions on Gumstix Flash ROM
Creating 2 MTD partitions on "Gumstix Flash ROM":
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x00400000 : "RootFS"
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 56K
NET: Registered protocol family 1
Loading modules: mmc_block pxamci i2c-dev i2c /dev entries driver
i2c-pxa mmcblk0: mmc0:0001 MMC128 125440KiB
 mmcblk0: p1
I2C: i2c-0: PXA I2C adapter
: Loaded.
Populating /dev using udev... done
Starting udevd... done
Initializing random number generator... done.
Starting 32kHz clock.....Settled
Set (AF1,out,set) via /proc/gpio/GPIO12
Starting Bluetooth subsystem:Trying baud rate 57600...
Set (GPIO,out,clear) via /proc/gpio/GPIO7
Set (GPIO,out,set) via /proc/gpio/GPIO7
Got response after reset... gobbling
Detected bluetooth module at 57600 baud
Got: status=0x00, hci_ver=0x01, hci_rev=0x8105, lmp_ver=0x01, manuf=0x0000, lmp_subver=0x8d40
Bluetooth: Core ver 2.8
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
 ttyS3 hcid sdpdBluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.6
 rfcommBluetooth: BNEP (Ethernet Emulation) ver 1.2
Bluetooth: BNEP filters: protocol multicast
 pand.
Starting network...
udhcpc (v0.9.9-pre) started
Dec 31 16:04:16 udhcpc[246]: udhcpc ( v0.9.9-pre) started
pxa2xx_udc: version 4-May-2005
usb0: Ethernet Gadget, version: May Day 2005
usb0: using pxa2xx_udc, OUT ep2out-bulk IN ep1in-bulk STATUS ep6in-bulk
usb0: MAC 0a:00:5b:41:ad:61
usb0: HOST MAC 0a:00:5b:41:ad:62
usb0: RNDIS ready
NET: Registered protocol family 17
udhcpc (v0.9.9-pre) started
Dec 31 16:04:16 udhcpc[278]: udhcpc (v0.9.9-pre) started
smc91x: not found (-19).
smc91x: not found (-19).
m
Dec 31 16:04:17 udhcpc[278]: [truncated] m
Starting Rendezvous:
Starting dropbear sshd: OK



Welcome to the Gumstix Linux Distribution!

gumstix login: root
Password: