DART-6UL 128MB DRAM: Difference between revisions

From Variscite Wiki
m (Eran moved page DART-6UL/DART 6UL 126MB DRAM to DART-6UL 128MB DRAM without leaving a redirect)
(Add category Debian)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{PageHeader|DART-6UL - 128MB DRAM}} {{DocImage|category1=Yocto|category2=Debian}} [[category:DART-6UL]]
= Using LCD display =
= Using LCD display =
On SOMs with 128MB DRAM apply the following patch to the Linux kernel source to fix framebuffer memory allocation:
On SOMs with 128MB DRAM apply the following patch to the Linux kernel source to fix framebuffer memory allocation:
Line 16: Line 17:
         /* Memory allocation for framebuffer */
         /* Memory allocation for framebuffer */
         if (mxsfb_map_videomem(fb_info) < 0)
         if (mxsfb_map_videomem(fb_info) < 0)
</syntaxhighlight>

Latest revision as of 19:35, 6 June 2023

DART-6UL - 128MB DRAM

Using LCD display

On SOMs with 128MB DRAM apply the following patch to the Linux kernel source to fix framebuffer memory allocation:

diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c
index deec998..dd2f481 100644
--- a/drivers/video/fbdev/mxsfb.c
+++ b/drivers/video/fbdev/mxsfb.c
@@ -1249,7 +1249,7 @@ static int mxsfb_init_fbinfo(struct mxsfb_info *host)
 
        fb_info->fix.line_length =
                fb_info->var.xres * (fb_info->var.bits_per_pixel >> 3);
-       fb_info->fix.smem_len = SZ_32M;
+       fb_info->fix.smem_len = SZ_16M;
 
        /* Memory allocation for framebuffer */
        if (mxsfb_map_videomem(fb_info) < 0)