how to reduce the Framebuffer size

137 views
Skip to first unread message

TsvetanUsunov

unread,
Oct 1, 2012, 6:59:09 AM10/1/12
to linux...@googlegroups.com
Hi
we released A13-MICRO with just 256MB RAM and I do wonder if there is way to reduce the current 32MB framebuffer size to something like 2MB as A13-MICRO have 800x600 VGA and 2MB is enough to keep the framebuffer image
Thanks
Tsvetan

Alejandro Mery

unread,
Oct 1, 2012, 7:10:12 AM10/1/12
to linux...@googlegroups.com
Hi,


On Monday, 1 October 2012 12:59:09 UTC+2, TsvetanUsunov wrote:
Hi
we released A13-MICRO with just 256MB RAM and I do wonder if there is way to reduce the current 32MB framebuffer size to something like 2MB as A13-MICRO have 800x600 VGA and 2MB is enough to keep the framebuffer image

adding command line support for `fbsize=` would work great, assuming we can filter valid resolutions considering this value. It's also important to mention our Mali has a hardcoded need for fbsize=32M so suck argument could only be used when mali support is disabled.

Alejandro 

Henrik Nordström

unread,
Oct 2, 2012, 4:26:22 PM10/2/12
to linux...@googlegroups.com
Yes there is several. But some code cleanup may be needed.

The best for A13-MICRO is probably to make sure the kernel do not
reserve any memory and build with FB_RESERVED_MEM disabled. This will
make the framebuffer allocate it's memory dynamically as needed. But
that code have quite likely not been tested in a long while as most uses
for A1X want both VPU and MALI which both kind of requires reserved
memory.

Regards
Henrik


Alejandro Mery

unread,
Oct 3, 2012, 9:33:37 AM10/3/12
to linux...@googlegroups.com
On 02/10/12 22:26, Henrik Nordstr�m wrote:
I'm attaching an *untested* patch to reserve fb memory only when mali is
enabled, while within the driver it will work just as FB_RESERVED_MEM
was intended.

comments?

regards,
Alejandro Mery
config_fb_sunxi_reserved_mem.diff
Reply all
Reply to author
Forward
0 new messages