Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot get framebuffer working [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
evster
Guru
Guru


Joined: 12 Jul 2005
Posts: 367
Location: Waterloo, Ontario, Canada

PostPosted: Thu Jul 21, 2005 11:05 pm    Post subject: Cannot get framebuffer working [solved] Reply with quote

Hi,

I am trying to set up a framebuffer and I just can't get it working. I have compiled my kernel with vesafb support. And I used splash_geninitramfs and followed the steps on http://dev.gentoo.org/~spock/projects/gensplash/archive/gensplash-in-5-easy-steps.txt .

This is what I have in my menu.lst

Code:

default 0
timeout 5
splashimage=(hd0,1)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.12-r6
root(hd0,1)
kernel /kernel-2.6.12-gentoo-r6 root=/dev/hdb4 video=vesafb:1024x768@85 splash=silent,theme:Emergence
initrd /boot/fbsplash


Does anyone see anything wrong with this?? Just let me know if you need any more information.

Thanks!
Evan


Last edited by evster on Wed Aug 10, 2005 3:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
Stolz
Moderator
Moderator


Joined: 19 Oct 2003
Posts: 3028
Location: Hong Kong

PostPosted: Thu Jul 21, 2005 11:31 pm    Post subject: Reply with quote

Since kernel-2.6.12 the FB config has changed a bit. You have to change your grub kernel line and rebuild your initrds. Read these posts:

https://forums.gentoo.org/viewtopic-t-351048-highlight-.html
https://forums.gentoo.org/viewtopic-t-357733-highlight-splashutils.html

Hope it helps.
Back to top
View user's profile Send private message
evster
Guru
Guru


Joined: 12 Jul 2005
Posts: 367
Location: Waterloo, Ontario, Canada

PostPosted: Thu Jul 21, 2005 11:56 pm    Post subject: Reply with quote

ok,

I followed those a bit closer and when I reboot I get this output...

Code:
Failed to open /dev/fb0 or /dev/fb0 for reading.
Can't open config file /etc/splash/emergence/0x0.cfg
Failed to load image (null).
Can't open /dev/fb0 or /dev/fb/0.


Any ideas??
Back to top
View user's profile Send private message
Stolz
Moderator
Moderator


Joined: 19 Oct 2003
Posts: 3028
Location: Hong Kong

PostPosted: Fri Jul 22, 2005 12:01 am    Post subject: Reply with quote

Have you upgraded to splashutils-1.1.9.7 and rebuild your initrds?
Do you have a recent version of udev?
Could you please tell us your full grub kernel line?

emergence have been removed from the core splashutils package. You might want to emerge media-gfx/splash-themes-* to get it.

Also, you should read the wiki. It has been recently updated with the new way for installing Gensplash.
Back to top
View user's profile Send private message
evster
Guru
Guru


Joined: 12 Jul 2005
Posts: 367
Location: Waterloo, Ontario, Canada

PostPosted: Fri Jul 22, 2005 12:14 am    Post subject: Reply with quote

Quote:
Have you upgraded to splashutils-1.1.9.7 and rebuild your initrds?


I just emerged splashutils-1.1.9.7 today. I think I rebuilt my initrds, is that what running splash_geninitramfs does?

Quote:
Do you have a recent version of udev?


I am really new to this, i'm not really sure what udev is. So how would I check it?

Quote:
Could you please tell us your full grub kernel line?


I realized that emergence wasn't their, so I have changed it to Emergance which is there, but it still doesn't work.

Thanks!
Evan
Back to top
View user's profile Send private message
evster
Guru
Guru


Joined: 12 Jul 2005
Posts: 367
Location: Waterloo, Ontario, Canada

PostPosted: Sun Jul 24, 2005 6:44 pm    Post subject: Reply with quote

After much reading and testing things out I managed to get a framebuffer going. I still have not been able to get a boot splash working though.

I also tried using qingy, and I am getting an error with that which might have something to do with it. In the instructions for setting up qingy it says I need to run fbset. I don't have that command!?! What have I done wrong???

Thanks!
Evan
Back to top
View user's profile Send private message
jeremy whiting
Apprentice
Apprentice


Joined: 25 May 2004
Posts: 159
Location: UT

PostPosted: Tue Aug 02, 2005 10:58 pm    Post subject: Reply with quote

emerge fbset
Back to top
View user's profile Send private message
Deadog
n00b
n00b


Joined: 16 Jan 2005
Posts: 25
Location: Angers | ESEO

PostPosted: Thu Aug 04, 2005 2:36 am    Post subject: Reply with quote

I have the same problem.
I use a 2.6.12-nitro-r5 with genkernel (3.3.5)
udev is version 058 on my system (but genkernel use a 054)
splashutils 1.1.9.7 (recently re-emerge for the 2.6.12-nitro-r5 kernel)

my genkernel command line for generate the initramfs is :
Code:
genkernel --gensplash=default --lvm2 initrd


my lilo entry is :
Code:
image = /boot/kernel-genkernel-x86-2.6.12-nitro5
  root = /dev/ram0
  label = "Gentoo-R4N"
  read-only
  append = "init=/linuxrc real_root=/dev/hda7 splash=silent,theme:default video=vesafb:1024x768@60 CONSOLE=/dev/tty1 quiet dolvm2 udev"
  initrd = /boot/initramfs-genkernel-x86-2.6.12-nitro5


so, when my system is off, the content of /dev have no /dev/fb0 entry.
When adding one, the problem is steel here, and udev remove my /dev/fb0!
How the initramfs can access to /dev/fb0 at the early start ? :?:

I try fbset
first, on a working system (with no splash) :
Code:
dekarion / # fbset -i

mode "1280x1024-75"
    # D: 135.007 MHz, H: 79.981 kHz, V: 75.029 Hz
    geometry 1280 1024 1280 1024 32
    timings 7407 248 16 38 1 144 3
    hsync high
    vsync high
    rgba 8/16,8/8,8/0,8/24
endmode

Frame buffer device information:
    Name        : VESA VGA
    Address     : 0xd8000000
    Size        : 16777216
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 0
    YPanStep    : 0
    YWrapStep   : 0
    LineLength  : 5120
    Accelerator : No


I adding this section to the non-existent /etc/fb.modes file of the other system :
Code:
mode "1280x1024-75"
    # D: 135.007 MHz, H: 79.981 kHz, V: 75.029 Hz
    geometry 1280 1024 1280 1024 32
    timings 7407 248 16 38 1 144 3
    hsync high
    vsync high
    # rgba 8/16,8/8,8/0,8/24
endmode

(rgba line is comment because of syntax error with fbset)

after booting on the other system, I try "fbset -fb /dev/fb0 1280x1024-75" but he insult me because /dev/fb0 does not exist.
I create/force it like that :
Code:
mknod -m 600 /dev/fb0 c 29 0

but with the same fbset command, fbset told me that it can't open /dev/fb0


on the working system I have a /proc/fb0 directory, not on the other system ...
Back to top
View user's profile Send private message
evster
Guru
Guru


Joined: 12 Jul 2005
Posts: 367
Location: Waterloo, Ontario, Canada

PostPosted: Thu Aug 04, 2005 3:47 am    Post subject: Reply with quote

Try adding vga=0x318 to your append line.

So it would look something like this:
Code:
image = /boot/kernel-genkernel-x86-2.6.12-nitro5
  root = /dev/ram0
  label = "Gentoo-R4N"
  read-only
  append = "init=/linuxrc real_root=/dev/hda7 splash=silent,theme:default video=vesafb:1024x768@60 vga=0x318 CONSOLE=/dev/tty1 quiet dolvm2 udev"
  initrd = /boot/initramfs-genkernel-x86-2.6.12-nitro5


This made it work for me.
Back to top
View user's profile Send private message
Deadog
n00b
n00b


Joined: 16 Jan 2005
Posts: 25
Location: Angers | ESEO

PostPosted: Thu Aug 04, 2005 12:39 pm    Post subject: Reply with quote

the vga option is for vesa, and I use vesa-tng ;)

without any video option (let the default mode), that don't work too :(

I will try to use vesa mode instead of vesa-tng ...
Back to top
View user's profile Send private message
Deadog
n00b
n00b


Joined: 16 Jan 2005
Posts: 25
Location: Angers | ESEO

PostPosted: Thu Aug 04, 2005 3:48 pm    Post subject: Reply with quote

I have solve the problem !

it's so stupid ...
VESA was in module :roll:

but I don't realy understand why the initramfs didn't load it :?:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum