The current Nvidia driver (NVIDIA-Linux-x86_64-169.12-pkg2.run) is somehow broken with Linux kernel 2.6.25. I googled and found discussion about this. Some people suggested to replace EXPORT_UNUSED_SYMBOL(init_mm) to EXPORT_SYMBOL(init_mm) in
/usr/src/linux/arch/x86/kernel/init_task.c. It didn't work (at least on my machine).
I look at the error log in /var/log/nvidia-installer.log. The last few lines in the file told me the global_flush_tlb() was implicitly declared (meaning, it was no longer exported by the Linux kernel. People in the discussion forum mentioned since 2.6.24 or something) while trying to compile nv-vm.c. This look weird, so I extracted the Nvidia driver with the following command:
sh download/nvidia/NVIDIA-Linux-x86_64-169.12-pkg2.run -a -q -n -x
This command extracted both binary files and its source codes onto NVIDIA-Linux-x86_64-169.12-pkg2/
I then cd to NVIDIA-Linux-x86_64-169.12-pkg2/usr/src/nv and commented out calling to that procedure. Here's my modified procedure of that file:
static void nv_flush_caches(void)
{
#if defined(KERNEL_2_4)
// for 2.4 kernels, just automatically flush the caches and invalidate tlbs
nv_execute_on_all_cpus(cache_flush, NULL);
#else
// for 2.6 (and later) kernels, rely on global_flush_tlb
#if defined(NV_CPA_NEEDS_FLUSHING)
nv_execute_on_all_cpus(cache_flush, NULL);
#endif
#if defined (NVCPU_X86) || defined (NVCPU_X86_64)
//global_flush_tlb();
#endif
nv_ext_flush_caches(); // handle other platform flushes if present
#endif
}
I then manually compile the code usual way (make module) from that folder and did "make install" (executed as root). For the binary files, I just manually copied them to their proper places.
Nervously, I typed "startx" and voila....my Xwindows started successfuly! So far, I haven't noticed any anomalies nor problems (this blog is actually done from my machine running the new driver). Apparently, the latest kernel doesn't require flushing cache anymore (it must be done automatically elsewhere).
Saturday, April 19, 2008
Thursday, April 17, 2008
Virtualization Era!
Rebooting a machine to switch to another OS on multi-operating-system machine sounds out dated now. With recent VT-enabled technology from both Intel and AMD on certain x86 CPUs, virtualization goes smoother and better.
I just tested Microsoft Virtual PC which enable me to install multiple windows or even Linux under my Windows XP host OS. There are other Virtualization software available, either freeware or not. Here I am trying to list some of them:
Non-free ones:
VMWare: https://www.vmware.com/tryvmware/?a=l&eval=workstation-l
Microsoft Virtual PC: http://www.microsoft.com/windowsxp/virtualpc/
Novel SUSE Linux Exterprise VM Driverpack: http://www.novell.com/products/vmdriverpack/
Freeware versions:
Bochs: http://bochs.sourceforge.net/
QEMU: http://fabrice.bellard.free.fr/qemu/
VirtualBox: http://www.virtualbox.de/ (this software has dual licenses: free and proprietary)
While, to just run windows application on Linux, we can use wine or its sibling, the commercialized one: CrossOver for Linux: http://www.codeweavers.com/products/cxlinux/
To learn more about virtualization and/or virtual machine (don't get confused with Java VM as it's not a system VM): http://en.wikipedia.org/wiki/Virtualization
The more complete list of VM packages:
http://en.wikipedia.org/wiki/Comparison_of_virtual_machines
I will report further once I try some of them. In most cases, the host OS will be OpenSUSE 64-bit ver 10.3 with guest OSs will be: Vista Home Premium SP1, Vista Ultimate 64-bit, Mac OSX 10.4 Tiger and some variants of Linux [Redhat, UBuntu, Debian]. The host system will be my desktop CPU: Intel Quad-core 2.4 GHz, 4 GB RAM, with almost 768 GB total space.
I just tested Microsoft Virtual PC which enable me to install multiple windows or even Linux under my Windows XP host OS. There are other Virtualization software available, either freeware or not. Here I am trying to list some of them:
Non-free ones:
VMWare: https://www.vmware.com/tryvmware/?a=l&eval=workstation-l
Microsoft Virtual PC: http://www.microsoft.com/windowsxp/virtualpc/
Novel SUSE Linux Exterprise VM Driverpack: http://www.novell.com/products/vmdriverpack/
Freeware versions:
Bochs: http://bochs.sourceforge.net/
QEMU: http://fabrice.bellard.free.fr/qemu/
VirtualBox: http://www.virtualbox.de/ (this software has dual licenses: free and proprietary)
While, to just run windows application on Linux, we can use wine or its sibling, the commercialized one: CrossOver for Linux: http://www.codeweavers.com/products/cxlinux/
To learn more about virtualization and/or virtual machine (don't get confused with Java VM as it's not a system VM): http://en.wikipedia.org/wiki/Virtualization
The more complete list of VM packages:
http://en.wikipedia.org/wiki/Comparison_of_virtual_machines
I will report further once I try some of them. In most cases, the host OS will be OpenSUSE 64-bit ver 10.3 with guest OSs will be: Vista Home Premium SP1, Vista Ultimate 64-bit, Mac OSX 10.4 Tiger and some variants of Linux [Redhat, UBuntu, Debian]. The host system will be my desktop CPU: Intel Quad-core 2.4 GHz, 4 GB RAM, with almost 768 GB total space.
x86 Technical Info
Some very interesting technical information related to x86 (besides, of course, Intel/AMD official sites and Micro$oft):
http://www.sandpile.org
http://www.mgreene.org/wikka/LdrNotes
http://www.sandpile.org
http://www.mgreene.org/wikka/LdrNotes
Wednesday, April 16, 2008
HP 1020 on Linux is now working!
Finally, I am able to print to HP LaserJet 1020 from my Linux machine. Thanks to the guys at http://foo2zjs.rkkda.com/.
Just follow the instructions in the INSTALL file, you should be able to successfuly print. One thing I was unaware was to control CUPS via web (in my case, browse to http://localhost:631). From there, I could then test. Although I've tested remote printing, it shouldn't be a problem because CUPS will handle all!
Great!!
Just follow the instructions in the INSTALL file, you should be able to successfuly print. One thing I was unaware was to control CUPS via web (in my case, browse to http://localhost:631). From there, I could then test. Although I've tested remote printing, it shouldn't be a problem because CUPS will handle all!
Great!!
Tuesday, April 15, 2008
Alternatives to Window$
I've found some alternatives to Windows, which some of them are quite attractive:
http://www.reactos.org/en/index.html
http://voyager.netlabs.org/en/site/index.xml
http://www.reactos.org/en/index.html
OS/2 clones:
http://www.osfree.org/http://voyager.netlabs.org/en/site/index.xml
Vista Is a Pain in the Butt!
The more I use Vista, the more frustation I get. My Vista has been updated with SP1 (as it always be, because it's been running Update scheduler since day one). Recently, my PC locks up more frequently than before. What I mean "lock up" is really a locked-up condition (freeze) to user. The mouse pointer freezes, there is no way to shutdown/reboot and doesn't get any response for any inputs either from keyboard nor mouse. I notice there is some activity on the hard disk, though.
With this issue, my list of dissapointment with Vista has even longer. Here's some of them:
With this issue, my list of dissapointment with Vista has even longer. Here's some of them:
- No support for 4 GB RAM (only 64-bit does support it). What the heck? Mac OS-X and Linux much better (Mac OS-X 10.4 or later is actually a 64-bit OS so no issue, while on Linux 64-bit, support for 32-bit apps are excellent). Why doesn't Micro$oft just sell one version of the OS?
- GUI freezes frequently (Yeah, no BSOD, but what's the difference? both render my PC as dead anyway!)
- To-much minimum hardware requirements
- Many compatibility issues with older applications
- Costly (As comparation: Mac OS-X Leopard cost only $100'ish [there is only single version! no home, ultima bla...bla...edition]. Linux is even totally free!). Vista Ultimate? $300'ish!!!
- Still immature driver support.
- Super-fetch which is not super (it keeps my hard-disk busy for most of the time, although my PC has 4 GB of RAM and it's a Quad-core Intel 2.4 GHz!). Instead of a boost, it slows down the PC.
- Slower than XP !! (and takes more space than XP too).
- Lack of bundled development environment (Mac OS has XCode comes in its OS installation CD as an optional application. Linux has GCC and many others). Microsoft sells the development packages separately as MSVC, .NET bla..bla and cost hundreds of dollars each.
I now boot to Linux partition more than its Vista. openSUSE ver 10.3 now supports writing to NTFS partition, so there is no issue with mixed partitions. There are some limitations too on openSUSE, but at least I am in control if an application is going south (I can switch to text console, I can force-kill an application, I can even modify the operating system as I want!)
Subscribe to:
Posts (Atom)