[#5440] pictureflow doesn't work
Submitted By: Vivi Li
Open Date
2009-08-13 21:55:11 Close Date
2010-02-22 04:14:57
Priority:
Medium Assignee:
Barry Song
Status:
Closed Fixed In Release:
N/A
Found In Release:
2009R1-RC6 Release:
Category:
Tests Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.1-09r1_rc9
App binary format:
N/A
Summary: pictureflow doesn't work
Details:
pictureflow doesn't work in fdpic or flat format, while qt examples can work alright.
No pictures show on screen.
Bellow is the log for bf527:
--
U-Boot 2008.10-svn1982 (ADI-2009R1-rc3) (Jul 26 2009 - 20:15:27)
CPU: ADSP bf527-0.0 (Detected Rev: 0.2) (parallel flash boot)
Board: ADI BF527 EZ-Kit board
Support: http://blackfin.uclinux.org/
Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: 00:E0:22:FE:BF:81
Hit any key to stop autoboot: 0
bfin> run ramboot
Using Blackfin EMAC device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'uImage'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#####################################################
done
Bytes transferred = 8409278 (8050be hex)
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1-svn71
Created: 2009-08-14 13:39:01 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 8409214 Bytes = 8 MB
Load Address: 00001000
Entry Point: 001cf920
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001cf920
Linux version 2.6.28.10-ADI-2009R1-svn7171 (test@uboot30-527ezkit) (gcc version 4.1.2 (ADI svn)) #121 Fri Aug 14 13:38:44 GMT 209
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00135c80
rodata = 0x00135c80-0x0019a994
bss = 0x0019b000-0x001ac180
data = 0x001ac180-0x001c2000
stack = 0x001c0000-0x001c2000
init = 0x001c2000-0x00f53000
available = 0x00f53000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 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: 16001
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 if
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Linux version 2.6.28.10-ADI-2009R1-svn7171 (test@uboot30-527ezkit) (gcc version 4.1.2 (ADI svn)) #121 Fri Aug 14 13:38:44 GMT 209
Linux version 2.6.28.10-ADI-2009R1-svn7171 (test@uboot30-527ezkit) (gcc version 4.1.2 (ADI svn)) #121 Fri Aug 14 13:38:44 GMT 209
bootconsole [early_shadow0] enabled
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
early printk enabled on early_BFuart0
Board Memory: 64MB
Board Memory: 64MB
Kernel Managed Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
Memory map:
fixedcode = 0x00000400-0x00000490
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00135c80
text = 0x00001000-0x00135c80
rodata = 0x00135c80-0x0019a994
rodata = 0x00135c80-0x0019a994
bss = 0x0019b000-0x001ac180
bss = 0x0019b000-0x001ac180
data = 0x001ac180-0x001c2000
data = 0x001ac180-0x001c2000
stack = 0x001c0000-0x001c2000
stack = 0x001c0000-0x001c2000
init = 0x001c2000-0x00f53000
init = 0x001c2000-0x00f53000
available = 0x00f53000-0x03eff000
available = 0x00f53000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Hardware Trace Active and Enabled
Boot Mode: 1
Boot Mode: 1
Reset caused by Software reset
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.2
Compiled for ADSP-BF527 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 if
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 if
Configuring Blackfin Priority Driven Interrupts
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
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: 48248k/65536k RAM, (13892k init code, 1235k kernel code, 561k data, 1024k dma, 572k reserved)
Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)
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 (42 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 6.0, pio, host, debug=0
musb_hdrc: USB Host mode controller at ffc03800 using PIO, IRQ 59
musb_hdrc musb_hdrc.0: MUSB HDRC host driver
musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
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 94
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
Driver 'sd' needs updating - please use bus_type methods
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-05 10:03:11 UTC (381791)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf527-ezkit, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 13892k freed
dma_alloc_init: dma_page @ 0x00f4f000 - 256 pages at 0x03f00000
usb 1-1: new low speed USB device using musb_hdrc and address 2
usb 1-1: configuration #1 chosen from 1 choice
input: HID 413c:3010 as /devices/platform/musb_hdrc.0/usb1/1-1/1-1:1.0/input/input0
generic-usb 0003:413C:3010.0001: input: USB HID v1.00 Mouse [HID 413c:3010] on usb-musb_hdrc.0-1/input0
PHY: 0:01 - Link is Up - 100/Full
_____________________________________
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 - https://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.4 (2009-08-14 11:59:44 GMT) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/>
root:/> modprobe bfin-t350mcqb-fb
bfin-t350mcqb: 320x240 24-bit RGB FrameBuffer initializing...
root:/> mkdir media
root:/> mv picts/ media/
root:/> cd media/picts/
root:/media/picts> ls
518oZl8ckYL._SS500_.jpg
51AEQMHTB6L._SL500_BO2,204,203,200_PIlitb-dp-500-arrow,TopRight,45,-64_OU01_AA240_SH20_.jpg
51GnayRkl2L._SS500_.jpg
51MWeGhM4TL._SL500_BO2,204,203,200_PIsitb-dp-500-arrow,TopRight,45,-64_OU01_AA240_SH20_.jpg
51ggk68gnRL._SL500_BO2,204,203,200_PIsitb-dp-500-arrow,TopRight,45,-64_OU01_AA240_SH20_.jpg
51piHVL7LML._SS500_.jpg
51s3KVMbdYL._SS500_.jpg
51yg2wU0NBL._SS500_.jpg
ref=sib_dp_pt
root:/media/picts> pictureflow -qws
(No picture shows up on lcd screen)
--
Follow-ups
--- Sonic Zhang 2009-08-17 00:37:20
Not a bug. I can run see the picture on bf548-ezkit.
--- Vivi Li 2009-08-20 05:24:02
It can work for fdpic mode on bf527-ezkit, but still fails for flat mode.
--- Vivi Li 2009-08-21 00:36:39
548-ezkit:
fdpic: fail, nothing shows up
flat: fail, nothing shows up
527-ezkit:
fdpic: ok
flat: fail, nothing shows up
537-stamp:
fdpic: ok but out of memory
flat: fail, nothing shows up
--- Barry Song 2009-12-22 22:59:16
For fdpic, if there are many pictures, running pictureflow at the first time,
memory can be exhausted and get pages will fail.
For flat, jpeg doesn't work. bmp and png can work. And same problems can happen
for memory alloc if there are too many pictures.
--- Barry Song 2009-12-22 23:03:01
memory outage for many pictures:
root:/media/picts> pictureflow -qws
pictureflow: page allocation failure. order:8, mode:0x40d0
Hardware Trace:
0 Target : <0x00004bcc> { _dump_stack + 0x0 }
Source : <0x00030480> { ___alloc_pages_internal + 0x1b4 } CALL
pcrel
1 Target : <0x00030480> { ___alloc_pages_internal + 0x1b4 }
Source : <0x0000f112> { _printk + 0x16 } RTS
2 Target : <0x0000f10e> { _printk + 0x12 }
Source : <0x0000f9b2> { _vprintk + 0x132 } RTS
3 Target : <0x0000f9a6> { _vprintk + 0x126 }
Source : <0xffa00be0> { __common_int_entry + 0xcc }
4 Target : <0xffa00b7e> { __common_int_entry + 0x6a }
Source : <0xffa009d0> { _return_from_int + 0x58 }
5 Target : <0xffa009d0> { _return_from_int + 0x58 }
Source : <0xffa009a6> { _return_from_int + 0x2e }
6 Target : <0xffa00978> { _return_from_int + 0x0 }
Source : <0xffa00b7a> { __common_int_entry + 0x66 }
7 Target : <0xffa00b78> { __common_int_entry + 0x64 }
Source : <0xffa0030a> { _asm_do_IRQ + 0x62 }
8 Target : <0xffa00302> { _asm_do_IRQ + 0x5a }
Source : <0x00012f70> { __local_bh_enable + 0x40 } RTS
9 Target : <0x00012f30> { __local_bh_enable + 0x0 }
Source : <0x00013058> { ___do_softirq + 0x9c } JUMP.L
10 Target : <0x00013050> { ___do_softirq + 0x94 }
Source : <0x00013034> { ___do_softirq + 0x78 } IF !CC JUMP
11 Target : <0x00013016> { ___do_softirq + 0x5a }
Source : <0x0001610e> { _run_timer_softirq + 0x82 } RTS
12 Target : <0x000160a0> { _run_timer_softirq + 0x14 }
Source : <0x00021290> { _hrtimer_run_pending + 0x84 } RTS
13 Target : <0x00021284> { _hrtimer_run_pending + 0x78 }
Source : <0x00021232> { _hrtimer_run_pending + 0x26 } IF !CC JUMP
14 Target : <0x0002120c> { _hrtimer_run_pending + 0x0 }
Source : <0x0001609c> { _run_timer_softirq + 0x10 } CALL pcrel
15 Target : <0x0001608c> { _run_timer_softirq + 0x0 }
Source : <0x00013014> { ___do_softirq + 0x58 } CALL (P2)
Stack info:
SP: [0x024f9df8] <0x024f9df8> /* kernel dynamic memory */
FP: (0x024f9df4)
Memory from 0x024f9df0 to 024fa000
024f9df0: 024f9df8 (00000000)[00030458]<00030484> 03d84600 00000000
000240d0 03d847e8
024f9e10: 00000008 000040d0 00000001 00000048 024f8000 024f8000 00000000
000240d0
024f9e30: 024f8000 00000010 00000000 00000000 00000000 00000000 00560680
<000305ae>
024f9e50: 00000000 000f5000 000f5000 00000004 04000021 00000000 00000003
<00037b40>
024f9e70: 00000000 00000004 00000000 <00037d58> 4b3075b5 00000000
00000000 04000021
024f9e90: 00000000 00000000 00000000 00000073 00000000 005616a0 00000001
00001000
024f9eb0: 00001000 0267f294 <000038fc> 00000000 000f5000 024f1940
024f8000 04000021
024f9ed0: 00000000 00000003 00001000 00000001 1ab3f000 00000003 04000021
00000000
024f9ef0: ffa00844 000038b4 000000c0 00000000 ffffe000 00000000 00000000
026c80c8
024f9f10: 023f2850 00000001 04000021 00000000 00000000 0178d46a 00008000
00002000
024f9f30: 00000000 024fa000 0178d46a 0178d46a <017af394> ffa00ecc
02003025 017c70d7
024f9f50: 0179f7cf 017c70ac 0179f7ce 00000000 00000000 00000000 00000000
00000000
024f9f70: 00000000 005a0230 005a06c8 005a0ac8 00443378 00000000 00000000
00000000
024f9f90: 00000000 00000000 016b9bdf ffffadfd 00000008 00441ba8 00000090
00000490
024f9fb0: 00000000 <0267f288> 0267f294 00000000 024f1940 024f1940
04000021 00000000
024f9fd0: 000000c0 024f15b8 002ba208 00000000 00000000 04000021 00000003
000f5000
024f9ff0: 00000000 00000000 000000c0 00000006
Return addresses in stack:
frame 1 : <0x00030458> { ___alloc_pages_internal + 0x18c }
address : <0x00030484> { ___alloc_pages_internal + 0x1b8 }
address : <0x000305ae> { ___get_free_pages + 0x1e }
address : <0x00037b40> { _do_mmap_pgoff + 0x3a4 }
address : <0x00037d58> { _do_mmap_pgoff + 0x5bc }
address : <0x000038fc> { _sys_mmap2 + 0x48 }
address : <0x017af394> [ /lib/libc.so.0 + 0x2f394 ]
address : <0x0267f288> [ pictureflow + 0x1f288 ]
--- Barry Song 2009-12-23 05:04:08
Not a bug for flat since jpeg is a plugin in qt and we don't support plugin. You
can use png or bmp to replace.
For fdpic, I only saw a memory alloc fail issue. Since you need increase
EXT2_BLOCKS much to pass the compiling for QT. You can de-select EXT2 in kernel
directly.
It is possible we can let QT support plugin by things like Q_IMPORT_PLUGIN(),
but it seems we still need to give some patches to QT for blackfin. So I start a
task for this.
--- Vivi Li 2010-02-22 04:14:08
FDPIC works if memory is big enough.
Close this bug.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.qt.flat.user application/octet-stream 45574 Vivi Li
config.qt.flat application/octet-stream 39193 Vivi Li