
04-17-2012, 05:19 AM
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: Jakarta, Indonesia
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Intel-VGA Issue GMA 4500
Hi guys..
im using Acer 4738 (GMA4500)
iam following the Howto from angel in this post:
PC-BSD 8.0 x64 with Intel GMA X4500
i got to the Add support for Intel G41 chipset
according to the thread, i should copy the contents of sys/dev/drm/drm_pciids.h and sys/dev/drm/i915_drv.h
open the /usr/src/sys/dev/agp/agp_i810.c file. and add it under the :
|
Quote:
|
{0x2E328086, CHIP_G4X, 0x00020000,
"Intel G41 SVGA controller"},
|
so, i did it.
i paste under it, it looks like this :
|
Quote:
|
{0x2E328086, CHIP_G4X, 0x00020000,
"Intel G41 SVGA controller"},
{0x8086, 0x2E02, CHIP_I9XX|CHIP_I965, "Intel Integrated Graphics Device"}, \
{0x8086, 0x2E12, CHIP_I9XX|CHIP_I965, "Intel Q45/Q43"}, \
{0x8086, 0x2E22, CHIP_I9XX|CHIP_I965, "Intel G45/G43"}, \
{0x8086, 0x2E32, CHIP_I9XX|CHIP_I965, "Intel G41"}, \
{0, 0, 0, NULL}
#define imagine_PCI_IDS \
(dev)->pci_device == 0x2A42 || \
(dev)->pci_device == 0x2E02 || \
(dev)->pci_device == 0x2E12 || \
(dev)->pci_device == 0x2E22)
(dev)->pci_device == 0x2E22 || \
(dev)->pci_device == 0x2E32)
#define IS_I965GM(dev) ((dev)->pci_device == 0x2A02)
#define IS_G4X(dev) ((dev)->pci_device == 0x2E02 || \
(dev)->pci_device == 0x2E12 || \
(dev)->pci_device == 0x2E22 || \
(dev)->pci_device == 0x2E32 || \
IS_GM45(dev))
#define IS_G33(dev) ((dev)->pci_device == 0x29C2 || \
{0x00428086, CHIP_G4X, 0x00020000,
"Intel Ironlake (D) SVGA controller"},
{0x00468086, CHIP_G4X, 0x00020000,
"Intel Ironlake (M) SVGA controller"},
{0, 0, 0, NULL}
};
|
and then as root, i start xterm and type :
|
Quote:
|
cd /usr/src/sys/modules/drm/i915
make
make install
|
after that, still as root in Xterm :
|
Quote:
|
cd /usr/src
make buildkernel
make installkernel
|
and i think there's something wrong with the process..
the last lines looks like an error message to me:
|
Quote:
|
...
..
/usr/src/sys/dev/agp/agp_i810.c:c185: error: 'CHIP_I9XX' undeclared here (not in a function)
/usr/src/sys/dev/agp/agp_i810.c:193: error: expected '}' before '(' token
/usr/src/sys/dev/agp/agp_i810.c:193: error: expected ',' or ';' before ')' token
/usr/src/sys/dev/agp/agp_i810.c:212: error: expected identifier or '(' before ',' token
/usr/src/sys/dev/agp/agp_i810.c:214: error: expected identifier or '(' before ',' token
/usr/src/sys/dev/agp/agp_i810.c:216: error: expected identifier or '(' before '}' token
*** Error code 1
Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src
|
at first i thought i did a typo, so i dont wanna take chances, i just copy it and paste with Kate as root.
but the same thing happened..
here is the screenshot.
can some body give me advice??
thanks
-mozart-
|
|

04-17-2012, 10:16 AM
|
|
Member
|
|
Join Date: May 2007
Location: Aveiro
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i've answered in facebook so you should check it out! forgive me about my english but i'm not a native speaker!
|
|

04-17-2012, 12:55 PM
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: Birmingham, AL, USA
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Quote:
|
#define IS_G33(dev) ((dev)->pci_device == 0x29C2 || \
{0x00428086, CHIP_G4X, 0x00020000,
"Intel Ironlake (D) SVGA controller"},
{0x00468086, CHIP_G4X, 0x00020000,
"Intel Ironlake (M) SVGA controller"},
{0, 0, 0, NULL}
};
|
That chunk of code is missing a closing parenthesis. This one ) You can use and advanced text editor to display color coded help.
|
|

