well I have some sad news.
with echo cxl enabled, I cannot get dial tone or make calls via FXS ports. Not sure why (how can I help debug?).
if I disable echo cancellation & reboot then I get normal dialtone & can make calls. here are outputs
dmesg:
root@ip0x:~> dmesg
<5>Linux version 2.6.28.10-ADI-2009R1.1switchfin (root@ubuntu) (gcc version 4.1.2 (ADI svn)) #3 Tue May 25 11:46:47 EDT 2010
<6>Board Memory: 64MB
<6>Kernel Managed Memory: 64MB
<6>Memory map:
<6> fixedcode = 0x00000400-0x00000490
<6> text = 0x00001000-0x0013a050
<6> rodata = 0x0013a050-0x0018fcb4
<6> bss = 0x00190000-0x001a1f94
<6> data = 0x001a1f94-0x001b2000
<6> stack = 0x001b0000-0x001b2000
<6> init = 0x001b2000-0x001cb000
<6> available = 0x001cb000-0x02b00000
<6> rootfs = 0x02b00000-0x03f00000
<6> DMA Zone = 0x03f00000-0x04000000
<6>Hardware Trace Active and Enabled
<6>Boot Mode: 6
<6>Blackfin support (C) 2004-2009 Analog Devices, Inc.
<6>Compiled for ADSP-BF533 Rev 0.5
<6>Blackfin Linux support by http://blackfin.uclinux.org/
<6>Processor Speed: 400 MHz core clock and 133 MHz System Clock
<7> boot memmap: 00000000001cb000 - 0000000002b00000 (usable)
<7>On node 0 totalpages: 11008
<7>free_area_init_node: node 0, pgdat 001adf54, node_mem_map 001cd000
<7> DMA zone: 86 pages used for memmap
<7> DMA zone: 0 pages reserved
<7> DMA zone: 10922 pages, LIFO batch:1
<7> Normal zone: 0 pages used for memmap
<7> Movable zone: 0 pages used for memmap
<6>NOMPU: setting up cplb tables
<6>Instruction Cache Enabled for CPU0
<6>Data Cache Enabled for CPU0 (write-back)
<4>Built 1 zonelists in Zone order, mobility grouping off. Total pages: 10922
<5>Kernel command line: ethaddr=00:09:45:56:76:1c root=/dev/mtdblock0 rw
<6>Configuring Blackfin Priority Driven Interrupts
<4>PID hash table entries: 256 (order: 8, 1024 bytes)
<6>console [ttyBF0] enabled
<6>Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
<6>Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
<7>Kernel managed physical pages: 11008
<6>Memory available: 41628k/65536k RAM, (100k init code, 1252k kernel code, 480k data, 1024k dma, 572k reserved)
<6>SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
<6>Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)
<6>Security Framework initialized
<4>Mount-cache hash table entries: 512
<6>Blackfin Scratchpad data SRAM: 4 KB
<6>Blackfin L1 Data A SRAM: 16 KB (13 KB free)
<6>Blackfin L1 Data B SRAM: 16 KB (16 KB free)
<6>Blackfin L1 Instruction SRAM: 64 KB (52 KB free)
<6>net_namespace: 288 bytes
<6>NET: Registered protocol family 16
<6>Blackfin DMA Controller
<6>ip0x_init(): chip_id=527A50CB,dspid=E5040005
<6>ip0x_init(): registering device resources
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>TCP established hash table entries: 2048 (order: 2, 16384 bytes)
<6>TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
<6>TCP: Hash tables configured (established 2048 bind 2048)
<6>TCP reno registered
<6>NET: Registered protocol family 1
<6>msgmni has been set to 81
<6>io scheduler noop registered
<6>io scheduler anticipatory registered (default)
<6>io scheduler cfq registered
<6>Serial: Blackfin serial driver
<6>bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART
<6>brd: module loaded
<6>tun: Universal TUN/TAP device driver, 1.6
<6>tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
<6>dm9000 Ethernet Driver, V1.31
<6>eth0: dm9000a at 20100000,20100002 IRQ 48 MAC: 00:09:45:56:76:1c (chip)
<4>dm9000 dm9000.1: eth%d: Invalid ethernet MAC address. Please set using ifconfig
<6>eth1: dm9000a at 20200000,20200002 IRQ 47 MAC: 00:00:00:00:00:00 (command line)
<4>uclinux[mtd]: RAM probe address=0x2b00000 size=0x1400000
<5>Creating 1 MTD partitions on "RAM":
<5>0x00000000-0x01400000 : "ROMfs"
<4>Generic platform RAM MTD, (c) 2004 Simtec Electronics
<6>NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
<6>Scanning device for bad blocks
<5>Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
<5>0x00000000-0x00a00000 : "uImage"
<5>0x00a00000-0x01400000 : "uImage backup"
<5>0x01400000-0x10000000 : "persistent file system"
<6>bfin-wdt: initialized: timeout=20 sec (nowayout=0)
<6>TCP cubic registered
<6>NET: Registered protocol family 17
<6>802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
<6>All bugs added by David S. Miller <davem@redhat.com>
<4>drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
<4>VFS: Mounted root (ext2 filesystem).
<6>Freeing unused kernel memory: 100k freed
<6>dma_alloc_init: dma_page @ 0x02a96000 - 256 pages at 0x03f00000
<5>UBI: attaching mtd3 to ubi0
<5>UBI: physical eraseblock size: 131072 bytes (128 KiB)
<5>UBI: logical eraseblock size: 129024 bytes
<5>UBI: smallest flash I/O unit: 2048
<5>UBI: sub-page size: 512
<5>UBI: VID header offset: 512 (aligned 512)
<5>UBI: data offset: 2048
<5>UBI: attached mtd3 to ubi0
<5>UBI: MTD device name: "persistent file system"
<5>UBI: MTD device size: 236 MiB
<5>UBI: number of good PEBs: 1888
<5>UBI: number of bad PEBs: 0
<5>UBI: max. allowed volumes: 128
<5>UBI: wear-leveling threshold: 4096
<5>UBI: number of internal volumes: 1
<5>UBI: number of user volumes: 1
<5>UBI: available PEBs: 0
<5>UBI: total number of reserved PEBs: 1888
<5>UBI: number of PEBs reserved for bad PEB handling: 18
<5>UBI: max/mean erase counter: 3/0
<5>UBI: background thread "ubi_bgt0d" started, PID 186
<5>UBIFS: recovery needed
<5>UBIFS: recovery completed
<5>UBIFS: mounted UBI device 0, volume 0, name "persistent"
<5>UBIFS: file system size: 239339520 bytes (233730 KiB, 228 MiB, 1855 LEBs)
<5>UBIFS: journal size: 11999232 bytes (11718 KiB, 11 MiB, 93 LEBs)
<5>UBIFS: media format: 4 (latest is 4)
<5>UBIFS: default compressor: LZO
<5>UBIFS: reserved for root: 5182151 bytes (5060 KiB)
<6>eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
<6>dahdi: Telephony Interface Registered on major 196
<6>dahdi: Version: 2.2.1
<4>bfsi_sport_init res: 1
<4>After DASIY
<4>port: 1 port_type: S
<4>port: 2 port_type: S
<4>port: 3 port_type: -
<4>port: 4 port_type: -
<4>port: 5 port_type: -
<4>port: 6 port_type: -
<4>port: 7 port_type: -
<4>port: 8 port_type: -
<4>ProSLIC module is Si3215
<4>Start manual calibration
<4>Module 0: Installed -- AUTO FXS
<4>ProSLIC module is Si3215
<4>Start manual calibration
<4>Module 1: Installed -- AUTO FXS
<4>Found: Blackfin STAMP (8 modules)
<4>wcfxs_init_ok = 1
lsmod:
root@ip0x:~> lsmod
wcfxs 20600 0 - Live 0x00490000
dahdi 175136 3 wcfxs, Live 0x004c0000
crc_ccitt 1136 1 dahdi, Live 0x028ad800
sport_interface 1580 1 wcfxs, Live 0x028ad000
bfsi 4524 1 wcfxs, Live 0x00436000
modprobe (does not give any output):
root@ip0x:~> modprobe wcfxs
root@ip0x:~>