I've a had hard time to get dfb to run on sigma 8634/8635 boards with their
mrua libraries above 142. Hope someone will find this usefull.

The alignment have to be changed like this,

systems/fbdev/fbdev.c, in system_initialize function under where the memory 
gets mapped,

     /* Map the framebuffer */
      dfb_fbdev->framebuffer_base = mmap( NULL, shared->fix.smem_len,
                                         PROT_READ | PROT_WRITE, MAP_SHARED,
                                         dfb_fbdev->fd, 0 );

Add this to fix the allignment(only needed for standalone boards),

printf("Base memory: %x\n", dfb_fbdev->framebuffer_base);

#define PAGE_SIZE       (4096)

     if (shared->fix.smem_start & (PAGE_SIZE-1)) {
         dfb_fbdev->framebuffer_base += (shared->fix.smem_start & 
(PAGE_SIZE-1));
         fprintf(stderr, "Fix alignment 0x%08lx -> %p.\n",
                 shared->fix.smem_start, dfb_fbdev->framebuffer_base);
     }

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to