04-18-2012, 05:04 AM
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: Jakarta, Indonesia
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Update.
|
Quote:
|
thedaemonofid --
That chunk of code is missing a closing parenthesis. This one ) You can use and advanced text editor to display color coded help.
|
thanks, now even though it is still show error message the error is not so many anymore, here's the error message:
|
Quote:
|
#> make buildkernel
...
..
.
...-Werror /usr/src/sys/dev/agp/agp_i810.c
/usr/src/sys/dev/agp/agp_i810.c:185: error: 'CHIP_I9XX' undeclared here (not in a function)
/usr/src/sys/dev/agp/agp_i810.c:193: error: expected '}' before '(' token
*** Error code 1
Stop in /usr/obj/usr/src/sys/GENERIC.
***Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
|
For better understanding, i also put here the "agp_i810.c" file that is being a problem and i give the line number for the error:
|
Quote:
|
/usr/src/sys/dev/agp/agp_i810.c
...
..
.
183--{0x2E328086, CHIP_G4X, 0x00020000,
- "Intel G41 SVGA controller"},
185-- {0x8086, 0x2E02, CHIP_I9XX|CHIP_I965, "Intel Integrated Graphics Device"}, \
- {0x8086, 0x2E12, CHIP_I9XX|CHIP_I965, "Intel Q45/Q43"}, \
- {0x8086, 0x2E22, CHIP_I9XX|CHIP_I965, "Intel G45/G43"}, \
- {0x8086, 0x2E32, CHIP_I9XX|CHIP_I965, "Intel G41"}, \
- {0, 0, 0, NULL}
-#define imagine_PCI_IDS \
193-- (dev)->pci_device == 0x2A42 || \
- (dev)->pci_device == 0x2E02 || \
- (dev)->pci_device == 0x2E12 || \
- (dev)->pci_device == 0x2E22 || \
- (dev)->pci_device == 0x2E22 || \
- (dev)->pci_device == 0x2E32
-#define IS_I965GM(dev) ((dev)->pci_device == 0x2A02)
-#define IS_G4X(dev) ((dev)->pci_device == 0x2E02 || \
- (dev)->pci_device == 0x2E12 || \
- (dev)->pci_device == 0x2E22 || \
- (dev)->pci_device == 0x2E32 || \
- IS_GM45(dev))
- #define IS_G33(dev) ((dev)->pci_device == 0x29C2) || \
-
- {0x00428086, CHIP_G4X, 0x00020000,
- "Intel Ironlake (D) SVGA controller"},
- {0x00468086, CHIP_G4X, 0x00020000,
- "Intel Ironlake (M) SVGA controller"},
- {0, 0, 0, NULL}
216--};
|
|
|

