Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 12-25-2013, 01:16 AM   #1
LQ Newbie
Registered: Jul 2007
Location: Indiana, USA
Distribution: FC-4
Posts: 3

Rep: Reputation: 0
Modifying framebuffer (/dev/graphics/fb0) parameters using a Loadable Kernel Module

Problem: I have to configure various LCD displays to be used by Android Platform. Almost in all cases there are no electrical specifications freely available for LCD displays on interest. But through experience and reverse engineering the parameters can be guessed reasonably well. I am trying to use Loadable Kernel Modules to fine tune the display parameters (any other suggestions are welcome too). Please find the relevant information below.

HW: Atmel SAMA5D31-EK (ARM 5 processor)

SW: Andriod Linux (Target), Ubuntu (Host System), Sourcery CodeBench (Cross Compiler) Code Snippets from board-dt.c file

static struct fb_videomode at91_tft_vga_modes[] = {
.xres =435;
static struct fb_monspecs at91fb_default_monspecs = {
.modedb = at91_tft_vga_modes,
static struct atmel_lcd_fb_info __initdata ek_lcdc_data = {
.default_monspecs = & at91fb_default_monspecs;
I added this code so the Loadable Kernel Module has access to lcdc_data structure extern void
set_fb_video(struct fb_videomode *mg_set_tft_vga_modes)

   ek_lcdc_data.default_monspecs->modedb->xres = mg_set_tft_vga_modes->xres;
When I execute the loadable kernel module I don’t notice any change in the display. I suspect although I am changing the variable (memory) but registers are not been affected.

I have read about making calls to platform_driver_register() and platform_driver_unregister().

Question: What am I missing? .

Thank you for your help in advance.

Last edited by mahengunawardena; 12-26-2013 at 10:54 AM.


arm, embedded, kernel

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ingenic JZ4730 framebuffer problem: /dev/fb0 is not storing the actual screen. jackdoh Linux - Embedded & Single-board computer 0 08-12-2013 07:44 PM
framebuffer confusion with Hauppauge PVR 350 framebuffer /dev/fb0 tofino_surfer Linux - General 4 09-19-2008 12:36 AM
Framebuffer graphics WITHOUT /dev/fb# qwijibow Programming 1 02-17-2007 08:45 PM
udev : framebuffer device (/dev/fb0) default permissions keefaz Slackware 6 07-04-2004 07:54 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration