[#5309] ppifcd fails to run test on bf537 stamp
Submitted By: Mingquan Pan
Open Date
2009-07-03 02:12:03 Close Date
2009-07-05 23:11:39
Priority:
Medium High Assignee:
Michael Hennerich
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
09R1-RC7
App binary format:
N/A
Summary: ppifcd fails to run test on bf537 stamp
Details:
ppifcd fails to run test on bf537 stamp.
It previously use pflag driver, now it has been deleted, should we use gpio instead?
But simply replace pf with gpio still fails to take pictures.
## Booting kernel from Legacy Image at 02000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1-svn69
Created: 2009-07-03 6:06:48 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4632772 Bytes = 4.4 MB
Load Address: 00001000
Entry Point: 0018c594
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0018c594
Linux version 2.6.28.10-ADI-2009R1-svn6911 (test@my-local-machine) (gcc version 4.1.2 (ADI svn)) #48 Fri Jul 3 14:06:34 CST 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-0x001082c0
rodata = 0x001082c0-0x0015a090
bss = 0x0015b000-0x0016c75c
data = 0x0016c75c-0x0017e000
stack = 0x0017c000-0x0017e000
init = 0x0017e000-0x00891000
available = 0x00891000-0x037ff000
DMA Zone = 0x03f00000-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
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: 48000k/65536k RAM, (7244k init code, 1052k kernel code, 472k data, 1024k dma, 7744k 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 (37 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 93
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
PPI: ADSP PPI Frame Capture Driver IRQ:11
simple-gpio: now handling 48 GPIOs: 0 - 47
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
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
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
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 02:26:00 UTC (8760)
Freeing unused kernel memory: 7244k freed
dma_alloc_init: dma_page @ 0x0088e000 - 256 pages at 0x03f00000
_____________________________________
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-06-30 12:31:57 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/>
root:/>
root:/> ppifcd_test -b
ppifcd_test: option requires an argument -- b
Usage: ppifcd_test [-h?vt] [-c count] [-r REG -a REGVALUE] [BMP output filename]
-h? this help
-v print version info
-t user trigger strobe to capture image
-c count repeat count times
-r REG I2C register
-a VAL I2C value
-b STAMP board < 533 | 537 >
root:/> ppifcd_test -b 537
Error: could not write
Error: could not write
Error: could not write
Error: could not read back
Error: could not write
Error: could not read back
Error: could not write
Error: could not read back
Error: could not write
Error: could not read back
************* Calculated Times Based on the actual Camera setting *************
Master Clock = 48 MHz
row_time = 224 pixel clocks
total_frame_time = 0 pixel clocks
total_frame_time = 0 usec
*******************************************************************************
^Croot:/>
root:/>
Follow-ups
--- Michael Hennerich 2009-07-03 05:29:23
Fixed on branch 2009R1
Convert ppifcd_test to use simple-gpio
root:/> modprobe simple-gpio;modprobe bfin_ppifcd;ppifcd_test -b537
simple-gpio: now handling 48 GPIOs: 0 - 47
PPI: ADSP PPI Frame Capture Driver IRQ:11
************* 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_time = 33118 usec
*******************************************************************************
Read Start: 2407.900000
Read End: 2407.984000
Total Frame Capture Time: 84000 usec
root:/>
--- Mingquan Pan 2009-07-05 23:11:39
Yes.fixed. Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found