[#5154] running linphone through ad73322 has underrun
Submitted By: Mingquan Pan
Open Date
2009-05-21 00:29:31
Priority:
Medium Assignee:
Bob Liu
Status:
Open Fixed In Release:
N/A
Found In Release:
2009R1-RC6 Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Not reproducible
Uboot version or rev.:
Toolchain version or rev.:
09r1-rc6
App binary format:
N/A
Summary: running linphone through ad73322 has underrun
Details:
running linphone through ad73322 has underrun, while with ad1981b driver no this message seen.
bfin> bootm
## Booting kernel from Legacy Image at 02000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1-pre-s
Created: 2009-05-20 2:44:14 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 5295141 Bytes = 5 MB
Load Address: 00001000
Entry Point: 001aa504
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001aa504
Linux version 2.6.28.10-ADI-2009R1-pre-svn6389 (test@uclinux56-ad73322) (gcc version 4.1.2 (ADI svn)) #4 Wed May 20 02:43:59 GMT 2009
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Warning: limiting memory to 56MB due to hardware anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0011f960
rodata = 0x0011f960-0x00177770
bss = 0x00178000-0x0018a31c
data = 0x0018a31c-0x0019c000
stack = 0x0019a000-0x0019c000
init = 0x0019c000-0x00a2b000
available = 0x00a2b000-0x037ff000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14223
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 46360k/65536k RAM, (8764k init code, 1146k kernel code, 498k data, 2048k dma, 6720k reserved)
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
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 (37 KB free)
PDA for CPU0 reserved at 0017b000
net_namespace: 288 bytes
NET: Registered protocol family 16
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 90
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_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
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.18rc3.
dma_alloc_init: dma_page @ 0x00d8f000 - 512 pages at 0x03e00000
ALSA device list:
#0: Analog Devices AD73322 at PF10 SPORT0,rx/tx dma ch:3/4,err irq:45
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2004-05-31 09:51:14 UTC (1085997074)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf537-stamp, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 8764k 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| - http://blackfin.uclinux.org/
\ YP" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \.___.d| .' - http://www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.4 (2009-05-20 02:38:56 GMT) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> versiPHY: 0:01 - Link is Up - 100/Full
on
kernel: Linux release 2.6.28.10-ADI-2009R1-pre-svn6389, build #4 Wed May 20 02:43:59 GMT 2009
toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release svn-8073, build #35 Wed May 20 02:41:29 GMT 2009
root:/>
************** STEP 3: Start LINPHONE AD73322 TEST
ifconfig eth0 10.100.4.50
root:/> route add -net default gw 10.100.4.174
route: SIOCADDRT: File exists
root:/> route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.100.4.0 * 255.255.255.0 U 0 0 0 eth0
default 10.100.4.174 0.0.0.0 UG 0 0 0 eth0
root:/> Ready.
linphonec>
Case 1 ...PASS
Case 1 ...PASS
linphonec
NLS disabled.
Ready
Warning: video is disabled in linphonec.
linphonec>
Case 1 ...PASS
Case 1 ...PASS
<sip:toto@10.100.4.50> is calling you.
Case 2 ...PASS
Case 2 ...PASS
answer
Connected.
Case 2 ...PASS
Case 2 ...PASS
call sip:test@10.100.4.174
Contacting sip:test@10.100.4.174
linphonec> linphonec> Connected.
linphonec>
Case 2 ...PASS
Case 2 ...PASS
Underrun happened!!!
^Croot:/>
Follow-ups
--- Cliff Cai 2009-07-12 23:42:52
this seems caused by problems existing in lib/linphone.
I've tried arecord|aplay, it works just fine.
Cliff
--- Mingquan Pan 2009-12-10 05:14:51
I still can see this issue on 09r1.1 branch head kernel.
U-Boot 2008.10-svn1956 (ADI-2009R1-rc2) (Jul 2 2009 - 20:05:22)
CPU: ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)
Board: ADI BF537 stamp board
Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz
RAM: 64 MB
RAM size is 64 MB.
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: 00:E0:22:FE:41:2B
Hit any key to stop autoboot: 0
bfin> set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600
bfin> set serverip 10.100.4.174
bfin> set ipaddr 10.100.4.50
bfin> save
Saving Environment to Flash...
. done
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... done
. done
Protected 1 sectors
bfin>
bfin> tftpboot 0x2000000 uImage
Using Blackfin EMAC device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
####################################
done
Bytes transferred = 5294553 (50c9d9 hex)Image size is 50c9d9
bfin> run addip
bfin> bootm
## Booting kernel from Legacy Image at 02000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1-svn
Created: 2009-12-09 23:41:20 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 5294489 Bytes = 5 MB
Load Address: 00001000
Entry Point: 001ac888
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001ac888
Linux version 2.6.28.10-ADI-2009R1.1-svn7951
(test@uclinux56-ad73322-snormtd-df) (gcc version 4.1.2 (ADI svn)) #14 Wed Dec 9
23:41:10 GMT 2009
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Warning: limiting memory to 56MB due to hardware anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00121c50
rodata = 0x00121c50-0x001793b0
bss = 0x0017a000-0x0018c314
data = 0x0018c314-0x0019e000
stack = 0x0019c000-0x0019e000
init = 0x0019e000-0x00a2c000
available = 0x00a2c000-0x037ff000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14223
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600
ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 46356k/65536k RAM, (8760k init code, 1155k kernel code, 497k
data, 2048k dma, 6720k 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 (36 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
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 90
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_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1,
mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
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.18rc3.
dma_alloc_init: dma_page @ 0x00d56000 - 512 pages at 0x03e00000
ALSA device list:
#0: Analog Devices AD73322 at PF10 SPORT0,rx/tx dma ch:3/4,err irq:45
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2004-05-31 07:27:19 UTC
(1085988439)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf537-stamp, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 8760k 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| - http://blackfin.uclinux.org/
\ YP" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \.___.d| .' - http://www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.4 (2009-12-09 23:37:58 GMT) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> versiPHY: 0:01 - Link is Up - 100/Full
on
kernel: Linux release 2.6.28.10-ADI-2009R1.1-svn7951, build #14 Wed Dec 9
23:41:10 GMT 2009
toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release svn-9223, build #111 Wed Dec 9 23:39:44 GMT 2009
root:/> successful boot attempt
************** STEP 3: Start LINPHONE TEST
ifconfig eth0 10.100.4.50
root:/> route add -net default gw 10.100.4.174
route: SIOCADDRT: File exists
root:/> route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.100.4.0 * 255.255.255.0 U 0 0 0 eth0
default 10.100.4.174 0.0.0.0 UG 0 0 0 eth0
root:/> Ready.
linphonec>
Case 1 ...PASS
Case 1 ...PASS
linphonec
NLS disabled.
Ready
Warning: video is disabled in linphonec.
linphonec>
Case 1 ...PASS
Case 1 ...PASS
<sip:toto@10.100.4.50> is calling you.
Case 2 ...PASS
Case 2 ...PASS
answer
Connected.
Case 2 ...PASS
Case 2 ...PASS
call sip:test@10.100.4.174
Contacting sip:test@10.100.4.174
linphonec> linphonec> Connected.
linphonec>
Case 2 ...PASS
Case 2 ...PASS
warning: Unknown nb_ctl request: 12
ortp-error-Could not set vbr mode to speex encoder.
warning: Unknown nb_ctl request: 34
Underrun happened!!!
^Croot:/>
Last passed time: 2009_Oct_29_02_51, ucdist ver: 9061, kernel ver: 7722
Case 3 ...FAIL
Case 3 ...FAIL
--- Bob Liu 2010-08-19 06:09:16
I can't repeat this bug,linphone works fine now.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found