[#4789] linphone stuck after startup

Document created by Aaronwu Employee on Aug 30, 2013
Version 1Show Document
  • View in full screen mode

[#4789] linphone stuck after startup

Submitted By: Mingquan Pan

Open Date

2009-01-08 22:59:17     Close Date

2009-02-10 23:32:11

Priority:

Medium High     Assignee:

Yi Li

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

Dec 12

App binary format:

N/A     

Summary: linphone stuck after startup

Details:

 

linphone stuck after being started up and no response at once.

 

Loading .text @ 0x00001000 (1226032 bytes)

Loading .rodata @ 0x0012c530 (295544 bytes)

Loading .init.rodata @ 0x001747a8 (80 bytes)

Loading __ksymtab @ 0x001747f8 (17288 bytes)

Loading __ksymtab_gpl @ 0x00178b80 (5480 bytes)

Loading __ksymtab_strings @ 0x0017a0e8 (51898 bytes)

Loading __init_rodata @ 0x00186ba4 (172 bytes)

Loading __param @ 0x00186c50 (760 bytes)

Clearing .bss @ 0x00186f50 (63196 bytes)

Loading .data @ 0x0019662c (72148 bytes)

Loading .init.text @ 0x001a8000 (103464 bytes)

Loading .init.data @ 0x001c1428 (13624 bytes)

Loading .init.setup @ 0x001c4960 (624 bytes)

Loading .initcall.init @ 0x001c4bd0 (624 bytes)

Loading .con_initcall.init @ 0x001c4e40 (4 bytes)

Loading .init.ramfs @ 0x001c4e44 (3707308 bytes)

Loading .text_l1 @ 0xffa00000 (6648 bytes)

sh_addr: FFA00000, p_paddr: 0054DFF0

Loading from: 0153F000 to 0054DFF0, size: 6648

Loading .data_l1 @ 0xff800000 (192 bytes)

sh_addr: FF800000, p_paddr: 0054F9E8

Loading from: 01541000 to 0054F9E8, size: 192

## Starting application at 0x001b6318 ...

Linux version 2.6.28-rc2-ADI-2009R1-pre-svn5953 (test@uclinux54-adv7393-ad1981-usb1362) (gcc version 4.1.2 (ADI svn)) #101 Thu Jan 8 13:25:44 CST 2009

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0012c530

  rodata    = 0x0012c530-0x00186f48

  bss       = 0x00186f50-0x0019662c

  data      = 0x0019662c-0x001a8000

    stack   = 0x001a6000-0x001a8000

  init      = 0x001a8000-0x00550000

  available = 0x00550000-0x037ff000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2008 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-through)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14223

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:BF537:eth0:off

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

bfin-rtc: invalid date; resetting

console [ttyBF0] enabled

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 51320k/65536k RAM, (3744k init code, 1197k kernel code, 495k data, 2048k dma, 6732k reserved)

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (15 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (41 KB free)

PDA for CPU0 reserved at 00188038

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

NET: Registered protocol family 1

msgmni has been set to 100

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

brd: module loaded

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

ASoC version 0.13.2

dma rx:3 tx:4, err irq:45, regs:ffc00800

AD1980 SoC Audio Codec

dma_alloc_init: dma_page @ 0x033ca000 - 512 pages at 0x03e00000

asoc: AC97 <-> bf5xx-ac97 mapping ok

bf5xx_ac97_cold_reset: Not implemented

ad1980: Found AD1981 - only 2/2 IN/OUT Channels supported

ALSA device list:

  #0: bf5xx-board (AD1980)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:00:02 UTC (2)

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=BF537, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 3744k freed

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            -   blackfin.uclinux.org/

\    YP"    `| 8P  `.          -   docs.blackfin.uclinux.org/

/     \.___.d|    .'           -   www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    -   www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.13.2 (2009-01-08 13:20:45 CST) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> PHY: 0:01 - Link is Up - 100/Full

 

root:/>

root:/> ifconfig eth0 10.100.4.50

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:47:C0

          inet addr:10.100.4.50  Bcast:10.100.4.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:1 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:64 (64.0 B)  TX bytes:0 (0.0 B)

 

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

root:/> linphonec

NLS disabled.

Ready

Warning: video is disabled in linphonec.

linphonec>

 

Follow-ups

 

--- Yi Li                                                    2009-02-04 02:25:29

fixed on trunk.

 

Linphone uses r1_event_hook in readline library to process event, readline uses

select(). Select() system call will return EINVALID if timeout.tv_usec >

1000000. So the r1_event_hook will be invoked repeatly (busyloop).

 

The fix add check for timeout in readline before calling select(), however,

uClibc seems a better place to do such check.

 

--- Mingquan Pan                                             2009-02-10 23:32:11

Yes, fixed. Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.linphone_ad1981b    application/octet-stream    33936    Mingquan Pan

Outcomes