[#6910] ppifcd fails to take picture on bf537 stamp board
Submitted By: Mingquan Pan
Open Date
2011-11-29 02:54:08 Close Date
2011-12-13 00:46:45
Priority:
Medium Assignee:
Vivi Li
Status:
Closed Fixed In Release:
N/A
Found In Release:
2011R1 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.:
ADI-2011R1-RC2
App binary format:
N/A
Summary: ppifcd fails to take picture on bf537 stamp board
Details:
ppifcd fails to take picture on bf537 stamp board.
## Booting kernel from Legacy Image at 02000000 ...
Image Name: bf537-0.2-3.1.0-ADI-2012R1-pre-s
Created: 2011-11-29 6:30:13 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4781302 Bytes = 4.6 MiB
Load Address: 00001000
Entry Point: 001c9c58
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001c9c58
Linux version 3.1.0-ADI-2012R1-pre-svn10230 (test@adsl) (gcc version 4.3.5 (ADI/svn-5686) ) #25 Tue Nov 29 14:30:08 CST 2011
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00137600
rodata = 0x00137600-0x0019d228
bss = 0x0019e000-0x001adc40
data = 0x001adc40-0x001c2000
stack = 0x001c0000-0x001c2000
init = 0x001c2000-0x008d1000
available = 0x008d1000-0x03800000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2010 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
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:bf537-stamp:eth0:off
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 47708k/65536k RAM, (7228k init code, 1241k kernel code, 555k data, 1024k dma, 7780k reserved)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (35 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
spi spi0.1: Warning: SPI CPHA not set: Slave Select not under software control!
See Documentation/blackfin/bfin-spi-notes.txt
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
Switching to clocksource bfin_cs_cycles
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 93
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
brd: module loaded
ad_dpot 0-0018: ad5258 64-Position Digital Potentiometer registered
adp5520 0-0032: failed writing 0x80 to 0x00
adp5520 0-0032: failed to write
adp5520 0-0032: failed reading at 0x00
adp5520: probe of 0-0032 failed with error -1
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: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
ad7877 spi0.1: Warning: SPI CPHA not set: Slave Select not under software control!
See Documentation/blackfin/bfin-spi-notes.txt
ad7877 spi0.1: spi0.1: Failed to probe AD7877 Touchscreen
ad714x_captouch 0-002c: I2C read error: -5
ad714x_captouch 0-002c: fail to detect AD714X captouch, read ID is 3934
ad714x_captouch spi0.5: fail to detect AD714X captouch, read ID is 0000
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-11 15:40:12 UTC (920412)
IP-Config: Gateway not on directly connected network.
dma_alloc_init: dma_page @ 0x02930000 - 256 pages at 0x03f00000
Freeing unused kernel memory: 7228k 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.18.4 (2011-11-25 10:05:59 CST) hush - the humble shell
root:/> version^[[58;9R
kernel: Linux release 3.1.0-ADI-2012R1-pre-svn10230, build #25 Tue Nov 29 14:30:08 CST 2011
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI/svn-5686)
user-dist: release svn-10533, build #9 Tue Nov 29 14:29:27 CST 2011
root:/>
*******************************************************************
STEP 3: Start testing.
^[[58;9Rifconfig ethPHY: 0:01 - Link is Up - 100/Full
0 10.100.4.50
root:/> ifconfig set success.
cd /bin
^[[58;9Rroot:/bin> ./ppifcd_test -b 537
^[[58;20Ri2c i2c-0: master transfer timeout
i2c_write_register: error: could not write msg: Operation not permitted
i2c i2c-0: master transfer timeout
i2c_write_register: error: could not write msg: Operation not permitted
i2c i2c-0: master transfer timeout
i2c_read_register: error: could not write msg: Operation not permitted
i2c i2c-0: master transfer timeout
With the same board, 09r1 uImage.ppifcd can work, wo the ppifcd daughter should be ok.
The failing kernel config file is attached.
Follow-ups
--- Mingquan Pan 2011-11-30 03:42:05
ppifcd on bf533 stamp is much better after changing sda and scl ping in stamp.c
but still with PPI error.
## Booting kernel from Legacy Image at 02000000 ...
Image Name: bf533-0.3-3.1.0-ADI-2012R1-pre-s
Created: 2011-11-30 7:32:51 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4094454 Bytes = 3.9 MiB
Load Address: 00001000
Entry Point: 001b8788
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001b8788
Linux version 3.1.0-ADI-2012R1-pre-svn10233 (test@adsl) (gcc version 4.3.5
(ADI/svn-5686) ) #12 Wed Nov 30 15:32:47 CST 2011
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 128MB
Kernel Managed Memory: 128MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0012e9a8
rodata = 0x0012e9a8-0x00190244
bss = 0x00191000-0x001a0ae4
data = 0x001a0ae4-0x001b2000
stack = 0x001b0000-0x001b2000
init = 0x001b2000-0x007b1000
available = 0x007b1000-0x03800000
DMA Zone = 0x07f00000-0x08000000
Hardware Trace active and enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF533 Rev 0.3
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 497 MHz core clock and 82 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50
earlyprintk=serial,uart0,57600 console=ttyBF0,57600
ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf533-stamp:eth0:off
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 48860k/131072k RAM, (6140k init code, 1206k kernel code, 526k
data, 1024k dma, 73316k reserved)
NR_IRQS:81
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 989.18 BogoMIPS (lpj=1978368)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 64 KB (50 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,
regs@ffc00500, dma channel@5
i2c-gpio i2c-gpio.0: using pins 2 (SDA) and 4 (SCL)
Switching to clocksource bfin_cs_cycles
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 95
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART
brd: module loaded
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>
eth0: SMC91C11xFD (rev 1) at 20300300 IRQ 40 [nowait]
eth0: Ethernet addr: 00:e0:22:fe:06:1d
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 07:21:31 UTC (26491)
smc91x smc91x.0: eth0: link down
smc91x smc91x.0: eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf533-stamp, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
dma_alloc_init: dma_page @ 0x026bb000 - 256 pages at 0x07f00000
Freeing unused kernel memory: 6140k 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.18.4 (2011-11-30 14:57:54 CST) hush - the humble shell
root:/> version^[[58;9R
kernel: Linux release 3.1.0-ADI-2012R1-pre-svn10233, build #12 Wed Nov 30
15:32:47 CST 2011
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI/svn-5686)
user-dist: release svn-10545, build #4 Wed Nov 30 15:32:10 CST 2011
root:/>
*******************************************************************
STEP 3: Start testing.
^[[58;9Rifconfig eth0 10.100.4.50
root:/> ifconfig set success.
cd /bin
^[[58;9Rroot:/bin> ./ppifcd_test -b 533
^[[58;20R************* Calculated Times Based on the actual Camera setting
*************
Master Clock = 48 MHz
row_time = 1514 pixel clocks
total_frame_time = 1589700 pixel clocks
total_frame_PiPeI Err3or: PPIc Stat*u*s* *=* *0*X*100*0*
*****************************************************
Read Start: 26500.805602
Read End: 26500.846162
Total Frame Capture Time: 40
Case 1 ...PASS
558 usec
root:/bin> ./^[[58;12Rppifcd_test -b 533 -c3 -t
ERROR:Trigger option unsupported on BF533-STAMP
************* Calculated Times Based on the actual Camera setting
*************
Master Clock = 48 MHz
row_time = 1514 pixel clocks
utst l=f a0eXt1m0 0 038 7P0PpIx lSctoakt
18 usec
*******************************************************************************
Read Start: 26501.081213
uTrtolrFrame:C ptuPePTIme: 3S8t7 uaetP1I6 9E
s = 0X1000
Read Start: 26501.116300
Read End: 26501.149352
Total Frame Capture Time: 33050 usec
PPI Error: PPI Status = 0X1000
Read Start: 26501.149563
Read End: 26501.176583
Total Frame Capture Time: 27018 usec
root:/bin> ^[[58;12R
Last passed test result is not found!!
--- Scott Jiang 2011-12-11 22:02:50
for 533, you should follow
https://docs.blackfin.uclinux.org/doku.php?id=frame_capture_device.
for 537, no problem.
--- Vivi Li 2011-12-12 04:15:38
537 is OK, bf533-stamp still get ppi error.
--- Sonic Zhang 2011-12-13 00:02:39
add -p to the command for bf533 packed mode PPI.
--- Vivi Li 2011-12-13 01:06:20
Need to specify pack mode 1 for bf533-stamp, so run command like
"ppifcd-test -p 1 -b 533".
pack mode is 0 for bf537-stamp.
Fixed in test script.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.ppifcd.bf533 application/octet-stream 34157 Mingquan Pan
config.ppifcd application/octet-stream 35988 Mingquan Pan