rpi-firmware icon indicating copy to clipboard operation
rpi-firmware copied to clipboard

tm022hdh26 or ili9431 not work

Open Jakkawad opened this issue 9 years ago • 9 comments

I use Model B+ on Jessie

  1. Open SPI
  2. sudo nano /etc/modprobe.d/raspi-blacklist.conf -> #blacklist spi-bcm2708
  3. sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
  4. /boot/config.txt -> dtparam=spi=on
  5. sudo nano /etc/modules -> fbtft_device name=tm022hdh26 gpios=dc:24,reset:25,led:18 rotate=90
  6. /usr/share/X11/xorg.conf.d/99-fbturbo.conf -> fb1
  7. /boot/cmdline.txt -> fbcon=map:10 It not work for me ,Thank you

I'm trying 4 day

Jakkawad avatar Oct 10 '15 15:10 Jakkawad

The rpi-firmware kernel is deprecated now, the official Pi kernel has all the necessary pieces.

  1. sudo rpi-update
  2. /boot/config.txt -> dtparam=spi=on
  3. sudo nano /etc/modules -> fbtft_device name=tm022hdh26 gpios=dc:24,reset:25,led:18 rotate=90
  4. /usr/share/X11/xorg.conf.d/99-fbturbo.conf -> fb1
  5. /boot/cmdline.txt -> fbcon=map:10

Now you should have /dev/fb1 If it doesn't show up, use dmesg to look for errors in the kernel log. Also try loading fbtft_device manually from the command line.

notro avatar Oct 14 '15 12:10 notro

dmesg = Failed to start Load Kernel Modules.

but i'm try sudo mod probe fbtft_device name=tm022hdh26 gpios=reset:25,dc:24,led:18 rotate=90 it work but not load when start

Thank you

Jakkawad avatar Oct 14 '15 19:10 Jakkawad

If you use Raspian Jessie (the latest) it uses systemd, so try this: https://github.com/notro/fbtft/wiki#make-it-permanent-arch-linux

notro avatar Oct 14 '15 19:10 notro

thank you i will try ,and it work for 3.5 inch touch screen? i order i from eBay .

Jakkawad avatar Oct 14 '15 19:10 Jakkawad

and it work for 3.5 inch touch screen?

I don't know

notro avatar Oct 14 '15 19:10 notro

screen shot 2558-10-16 at 12 48 17 am screen shot 2558-10-16 at 12 48 37 am screen shot 2558-10-16 at 12 49 00 am

i'm try this https://github.com/notro/fbtft/wiki#make-it-permanent-arch-linux

Jakkawad avatar Oct 15 '15 17:10 Jakkawad

fbtft_device apparently is loaded before spi-bcm2835 so there's no spi bus 0. Try adding spi-bcm2835 before fbtft_device.

notro avatar Oct 15 '15 18:10 notro

thank you,i will try now

Jakkawad avatar Oct 15 '15 18:10 Jakkawad

it work!!! THANK YOU

Jakkawad avatar Oct 15 '15 18:10 Jakkawad