Add-ons

ili9341

4 3548
Edited by c_lacata at Wed Jan 14, 2015 17:48

Hello I just installed successfully a ili9341 tft screen on BananaPi

First update your OS
http://forum.lemaker.org/thread- ... images_updated.html

Wiring :
http://blog.riyas.org/2014/07/qu ... -raspbmc-fbtft.html

Update Driver

  1. sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
  2. sudo shutdown -r now
Copy the Code
add in /etc/modules (end of file)

  1. spi-sun7i
  2. fbtft dma=0
  3. fbtft_device custom name=fb_ili9341 gpios=reset:25,dc:24,led:18 speed=16000000 rotate=90 bgr=1
Copy the Code
remove spi blacklist  in /etc/modeprobe.d  (2 file ? bpi-blacklist.conf and raspi-blacklist.conf)

reboot

test with fbtest

  1. apt-get install libnetpbm10-dev
  2. git clone https://git.kernel.org/pub/scm/linux/kernel/git/geert/fbtest.git
  3. cd fbtest
  4. # fb.c - remove #include <asm/page.h>
  5. make
  6. ./fbtest --fbdev /dev/fb2
Copy the Code
launch
  1. con2fbmap 1 2
Copy the Code
and you can show console

for use this screen at boot edit /boot/uEnv.txt and add before rootwait

  1. fbcon=map:2
Copy the Code
or for startX
Create a config file with following contents in /usr/share/X11/xorg.conf.d/99-fbdev.conf:

  1. Section "Device"  
  2.   Identifier "myfb"
  3.   Driver "fbdev"
  4.   Option "fbdev" "/dev/fb2"
  5. EndSection
Copy the Code
Launch :
  1. FRAMEBUFFER=/dev/fb2 startx
Copy the Code
Enjoy !!
Deutz  
Thank you for that great tutorial. I got my TFT (exactly the one from the wiring scheme) going on arduino, but not on the bananapi. I made the updates/upgrades, the changes in etc and downlaoded the fbtest. But there was no "#include <asm/page.h>". I run make, but with "./fbtest --fbdev /dev/fb2" I get the answer "open /dev/fb2: No such file or directory". In /dev I have only fb0 and fb1.
Without options I get: "root@lemaker:/home/bananapi/fbtest# ./fbtest --fbdev /dev/fb1
Using drawops cfb32 (32 bpp packed pixels)
Available visuals:
  Monochrome
  Grayscale 256
  Truecolor 8:8:8:8
Using visops truecolor
Running all tests
test001: PASSED
test002: PASSED
test003: PASSED
test004: PASSED
test005: PASSED
test006: PASSED
test008: PASSED
test009: PASSED
test010: PASSED
test011: PASSED
Benchmarking... 10x10 squares: 38.36 Mpixels/s
Benchmarking... 20x20 squares: 60.68 Mpixels/s
Benchmarking... 50x50 squares: 81.61 Mpixels/s
Benchmarking... 100x100 squares: 90.87 Mpixels/s
Benchmarking... 200x200 squares: 94.37 Mpixels/s
Benchmarking... 500x500 squares: 100.85 Mpixels/s
test012: PASSED
With options fb0 or fb1 I get in the end:"... test012: PASSED
ioctl FBIOPUT_VSCREENINFO: Invalid argument
Caught signal 11. Exiting
Speicherzugriffsfehler" (=memory access error)
The screen is black all the time and as I said, the screen is working on arduino.
Than this:
"root@lemaker:/home/bananapi/fbtest# con2fbmap 1 2
ioctl FBIOPUT_CON2FBMAP: Invalid argument"
root@lemaker:/home/bananapi/fbtest#  con2fbmap 1
console 1 is mapped to framebuffer 0
Where is the mistake?
Thank you, Deutz

vovanxp  
Edited by vovanxp at Wed Sep 23, 2015 14:11

I used Raspbian and it worked !!!Thank you c_lacata

Pete  
Thanks for sharing this information with us. I would love to hear more from you on this topic. I have seen your post in site Edubirdie. I am glad, i have found your post. Keep sharing informative post.

wty123  
oakley, cheap nfl jerseys, bills jerseys, air max, mcm backpack, michael kors, burberry, nike free 5.0, dolphins jerseys, marc by marc jacobs, nike shoes, mavericks jerseys, ferragamo shoes, rayban, salomon schuhe, cowboys jerseys, ray bans, cheap ray ban, guess bags, michael kors outlet online, redskins jerseys, burberry, zapatillas nike, nike roshe run, mizuno, mizuno running shoes, burberry outlet, moncler women jackets, adidas zx flux, skechers canada, true religion jeans women, adidas superstar, belstaff jackets outlet, washington wizards jersey, mcm handbags, reebok outlet, jordan retro, oakley sunglasses, nike air force, rayban, coach outlet usa, north face backpacks, nike air max thea, michael kors uk, giuseppe zanotti sneakers, true religion outlet, memphis grizzlies jersey, cheap jack wolfskin, philipp plein clothing, oakley sunglasses, mbt womens shoes, hugo boss outlet online, pandora jewellery australia, sacramento kings, under armour outlet, burberry sale, nike.com, thomas sabo, true religion jeans outlet, oakley sunglasses, chrome hearts rings, cheap jerseys, coach outlet online, roshes, coach factory outlet online, burberry outlet online, azcardinals jerseys, oakley sunglasses, lacoste shirts, jets jerseys, minnesota timberwolves jersey, chiefs jerseys, coach black friday, nike tn, pandora canada, tory burch handbags, relojes, nike air huarache, fendi, steelers jerseys, armani outlet online, longchamp outlet, nike soccer shoes, ray ban sunglasses, oakley, nike air max, the north face, hermes birkin bag, michael kors bags, gafas oakley, lacoste, ferragamo, kate spade bags, red bottom, north face, utah jazz jersey, stone island, polo ralph lauren outlet online, oakley frogskins, sunglasses for women, swarovski, converse outlet, nike shoes, dre beats, nike factory, adidas yeezy shoes, mcm bags, lunette ray ban, air max thea, cheap oakley sunglasses, nike fu?ballschuhe, coach usa, beats by dre headphones, ralph lauren outlet online, hermes outlet, barbour jacket outlet, panthers jerseys, lac jersey, burberry, ecco shoes outlet, nike running, www.tommyhilfiger.nl, new balance shoes, nfl jerseys, vans outlet, new orleans pelicans jersey, pandora charms, moncler mens jackets, uggs canada, asics gel, tommy hilfiger canada, michael kors, polo ralph, hogan mens shoes, ralph lauren polo, prada handbags, coach factory outlet, celtics jersey, swarovski crystal, chargers jerseys, dsquared2, air max 90, ralph lauren outlet, burberry online shop, bottega veneta, swarovski online shop, louboutin, vans shoes, thomas sabo jewellery, broncos jerseys, converse shoes, barbour jackets, michael kors bags, polo outlet online, timberland outlet, seahawks jerseys, jordan shoes, marc by marc jacobs, handbags outlet, cheap jerseys, oakley sunglasses cheap, timberland, ferragamo shoes, nba jerseys, burberry outlet store, nike free, browns jerseys, links of london charms, timberland boots, cheap jerseys, nfl jerseys, jordan shoes, under armour shoes, longchamp, ralph lauren, prada shoes, puma online shop, oakley sunglasses, north face jackets, nike running shoes, hilfiger outlet, valentino outlet, true religion outlet, cheap nba jerseys, saints jerseys, eyeglasses stores, mcm handbags, nike free run,

You have to log in before you can reply Login | Sign Up

Points Rules