Skip to contentSkip to conversation

Framebuffer console & Tux

DISCUSSION Rodolfo Giometti 2 participants 3 messages Dec 17, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Hello!

I'm just writing a new frame buffer driver (for a MPC8xx based system) and I have a strange problem... I init the driver structs as follows:

   strcpy(fb_info.gen.info.modename, "e13505fb");
   /* strcpy(fb_info.gen.info.fontname, default_fontname); */
   fb_info.gen.info.changevar = NULL;
   fb_info.gen.info.node = -1;
   fb_info.gen.info.fbops = &e13505fb_ops;
   fb_info.gen.info.disp = &fb_info.disp;
   fb_info.gen.info.switch_con = &fbgen_switch;
   fb_info.gen.info.updatevar = &fbgen_update_var;
   fb_info.gen.info.blank = &fbgen_blank;
   fb_info.gen.parsize = sizeof(struct e13505fb_par);
   fb_info.gen.info.flags = FBINFO_FLAG_DEFAULT;
   fb_info.disp.var.activate = FB_ACTIVATE_NOW;

   /* This should give a reasonable default video mode */
   fbgen_get_var(&fb_info.disp.var, -1, &fb_info.gen.info);
   fbgen_do_set_var(&fb_info.disp.var, 1, &fb_info.gen);
   fbgen_set_disp(-1, &fb_info.gen);
   fbgen_install_cmap(0, &fb_info.gen);

/* Register the new frame buffer */
ret = register_framebuffer(&fb_info.gen.info);
if (ret < 0)

      goto fb_register;

and at boot I get:

Console: switching to frame buffer device

But I can't see Tux in my LCD nor the usual console messages! Can anyone help me?

Thanks in advance,

Rodolfo

P.S. I use the linux kernel parameter «console=tty0».

Signature · 11 lines
GNU/Linux Solutions                  e-mail:    [email protected]
Linux Device Driver                             [email protected]
Embedded Systems                     home page: giometti.enneenne.com
UNIX programming                     phone:     +39 349 2432127


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
#1 lore raw

Hello,

Quoted 1 line · Rodolfo Giometti

I'm just writing a new frame buffer driver (for a MPC8xx based system)

Just to make sure you are not doing duplicated work:

I have seen "heretic" running on 823/821 using the framebuffer (I think) - but that was several years ago on a Linux Planet box from Embedded Planet. This was with Linux-2.2 or 2.3 or something. Just making sure you have searched the net for available code...

/ magnus

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#2 lore raw
Quoted 6 lines · Magnus Damm

Hello,

Quoted 1 line · Rodolfo Giometti

I'm just writing a new frame buffer driver (for a MPC8xx based system)

Just to make sure you are not doing duplicated work:

I see, but this system is based on MPC8xx and the LCD controller is an Epson 13505.

Regards,

Rodolfo

Signature · 11 lines
GNU/Linux Solutions                  e-mail:    [email protected]
Linux Device Driver                             [email protected]
Embedded Systems                     home page: giometti.enneenne.com
UNIX programming                     phone:     +39 349 2432127


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/