How to activate the 3.2inch LCD shield with your ODROID-C1+
- You need a HDMI connection or a Serial console connection to follow below instruction.
- Operation confirmed with testing in our Ubuntu 16.04 LTS (v2.1)
Configuring framebuffer and Touch driver
0. Update your Kernel
- target
sudo apt update && apt upgrade && apt dist-upgrade
1. Insert modules
- target
sudo modprobe spicc sudo modprobe fbtft_device name=odroidc_tft32 rotate=270 gpios=reset:116,dc:115 speed=32000000 cs=0
You will have a new frame buffer /dev/fbX
Find a framebuffer node.
- target
ls /dev/fb* /dev/fb2 cat /sys/class/graphics/fb2/name fb_odroidc_tft32
Run Console
0. Install package
Install fbset package to manage framebuffer. It might be installed in advance.
- target
sudo apt-get install fbset
1. Run con2fbmap
- target
# usage: con2fbmap <console> <framebuffer> sudo con2fbmap 1 2
2. Change foreground virtual terminal
The command chvt N makes /dev/ttyN the foreground terminal.
- target
sudo chvt 1
chvt 1 : console
chvt 7 : X11
Run Xwindow
0. Create a new config file
- target
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old sudo vi /etc/X11/xorg.conf
1. And then, add following lines in "/etc/X11/xorg.conf" file.
Section "Device" Identifier "fbdev" Driver "fbdev" Option "fbdev" "/dev/fb2" EndSection
2. Run
- target
sudo /etc/init.d/lightdm restart sudo chvt 7