Module loading for TFT

ODROID related support

Module loading for TFT

Postby rpnid » 04 Dec 2015, 16:47

The reference example (and the article in Odroid Magazine) revert to loading the modules via the root .bash_profile, as no way was found to make it work via modules-load.d and modprobe.d. NOT all too nice...

The culprit here is just the way the mechanism works. Once understood, it is just "bonk" ;).
In short:
- the modules are defined per modules-load.d, with no parameters at all
- the parameters you give via modprobe.d, and only ever one per line

So for this one take eg. this:

/etc/modules-load.d/odroid_tft.conf:
Code: Select all
#
# /etc/modules-load.d conf file for Odroid 3"2 TFT
#

## SPI modules for 3"2 TFT
spicc
# spidev and ads7846 should be pulled automatically
#spidev
#ads7846
## FB modules for 3"2 TFT (parameters set via modprobe.d)
fbtft_device
# these should be pulled automatically
#fb_odroidc_tft32
#fbtft
#fb_sys_fops
#sysimgblt
#sysfillrect
#syscopyarea

The commented module lines are there just for doc purposes; of course you may safely remove them

/etc/modprobe.d/fbtft_device.conf:
Code: Select all
#
# /etc/modprobe.d conf file for Odroid 3"2 TFT fbtft options
#

## options for 3"2 TFT module(s)
options fbtft_device name=odroidc_tft32
options fbtft_device rotate=270
options fbtft_device gpios=reset:116,dc:115
options fbtft_device speed=32000000
options fbtft_device cs=0


Install these, don't forget to remove the now obsolete modprobes from .bash_profile, reboot, and have fun.

cheers,
Ralf
deepthought:~# make common sense
make: *** No rule to make target `common'. Stop.
rpnid
 
Posts: 5
Joined: 04 Dec 2015, 01:17
Location: Germany, Ffm Area

Re: Module loading for TFT

Postby odroider » 07 Dec 2015, 12:22

This approach is much more logical and understandable.
Touching the root's .bash_profile is not a good way. :o
odroider
 
Posts: 56
Joined: 22 Jun 2015, 07:52

support RuneAudio Donate with PayPal


Return to ODROID

Who is online

Users browsing this forum: No registered users and 3 guests