[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serial port ttys0 and ttys2




I installed :
=============
cris-dist-1.56.tar.gz
cris-dist-glibc-1.56.tar.gz
cris-dist-linux-headers-1.56.tar.gz
devboard_lx-R2_2_0.tar.gz
linux-2.4.26.tar.gz
-> gcc version 3.2.1 Axis release R56/1.56

My .config file :
=================
...
CONFIG_ETRAX_DEBUG_PORT0=y
# CONFIG_ETRAX_DEBUG_PORT1 is not set
# CONFIG_ETRAX_DEBUG_PORT2 is not set
# CONFIG_ETRAX_DEBUG_PORT3 is not set
# CONFIG_ETRAX_DEBUG_PORT_NULL is not set
CONFIG_ETRAX_RESCUE_SER0=y
# CONFIG_ETRAX_RESCUE_SER1 is not set
# CONFIG_ETRAX_RESCUE_SER2 is not set
# CONFIG_ETRAX_RESCUE_SER3 is not set
...
CONFIG_ETRAX_SERIAL=y
# CONFIG_ETRAX_SERIAL_FAST_TIMER is not set
# CONFIG_ETRAX_SERIAL_FLUSH_DMA_FAST is not set
CONFIG_ETRAX_SERIAL_RX_TIMEOUT_TICKS=5
# CONFIG_ETRAX_EXTERN_PB6CLK_ENABLED is not set
CONFIG_ETRAX_SERIAL_PORT0=y
# CONFIG_ETRAX_SERIAL_PORT0_NO_DMA_OUT is not set
CONFIG_ETRAX_SERIAL_PORT0_DMA6_OUT=y
# CONFIG_ETRAX_SERIAL_PORT0_NO_DMA_IN is not set
CONFIG_ETRAX_SERIAL_PORT0_DMA7_IN=y
CONFIG_ETRAX_SER0_DTR_RI_DSR_CD_ON_NONE=y
# CONFIG_ETRAX_SER0_DTR_RI_DSR_CD_ON_PA is not set
# CONFIG_ETRAX_SER0_DTR_RI_DSR_CD_ON_PB is not set
# CONFIG_ETRAX_SER0_DTR_RI_DSR_CD_MIXED is not set
CONFIG_ETRAX_SER0_DTR_ON_PA_BIT=-1
CONFIG_ETRAX_SER0_RI_ON_PA_BIT=-1
CONFIG_ETRAX_SER0_DSR_ON_PA_BIT=-1
CONFIG_ETRAX_SER0_CD_ON_PA_BIT=-1
CONFIG_ETRAX_SER0_DTR_ON_PB_BIT=-1
CONFIG_ETRAX_SER0_RI_ON_PB_BIT=-1
CONFIG_ETRAX_SER0_DSR_ON_PB_BIT=-1
CONFIG_ETRAX_SER0_CD_ON_PB_BIT=-1
# CONFIG_ETRAX_SERIAL_PORT1 is not set
CONFIG_ETRAX_SERIAL_PORT2=y
# CONFIG_ETRAX_SERIAL_PORT2_NO_DMA_OUT is not set
CONFIG_ETRAX_SERIAL_PORT2_DMA2_OUT=y
# CONFIG_ETRAX_SERIAL_PORT2_NO_DMA_IN is not set
CONFIG_ETRAX_SERIAL_PORT2_DMA3_IN=y
CONFIG_ETRAX_SER2_DTR_RI_DSR_CD_ON_NONE=y
# CONFIG_ETRAX_SER2_DTR_RI_DSR_CD_ON_PA is not set
# CONFIG_ETRAX_SER2_DTR_RI_DSR_CD_ON_PB is not set
# CONFIG_ETRAX_SER2_DTR_RI_DSR_CD_MIXED is not set
CONFIG_ETRAX_SER2_DTR_ON_PA_BIT=-1
CONFIG_ETRAX_SER2_RI_ON_PA_BIT=-1
CONFIG_ETRAX_SER2_DSR_ON_PA_BIT=-1
CONFIG_ETRAX_SER2_CD_ON_PA_BIT=-1
CONFIG_ETRAX_SER2_DTR_ON_PB_BIT=-1
CONFIG_ETRAX_SER2_RI_ON_PB_BIT=-1
CONFIG_ETRAX_SER2_DSR_ON_PB_BIT=-1
CONFIG_ETRAX_SER2_CD_ON_PB_BIT=-1
# CONFIG_ETRAX_SERIAL_PORT3 is not set
...

My ptablespec file :
====================
[ptable]
rescue 0x010000 ro rescue rescue.img
flash1 0x1f0000 rw kernel flash1.img
flash2 0x100000 rw jffs2 flash2.img

I modified the flashit file (From jffs to jffs2) :
==================================================
PSIZE_JFFS=`awk '!/\#/ { if ( $4 == "jffs2" ) print $2 }' ptablespec \
		| tr a-f A-F`

The boot messages (on ttyS0) :
==============================
Uncompressing Linux...
Done. Now booting the kernel.
Setting up paging and the MMU.
On node 0 totalpages: 1024
zone(0): 1024 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Linux/CRIS port on ETRAX 100LX (c) 2001, 2002 Axis Communications AB
Kernel command line: root=/dev/mtdblock3 init=/linuxrc
ds1302: RTC found.
ds1302: SDA, SCL, RST on PB0, PB1, PB2
rtc_time	: 00:20:03
rtc_date	: 2000-01-01
Enabling watchdog...
Calibrating delay loop... 99.73 BogoMIPS
Memory: 6912k/8192k available (800k kernel code, 1280k reserved, 202k 
data, 32k init)
kmem_create: Forcing size word alignment - mm_struct
kmem_create: Forcing size word alignment - filp
Dentry cache hash table entries: 1024 (order: 0, 8192 bytes)
Inode cache hash table entries: 1024 (order: 0, 8192 bytes)
kmem_create: Forcing size word alignment - inode_cache
Mount cache hash table entries: 1024 (order: 0, 8192 bytes)
kmem_create: Forcing size word alignment - bdev_cache
kmem_create: Forcing size word alignment - cdev_cache
kmem_create: Forcing size word alignment - kiobuf
Buffer cache hash table entries: 2048 (order: 0, 8192 bytes)
Page-cache hash table entries: 2048 (order: 0, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
kmem_create: Forcing size word alignment - sock
Initializing RT netlink socket
Starting kswapd
kmem_create: Forcing size word alignment - file_lock_cache
kmem_create: Forcing size word alignment - nfs_read_data
kmem_create: Forcing size word alignment - nfs_write_data
JFFS version 1.0, (C) 1999, 2000  Axis Communications AB
kmem_create: Forcing size word alignment - jffs_node
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis 
Communications AB.
pty: 256 Unix98 ptys configured
kmem_create: Forcing size word alignment - blkdev_requests
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
ETRAX 100LX 10/100MBit ethernet v2.0 (c) 2000-2001 Axis Communications AB
eth0 initialized
eth0: changed MAC to 00:40:8C:CD:00:00
ETRAX 100LX serial-driver 1.62 $, (c) 2000-2003 Axis Communications AB
ttyS0 at 0xb0000060 is a builtin UART with DMA
ttyS2 at 0xb0000070 is a builtin UART with DMA
fast_timer_init()
cse0: Probing a 0x04000000 bytes large window at 0x80000000.
cse0: Probing for AMD compatible flash...
cse0: Found no AMD compatible device at location zero
  Amd/Fujitsu Extended Query Table v1.1 at 0x0040
cse0: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
cse1: Probing a 0x04000000 bytes large window at 0x84000000.
cse1: Probing for AMD compatible flash...
cse1: Found no AMD compatible device at location zero
CFI: Found no cse1 device at location zero
cse0: 0x00400000 bytes of flash memory.
  Found a valid partition table at 0x5001000a-0x50010056.
   /dev/flash1 at 0x00010000, size 0x001f0000
   /dev/flash2 at 0x00200000, size 0x00100000
  Adding readonly flash partition for romfs image:
   /dev/flash3 at 0x0008fb9e, size 0x00106000
Creating 4 MTD partitions on "cse0":
0x00000000-0x00010000 : "part0"
0x00010000-0x00200000 : "part1"
0x00200000-0x00300000 : "part2"
0x0008fb9e-0x00195b9e : "romfs"
I2C driver v2.2, (c) 1999-2001 Axis Communications AB
EEPROM char device v0.3, (c) 2000 Axis Communications AB
eeprom: Assuming i2c compatible 2kB eeprom.
GPIO port G: in_bits: 0xFFFFFF3F out_bits: 0xFE00003E val: FFFFFFFF
GPIO port G: dir: 00000000 changeable: 01FFFF01
ETRAX 100LX GPIO driver v2.5, (c) 2001, 2002 Axis Communications AB
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
kmem_create: Forcing size word alignment - ip_dst_cache
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 32k freed
/linuxrc: Mounting /mnt/flash... done
/linuxrc: Starting init.
init: starting up.
Starting system initialization.

Axis Linux, http://developer.axis.com/
Copyright (C) 2000-2003 Axis Communications AB

Axis Developer Board LX release 2.2.0

  * Mounting filesystems... [ ok ]
  * Initializing /var... [ ok ]
  * Determining MAC address...
+ using saved MAC address: 00:40:8C:62:E0:A9[ ok ]
  * Setting hostname...
+ hostname: "AxisProduct"[ ok ]
  * Initializing volatile resolver configuration... [ ok ]
  * Starting ipsetd... [ ok ]
System initialization is done.
New runlevel: 3
  * Starting respawn daemon... [ ok ]
  * Starting system and kernel logger...
Jan  1 00:20:09 AxisProduct syslogd 1.4.1: restart.
+ system logger started
+ kernel logger started[ ok ]
  * Bringing lo up... [ ok ]
  * Bringing eth0 up... eth0: changed MAC to 00:40:8C:62:E0:A9
+ hardware address: 00:40:8C:62:E0:A9
+ media: auto
+ IP address: 192.168.0.10
+ netmask: 255.255.255.0
+ broadcast address: 192.168.0.255
+ default gateway: 192.168.0.1
+ boot protocol: none[ ok ]
  * Waiting for a network interface...
+ eth0 is up[ ok ]
  * Starting telnet server...
telnetd: starting port: 23;
  interface: any; login program: /bin/login[ ok ]
  * Starting ftp server...
Jan  1 00:20:11 AxisProduct vftpd[185]: Starting vftpd 0.01[ ok ]
  * Starting web server... [ ok ]
All scripts for runlevel 3 are done.

BusyBox v0.60.5 (2004.08.18-10:33+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

sh: can't access tty; job control turned off
#

The test on ttyS2 :
===================
I made a c program (See the previous message in this thread).

If you send a file about 1Mbytes on the ttyS2 with minicom program, the 
number of byte receive is not correct (I have only one Telnet connection 
to the axis board ! / I don't use Ftp or Http in the same time).

The messages on ttyS0 :
=======================
handle_descr_data: Too much pending incoming serial data! Dropping 256 
bytes.
handle_descr_data: Too much pending incoming serial data! Dropping 256 
bytes.
...

-- 
Philippe Frossard