Home Forum Developers IP0x I can't get my IP02 to ring my analog Line on inbound calls

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

hi Dimitar,
thank you this looks promising!
but I tried to compile svn 136, and I get this error:

root@ubuntu:~/Desktop/switchfin# make menuconfig
package/Config.in:24: can't open file "package/oslec/Config.in"
make: *** [menuconfig] Error 1

what to do now?


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

I saw that the oslec package is missing from svn 135,136
I checked out r134 and merged the oslec package into the 136 tree
then I was able to make menuconfig, and I am compiling now.

will let you know.


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi, well bad news I did not have success compiling this image.

I got this error during 'make'

zcat /root/Desktop/switchfin/dl/dahdi-linux-complete-2.2.1+2.2.1.tar.gz | \
    tar -C /root/Desktop/switchfin/build_ip04   -xf -
cp -rf package/sources/oslec /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/staging/echo
cp: cannot create directory `/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/staging/echo': No such file or directory
make: *** [/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/.unpacked] Error 1
root@ubuntu:~/Desktop/switchfin#


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Luke,

small mistake
Can you try with the trunk head.

Cheers
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

trying svn 138 now...


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

success!! compiled big_smile


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

hmm ok, sadly- with this new build, I cannot detect my FXS analog card.  I tried rebooting a few times, but no luck.  It says "no mISDN cards detected" same error I got long time ago with I think svn 114 or 115. sad


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Can you close your browser and open it again?
I have not seen this behavior since lot of time as well.

Can you also send me the result of dmesg in the Linux prompt.

Regards
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Dimitar,
well I tried few times with Firefox, and IE, completely logged out & logged back in-- no success.  I think there is some problem.  Here is how it looks in the browser:
http://i.imgur.com/oM6sk.png

and here is the dmesg output:

root@ip0x:~> dmesg
<5>Linux version 2.6.28.10-ADI-2009R1.1switchfin (root@ubuntu) (gcc version 4.1.2 (ADI svn)) #2 Thu May 20 14:12:30 EDT 2010
<6>Board Memory: 64MB
<6>Kernel Managed Memory: 64MB
<6>Memory map:
<6>  fixedcode = 0x00000400-0x00000490
<6>  text      = 0x00001000-0x00139e90
<6>  rodata    = 0x00139e90-0x0018fa2c
<6>  bss       = 0x00190000-0x001a1f94
<6>  data      = 0x001a1fa0-0x001b2000
<6>    stack   = 0x001b0000-0x001b2000
<6>  init      = 0x001b2000-0x001ca000
<6>  available = 0x001ca000-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-BF532 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: 00000000001ca000 - 0000000002b00000 (usable)
<7>On node 0 totalpages: 11008
<7>free_area_init_node: node 0, pgdat 001ae7b4, node_mem_map 001cc000
<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: 41632k/65536k RAM, (96k init code, 1251k kernel code, 481k 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 Instruction SRAM: 32 KB (20 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: 96k freed
<6>dma_alloc_init: dma_page @ 0x02a19000 - 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
<6>dahdi_dummy: Detected time shift.
root@ip0x:~>


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Luke

looks like the changes to load the dadhi dummy driver when no fxs cards are present, has effected the dahdi detect script.

I will if my ip04 has the same problem


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Ok, thank you.  Is there some way I can work around it?


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hello Guys

Jason, doyou have the same on your box?
Things are look OK here.

Luke can you execute the following commands so we see what is going on

lsmod
modprobe wcfxs
dahdi_scan
dahdi_cfg

Regards
Dimitar


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Dimitar,


Compiling the SVN head now will let you know


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

hi guys, thanks for your help on this. smile
here are the output of those commands, on my IP02 box running svn 138

root@ip0x:~> lsmod

dahdi_dummy 2648 0 - Live 0x02af2000
dahdi 175136 3 dahdi_dummy, Live 0x004c0000
crc_ccitt 1136 1 dahdi, Live 0x02911000
root@ip0x:~> modprobe wcfxs
modprobe: module wcfxs not found
root@ip0x:~> dahdi_scan
[1]
active=yes
alarms=UNCONFIGURED
description=DAHDI_DUMMY/1 (source: Linux26) 1
name=DAHDI_DUMMY/1
manufacturer=
devicetype=DAHDI Dummy Timing
location=
basechan=1
totchans=0
irq=0
root@ip0x:~> dahdi_cfg
DAHDI_CHANCONFIG failed on channel 1: No such device or address (6)


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Dimitar

Same FXS issue after updating

dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.2.1
bfsi_sport_init res: 1
After DASIY
port: 1 port_type: -
port: 2 port_type: -
port: 3 port_type: -
port: 4 port_type: -
port: 5 port_type: -
port: 6 port_type: -
port: 7 port_type: -
port: 8 port_type: -
couldn't init OK...returning -1
wcfxs_hardware_init() failed...
wcfxs_init_ok = 0


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

hehehe woops sorry Dimitar the FXS module was not pressed right in lol

Everything detecting fine.


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Luke,

You don't have the oslec modules loaded and you don't have even wcfxs

Can rebuld Switchfin but please erase the whole switchfin/buid_ip04/ directory before.
you can delete switchfin/.config as well, so you start from clear configuration 

Jason you have FXS/FXO modules plugged in?

Regards
Dimitar


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

oops ;-)


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Luke

How did you go with the recompile.

I have fixed the rxflash issue in the new SVN, the issue with the voice menus taking you back to the GUI "Home" page happens after you do an advanced edit right? i will look into a better way of doing this but the problem lies with how the context changes are stored in both the GUI and the configs. (the reload happens so the advanced changes can become visible to the editor).

Thanks
Jason


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Luke

GUI reload issue has been fixed and also echo cancellation settings (on/off) have been added to the "Configure Hardware" section if you get a chance can you test this to see if it works with your dual FXS card.

Thanks
Jason


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

ok thanks guys, I have been away for the past few days.   I see there were a number of updates, so I am going to try a compile this morning and give it a spin.  Thanks for all the support, I will definitely report back shortly.  cheers


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

hello,
well I have mixed news.
ok I compiled svn 149 and flashed-  things were ok but I immediately noticed svn 155 had been  committed, so I compiled again & re-flashed (reset defaults each time).  Now I have sort of  half-bricked ip02 unit.  I can ping & ssh into the box fine but I cannot access the web server (tcp connect timeout- as if httpd is not running).   

I have now compiled a new image from svn 158 but I have no way to flash it.  Is there some ssh commands I can issue via the terminal to tftp  the image?  I am hoping 'yes' because otherwise I have to disassemble again and install my serial card (ip02 does not have serial port externally available) which  is a big pain.  so if there is a way to tftp a new uImage via ssh please let me know!! thanks


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

guys sorry, I have to post another update:  i cannot compile svn 158.  I realized there is an error from the compiler.  Here are the last bunch of output lines:

make -C /root/Desktop/switchfin/build_ip04/uClinux-dist/linux-2.6.x SUBDIRS=/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi DAHDI_INCLUDE=/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/include DAHDI_MODULES_EXTRA="wcfxs.o bfsi.o sport_interface.o " HOTPLUG_FIRMWARE=no modules DAHDI_BUILD_ALL=m
make[2]: Entering directory `/root/Desktop/switchfin/build_ip04/uClinux-dist/linux-2.6.x'
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/Kbuild:87: CPU Architecture 'blackfin' does not support VPMADT032 or HPEC. Skipping.
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi-base.o
  LD [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_dummy.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_dynamic.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_dynamic_loc.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_dynamic_eth.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_transcode.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_echocan_jpah.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_echocan_sec.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_echocan_sec2.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_echocan_kb1.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_echocan_mg2.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/wcfxs.o
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/wcfxs.c: In function ‘wcfxs_hooksig’:
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/wcfxs.c:1826: warning: unused variable ‘reg’
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/wcfxs.c: At top level:
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/wcfxs.c:450: warning: ‘reg5’ defined but not used
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/wcfxs.c:450: warning: ‘reg12’ defined but not used
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/wcfxs.c:450: warning: ‘loop_i’ defined but not used
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/wcfxs.c:450: warning: ‘line_v’ defined but not used
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.o
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c: In function ‘bfsi_spi_init’:
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c:300: warning: unused variable ‘bit’
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c:300: warning: unused variable ‘cs’
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c: In function ‘init_sport_interrupts’:
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c:936: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c: In function ‘bfsi_proc_read’:
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c:1110: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 11 has type ‘u8 *’
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c:1110: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 11 has type ‘u8 *’
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c: In function ‘proc_read_bfsi_freeze’:
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c:1120: warning: unused variable ‘flags’
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c: In function ‘proc_write_bfsi_freeze’:
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c:1134: warning: unused variable ‘flags’
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c: In function ‘bfsi_spi_write_8_bits’:
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c:185: warning: ‘flag’ may be used uninitialized in this function
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c: In function ‘bfsi_spi_read_8_bits’:
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c:228: warning: ‘flag’ may be used uninitialized in this function
/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/bfsi.c:228: warning: ‘flag_enable’ may be used uninitialized in this function
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/sport_interface.o
  CC [M]  /root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_echocan_oslec.o
make[3]: *** No rule to make target `/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_echocan_zarlink.c', needed by `/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/dahdi_echocan_zarlink.o'.  Stop.
make[2]: *** [_module_/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory `/root/Desktop/switchfin/build_ip04/uClinux-dist/linux-2.6.x'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/linux'
make: *** [/root/Desktop/switchfin/build_ip04/dahdi-linux-complete-2.2.1+2.2.1/.linux] Error 2
root@ubuntu:~/Desktop/switchfin#


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Luke

can you FTP into the IP02, i had the same problem this morning and found the problem to be the http.conf had been wiped (and this happens every restart), i havent had a chance to see why but will investigate later on tonight.

for the mean time if you can FTP in goto /etc/asterisk/http.conf and paste the following

[general]
enabled = yes
enablestatic = yes
bindaddr = 0.0.0.0
bindport = 80
prefix =

save and type /etc/init.d/asterisk restart
you should now have access to the GUI also you should be able to use SSH (no need for a serial cable).

I hope this is the issue your having if not can you check whats going on with the serial cable.

thanks
jason


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

hi Albi,
something else must be wrong with my installation- i looked at my http.conf with vi editor (from ssh session) and it already matched what you had there.  So I went to /etc/init.d/ and tried to execute ./asterisk restart but I get this back from the shell:

root@ip0x:/persistent/etc/init.d> ./asterisk restart
hush: can't execute 'asterisk': No such file or directory


I looked at contents of asterisk' file in /etc/init.d/ and mine looks like this (is it correct??): 
root@ip0x:/persistent/etc/init.d> cat asterisk
#!/bin/hush
# Start up file for Asterisk

# NOTE: we set the TZ before starting as otherwise (when starting from
# /etc/rc) this env variable won't be available to the shell that
# starts Asterisk and the time will be messed up.

case $1 in
        start)  export TZ=`cat /etc/TZ`;
                asterisk -f >/dev/null 2>/dev/null & ;;
        stop) killall -9 asterisk;;
        restart) asterisk -rx "stop now";
                sleep 3;
                export TZ=`cat /etc/TZ`;
                asterisk -f >/dev/null 2>/dev/null & ;;
        enable) rm -f /persistent/etc/rc.d/S50asterisk;
                ln -s /persistent/etc/init.d/asterisk /persistent/etc/rc.d/S50asterisk;;
        disable) rm -f /persistent/etc/rc.d/S50asterisk;;
        *) echo 'Syntax: /etc/init.d/asterisk [command]'
           echo ''
           echo '       Available commands:'
           echo '               start   Start the service'
           echo '               stop    Stop the service'
           echo '               restart Restart the service'
           echo '               enable  Enable service autostart'
           echo '               disable Disable service autostart'
esac


In any case, it seems like I am missing the actual asterisk binary(?).  not sure how that happened.  Anyway, back to my previous question- is there any way to flash a new uImage via SSH?  What about 'flashimage' command? it looks right....


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Yeah it looks like that.

the asterisk binary should be in /bin/asterisk

if you still cant compile i can build you and image


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

hehe sorry missed the last part of your message just place the uImage-md5 file in /persistant/imageupdate and name it uImage then just restart the IP02


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Yes that is the problem! I have no asterisk in /bin/asterisk

I was able to compile svn 150 (the last one before Dimitar committed his recent changes) but I have no way to flash it since I have no GUI. 

that's what I was trying to figure out- is there some way to flash uImage via SSH command, perhaps 'flashimage' ?


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

ok I took a chance and tried the following command:

flashupdate tftp <my_tftp_server_ip> uImage-md5

hey!  it worked!  my ip02 is back to life.
BUT, bad news that svn 150 still does not detect my analog FXS ports.
here is dmesg output:

root@ip0x:~> dmesg
<5>Linux version 2.6.28.10-ADI-2009R1.1switchfin (root@ubuntu) (gcc version 4.1.2 (ADI svn)) #2 Tue May 25 01:12:41 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
<6>dahdi_dummy: Detected time shift.
root@ip0x:~>


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

I think again the problem is that I am somehow still missing modprobe
what to do now?


root@ip0x:~> lsmod

dahdi_dummy 2648 0 - Live 0x02af2000
dahdi 175136 3 dahdi_dummy, Live 0x004c0000
crc_ccitt 1136 1 dahdi, Live 0x028a9000


root@ip0x:~> modprobe wcfxs
modprobe: module wcfxs not found


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 351
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked