You are not logged in.

#1 2009-05-03 06:59:24

olovram
Member
Registered: 2008-10-10
Posts: 110

[Solved]KMS and Custom Kernel without initramfs and Spedd Boot

Well, I compiled a custom kernel,nothing fancy, just compiled into the kernel the drivers needed to acces my root
partition so I wouldnt need an initramfs.
I have an intel chip kms-capable, so I have been using kms from like 2 months ago. And I have been using speedboot from about 2 weeks ago.
Now, on the speedboot thread, It was recommended a custom kernel without initramfs, with modules compiled in so you dont need to load them.
Now, the problem is, I just dont seem able to compile kms into the kernel.
So I would have to make an initramfs image, but the whole point for recompiling my kernel was so I didnt need an image. Or I could still load my
rc.conf modules, which also makes obsolete the speedboot scripts.
Or I could just stop using kms, but xorg wont start D:

Edit:
Sorry for bad english, I am mexican :$

Last edited by olovram (2009-05-04 06:35:51)

Offline

#2 2009-05-03 10:08:41

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [Solved]KMS and Custom Kernel without initramfs and Spedd Boot

olovram wrote:

Now, the problem is, I just dont seem able to compile kms into the kernel.

why and which kernel version please?

Offline

#3 2009-05-03 16:41:14

olovram
Member
Registered: 2008-10-10
Posts: 110

Re: [Solved]KMS and Custom Kernel without initramfs and Spedd Boot

2.6.29.2
I think I just need to compile i915 into the kernel, but I just cant

Offline

#4 2009-05-03 16:57:48

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [Solved]KMS and Custom Kernel without initramfs and Spedd Boot

Works for me. Here's the relevant part of the kernel config:

#
# Graphics support
#
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=y
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
CONFIG_DRM=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
CONFIG_DRM_I915=y
CONFIG_DRM_I915_KMS=y
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
# CONFIG_VGASTATE is not set
CONFIG_VIDEO_OUTPUT_CONTROL=y
CONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not set
# CONFIG_FB_DDC is not set
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_SYS_FOPS is not set
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set

#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_EFI is not set
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_INTEL is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_GEODE is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
CONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_7x14 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
# CONFIG_FONT_MINI_4x6 is not set
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
# CONFIG_FONT_10x18 is not set
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y

Offline

#5 2009-05-03 17:18:38

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [Solved]KMS and Custom Kernel without initramfs and Spedd Boot

olovram wrote:

2.6.29.2
I think I just need to compile i915 into the kernel, but I just cant

you can't because you can't select it in menuconfig (or whatever you use) or because the build fails?

Offline

#6 2009-05-03 20:44:56

EVRAMP
Member
From: Czech Republic
Registered: 2008-10-03
Posts: 173
Website

Re: [Solved]KMS and Custom Kernel without initramfs and Spedd Boot

You must select AGP Intel and DRM options as bender02's config says. I'm not sure if AGPPART must be selected also.
How are you booting without initramfs? Are you directly booting kernel26.img instead of vmlinuz?

Offline

#7 2009-05-03 20:52:43

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [Solved]KMS and Custom Kernel without initramfs and Spedd Boot

EVRAMP wrote:

How are you booting without initramfs? Are you directly booting kernel26.img instead of vmlinuz?

You can't "boot kernel26.img". Contrary to the names, vmlinuz is the kernel, kernel26.img is just a compressed image of a filesystem, so you can't "boot" it.
The point is that if the disk drivers are compiled in the kernel, you just let the kernel know which one is your root partition and it's able to mount it itself. E.g. in grub's menu.lst it looks like this:

menu.lst wrote:

title Arch 2.6.29-rc7
root (hd0,1)
kernel /vmlinuz-custom root=/dev/sda3 ro vga=773

Offline

#8 2009-05-04 06:33:01

olovram
Member
Registered: 2008-10-10
Posts: 110

Re: [Solved]KMS and Custom Kernel without initramfs and Spedd Boot

yep, done it wink
thank you

Offline

Board footer

Powered by FluxBB