NOTE:As of 05OCT08 the kernel version is 2.6.24-19, and this how to is based off of that. If using a different kernel the steps are the same except where noted.
Download and install the beta driver from here.
Install the driver:
1. Extract the package
2. Open a terminal and and goto the directory you just extracted
3. sudo vinstall
4. Restart X Ctrl+Alt+backspace (or just reboot)
Note: To uninstall the driver (If needed)
1.Open a terminal and and goto the directory where the installer is
2. sudo vuninstall
3. Restart X Ctrl+Alt+backspace (or just reboot)
Install the Patch.
1. Open the terminal
2. mkdir F00 (create the directory F00 in your home folder.)
3. sudo apt-get update (update package list)
4. sudo apt-get install patch build-essential libncurses5-dev linux-source-2.6.24 (install the packages patch, build-essential, libncurses5-dev, linux-source-2.6.24)
5. cd F00/ (change dirrectory to F00)
6. cp /usr/src/linux-source-2.6.24.tar.bz2 . (copy the source package to the current working directory)(include the . at the end)
7. tar -jxvf linux-source-2.6.24.tar.bz2 (extract the linux-source-2.6.24.bz2)
8. Download the unichrome-patch to the F00 directory
9. tar -zxvf VIA-unichrome-patch-for-Ubuntu+804LTS.tar.gz (extract the package)
10. tar -zxvf VIA-unichrome-patch-for-Ubuntu\ 804LTS/VIA-unichrome-DRM-patch-for-Ubuntu\ 804LTS/via-unichome-drm-patch-2.6.24.tar.gz (extract the patch)
11. cp via-unichome-drm-patch-2.6.24/via-unichrome-drm.patch-2.6.24 /home/YOURUSERNAME/F00/linux-source-2.6.24 (Enter the username you loged onto ubuntu with where it says YOURUSERNAME)
12. cd linux-source-2.6.24/
13. patch -p0 < via-unichrome-drm.patch-2.6.24
14. NOTE: USER YOUR KERNEL NUMBER if your kernel is different from 2.6.24-19. cp /boot/config-2.6.24-19-generic .config
15. gedit Makefile (edit the line EXTRAVERSION = .3 to your kernel) (The kernel thats being used for this how to is 2.6.24-19, so we will edit the line EXTRAVERSION = .3 to EXTRAVERSION = -19-generic. Save and exit
16. make oldconfig (This command sets the default answers to all kernel configuration questions according to the settings of our .config file.)
17. cp /usr/src/linux-headers-2.6.24-19-generic/Module.symvers Module.symvers
18. make prepare scripts
19. make menuconfig
20. Use the down arrows to get to "Device Drives" and press the space bar to select it.
Use the down arrows to get to "Graphics suppor" and press the space bar to select it.
Use the down arrows to get to "Direct Rendering Manager" and press enter to select it.
Use the down arrows to get to "Via unichrome video cards" and press M to select it.
Make sure your config has the follow items set:
Device Drivers --->
Graphics support --->
To exit: Press tab to select exit and press enter. Keep doing this untill you get "Do you wish to save your new kernel configuration?"
Yes should be highlighted. Press enter.
21. make modules M=drivers/char/drm
22. There will be via.ko in the directory: ./drivers/char/drm.
Copy via.ko into the directory: /lib/modules/2.6.24-19-generic/kernel/drivers/char/drm.
Note: If you have a different kernel place it in that kernel directory. /lib/modules/2.6.24-XX-generic/kernel/drivers/char/drm
Then the via drm module will be loaded each time when system boot up.
23. Restart X Ctrl+Alt+backspace (or just reboot)
To test if Hardware acceleration is working type the folowing in a terminial.
glxinfo | grep direct
If you get an out put that says:
direct rendering: Yes
Your good to go!
No comments:
Post a Comment