Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
I am having a nightmare of a time with my kernel compilation in slackware 12 with the 2.6.21.5 kernel. I run an IBM ThinkPad T-42, and as soon as I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4

    Kernel Compiling Nightmares- Framebuffer in SlackWare


    I am having a nightmare of a time with my kernel compilation in slackware 12 with the 2.6.21.5 kernel. I run an IBM ThinkPad T-42, and as soon as I recompile, I lose all console video (linux framebuffer, I'm assuming). The OS still loads, and I can log in (starting X without being able to see a thing). X comes up and i'm okay from there. As long as I don't drop out of X I'm cool. Besides that, the system is fast and stable. What am I doing wrong? Am I neglecting to compile something in?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    It seems like you are missing out the part that includes framebuffer support in the kernel. This article will help lead you in the right direction. Its for gentoo, but parts of it are relevant to any distro.

  3. #3
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4

    Kernel Compiling Nightmares- Linux Framebuffer?

    I did that. Everyting framebuffer related that I can see that relates has been enabled.

  4. #4
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    Can you post the results of:
    Code:
    ls /boot
    And:
    Code:
    joe /etc/lilo.conf
    Linux Mint + IceWM Registered: #371367 New Members: click here

  5. #5
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    You may want to read Documentation/fb (in kernel source directory) for your card to get the syntax correct.

  6. #6
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4

    Kernel Compile Nightmares- Framebuffer?

    An ls on /boot is as follows:

    A computer lets you make more mistakes faster than any other invention,
    with the possible exceptions of handguns and Tequilla.
    -- Mitch Ratcliffe

    root@Thinker-IV:~# ls /boot
    README.initrd@ config-generic-smp-2.6.21.5-smp
    System.map config-huge-2.6.21.5
    System.map-generic-2.6.21.5 config-huge-smp-2.6.21.5-smp
    System.map-generic-smp-2.6.21.5-smp diag1.img
    System.map-huge-2.6.21.5 map
    System.map-huge-smp-2.6.21.5-smp vmlinuz
    System.old vmlinuz-generic-2.6.21.5
    boot.0300 vmlinuz-generic-smp-2.6.21.5-smp
    boot_message.txt vmlinuz-huge-2.6.21.5
    bzImage vmlinuz-huge-smp-2.6.21.5-smp
    config@ vmlinuz.old
    config-generic-2.6.21.5
    root@Thinker-IV:~#

    Pico of /etc/lilo.conf reveals:

    # LILO configuration file
    # generated by 'liloconfig'
    #
    # Start LILO global section
    boot = /dev/hda
    message = /boot/boot_message.txt
    prompt
    timeout = 120
    # Override dangerous defaults that rewrite the partition table:
    change-rules
    reset
    # VESA framebuffer console @ 1024x768x256
    vga = 773
    # Normal VGA console
    # vga = normal
    # VESA framebuffer console @ 1024x768x64k
    # vga=791
    # VESA framebuffer console @ 1024x768x32k
    # vga=790
    # VESA framebuffer console @ 1024x768x256
    # vga=773
    # VESA framebuffer console @ 800x600x64k
    # vga=788
    # VESA framebuffer console @ 800x600x32k
    # vga=787
    # VESA framebuffer console @ 800x600x256
    # vga=771
    # VESA framebuffer console @ 640x480x64k
    # vga=785
    # VESA framebuffer console @ 640x480x32k
    # vga=784
    # VESA framebuffer console @ 640x480x256
    # vga=769
    # End LILO global section
    # Linux bootable partition config begins
    image = /boot/vmlinuz
    root = /dev/hda1
    label = Linux
    read-only

    image = /boot/vmlinuz.old
    root = /dev/hda1
    label = Old.Kernel
    read-only
    # Linux bootable partition config ends



    The lilo here (video section anyway) reveals the system default. I CAN make VGA = Normal here, and I wil be able to see my system boot... but without the penguin and in 640x480, as opposed to the nice framebuffered 1024x768... What gives? It didn't happen until after I compiled, but now it happens whenever I recompile a kernel for this system. THAT tells me I'm missing something...

  7. #7
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    I see you still have your old kernel as a choice in Lilo. Can you boot to it still? When you do, do you get the framebuffered penguin still as you want it? Did you use your old .config file from the previous kernel and just changed some things? Or did you compile a new kernel from scratch creating your own new configuration?
    Linux Mint + IceWM Registered: #371367 New Members: click here

  8. #8
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4

    Kernel Compile Nightmare- Framebuffer?

    Well... Hmm... First I:

    make mrproper
    Then I make menuconfig (been using xconfig lately,for the verbose help)
    Then, I edit and save ".config"...
    then I go into lilo and add the .old kernel...
    THEN, I make, make modules, make install, make modules_install, and reboot...

    Whether I start from a fresh kernel or not, the result is the same... No console video after lilo starts booting the kernel. If I boot my old kernel, it works just fine, but of course I don't have all of the cool **** that I compiled in... and I NEED my battery monitor!
    There has to be something that doesn't compile by default when doing the kernel, but loads, either as a module, or hard-kernel-code, in the default kernel. What do you guys think?

  9. #9
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    I think you should read the kernel documentation, as I already suggested fb docs for your video card, and overall.
    make modules is not necessary for instance, make builds kernel image and modules.

  10. #10
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    Quote Originally Posted by jay_murr View Post
    If I boot my old kernel, it works just fine...
    I'd have to agree with daark.child. I think you may have inadvertently left something out or changed something when configuring for your new kernel. That's why I usually start from my previous kernel's .config and include or take away things from there.
    Linux Mint + IceWM Registered: #371367 New Members: click here

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •