Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3831

Troubleshooting • Re: I can't project my Raspberry Pi 4 Model B onto the ILI9341 TFT screen.

$
0
0
sorry didnt mean to offend you. actualy I asked the person who created the topic, if he did use your guide and did run the display. becuse I couldnt :cry:
so because you respond to the previous post, please guide me through that, I am a noob here :oops:
I read your post but i coudlnt run my display. I need to use the ili9341 on the raspberry3 with kernel 6.1.21-v7+. I only need to display some digits on the display, not the whole desktop output. I did wired up the display like this:
Image
after that I read that "fb_ili9341" is deprecated. but I did load it with modprob:
"sudo modprobe fb_ili9341"
and it loaded to the os. I made it run at the startup by add it to "/etc/modules"
then I added this lines to the "/boot/config.txt":
dtoverlay=fbtft,spi0-1cs,speed=16000000,dc_pin=25,reset_pin=24
dtparam=spi=on

but it didnt add a fb device to the os. the os only knows the main display connected through HDMI at /dev/fb0
and I get this errors at startup
"dmesg | grep spi
[ 6.885074] SPI driver fb_ili9341 has no spi_device_id for ilitek,ili9341
[ 8.077480] spi_master spi0: cannot find modalias for /soc/spi@7e204000/display@0
[ 8.077549] spi_master spi0: Failed to create SPI device for /soc/spi@7e204000/display@0"

so I chose to use "mi0283qt" driver instead. load it with /etc/modules" and I removed the line that uses "fbtft", replaced it with this:
dtoverlay=mi0283qt,dc_pin=25,reset_pin=24

the errors are gone.
dmesg | grep spi
[ 6.841293] SPI driver fb_ili9341 has no spi_device_id for ilitek,ili9341

but there is no new fb device on the /dev
and i get this on dmesg
"dmesg | grep fb
[ 2.158405] simple-framebuffer 3ee7b000.framebuffer: fb0: simplefb registered!
[ 6.825407] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.836762] fb_ili9341: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.841293] SPI driver fb_ili9341 has no spi_device_id for ilitek,ili9341
[ 9.387522] vc4-drm soc:gpu: [drm] fb0: vc4drmfb frame buffer device"
with each driver


but when I use this command "cat /sys/bus/spi/devices/spi0.1/modalias" there is the default spi driver at the os that drives the device. the output is this "spi:spidev". i tried to unbind this driver and use the "mi0283qt" driver manually, but i couldn't succeed to unbind the spidev driver

so I dont know what to do. I even created a dtb and compiled it, and used it in /boot/config.txt but it didnt work.

so I am hopeless. can you please show me what am I doing wrong?

Statistics: Posted by allo0osh — Fri Dec 06, 2024 6:16 pm



Viewing all articles
Browse latest Browse all 3831

Trending Articles