Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel compilation problems - i810_dma
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
carlivar
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2002
Posts: 92
Location: Burbank, California

PostPosted: Mon Oct 14, 2002 5:34 pm    Post subject: Kernel compilation problems - i810_dma Reply with quote

I'm compiling the kernel on my new Gentoo system here at work. It's a pretty new Dell P4 system with the Intel 845G chipset I believe.

I can't compile the kernel. It dumps me out while (or after) working on i810_dma.c, and gives me several errors like this:

make[4]: *** [i810_dma.o] Error 1
make[4]: Leaving directory '/usr/src/linux-2.4.19-gentoo-r9/drivers/char/drm'

There are also some "Error 2"s.

Help!!! Is i810 support broken in the gentoo 2.4.19-r9 kernel? Or maybe I'm missing an option somewhere... I've tried it with and without SMP and ACPI support.

Carl
_________________
"It is difficult to make our material condition better by the best law, but it is easy enough to ruin it by bad laws." - Theodore Roosevelt
Back to top
View user's profile Send private message
carlivar
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2002
Posts: 92
Location: Burbank, California

PostPosted: Mon Oct 14, 2002 6:48 pm    Post subject: Reply with quote

Couldn't get it to compile, so I'm using the vanilla kernel. Patched it to 2.4.20-pre10 also, which seems to have some fixes for the Intel 845 chipset. So far it is compiling fine.

I guess something with i810 support in the gentoo-sources kernel is broken. Once my system is up I guess I will search for and possibly file a bug.

Carl
_________________
"It is difficult to make our material condition better by the best law, but it is easy enough to ruin it by bad laws." - Theodore Roosevelt
Back to top
View user's profile Send private message
karl11
Guru
Guru


Joined: 25 Jun 2002
Posts: 469
Location: Raleigh, NC

PostPosted: Tue Oct 15, 2002 5:09 am    Post subject: kernel problem Reply with quote

I noticed this too...however, back in June I got it to compile with gentoo-sources-2.4.19-r7....if that's still available.

Karl
Back to top
View user's profile Send private message
raziel
n00b
n00b


Joined: 28 Sep 2002
Posts: 38
Location: CO

PostPosted: Tue Oct 15, 2002 7:39 am    Post subject: Reply with quote

You're better off leaving DRM stuff out of your kernel config with the i845 IMHO. It's not going to give you proper acceleration at this point. The only way to get DRI/DRM stuff with the intel i830 and i845 chipsets right now is to use XFree86 CVS. Unless something changed in the latest kernel.
Back to top
View user's profile Send private message
karl11
Guru
Guru


Joined: 25 Jun 2002
Posts: 469
Location: Raleigh, NC

PostPosted: Thu Oct 24, 2002 3:14 am    Post subject: i810 DRM Reply with quote

It works in kernel 2.4.20 :) Just emerge lolo-sources, and you'll get the latest 2.4.20 series. Supposedly this lolo-sources is supposed to replace gentoo-sources as the "default" mentioned kernel in the installation guide.

Karl
Back to top
View user's profile Send private message
jjares
n00b
n00b


Joined: 28 Nov 2002
Posts: 17
Location: Argentina

PostPosted: Thu Nov 28, 2002 5:26 pm    Post subject: I found a solution Reply with quote

I had this same problem, but found a solution trying to install the dri drivers... it seems that gcc has redefined de DO_MUNMAP function... I changed the first lines of i810_dma.c where the define is to
#define DO_MUNMAP(m, a, l) do_munmap(m, a, l, 1)
(notice I added the ,1... not my idea, the dri source works this way)
and now it works fine.
Back to top
View user's profile Send private message
Ian Goldby
Guru
Guru


Joined: 18 May 2002
Posts: 539
Location: (Inactive member)

PostPosted: Sat Dec 07, 2002 5:38 pm    Post subject: Reply with quote

I'm just doing the same thing, except in my source, the 1 is added to the actual function call on line 236 like so:
Code:
                retcode = do_munmap(current->mm,
                                    (unsigned long)buf_priv->virtual,
                                    (size_t) buf->total, 1);


No idea why there should be a difference. I'm just off to file a bug report on bugs.gentoo.org.
Back to top
View user's profile Send private message
Ian Goldby
Guru
Guru


Joined: 18 May 2002
Posts: 539
Location: (Inactive member)

PostPosted: Sat Dec 07, 2002 5:47 pm    Post subject: Reply with quote

Ok, filed as bug 11730.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sat Dec 07, 2002 7:56 pm    Post subject: Re: i810 DRM Reply with quote

Or maybe the mjc sources...

karl11 wrote:
It works in kernel 2.4.20 :) Just emerge lolo-sources, and you'll get the latest 2.4.20 series. Supposedly this lolo-sources is supposed to replace gentoo-sources as the "default" mentioned kernel in the installation guide.

Karl
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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