2011-06-05 01:25:07 OV9566 - BF532, error v4l_test: page allocation failure
Sergio Morales (COLOMBIA)
Message: 101002
Regards,
I'm trying to work with OV9655 sensor on a card (based in BF533-stamp) with a chip blackfin BF532, connect the PPI was just like the BF533-STAMP schemes and select SDA =GPIO_PF9 and SCL = GPIO_PF9 .
I want to get a picture from this code: v4l_test.c, but when connecting I get errors. Attached the boot of the card, connection to / dev/video0 and the error
PD1: A little question: detected client on address should be 0x30, 0x60 or which?
PD2: I use blackfin-linux-dist-2010R1-RC5, for PPI_CLK im using a 50Mhz Oscillator
Thanks in advance
BOOT:
U-Boot 2010.06 (ADI-2010R1-RC2) (Jan 30 2011 - 00:00:49)
CPU: ADSP bf533-0.3 (Detected Rev: 0.5) (spi flash boot)
Board: emQbit ECB-BF532 board
Support: wiki.linuxencaja.net/wiki/ECB-BF532
Clock: VCO: 442.368 MHz, Core: 442.368 MHz, System: 147.456 MHz
RAM: 32 MiB
Flash: ## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB
0 Bytes
SF: Detected M25P32 with page size 256, total 4 MiB
In: serial
Out: serial
Err: serial
KGDB: [on serial] ready
Hit any key to stop autoboot: 0
bfin>
bfin>
bfin> loady 0x1000000
## Ready for binary (ymodem) download to 0x01000000 at 115200 bps...
C(SOH)/0(STX)/0(CAN) packets, 5 retries
## Total Size = 0x002f49ac = 3099052 Bytes
bfin>
bfin> bootm 0x1000000
## Booting kernel from Legacy Image at 01000000 ...
Image Name: bf533-2.6.34.7-ADI-2010R1
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 3098988 Bytes = 3 MiB
Load Address: 00400000
Entry Point: 0054babc
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0054babc
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 880.64 BogoMIPS (lpj=1761280)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Instruction SRAM: 32 KB (19 KB free)
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_base@ffc00500, dma 5
Switching to clocksource bfin_cs_cycles
JFFS2 version 2.2. (NAND) � 2001-2006 Red Hat, Inc.
msgmni has been set to 39
io scheduler noop registered
io scheduler cfq registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART
brd: module loaded
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-gpio i2c-gpio.0: using pins 9 (SDA) and 8 (SCL)
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
mmc_spi spi0.4: ASSUMING SPI bus stays unshared!
mmc_spi spi0.4: ASSUMING 3.2-3.4 V slot power
mmc_spi spi0.4: SD/MMC host mmc0, no DMA, no WP, no poweroff
rtc-bfin rtc-bfin: setting system clock to 1971-06-16 16:29:26 UTC (45937766)
dma_alloc_init: dma_page @ 0x0166b000 - 512 pages at 0x01e00000
Freeing unused kernel memory: 4936k freed
sh: can't execute 'hostname': No such file or directory
mmc_spi spi0.4: can't change chip-select polarity
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card on SPI
mmcblk0: mmc0:0000 SU01G 968 MiB
mmcblk0:
p1
sh: can't execute 'ifconfig': No such file or directory
Linux Pinguin Logo
Have a lot of fun...
BusyBox v1.16.2 (2011-06-04 11:27:49 COT) hush - the humble shell
root:/>
root:/> modprobe blackfin-cam
Linux video capture interface: v2.00
OV9655: detected client on address 0x30
OV9655: V4L driver Blackfin CMOS Camera now ready
root:/> mknod /dev/video0 c 81 0
root:/> chmod 666 /dev/video0
root:/> ls /dev/video0
/dev/video0
root:/> lrz
root:/> g to receive.**B0100000023be50
root:/>
root:/> ls
bin etc init mnt root sys usr var
dev home lib proc sbin tmp v4l_test
root:/> chmod 777 v4l_test
root:/> ./v4l_test
usage: video_cap [-r <frame_rate>] [-o <output file>]using default setting
capture rate: 30, height: 1024, widht: 1280
open /dev/video0
v4l_test: page allocation failure. order:10, mode:0x40d0
Hardware Trace:
0 Target : <0x004d174c> { _dump_stack + 0x0 }
Source : <0x00432d52> { ___alloc_pages_nodemask + 0x3ba } JUMP.L
1 Target : <0x00432d52> { ___alloc_pages_nodemask + 0x3ba }
Source : <0x004d1844> { _printk + 0x14 } RTS
2 Target : <0x004d1840> { _printk + 0x10 }
Source : <0x0040fc5a> { _vprintk + 0x2da } RTS
3 Target : <0x0040fc4e> { _vprintk + 0x2ce }
Source : <0xffa08cc2> { __common_int_entry + 0xda } RTI
4 Target : <0xffa08c60> { __common_int_entry + 0x78 }
Source : <0xffa08a9c> { _return_from_int + 0x58 } RTS
5 Target : <0xffa08a9c> { _return_from_int + 0x58 }
Source : <0xffa08a72> { _return_from_int + 0x2e } IF !CC JUMP pcrel
6 Target : <0xffa08a44> { _return_from_int + 0x0 }
Source : <0xffa08c5c> { __common_int_entry + 0x74 } JUMP.L
7 Target : <0xffa08c5a> { __common_int_entry + 0x72 }
Source : <0xffa0834c> { _asm_do_IRQ + 0x80 } RTS
8 Target : <0xffa0833c> { _asm_do_IRQ + 0x70 }
Source : <0x00412cc6> { __local_bh_enable + 0x72 } RTS
9 Target : <0x00412cb4> { __local_bh_enable + 0x60 }
Source : <0x00412c96> { __local_bh_enable + 0x42 } IF CC JUMP pcrel (BP)
10 Target : <0x00412c86> { __local_bh_enable + 0x32 }
Source : <0x00412c68> { __local_bh_enable + 0x14 } IF CC JUMP pcrel (BP)
11 Target : <0x00412c54> { __local_bh_enable + 0x0 }
Source : <0x004132de> { ___do_softirq + 0xc2 } JUMP.L
12 Target : <0x004132d6> { ___do_softirq + 0xba }
Source : <0x0040d3d8> { _try_to_wake_up + 0x120 } RTS
13 Target : <0x0040d3d0> { _try_to_wake_up + 0x118 }
Source : <0x0040d3c2> { _try_to_wake_up + 0x10a } IF CC JUMP pcrel (BP)
14 Target : <0x0040d3b6> { _try_to_wake_up + 0xfe }
Source : <0x00409482> { _check_preempt_wakeup + 0x142 } RTS
15 Target : <0x0040947c> { _check_preempt_wakeup + 0x13c }
Source : <0x004093b6> { _check_preempt_wakeup + 0x76 } IF !CC JUMP pcrel (BP)
Stack info:
SP: [0x0103bbec] <0x0103bbec> /* kernel dynamic memory */
FP: (0x0103bca8)
Memory from 0x0103bbe0 to 0103c000
0103bbe0: 000040d0 0103bbec 00000040 [00000000] 00432d56 0103cc00 00000000 000040d0
0103bc00: 0103cde0 0000000a 000040d0 00000001 00000040 005412fc 00000000 0103a008
0103bc20: 00000010 00000050 00000040 0103a000 0103a000 00000010 000240d0 00000000
0103bc40: 00541d2c 0103cc00 0000000d 005412fc 00000000 00000000 00000000 005412fc
0103bc60: 00000000 0043be56 01000f00 01002a20 01000f00 00000000 00000020 000000d0
0103bc80: 00000010 <004081b6> 00537bdc 00541d28 00000000 0043bfbe 00000000 00000001
0103bca0: ffa0833c ffc00014 (00000000)<ffa0830c> 01000f00 0043c1ae 01002a20 010016a0
0103bcc0: 01002a30 01002a28 00000001 00200200 00000000 018093bc 0042e4d8 00000000
0103bce0: 00000000 0100d2a0 0043c2c2 01000f00 0107fd40 0107fd40 00000000 000000d0
0103bd00: 0000ffff 017ce000 0044037a 000000d0 ffa09784 <00868724> 0086999c 00000000
0103bd20: 00866c04 00000002 00000000 0100d2a0 004b326a 00000000 7ffff000 00443e00
0103bd40:<00838486> 00866c00 00440512 00000000 0167c090 <004405b0> 01653820 0167c090
0103bd60: 00000000 00000000 0103be30 01335534 0103bd74 00000000 <0043d01c> 0107fd40
0103bd80: 0167c090 004404ec 00000000 017fdad4 00443cda 0167c090 00000026 0103be98
0103bda0: 0043d1a0 0107fd40 0103be30 00000026 00000000 00000000 00445206 0103be30
0103bdc0: 014ce8b4 00000000 01019840 00444fa2 00000026 00000002 00000003 0103be98
0103bde0: 00446844 ffffff9c 00446844 ffffff9c 0103be30 0103be90 00000003 00000002
0103be00: 000002e7 004ab210 0000000a 00000026 00000000 017ce000 0103a000 0103be44
0103be20: 0103a000 00000000 00000003 00000000 0100d2a0 017fdad4 d9d3cd40 00000006
0103be40: 017ce005 0100d7a0 01011794 00000101 00000000 00000000 00000011 01809538
0103be60: 00000011 004a9850 017b80b0 00000011 00000000 00550b24 01b8adcc 00000003
0103be80: 00000000 0107fd40 01b8abc0 004453ca 0100d2a0 017fdad4 01b8adcc 0043ce48
0103bea0: ffffff9c 00000005 01809298 00000002 00000003 00000000 017ce000 ffffff9c
0103bec0: 017ce000 0043ebac 00000000 00000000 01809538 0043cf0c 0043cef4 00000005
0103bee0: 01809298 00000002 ffffe000 018072d0 01800370 00000000 00000000 <ffa088fe>
0103bf00: 00000000 <ffa088fe> 00000000 ffffe000 00820228 0000fffe 0180740c 01800370
0103bf20: 018072d0 01803838 00008000 00000000 00000000 0103c000 01803838 01803838
0103bf40: 01800474 ffa090a4 02002061 01805991 01804649 01805946 01804646 00000000
0103bf60: 00000000 00000000 00000000 00000000 00000000 00000000 7ffff000 000000c0
0103bf80: 00000137 00000000 00000000 00000000 00000000 0000005b 00001802 00000001
0103bfa0: fffffffc 00000006 00000003 00551250 0180740c 01b8adc0 01b8adcc 00000000
0103bfc0: 00000001 01809298 00000001 00000001 00000005 00000000 01b8af80 018072d0
0103bfe0: 01800370 0180740c 00000000 00000002 0180740c 0180740c 00000005 00000006
Return addresses in stack:
address : <0x004081b6> { _bfin_demux_gpio_irq + 0x3e }
frame 1 : <0xffa0830c> { _asm_do_IRQ + 0x40 }
address : <0x00868724> { :blackfin_cam:_bcap_get_unmapped_area + 0x604 }
address : <0x00838486> { :videodev:_video_device_release + 0x1ae }
address : <0x004405b0> { _chrdev_open + 0xc4 }
address : <0x0043d01c> { ___dentry_open + 0xfc }
address : <0xffa088fe> { _system_call + 0x6a }
address : <0xffa088fe> { _system_call + 0x6a }
Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:0 inactive_anon:0 isolated_anon:0
active_file:0 inactive_file:2 isolated_file:0
unevictable:1385 dirty:0 writeback:0 unstable:0
free:2939 slab_reclaimable:165 slab_unreclaimable:273
mapped:0 shmem:0 pagetables:0 bounce:0
DMA free:11756kB min:4096kB low:5120kB high:6144kB active_anon:0kB inactive_anon:0kB active_file:0o
lowmem_reserve[]: 0 0 0
DMA: 21*4kB 5*8kB 3*16kB 2*32kB 2*64kB 3*128kB 1*256kB 1*512kB 2*1024kB 2*2048kB 1*4096kB 0*8192kBB
1387 total pagecache pages
7680 pages RAM
1420 pages reserved
1265 pages shared
2036 pages non-shared
: couldn't allocate dma buffer.
cannot open /dev/video0
root:/>
root:/>
v4l_test_OV9655.zip
QuoteReplyEditDelete
2011-06-06 21:59:25 Re: OV9566 - BF532, error v4l_test: page allocation failure
Aaron Wu (CHINA)
Message: 101012
1, The driver already said it's 0x30?
2, Did you write the test code on yourself. Noticed that you are trying to capture a 1024*1280@30fps and get a memory allacation fail. Will this also happen if you set it to a smaller capture size?
QuoteReplyEditDelete
2011-06-07 23:03:18 Re: OV9566 - BF532, error v4l_test: page allocation failure
Sergio Morales (COLOMBIA)
Message: 101060
thanks for response,
1. yes is 0x30, is fine
2. I tested to obtain an image resolution 320 * 240 with 2 frame rate, that way I could solve that problem. But now the problem is with v4l_test especially when try to run this function
while (ioctl (devfd, VIDIOCSYNC, & frame_id) <0 & &
(errno == EAGAIN | | errno == EINTR));
ptr + = vbuf vmbuf.offsets [frame_id]
The Error is this
root: /> ./v4l_test
usage: video_ca [-r fram._rat.>] [. o <outputsfilei] using degault sett3ng20x240 window
Starting SRV1 V4L_TEST
capture rate: 2, height: 240, widht: 320
open / dev/video0
Blackfin Camera CMOS device found. (maxsize = 1280x1024)
default picture properties: brightness = 7168, hue = 353, color = 7392, contrast = 353, depth = 16 palette = 9.
Trying to capture size to 320x240 in September
September to capture size 320x240
Frame size: 153600
For cycle start
Start Capture
Could not open channel UART1
then freezes and the program not response :-/
how I can fix the error?
QuoteReplyEditDelete
2011-06-08 00:52:43 Re: OV9566 - BF532, error v4l_test: page allocation failure
Aaron Wu (CHINA)
Message: 101061
Are you sure the log you posted match the code you attached well? Looks like for some of the log I can't find them either in your app code or the kernel.
QuoteReplyEditDelete
2011-06-08 17:47:00 Re: OV9566 - BF532, error v4l_test: page allocation failure
Sergio Morales (COLOMBIA)
Message: 101086
Other source that i use was the driver blackfin_cam.c/.h, code attached files. In that sources is defined VIDIOCSYNC
blackfin_cam.h
blackfin_cam.c
QuoteReplyEditDelete
2011-06-10 06:09:00 Re: OV9566 - BF532, error v4l_test: page allocation failure
Aaron Wu (CHINA)
Message: 101178
For the error information reported in your last post, did you post the actual log info or just a brief of it? Please post the original one so we may grep the source to find where the issue is.
QuoteReplyEditDelete
2011-06-15 22:32:24 Re: OV9566 - BF532, error v4l_test: page allocation failure
Sergio Morales (COLOMBIA)
Message: 101291
Hi Aaron, I am currently trying new methods to obtain only ONE image from OV9655 sensor with a card based on the BF533-stamp (using PPI port for the BF532)
I was trying to vidcat (not compile), ffmpeg (not compile) and now I'm trying with SRV1 y SRV2 codes (attached). Then I want to do is:
1.I want to obtain an "dummy" imagen by using the program "SRV1.c" But i get this:
root: /> ./srv1
dummy
Encoding image ...
done.
# # IMJ5Rbasura
test
test
test
test
test
root: />
So then I tried with:
root: /> ./srv1>> image.jpg
Then I read the image:
Cheche Cheche-kde @: ~ / Downloads / folder $ hexdump-C image.jpg
00000000 64 75 6d 6d 79 0a 45 63 6f 6e 64 69 6e 67 20 69 | dummy.Encoding i |
00000010 6d 61 67 65 2e 2e 2e 0a 64 6f 6e 65 2e 0a 23 23 | ..##| mage done ....
The 4th 00000020 49 4d 35 52 0e 00 00 62 61 73 75 72 61 0a ff | IMJ5R ... garbage .. |
00000030 70 72 75 65 62 61 0a d8 70 72 75 65 62 61 ff 0a | test test .. .. |
00000040 70 72 75 65 62 61 db 0a 70 72 75 65 62 61 00 0a | test test .. .. |
*
00000050
2. Then I try to get an image from the sensor using "SRV2.c" program, and then I get this:
root: /> ./srv1
Starting SR 1 V4L TEST 320x240 using window ...
Capture rate: 1, height: 240, widht: 320
open / dev/video0
OK Open
Blackfin found OV9655 CMOS Camera device. (Maxsize = 320x240)
Trying to capture size to 320x240 in September
September to capture size 320x240
Frame size: 153600
Closing cycle
Done!
End do-while cycle
Encoder sucessfull exit!
root: />
Then try to keep the image by:
root: /> ./srv1> imagen.jpeg
320x240 using window ...
root: />
And reading the generated file imagen.jpeg get:
$ Hexdump-C imagen.jpeg
00000000 49 6e 69 63 69 61 6e 64 6f 20 53 52 56 31 20 56 | Starting SRV1 V |
00000010 5f 34 4c 54 45 53 54 20 0a 63 61 70 74 75 72 65 | 4L_TEST. Capture |
00000020 20 72 61 74 65 2c the 3rd 20 31 20 68 65 69 67 68 74 | Rate: 1, height |
The 3rd 00000030 20 32 34 30 2c 20 77 69 64 68 74 20 33 32 the 3rd |: 240, widht: 32 |
00000040 0a 30 6f 6e 70 65 20 64 65 76 2f 2f 76 69 64 65 | 0.open / dev / video |
00000050 0a 30 6f 6e 70 65 4f 4f 4b 20 0a 66 6f 6e 75 64 | o0.Open OK.found |
00000060 20 42 6c 61 63 6b 66 69 6e 20 43 4d 4f 53 20 43 | Blackfin CMOS C |
00000070 61 6d 65 72 61 20 4f 56 39 36 35 35 20 64 65 76 | amera OV9655 dev |
00000080 69 63 65 2e 20 28 6d 61 78 73 69 33 32 3d 65 the 7th | ice. (Maxsize = 32 |
00000090 30 78 32 34 30 29 0a 74 72 79 69 6e 67 20 74 6f | 0x240). Trying to |
000000a0 20 73 65 74 20 63 61 70 74 75 72 65 20 73 69 7A | September capture siz |
000000b0 65 6f 20 74 20 33 32 30 78 32 34 30 0a 63 61 70 | e to 320x240.cap |
000000c0 74 75 72 65 20 73 69 the 7th 65 20 73 65 74 20 74 6f | September ture to size |
000000d0 20 33 32 30 78 32 34 30 46 72 61 6d 0a 65 20 73 | 320x240.Frame s |
The 3rd the 7th 69 000000e0 65 20 31 35 33 36 30 30 43 65 72 72 0a | ize: 153600.Cerr |
000000f0 61 64 6f 6e 20 63 6f 69 63 6c 0a 44 6f 6e 65 21 |'m ciclo.Done! |
00000100 20 0a 46 69 6e 20 63 69 63 6c 6f 20 64 6f 2d 77 |. End do loop-w |
00000110 0a 68 69 6c 65 63 6f 6e 45 64 65 72 20 65 78 69 | hile.Encoder demanding |
00000120 74 20 73 75 63 65 73 73 66 75 6c 6c 21 0a | t sucessfull!. |
0000012e
$
Thats is the problem i dont get any usefull image, can you advise me that I can do?
Thanks in advance
SRV2.zip
SRV1.zip
QuoteReplyEditDelete
2011-06-15 23:05:05 Re: OV9566 - BF532, error v4l_test: page allocation failure
Aaron Wu (CHINA)
Message: 101293
We have no idea about your SRV1 and SRV2 programs, but what's your final goal? If it's about video/image caputering why not try the ffmpeg directly we provided. There are a bunch of usage examples on docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:ffmpeg. Suggest you to do the job by reference to these examples, your bf533 CPU may be not that powerful as bf561, 548 documented in the link, so you may want to start from lower resolution/frame rate first.
QuoteReplyEditDelete
2011-06-16 15:17:13 Re: OV9566 - BF532, error v4l_test: page allocation failure
Sergio Morales (COLOMBIA)
Message: 101326
Ok, I've been trying with ffmpeg on the card to load the image but get the following error:
bfin> loady 0x1000000
# # Ready for binary (ymodem) download to 0x01000000 at 115200 bps ...
CX) / 0 (CAN) packets, 10 retries
# # Total Size = 5235049 Bytes = 0x004fe169
BFIN> 0x1000000 bootm
# # Booting kernel from Legacy Image at 01000000 ...
Image Name: bf532-0.5-2.6.39.1-ADI-2011R1-pr
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 5234985 Bytes = 5 MiB
Load Address: 00400000
Entry Point: 0051815c
Verifying checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0051815c
console [ttyBF0] enabled, disabled bootconsole
Calibrating delay loop ... 878.59 BogoMIPS (lpj = 1757184)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Instruction SRAM: 32 KB (19 KB free)
Blackfin DMA Controller
stamp_init (): Registering device resources
bio: create slab <bio-0> at 0
BFIN-spi-spi.0 BFIN: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_5
i2c-gpio i2c-gpio.0: using pins 9 (SDA) and 8 (SCL)
Switching to clocksource bfin_cs_cycles
swapper: page allocation failure. order: 11, mode: 0x200d2
Hardware Trace:
0 Target: <0x004b2570> {_dump_stack + 0x0}
Source: <0x00437324> {___alloc_pages_nodemask + 0x4a0} CALL pcrel
1 Target: <0x00437324> {___alloc_pages_nodemask + 0x4a0}
Source: <0x004b2734> {+ 0x14} _printk RTS
2 Target: <0x004b2730> {+ 0x10} _printk
Source: <0x0040fdd0> {RTS} _vprintk + 0x2fc
3 Target: <0x0040fdc4> {_vprintk + 0x2f0}
Source: <0xffa08ca2> {RTI} __common_int_entry + 0xda
4 Target: <0xffa08c40> {+ 0x78} __common_int_entry
Source: <0xffa08a7c> {+ 0x58} _return_from_int RTS
5 Target: <0xffa08a7c> {+ 0x58} _return_from_int
Source: <0xffa08a52> 0x2e} {_return_from_int + IF! CC JUMP pcrel
6 Target: <0xffa08a24> {_return_from_int + 0x0}
Source: <0xffa08c3c> {+ 0x74} JUMP.L __common_int_entry
7 Target: <0xffa08c3a> {+ 0x72} __common_int_entry
Source: <0xffa0834c> {+ 0x80} _asm_do_IRQ RTS
8 Target: <0xffa0833c> {+ 0x70} _asm_do_IRQ
Source: <0x00412dcc> {+ 0x70} ___local_bh_enable RTS
9 Target: <0x00412dbe> {+ 0x62} ___local_bh_enable
Source: <0x00412da0> {+ 0x44} ___local_bh_enable IF CC JUMP pcrel (BP)
10 Target: <0x00412d90> {+ 0x34} ___local_bh_enable
Source: <0x00412d72> {+ 0x16} ___local_bh_enable IF CC JUMP pcrel (BP)
11 Target: <0x00412d5c> {___local_bh_enable + 0x0}
Source: <0x00413460> 0xe8} {+ JUMP.L ___do_softirq
12 Target: <0x00413454> {} ___do_softirq + 0xdc
Source: <0x00413432> {___do_softirq +} IF CC JUMP 0xba pcrel
13 Target: <0x00413424> {} ___do_softirq + 0xac
Source: <0x0041341e> {___do_softirq +} IF CC JUMP 0xa6 pcrel
14 Target: <0x00413418> 0xa0} {___do_softirq +
Source: <0x00431b24> {+ 0x20} _rcu_bh_qs RTS
15 Target: <0x00431b20> {_rcu_bh_qs + 0x1c}
Source: <0x00431b16> {+ 0x12} _rcu_bh_qs IF CC JUMP pcrel (BP)
Stack info:
SP: [0x0101bd00] <0x0101bd00> / * kernel dynamic memory * /
FP: (0x0101bf8c)
Memory from 0x0101bd00 to 0101c000
0101bd00: [00000000] 00,437,328 00,000,001 00,000,001 01018f00 000200d2 0000000b
0101bd20: 00000001 00000040 0101a000 0101a008 0101a008 00000000 0050e62c
0101bd40: 0050f080 00000000 01068008 00000010 00000001 00000000 000200d2
0101bd60: 0050e62c 00000000 00000000 00000000 0050e62c 0050e62c 0047545th
0101bd80: 0000000b 0040f30c 01221d7c 0101be38 0101bdb4 00,002,068 00,000,000
0101bda0: 00520d18 00000000 00475580 0050f07c 0101be38 01221d7c 01221d7c
0101bdc0: 00,002,068 00,000,000 00,001,846 0040f30c 00412b30 0101bdd4 <00452ec8>
0101bde0: 0040f30c 01151f34 00000008 00002068 01221d7c 000081ed 00000000
0101be00: 00000000 00520d18 01151f34 01151f34 00452f68 00520d00 0044374e
0101be20: 00000000 0040f30c 00002068 00000002 004d41a4 00000004 01221d7c
0101be40: 00000000 45984f00 00520d18 090f55f2 004432ca 0040f30c 45984f00
0101be60: 090f55f2 45984f00 45984f00 01039520 00443856 01039520 00000001
0101be80: 00000060 0044324c 0044387e 01039520 45984f00 00520d54 00520d3c
0101bea0: 00,149,424 00,000,000 00,000,001 0082d7dc 00520d00 00513e64 00520d3c
0101bec0: 39,313,030 30,303,030 00,000,019 4dfa4a00 <00513af8> 00520c68 00520d28>
0101bee0: 00000000 0066e674 00520d28 00520c68 00000000 004b1852 ffa0a944
0101bf00: 00000000 00473160 01050f64 00000000 00000000 01050e14 0101bf60
0101bf20: 005142e4 005142c8 00000000 00000000 00000000 00000000 0052524c
0101bf40: 00000000 0101bf60 00500001 00000000 00000000 00000000 0101bf60
0101bf60: 01050f64 00504f30 0052524c 00000000 00000000 00000000 00472cb0
0101bf80: 00000000 004d3af4 00000124 (00000000) <004000a6> 005142c8 0052524c
0101bfa0: 00000000 00000000 00000000 00000000 00525080 0043160c 005094f0
0101bfc0: 00000000 0051216c 00000000 00000000 00000000 00000000 00525138
0101bfe0: 00000000 00000000
Ffffffff 00000006 00000000 00000000 00000000
Return addresses in stack:
address: <0x00452ec8> {_notify_change + 0xF0}
address: <0x00513af8> {} _unpack_to_rootfs + 0XE0
address: <0x00513af8> {} _unpack_to_rootfs + 0XE0
frame 1: <0x004000a6> {_do_one_initcall + 0xa6}
address <0x00400506> {_kernel_thread_helper + 0x6}
Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon: 0 inactive_anon: 0 isolated_anon: 0
active_file: 0 inactive_file: 0 isolated_file: 0
unevictable: 446 dirty: 0 writeback: 0 unstable: 0
free: 3294 slab_reclaimable: 24 slab_unreclaimable: 65
mapped: 0 shmem: 0 Paget: 0 bounced: 0
DMA free: 13176kB min: 0kB low: 0kB high: 0kB active_anon: 0kB inactive_anon: 0kB act
lowmem_reserve []: 0 0 0
DMA: 2 * 4kB 2 * 8kB 4 * 16kB 3 * 32kB 1 * 64kB 1 * 128kB 0 * 256kB 1 * 512kB 1 * 2 * 1024KB 2048kBB
446 total pages pagecache
RAM 7680 pages
3826 pages reserved
0 pages shared
548 pages non-shared
debug-mmrs: setting up Blackfin MMR debugfs
Has Been msgmni September to 30
io scheduler noop registered (default)
BFIN-uart: Blackfin serial driver
BFIN-uart.0: at MMIO ttyBF0 0xffc00400 (irq = 21) is a BFIN-UART
brd: module loaded
rtc-rtc-BFIN BFIN: rtc core: registered rtc-BFIN as rtc0
i2c / dev entries driver
BFIN-wdt: initialized: timeout = 20 sec (nowayout = 0)
rtc-rtc-BFIN BFIN: setting system clock to UTC 01/01/1970 8:22:58 (30 178)
dma_alloc_init: dma_page @ 0x01b10000 - 512 pages at 0x01e00000
Freeing unused kernel memory: 9784k freed
sh: can not execute 'hostname': No such file or directory
sh: can not execute 'ifconfig': No such file or directory
_____________________________________
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.18.4 (16/06/2011 13:26:46 GMT) hush - humble shell the
root: />
The problem seems to be L1, and L1 could free memory to run ffmpeg? in the configuration options for BF533 stamp I dont get this option:
Network Device Support
Ethernet (10 or 100Mbit)
[ ] Use L1 memory for rx / tx packets
What can I do??
QuoteReplyEditDelete
2011-06-21 03:44:48 Re: OV9566 - BF532, error v4l_test: page allocation failure
Aaron Wu (CHINA)
Message: 101509
For load image error, I don't know what you are tying to do by command "loady 0x1000000", please follow the standard way to load and boot your image, you can find information on our document wiki and on the default u-boot environment variable setting. If still have problem please open a new help thread for this topic.
For ffmeg, I just tried on the blackfin platform, looks like it works fine on my side, I can use the ffmpeg and vide device to caputure the image/video well. Like documented in: docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:v4l_blackfin_camera
QuoteReplyEditDelete
2011-06-23 04:54:13 Re: OV9566 - BF532, error v4l_test: page allocation failure
Scott Jiang (CHINA)
Message: 101606
Hi Sergio,
I suppose you are writing a new driver on blackfin. There are some hints.
1. config kernel load address for booting to 0x100000, and uncached DMA region to 2M in the blackfin processor options menu.
2. I2C_SENSOR_ID should be 8bit address.
3. if your pclk is 50MHz, you must use external frame sync, #undefine USE_ITU656 in your header file, and make sure ppi config correctly according to your frame syncs.