Compile xorg from git, i915.ko missing

Chris Pemberton cjpembo.mailing.lists at gmail.com
Fri Nov 7 08:03:16 PST 2008


Sergio Monteiro Basto wrote:
> export OS_HAS_GEM=1 
>
> On lidrm-2.4.1/linux-core, I still can't build i915.ko because, I
> think , still don't have the kernel headers of kernels 2.6.28-rc and
> give me this error :
>   CC [M]  /root/Mesa/libdrm-2.4.1/linux-core/i915_gem_tiling.o
> /root/Mesa/libdrm-2.4.1/linux-core/i915_gem_tiling.c: In function
> ‘i915_gem_detect_bit_6_swizzle’:
> /root/Mesa/libdrm-2.4.1/linux-core/i915_gem_tiling.c:118: error:
> implicit declaration of function ‘pci_read_base’
> make[2]: *** [/root/Mesa/libdrm-2.4.1/linux-core/i915_gem_tiling.o]
> Error 1
> make[1]: *** [_module_/root/Mesa/libdrm-2.4.1/linux-core] Error 2
> make[1]: Leaving directory `/usr/src/kernels/2.6.27.4-79.fc8.i686'
> make: *** [modules] Error 2
>
> On Fri, 2008-11-07 at 09:32 -0600, Chris Pemberton wrote:
>   
>> Hello,
>>
>> I've followed the instructions here via the script at the bottom of the 
>> page:
>>
>> http://wiki.x.org/wiki/Development/git
>>
>> Everything compiles clean; but I find no i915.ko module built in 
>> mesa/linux-core/ ?
>>
>> All the other modules are getting built.  Anything else I can do?
>>
>> Chris
>> _______________________________________________
>> xorg mailing list
>> xorg at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/xorg
>>     
So, if I understand correctly: update to a 2.6.28 kernel first.  Then do I:

1.  use the i915.ko generated by the kernel compile?
or
2.  export OS_HAS_GEM=1, rebuild drm from git, use drm/linux-core/i915.ko?

(tried to export OS_HAS_GEM=1 and rebuild drm-git with my 2.6.27.4 
kernel; no good)

Thanks



More information about the xorg mailing list