Table of Contents

2.2" TFT LCD on the Odroid W


Preparations

Configuration

  1. Building the kernel
    Please refer to Kernel compilation for odroid-w
  2. Enable SPI by running:
    sudo vi /etc/modprobe.d/raspi-blacklist.conf

    Find the SPI line where the spi is black listed

    blacklist spi-bcm2708

    Comment it out by replacing it with the line below

    #blacklist spi-bcm2708
  3. Enable driver
    Add to file /etc/modules
    fbtft_device name=adafruit22a verbose=0 rotate=90
  4. Auto login and startx
    Auto login: modify file /etc/inittab
    #1:2345:respawn:/sbin/getty --noclear 38400 tty1
    1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1

    Auto startx: modify file /etc/rc.local

    su -l pi -c "env FRAMEBUFFER=/dev/fb1 startx &"

    Disable the option in /usr/share/X11/xorg.conf.d/99-fbturbo.conf

    #          Option        "fbdev" "/dev/fb0"

    Console at boot: Add kernel argument to file /boot/cmdline.txt

     fbcon=map:10 

    Save the file and reboot your Odroid W.

    sudo reboot

For more information, please refer to https://github.com/notro/fbtft/wiki