arm-linux-gcc -o fbinfo fbinfo.c
ID: DM270_OSD, len:77824 Framebuffer type 0: packed pixels Framebuffer visual 3: pseudo colour line len: 320, accel: 0 xres: 320, yres: 240, xoff: 0, yoff: 0 bits per pixel: 8 Offset Length MSBR red 0 8 0 green 0 8 0 blue 0 8 0 transp 0 0 0 screen size: 76800 screen mapped successfully
Note that the framebuffer is a pseudo colour device, so each location is an index into the device's colourmap. The colour offsets are, therefore, meaningless, however there appears to be no transparancy defined. The following program will display the colourmap and generate a file containing the RGB values for the default map.
The RGB values for the colourmap will be written into the file /tmp/cmap.txt. A copy is available for you to view (the values are in hex):