WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: fbtft  (Read 27597 times)

Offline nowhinjing

  • Newbie
  • *
  • Posts: 30
Re: fbtft
« Reply #15 on: October 08, 2015, 06:43:19 AM »
@jgrilich

Your diagnosis was completely right.

Inserted the missing space and now it is working as expected.

Thank-you so much for your time and patience with a stupid newbie.

Best regards to all.

Offline Michielo

  • Newbie
  • *
  • Posts: 4
Re: fbtft
« Reply #16 on: November 13, 2015, 02:36:32 PM »
Hi all,

First of all, let me thank szymtro for compiling and sharing the kernel images for picore.

Now, I am totally new to using and configuring a touchscreen on the rpi, so apologies for my noobish question.

I recently bought a Waveshare 3.5 (a) touchscreen which I would like to use with Picore. So I downloaded and burned the Picore 6.1 image to a SD card and after burning opened the fat partition in windows explorer. I also downloaded the 2 *.img files and the *.sh file as suggested by szymtro. Based on nowhinjing's feedback, I should be able to get this screen working using the guidelines provided in this topic.

However, when I want to copy these 3 files to the FAT partition of my SD card, I get an error that I do not have enough free space on the SD Card (I need around 11 mb, but there is only about 4 mb left).

Any help on solving this would be highly appreciated.

Thanks,

Michielo

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 402
Re: fbtft
« Reply #17 on: November 13, 2015, 03:33:13 PM »
hi Michielo,

Unless you are comfortable with deleting and creating partitions, it might be better to copy to the second partition.

Use the piCore-x.0-SSH.zip or piCore-6.0-X.zip so you can use ssh/scp to transfer the files from your PC to your RPi. I use winSCP.

If you need to increase of the second partition following the instructions in README on the boot partition or download area.

If you proceed putting the files on the FAT partition remember it is not mounted after booting.

regards
Greg

Offline Michielo

  • Newbie
  • *
  • Posts: 4
Re: fbtft
« Reply #18 on: November 14, 2015, 12:16:00 AM »
Hi Greg,

Thanks for your response. I fancy a challenge once in a while so I don't mind extending the partition. If I put the files on mmcblk0p2, would I need to change anything in config.txt or cmdline.txt considering both txt files are on partition 1 with the kernel images being on partition 2.

Thx

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: fbtft
« Reply #19 on: November 14, 2015, 04:34:47 AM »
Hi Michielo,
it's better to use the last TC7 distro which has kernel files already updated for TFT and overlay.
Everything what you than need is attached.

Offline Michielo

  • Newbie
  • *
  • Posts: 4
Re: fbtft
« Reply #20 on: November 14, 2015, 07:28:33 AM »
Thanks for your response, jgrulich. I assume installation instructions are the same as those on the Waveshare wiki

i.e.:
(1) download and burn latest Picore 7 alpha release to SD
(2) extract your zip file and copy the waveshare35a folder to partition 1 on SD
(3) put SD in Rpi and boot Rpi
(4) mount partition 1 and go to waveshare35a folder on the SD
(5) execute sudo ./LCD35-show

Can I also use the wiki guidelines for screen calibration under Picore?

Thanks,

Michielo
« Last Edit: November 14, 2015, 07:39:00 AM by Michielo »

Offline Michielo

  • Newbie
  • *
  • Posts: 4
Re: fbtft
« Reply #21 on: November 21, 2015, 05:45:32 AM »
Tried a couple of different approaches, but none seem to result in a working screen. I tried
(1) just executing sudo ./LCD35-show while in the folder on partition 1, but that gives me an error on mkdir /etc/X11/xorg.conf.d
(2) doing same as (1) but while in partition 2 which resulted in the same dir error
(3) amending ./LCD35-show so the commands have absolute file/dir references in stead of relative references. For example /mnt/mmcblk0p1/LCD-show/LCD-show35 in stead of ./LCD-show35 and repeated (1) resulting in same dir error and (2) still the same dir error.
(4) manually executed steps in ./LCD35-show while in the appropriate directory on my SD. I managed to copy all the files. Before rebooting I added the appropriate files/directories to /.filetool.lst and saved everything using filetool.sh -b. Rebooted my Rpi, but than it hangs on boot. It runs through part of the boot process and than just hangs. Can't remember exactly at what point during boot or the msg it displays.

Can anyone tell me what I am doing wrong. I know the screen works because I managed to get it working under Raspbian using the image file provided by Waveshare.

Thanks for your help.

Kind regards,

Michielo

Offline szymtro

  • Newbie
  • *
  • Posts: 9
Re: fbtft
« Reply #22 on: November 28, 2015, 02:19:35 AM »
If you would like to use tc 6.1 You can do it alternatively.
Inserd sd and open Your favorite disk manager. Create fat partition with size lat's say 256MB and set boot flag.
Then eject and reinsert it again. Copy all files from unziped tc6.1 original image. Then copy my files over it and make necessary changes in config.txt and commandline.txt and it should work.

If You will use tc 7 a fbtft is already built in in staging directory.
To be sure run modprobe fbtft and analyse if dmesg shows that fbtft is at least doing something.

If all is allright try:
sudo modprobe flexfb  width=320  height=480  regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3

sudo modprobe fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24

Offline nowhinjing

  • Newbie
  • *
  • Posts: 30
Re: fbtft
« Reply #23 on: December 24, 2015, 06:56:39 AM »
Hi,

can anyone please tell me how to get the fbtft drivers loaded in piCore7rc1 ?

I have tried loading the appropriate dtoverlay, which I though might load the drivers, but modprobe fbtft returns not found and there is no mention of fbtft in dmesg.

HELP !

With thanks in advance ...

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: fbtft
« Reply #24 on: December 26, 2015, 08:09:49 AM »
Install the kernel modules, look for tft, or similar.

Offline nowhinjing

  • Newbie
  • *
  • Posts: 30
Re: fbtft
« Reply #25 on: December 27, 2015, 04:53:40 AM »
thank-you for your reply.

I have searched this forum, and Googled for information on how to recompile the kernel to include modules from the staging directory, but can not find anything that my simple mind can follow.

If anyone knows of such, a link would be much appreciated.

with thanks in advance ...

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: fbtft
« Reply #26 on: December 27, 2015, 08:45:15 AM »
You don't need to do anything of this, simply download the kernel modules here:
http://tinycorelinux.net/7.x/armv6/releases/RPi/src/kernel/
and update the tft.tcz package with this in case if there is some difference, otherwise only rename the kernel folder in the tcz and remake it with the new folder name to load it to the right directory.

Offline nowhinjing

  • Newbie
  • *
  • Posts: 30
Re: fbtft
« Reply #27 on: December 28, 2015, 12:16:22 AM »
@jgrulich - thanks for your reply, I will give it a go and report back.


Offline nowhinjing

  • Newbie
  • *
  • Posts: 30
Re: fbtft
« Reply #28 on: January 02, 2016, 06:10:23 AM »
@jgrulich - thanks for the pointers - I think I understand it now, having managed to produce an updated version of your tft.tcz posted above.

A steep learning curve, but worth it in the end.

All the best for the new year to all readers ...

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: fbtft
« Reply #29 on: January 02, 2016, 11:31:52 AM »
@nowhinjing - please share the link for the updated version of the tft.tcz, or send it to Béla to add it to the repo to be available for others.

Have you used standard setup, or used some extra steps? Please share.

All the best for NY 2016 !!!