How to build the Framebuffer for Dragonball (I am told that this driver also works on the MC68VZ328) This document describes the steps necessary to re-enable building of the video tree and the framebuffer device using the "Complete Source Distribution" from our friends at http://www.uclinux.org with kernel 2.4.x. Please be aware that this procedure will NOT work on the older 2.0.x kernel, having a completely different approach to consoles. a) Re-enable the video build by uncommenting the 'source/drivers/video/config.in' line in the main 'Config.in' located in /vendors/$VENDOR$/$BOARD$/... b) Edit the 'Makefile' in the same directory to create a device /dev/fb0 with a major of 29 and a minor of 0. c) Edit the 'config.in' in /drivers/video to include a config switch for CONFIG_FB_M68328, e.g. bool "MC68328 framebuffer" CONFIG_FB_M68328. d) Download the 'fbmem.c' from http://www.schoeldgen.de/robot/fbmem.c This must replace the fbmem.c found in the video directory and includes both a patch for NO_MM systems and the calls to the driver. e) Edit the /drivers/video Makefile to include m68328fb in the list of OBJS (fairly on top in this file) and add a line like CONFIG_FB_M68328 += m68328fb.o fbgen.o below in this file. f) You have to disable the show_linux_logo() routine in the fbcon.c file for missing color definitions. g) When configuring, include at least the monochrome support and one font. h) Make dep, make clean. Compiling should work now. You now have a framebuffer on /dev/fb0, to be proved by checking /proc/devices and /proc/fb. Boot messages show the size and the depth of the screen. Be aware that this driver will not initialize the LCD controller, this must be done in the CRT_xxx.S file, best shown with a little splashscreen. Up to now i wasn't able to show text on the LCD, its only a graphical memory mapped output, but there are applications for it. Try lissa or (if you are adventurous) nanowindows. For some reason, the console is not initialized and i am still eager to know why. Matthias Schoeldgen 2002-10-25 uclinux@schoeldgen.de