From: <sn...@ut...> - 2006-01-08 13:55:37
|
Hi I've been given an assignement to write the fb driver to S3 Tio 64 PCI card, which should work under linux kernel 2.6. I read the basic concepts about fb drivers but haven't found any clues an tutorials how to start writing the code and how to test it. I'm also not very familiar with compiling kernel from source and adding moules to kernel. Has anyone already written some code for this piece or does a fb driver already exist for this device under 2.6 or previous linux kernel versions? All hints are welcome :) |
From: Antonino A. D. <ad...@gm...> - 2006-01-09 01:12:28
|
Tanel Käär wrote: > Hi > > I've been given an assignement to write the fb driver to S3 Tio 64 PCI > card, which should work under linux kernel 2.6. > > I read the basic concepts about fb drivers but haven't found any clues > an tutorials how to start writing the code and how to test it. I'm also > not very familiar with compiling kernel from source and adding moules to > kernel. > > Has anyone already written some code for this piece or does a fb driver > already exist for this device under 2.6 or previous linux kernel versions? > There's a driver for the S3trio in 2.4, but still not ported to 2.6. It is also a non-x86 driver. > All hints are welcome :) You can try looking at drivers/video/skeletonfb.c (preferably the one in the latest mm tree, as I've made some changes to it). You can first write a driver with a static var (does not change modes on the fly) to keep it simple. Then slowly advance to a more complete driver. vesafb is one of the simplest driver, which only supports the most essential functionality. You can always write to the list (fbdev-devel) whenever you're stuck :-) Tony |