View Single Post
Old 09-03-07, 10:50 PM   #102
Belal_Salem
Registered User
 
Join Date: Aug 2007
Posts: 3
Default Re: crazy colors! 100.14.09 with 8600m on macbook pro

Hi and thanks for reply, I actualy tryied to compile the git-nv but I have had an error that the xorg is ver 1.1 and it needs 1.3, when I upgraded to 1.3 the same
error still there.
Bu I solved the problema as follows:
1. Extracted the NVidia driver
# sh NVidia....100.14.11.run -x
2. go to src dir in the extracted folder and edit the "nv.c" file
* changed this routine:
__nv_init_sp = sp;

return 0;
------------------------- with this one:

__nv_init_sp = sp;
{
for (i = 0; i < num_nv_devices; i++) {
printk("Macbook Hack\n");
struct pci_dev *dev = nv_linux_devices[i].dev;
#define NV_WR32(p,i,d) (__raw_writel((d), (void __iomem *)(p) + (i)))

unsigned long mmio_start;
__u32 mmio_len;

mmio_start = pci_resource_start(dev, 0);
mmio_len = pci_resource_len(dev, 0);
volatile u32 __iomem *REGS;

REGS = ioremap(mmio_start, mmio_len);

if(REGS) {
NV_WR32(REGS, 0x1708, 0);
NV_WR32(REGS, 0x1900, 0);
NV_WR32(REGS, 0x1901, 0);
NV_WR32(REGS, 0x1902, 0);
NV_WR32(REGS, 0x1903, 0);
NV_WR32(REGS, 0x1904, 0);
NV_WR32(REGS, 0x1905, 0);
NV_WR32(REGS, 0x1906, 0);
NV_WR32(REGS, 0x1907, 0);

iounmap(REGS);
} else {
printk("Error mapping memory\n");
}
}
}

return 0;
----------------------
3. I installed the nvidia driver:
#./nvidia-installer -aN

4. I started X and everything is OK, but with some lost extentions.

5. I loaded the extmod module in the xorg.conf in the Modules section, so the external extensions are available for X.

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

and that's it.
Belal_Salem is offline   Reply With Quote