Compiling cofb (coLinux Framebuffer)
Download the sources[]
To download the sources, in Linux, issue the command:
$ svn checkouthttp://colinux.svn.sourceforge.net/svnroot/colinux/branches/cofb cofb
Of course this only works if you have subversion (svn) installed. If not, in Gentoo, you can issue the command:
$ emerge svn
In Debian and variants, this is:
$ apt-get install svn
Check that the directory cofb has been created and populated with the latest cofb files:
$ cd cofb$ svn infoPath: .URL:http://colinux.svn.sourceforge.net/svnroot/colinux/branches/cofbRepository Root:http://colinux.svn.sourceforge.net/svnroot/colinuxRepository UUID: 688f6386-cf32-0410-9ead-a596f0484e40Revision: 1493Node Kind: directorySchedule: normalLast Changed Author: sunyinLast Changed Rev: 1489Last Changed Date: 2010-06-27 04:52:56 +0300 (Sun, 27 Jun 2010)
Configure[]
Simply run configure in cofb directory:
$./configure
Make[]
Next, issue the command:
$ make download && make && make package && make installer
For me, this caused some problems, specifically, I got an error suggesting I run make oldconfig:
make[3]: *** [silentoldconfig] Error 1make[2]: *** [silentoldconfig] Error 2make[1]: *** [sub-make] Error 2Kernel 2.6.26.8 config failed (check 'make oldconfig' on kerneltree)make: *** [kernel] Error 1
Or something similar:
scripts/kconfig/conf -s arch/x86/Kconfig** Restart config...*** Support for frame buffer devices*Support for frame buffer devices (FB) [Y/?] y Enable firmware EDID (FIRMWARE_EDID) [N/y/?] (NEW) aborted!Console input/output is redirected. Run 'make oldconfig' to update configuration.
Causes for this could be an old build from the main branch. Simply clean the directory build from all previous sources and run make kernel again.
This results a lot of compilation so go read a book :)
Running cofb[]
Once the make phase completes succesfully, the next step is to copy over the daemons, the linux.sys file and the vmlinux file. These typically reside in directory ~/dist and are zipped:
shai@localhost ~/dist $ ls daemons-0.8.0-20100706.dbg.zip modules-2.6.26.8-co-0.8.0-20100706.tgz daemons-0.8.0-20100706.zip vmlinux-2.6.26.8-co-0.8.0-20100706.zip
- Copy the files in ~/dist a temporary directory in the host.
- Shutdown coLinux.
- Optional: Backup the original coLinux daemons (the exe files), linux.sys and vmlinux files that reside in directory c:\Program Files\coLinux
- Unzip the files in the temporary directory in the host and copy them to c:\Program Files\coLinux (overwrite the older files, that's why we backed up).
- Run coLinux