04-18-2012, 05:24 AM
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: Jakarta, Indonesia
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Quote:
|
rayden5--
i've answered in facebook so you should check it out!
|
Thanks rayden, i have done what you said on facebook.
|
Quote:
|
Bruno Faria--
...
..
.
By hand you should go to file:
sys/dev/drm/drm_pciids.h
and add this line to {0x8086, 0x2E32, CHIP_I9XX|CHIP_I965, "Intel G41"}, \ before the {0, 0, 0, NULL}
in file sys/dev/drm/i915_drv.h
you should remove this line
(dev)->pci_device == 0x2E22)
and add this ones
(dev)->pci_device == 0x2E22 || \
648 (dev)->pci_device == 0x2E32)
In the same file before
IS_GM45(dev))
you should add
(dev)->pci_device == 0x2E32 || \
|
i'm rather confused my friend, because when i opened the
"/sys/dev/drm/i915_drv.h" file. the lines are already there..
here is the file:
|
Quote:
|
/sys/dev/drm/i915_drv.h
...
..
.
#define IS_I965G(dev) ((dev)->pci_device == 0x2972 || \
(dev)->pci_device == 0x2982 || \
(dev)->pci_device == 0x2992 || \
(dev)->pci_device == 0x29A2 || \
(dev)->pci_device == 0x2A02 || \
(dev)->pci_device == 0x2A12 || \
(dev)->pci_device == 0x2A42 || \
(dev)->pci_device == 0x2E02 || \
(dev)->pci_device == 0x2E12 || \
647--->> (dev)->pci_device == 0x2E22 || \
648--->> (dev)->pci_device == 0x2E32)
...
..
.
|
and this happen also with the other file
the "sys/dev/drm/drm_pciids.h" file..
its already added on the bottom line..
but i havent typed it.
|
Quote:
|
{0x8086, 0x2982, CHIP_I9XX|CHIP_I965, "Intel i965G"}, \
552- {0x8086, 0x2992, CHIP_I9XX|CHIP_I965, "Intel i965Q"}, \
553- {0x8086, 0x29A2, CHIP_I9XX|CHIP_I965, "Intel i965G"}, \
554- {0x8086, 0x2A02, CHIP_I9XX|CHIP_I965, "Intel i965GM"}, \
555- {0x8086, 0x2A12, CHIP_I9XX|CHIP_I965, "Intel i965GME/GLE"}, \
556- {0x8086, 0x29C2, CHIP_I9XX|CHIP_I915, "Intel G33"}, \
557- {0x8086, 0x29B2, CHIP_I9XX|CHIP_I915, "Intel Q35"}, \
558- {0x8086, 0x29D2, CHIP_I9XX|CHIP_I915, "Intel Q33"}, \
559- {0x8086, 0x2A42, CHIP_I9XX|CHIP_I965, "Mobile Intel® GM45 Express Chipset"}, \
560- {0x8086, 0x2E02, CHIP_I9XX|CHIP_I965, "Intel Eaglelake"}, \
561- {0x8086, 0xA001, CHIP_I9XX|CHIP_I965, "Intel Pineview"}, \
562- {0x8086, 0xA011, CHIP_I9XX|CHIP_I965, "Intel Pineview (M)"}, \
563- {0x8086, 0x2E12, CHIP_I9XX|CHIP_I965, "Intel Q45/Q43"}, \
564- {0x8086, 0x2E22, CHIP_I9XX|CHIP_I965, "Intel G45/G43"}, \
565- {0x8086, 0x2E32, CHIP_I9XX|CHIP_I965, "Intel G41"}, \
566- {0, 0, 0, NULL}
...
..
.
|
|
Quote:
|
|
If you don't understant what i'm saying just restore the file and apply the patch, it will be a lot easier! The command to apply it is diff, just look into it under freebsd documentation if you have any trouble with the command i will show you how to do it but at least try it yourself!
|
im still reading about diff(1) on the handbook, it looks like a program to compare updated files with the original. but i still dont know how to apply that on this problem. could you advice me more?
thanks
-mozart-
|
|

04-18-2012, 07:51 AM
|
|
Member
|
|
Join Date: May 2007
Location: Aveiro
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Okay so if the lines are already present, you should try to recompile and install the kernel without any modifications made! Maybe you are using some old compiled kernel but somehow have the updated source for it (the one with commit in it)!
And by the way, now that you know what is a file produced by diff ( the commit made in the first post), you should know that you can patch any file with the following command!
patch -R < file.diff
this is the easiest way, but i think you already have the updated source tree!
|
|

04-19-2012, 06:09 AM
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: Jakarta, Indonesia
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Originally Posted by rayden5
|
Okay so if the lines are already present, you should try to recompile and install the kernel without any modifications made! Maybe you are using some old compiled kernel but somehow have the updated source for it (the one with commit in it)!
|
could you explain me more how to do this?
|
Quote:
|
|
patch -R < file.diff
|
which file i should patch?
/sys/dev/drm/drm_pciids.h,
/sys/dev/drm/i915_drv.h,
OR
/usr/src/sys/dev/agp/agp_i810.c ??
please explain more..
thanks
-mozart-
|
|

12-22-2012, 03:46 AM
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Hello Mozart,
I am sorry, I got your PM. I was not active here for long time! But by the way, if u r still interested, PC BSD 9.1 support your grapahics card by default! You just have to install the OS.
__________________
Angel
|
|

01-17-2013, 12:18 PM
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: Jakarta, Indonesia
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks
thanks for the reply angel..
since that vga problem in the past, i stop using PC-BSD for a while..
because i kinda frustated trying the solutions suggested.. LOL
a couple of days ago, i read about the 9.1 launch on dec '12 , but i didnt download because i recall the blog doesnt say about improving support for Intel GMA..
now that i just read your reply, i think ill give it a try..
thanks
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 11:52 PM.
|
|