2008-03-05 03:38:19     ffmpeg L1 allocation failed in 2008R1-RC2

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-03-05 03:38:19     ffmpeg L1 allocation failed in 2008R1-RC2

C.C Lu (TAIWAN)

Message: 52074    I use ffmpeg library in BF527-ezkit.

The uClinux kernel is 2008R1-RC2.

When I run the ffmpeg, it catches some errors.

 

root:/> ./ffmpeg

./ffmpeg:561: L1 allocation failed

./ffmpeg:582: can't map '/usr/lib/libavcodec.so.51'

./ffmpeg:561: L1 allocation failed

./ffmpeg:582: can't map '/usr/lib/libavcodec.so.51'

./ffmpeg: can't load library 'libavcodec.so.51'

QuoteReplyEditDelete

 

 

2008-03-05 03:58:57     Re: ffmpeg L1 allocation failed in 2008R1-RC2

Mike Frysinger (UNITED STATES)

Message: 52077    it means you ran out of L1 memory which means you need to look at where things are being allocated ... start with /proc/sram

QuoteReplyEditDelete

 

 

2008-03-05 04:14:33     Re: ffmpeg L1 allocation failed in 2008R1-RC2

C.C Lu (TAIWAN)

Message: 52079    How to modify it ?

 

The context of /proc/sram :

 

root:/> cat /proc/sram

--- L1 Scratchpad     Size  PID State

ffb00000-ffb00008        8    0 ALLOCATED

ffb00008-ffb01000     4088    0 FREE

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

--- L1 Data A         Size  PID State

ff800000-ff800014       20    1 ALLOCATED

ff800014-ff800038       36    1 ALLOCATED

ff800038-ff80005c       36    1 ALLOCATED

ff80005c-ff803eb4    15960   40 ALLOCATED

ff803eb4-ff804000      332    0 FREE

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

--- L1 Data B         Size  PID State

ff900000-ff900320      800   40 ALLOCATED

ff900320-ff904000    15584    0 FREE

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

--- L1 Instruction    Size  PID State

ffa0130c-ffa0c000    44276    0 FREE

ffa020dc-ffa0c000    40740    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

00000000-00000000        0    0 NULL

QuoteReplyEditDelete

 

 

2008-03-05 04:22:44     Re: ffmpeg L1 allocation failed in 2008R1-RC2

Yi Li (CHINA)

Message: 52084    In my case (using BF537-STAMP), the ethernet driver uses L1 data sram for rx/tx buffer, which consumes many L1. You can configure the driver to free some L1 memory (CONFIG_BFIN_MAC_USE_L1).

Attachments

    Outcomes