LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-14-2004, 06:07 PM   #1
allanschindler
LQ Newbie
 
Registered: Jun 2004
Location: Rochester, NY
Posts: 5

Rep: Reputation: 0
xconfig/agpgart problems, 2.6, intel 875p


Is anyone running a 2.6 kernel without X issues on a Gigabyte 8ik100 mobo
and/or an Intel 875p chipset?

My system includes:
P4 3GHz 800 MHzFSB, Gigabyte 8iK 1100 mobo, 1 GB dual channel DDR, Intel 875P chipset
dual channel bios, Matrox Millenium G550, Texas Instruments OHCI i333 1394 host controller
Intel 82801EB ultra ata controller, 82801ER raid controller (not running RAID)
ICH5R sata controller

After installing Fedora Core 2 on this system I cannot configure X. system-config-display
hangs, generally with an error about an undefined SESSION_MANAGER environment
variable. The /var/log/Xorg.set.0 file ends with:
FATAL: Module agpgart not found.
[drm] failed to load kernel module "agpgart"
My understanding is that with FC2 agpgart is built into the 2.6 kernel rather
than as a loadable module. The Intel 875p chip is officially "unsupported."
I would like to try using the agp try_unsupported option, but don't know
how (if?) this can this be done when agpgart is not a loadable module?
FC2 built both an smp 2.6.5-1.358 kernel (which I assume is the one I want to use) and a
single processor kernel, and xconfig fails identically with both kernels.

I posted this problem to the fedora lisw but received no replies. Googling
other gnu/linux forums/newsgroups has not turned up threads on this problem.
I initially tested this h/w with Knoppix 3.4, kernel 2.4.26, XFree86 v. 4.3.0.1
which configured, booted into and ran X with no problems using agpgart and mga
modules and "generic Intel routines" for the Intel chip.

I tried booting from a Suse 9.1 Live CD but it, too, could not boot into init 5.
I also did a FC1, kernel 2.4.26 install but had similar xconfig issues.

I would prefer to get FC2 working, but am reaching a dead end in my knowledge of
agpgart and wouldn't know what options to try changing to build a new kernel.
If anyone has 2.6 running on Gentoo or Mandrake 10 I'd love to hear it.

Thanks in advance for any pointers or information.
 
Old 06-14-2004, 10:00 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i doubt they made the agpgart module built in cause people using nvidia don't use it but use the nvidia one instead -- so assume it's a module
try
su
insmod agpgart agp_try_unsupported=1
then try the config

if the config utility is the problem try as user
cd ~
XFree86 -configure
that will but or should put a file in your home dir named
XF86Config.new
test your new file
XFree86 -xf86config ~/XF86Config.new
if you get an X it works (cntrl-alt-backspace to get out)
if it works just copy it to where it goes and edit by hand to get it the way you want
 
Old 06-15-2004, 09:58 AM   #3
allanschindler
LQ Newbie
 
Registered: Jun 2004
Location: Rochester, NY
Posts: 5

Original Poster
Rep: Reputation: 0
Angry

Thanks for the suggestion but the problem is deeper than this. Perhaps I should
have included more information.
First, for licensing reasons Fedora (like several other gnu/linux distros) has moved from
XFree86 4.x to x.org, so the config utility is a little different.

After an init 3 boot my dmesg shows:
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel i875 Chipset.
agpgart: Maximum main memory to use for agp memory: 941M
agpgart: AGP aperture is 128M @ 0xe8000000
lsmod does not show agpgart or any agp modules loaded.

