nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Compiling against 2.6.18-rc6-mm[12] ? (http://www.nvnews.net/vbulletin/showthread.php?t=76574)

Gregoire.Favre 09-12-06 08:12 AM

Compiling against 2.6.18-rc6-mm[12] ?
 
Hello,

is someone able to compil against the two latest mm kernels ?

Thank

darthvader42 09-12-06 08:30 AM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
Nope. I've got the same trouble. Seems like the i2c stuffed changed in the prepatch kernel, see the following diff:

Code:

root@emperor:/usr/src# diff linux-2.6.18-rc6/include/linux/i2c.h linux-2.6.18-rc6-mm2/include/linux/i2c.h
67,74d66
< /*
<  * Some adapter types (i.e. PCF 8584 based ones) may support slave behaviuor.
<  * This is not tested/implemented yet and will change in the future.
<  */
< extern int i2c_slave_send(struct i2c_client *,char*,int);
< extern int i2c_slave_recv(struct i2c_client *,char*,int);
<
<
204,207d195
<      /* --- these optional/future use for some adapter types.*/
<      int (*slave_send)(struct i2c_adapter *,char*,int);
<      int (*slave_recv)(struct i2c_adapter *,char*,int);
<
223c211
<      struct i2c_algorithm *algo;/* the algorithm to access the bus  */
---
>      const struct i2c_algorithm *algo; /* the algorithm to access the bus */

The trouble is that exactly the mm2 kernel does work with the JMicron SATA controllor on my brand new Asus P5N. If I use the xorg nv driver instead of the nvidia, I'll get "(II) NV(0): Mode "1600x1200" is larger than BIOS programmed panel size of 1280 x 1024. Removing."

So I can either:
  • use my DVD Rom (2.6.18-rc6-mm2 with xorg.nv) or
  • work in 1600x1200 (2.6.18-rc6 with NVIDIA)
    but not both at the same time.

Who should change here: nvidia or the kernel?

zander 09-12-06 08:31 AM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
What does the build failure look like, exactly? Please attach the /var/log/nvidia-installer.log file.

obra 09-12-06 11:55 AM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
Quote:

Originally Posted by darthvader42

The trouble is that exactly the mm2 kernel does work with the JMicron SATA controllor on my brand new Asus P5N.

there are support in earlier rc/mm-kernels for this controller. try rc-4-mmX.
It's a nice m/b though :)

darthvader42 09-13-06 06:36 AM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
1 Attachment(s)
@zander: I've uploaded nvidia-installer.log as attachment to this post. HW is a Asus P5B board with a Core 2 Duo CPU, 2GB RAM, the lspci output for the graphics card is
Code:

0000:01:00.0 VGA compatible controller: nVidia Corporation NV44 [GeForce 6200 TurboCache(TM)] (rev a1) (prog-if 00 [VGA])
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
        Memory at a0000000 (64-bit, prefetchable) [size=512M]
        Memory at fc000000 (64-bit, non-prefetchable) [size=16M]
        Expansion ROM at fe6e0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [68] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
        Capabilities: [78] #10 [0001]

I've install Kubuntu 6.06, 64bit variant.

@obra: thx, i'll try one of the previous kernels. But 2.6.18-rc6 does not work for this controller:
Code:

0000:03:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02) (prog-if 01 [AHCI 1.0])
        Subsystem: ASUSTeK Computer Inc.: Unknown device 81e4
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at fe8fe000 (32-bit, non-prefetchable) [size=8K]
        Expansion ROM at fe8e0000 [disabled] [size=64K]
        Capabilities: [68] Power Management version 2
        Capabilities: [50] #10 [0211]

0000:03:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02) (prog-if 85 [Master SecO PriO])
        Subsystem: ASUSTeK Computer Inc.: Unknown device 81e4
        Flags: fast devsel
        I/O ports at bc00 [disabled] [size=8]
        I/O ports at b880 [disabled] [size=4]
        I/O ports at b800 [disabled] [size=8]
        I/O ports at b480 [disabled] [size=4]
        I/O ports at b400 [disabled] [size=16]
        Capabilities: [68] Power Management version 2


darthvader42 09-13-06 06:36 AM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
@zander: I've uploaded nvidia-installer.log as attachment to this post. HW is a Asus P5B board with a Core 2 Duo CPU, 2GB RAM, the lspci output for the graphics card is
Code:

0000:01:00.0 VGA compatible controller: nVidia Corporation NV44 [GeForce 6200 TurboCache(TM)] (rev a1) (prog-if 00 [VGA])
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
        Memory at a0000000 (64-bit, prefetchable) [size=512M]
        Memory at fc000000 (64-bit, non-prefetchable) [size=16M]
        Expansion ROM at fe6e0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [68] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
        Capabilities: [78] #10 [0001]

I've install Kubuntu 6.06, 64bit variant.

@obra: thx, i'll try one of the previous kernels. But 2.6.18-rc6 does not work for this controller:
Code:

0000:03:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02) (prog-if 01 [AHCI 1.0])
        Subsystem: ASUSTeK Computer Inc.: Unknown device 81e4
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at fe8fe000 (32-bit, non-prefetchable) [size=8K]
        Expansion ROM at fe8e0000 [disabled] [size=64K]
        Capabilities: [68] Power Management version 2
        Capabilities: [50] #10 [0211]

0000:03:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02) (prog-if 85 [Master SecO PriO])
        Subsystem: ASUSTeK Computer Inc.: Unknown device 81e4
        Flags: fast devsel
        I/O ports at bc00 [disabled] [size=8]
        I/O ports at b880 [disabled] [size=4]
        I/O ports at b800 [disabled] [size=8]
        I/O ports at b480 [disabled] [size=4]
        I/O ports at b400 [disabled] [size=16]
        Capabilities: [68] Power Management version 2


darthvader42 09-13-06 06:38 AM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
sorry for the double post.

zander 09-13-06 06:56 AM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
@darthvader42: thanks, I'll take a look.

sheuer3012 09-17-06 02:00 PM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
I am also having issues with 2.6.18-rc6-mm2

/var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/usr/src/nv/nv-i2c.c:26: error: unknown field 'slave_send' specified in initializer
/var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/usr/src/nv/nv-i2c.c:27: error: unknown field 'slave_recv' specified in initializer
make[3]: *** [/var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/usr/src/nv/nv-i2c.o] Error 1
make[2]: *** [_module_/var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [mdl] Error 1
make: *** [module] Error 2

zander 09-17-06 02:12 PM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
@sheuer3012: you can fix the problem by deleting lines 26 and 27 from the file usr/src/nv/nv-i2c.c.

Gregoire.Favre 09-19-06 06:19 AM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
@zander (and others): an hudge thank from 2.6.18-rc7-mm1 !!!
I didn't have time to try 2.6.18-rc6-mm[12] but it's perfect under the last mm kernel :-)

martyj19 09-20-06 03:50 PM

Re: Compiling against 2.6.18-rc6-mm[12] ?
 
Released 2.6.18 came out this morning. FYI, I have been able to build without needing any patch against the released kernel. I guess they undid whatever broke.


All times are GMT -5. The time now is 02:14 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.