LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-25-2013, 12:16 AM   #1
mahengunawardena
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

Code:
static struct fb_videomode at91_tft_vga_modes[] = {
..... 
.xres =435;
.yres=235;
....
}
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
Code:
set_fb_video(struct fb_videomode *mg_set_tft_vga_modes)

{
   ek_lcdc_data.default_monspecs->modedb->xres = mg_set_tft_vga_modes->xres;
}
EXPORT_SYMBOL(set_fb_video);
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 09:54 AM.
 
  


Reply

Tags
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 06:44 PM
framebuffer confusion with Hauppauge PVR 350 framebuffer /dev/fb0 tofino_surfer Linux - General 4 09-18-2008 11:36 PM
Framebuffer graphics WITHOUT /dev/fb# qwijibow Programming 1 02-17-2007 07:45 PM
udev : framebuffer device (/dev/fb0) default permissions keefaz Slackware 6 07-04-2004 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:40 AM.

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