AnsweredAssumed Answered

Framebuffer support

Question asked by Jonathan Vervaeke on Sep 19, 2016
Latest reply on Sep 22, 2016 by jimmychan

Hi,

 

Is there any decent manual available on how to add framebuffer support on the imx6(ul)?

 

I suppose I need to make changes in the following:

1) Kernel modules

2) Device tree

3) U-Boot bootargs

 

I've build my kernel with the following modules

FB_TFT=y

CONFIG_FB_TFT_ILI9325=m

 

I added the following to the device tree

 

 

  1. / {
  2.      itdb28 {
  3.         compatible = "ilitek,ili9325";
  4.         status = "okay";
  5.  
  6.         rotate = <0>;
  7.         bgr;
  8.         buswidth = <8>;
  9.         reset-gpios = <&gpio3 23 0>;
  10.         dc-gpios = <&gpio3  5 0>;
  11.         cs-gpios = <&gpio3  1 0>;
  12.         wr-gpios = <&gpio3  0 0>;
  13.         db-gpios = <&gpio3  7 0>,
  14.                <&gpio3  8 0>,
  15.                <&gpio3  9 0>,
  16.                <&gpio3 10 0>,
  17.                <&gpio3 11 0>,
  18.                <&gpio3 15 0>,
  19.                <&gpio3 16 0>,
  20.                <&gpio3 17 0>;
  21.         /* LED pin drives backlight directly. Use transistor (50mA) */
  22.         /* led-gpios = <&gpio 4 1>; */
  23.         debug = <7>;
  24.     };
  25.  
  26.  
  27.     framebuffer {
  28.         compatible = "simple-framebuffer";
  29.         reg = <0x1d385000 (240 * 320 * 2)>;
  30.         width = <240>;
  31.         height = <320>;
  32.         stride = <(240 * 2)>;
  33.         format = "r5g6b5";
  34.     };
  35. };

 

Which provides me the following error:

 

Error opening /dev/fb0: No such file or directory

 

Thanks!

Outcomes