Attempts to load agpgart, with or without the try_unsupported=1 option fail:
modprobe agpgart [try_unsupported=1]
FATAL: Module agpgart not found.
[drm] failed to load kernel module "agpgart"
(insmod agpgart agp_try_unsupported=1 similarly fails with:
"can't read 'agpgart' ; No such file or directory)
Also without success I tried adding these lines to modprobe.conf
option agpgart agp_try_unsupported=1
alias /dev/agpgart agpgart
and tried appending "agp_try_unsupported=1" to my grub kernel line and rebooting.

My /lib/modules/`uname -r`/drivers/char directory does not include an agp
directory or an agpgart.o driver. "locate agpgart" shows only these files:
/lib/modules/2.6.5-1.358smp/build/include/linux/agpgart.h
/lib/modules/2.6.5-1.358/build/include/linux/agpgart.h
/usr/include/linux/agpgart.h
/usr/src/linux-2.6.5-1.358/include/linux/agpgart.h
/dev/agpgart
So, unless I am missing something, no agpgart module was built during the
install,
and when I try to configure X it fails, as noted above, because it cannot find
an agp bus driver.
Is it possible to patch the kernel to build an agpgart module?
Do I have to build a new kernel, and if so, where in menuconfig or autoconf.h
would I look to make changes to build an agpgart module?
I'm over my head here and would much appreciate any sugestions.
 
Old 06-15-2004, 04:11 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
try this, at the end of the last grub line
of the section you are booting add this boot parameter
Code:

video=matroxfb:vesa:0x1BB 
 
Old 06-15-2004, 05:36 PM   #5
allanschindler
LQ Newbie
 
Registered: Jun 2004
Location: Rochester, NY
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by foo_bar_foo
try this, at the end of the last grub line
of the section you are booting add this boot parameter
Code:

video=matroxfb:vesa:0x1BB 
OK, I tried "video=matroxfb:vesa:0x1BB" boot parameter too but still no go.
I still can't load agpgart with modprobe. Trying to configure X does load the
mga driver but still fails and hangs. The modprobe and config errors are the same
as before.

/var/log/messages does give a slightly different output, if this is any clue:
/var/log/messages output BEFORE trying the video boot loader option above:
Jun 15 12:38:29 localhost kernel: Linux agpgart interface v0.100 (c) Dave Jones
Jun 15 12:38:29 localhost kernel: agpgart: Detected an Intel i875 Chipset.
Jun 15 12:38:29 localhost kernel: agpgart: Maximum main memory to use for agp memory: 941M
Jun 15 12:38:29 localhost kernel: agpgart: AGP aperture is 128M @ 0xe8000000

/var/log/messages output AFTER trying the matroxfb parameter above:
Jun 15 12:39:33 localhost kernel: [drm] Initialized mga 3.1.0 20021029 on minor 0
Jun 15 12:39:33 localhost kernel: agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.
Jun 15 12:39:33 localhost kernel: agpgart: Device is in legacy mode, falling back to 2.x
Jun 15 12:39:33 localhost kernel: agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
Jun 15 12:39:33 localhost kernel: agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode

Bottom line: none of the modprobe or boot loader options I have tried so far
seem to have any effect without a loadable agpgart.o driver.
 
Old 06-15-2004, 08:59 PM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
yea i'm stumped
the kernel is obviously functioning with the correct modules built in like you said
this post will bump you back up and i give you this xorg.conf file supplied by someone else
on the matrox forum using fedora 2(i don't know wheather stock or the matrox driver)
possibly if you adjust the monitor ???????? and check the logs ????? something might come of it.
like you said i don't see where other people are having this problem alot but i did see where someone with an ati video card was having exactly the same trouble (fedora bugs list)
possibly someone else will come along with an answer
Code:
# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Hansol Electronics Mazellan700P"
HorizSync 30.0 - 85.0
VertRefresh 50.0 - 120.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "mga"
VendorName "Videocard vendor"
BoardName "Matrox Millennium G550"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
 
Old 06-16-2004, 10:57 AM   #7
allanschindler
LQ Newbie
 
Registered: Jun 2004
Location: Rochester, NY
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your suggestions but nothing has worked so I've got to move on...
Since I have not been able to configure X with either Fc2 or Suse 9.1 I'm
going to try with either gentoo or Mandrake 10. If things don't go better
I'll borrow and swap in an nvidia graphics board and its driver, since my understanding
is that nvidia drivers include their own agp module that can be used in place
of the kernel agpgart module. As a last resort I'll temporarily install
Knoppix 3.4 kernel 2.4 (which I know works on my system) or k. 2.6 to hard
disk and run that until a better solution presents itself.

I would be very curious to know if anyone is running a 2.6 (or even 2.4) kernel
on hardware similar to mine, and, if so, does your system have a loadable
agpgart.o module in /lib/modules/`uname -r`/drivers/char
 
Old 06-16-2004, 03:28 PM   #8
allanschindler
LQ Newbie
 
Registered: Jun 2004
Location: Rochester, NY
Posts: 5

Original Poster
Rep: Reputation: 0
http://www.linuxquestions.org/questi...readid=193508#
I finally configured X. In case anyone else runs into a similar problem,
the solution, for me, was a combination of

1) using the Matrox driver for the G550 in place of the default kernel mga module
2) use analog rather than dvi (I don't have dvi working yet, although the Matrox release notes
say that the included HAL library provides dvi support for the G550 -- still working
on this part)
3) tweak some display settings
I had tried some of these things individually but not together. I don't know
if they all were necessary, but I was firing with everything I had.
Whew! back to work.
 
  


Reply


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
Hang-->agpgart:Detected Intel 440 IrZack Linux - Newbie 17 10-05-2007 12:29 PM
make xconfig, xconfig with weird words pakkua80 Fedora - Installation 3 11-17-2004 07:19 AM
Intel 875P motherboards + kernel 2.6 vrln Linux - Hardware 2 06-23-2004 08:41 AM
Problems with agpgart--> Intel 830M video cellist Linux - Laptop and Netbook 2 03-28-2004 03:02 AM
Intel 875P Chipset rlculver Linux - Hardware 4 05-31-2003 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration