Results 1 to 28 of 28

Thread: Kali 2.0 on Raspberry Pi with Adafruit 3.5" PiTFT - Help

  1. #1
    Join Date
    2015-Sep
    Posts
    2

    Question Kali 2.0 on Raspberry Pi with Adafruit 3.5" PiTFT - Help

    I'm trying to get Kali 2.0 installed and working on my original Raspberry Pi (model B) with an Adafruit 3.5" PiTFT display.

    I've searched the internet and found nothing that works. There are a couple of posts on this forum that relate in part. The post about the same issue, but with a 2.8" PiTFT which ended up with one of the admins creating an image for it. I tried using that image and it doesn't seem to work with the 3.5" display. I've looked for where some setting might be related to the display that I might change to get it to work with the 3.5" display, to no avail.

    If anyone could offer any help, I would appreciate it.

    Thanks!

  2. #2
    Join Date
    2015-Apr
    Posts
    20
    i've built a couple of these ranging from the 2.8 to the 3.5 to using the adafruit kippah on a 5inch and loosely documented such here https://hackaday.io/project/4557-handheld-kali-pi-v2, if you have any questions i could probably help but honestly, i highly recommend moving to something like a nexus 4 or 5 and running nethunter. In the last few months or so, i picked up a used nexus 5 and the thing is a hammer compared to the handheld pi i had rigged up and about 10 times less obvious that you're doing something sketchy.

  3. #3
    Join Date
    2015-Sep
    Posts
    2
    Update:

    I found device names in '/usr/src/kernel/drivers/video/fbtft/fbtft_device.c' file. Both the 'adafruitrt28' that the image was made for and the 'adafruitrt35' that I am using.

    So, I changed the 'fbtft_device name' from 'adafruitrt28' to 'adafruitrt35' in the '/etc/modprobe.d/pitft.conf' file.

    But on reboot i still just get a blank white screen.

    Any ideas?

  4. #4
    Join Date
    2015-Apr
    Posts
    20
    adafruit made a pitft helper program a while ago, i suggest starting out with the regular kali image for RPi found here https://www.offensive-security.com/k...mage-download/ then install the pitft helper following this https://learn.adafruit.com/adafruit-...i/easy-install. FYI i havent tried this with kali 2.0, i know i did something similar with 1.1.0 but nothing newer so not sure how the new debian kernel is gonna react to it

  5. #5
    The pitft helper program will not work on Kali 2.0.X due to it being Sana (Debian Jessie, I think) and the helper was made only to work on Whezzy. There are also several packages that are need to be installed but not in the default repository.

    The following packages have unmet dependencies:
    adafruit-pitft-helper : Depends: evtest but it is not going to be installed
    Depends: tslib but it is not installable
    Depends: libts-bin but it is not installable
    Depends: fbi but it is not going to be installed
    Depends: wiringpi but it is not going to be installed
    Depends: kpartx but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    Last edited by cyrus104; 2015-11-08 at 19:17.

  6. #6
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Solution:

    I've got the PiTFT 3.5" working with Kali 2.0.1 on a Raspberry Pi 2 using the helper from Adafruit's github, not their web site. That seems to make a difference.
    Here is a walk through:
    http://www.whitedome.com.au/kali-pi

    Pretty, isn't she?
    kali-pi_01-x-tft.jpg

  7. #7
    Join Date
    2016-Jan
    Posts
    6
    Quote Originally Posted by re4son View Post
    Solution:

    I've got the PiTFT 3.5" working with Kali 2.0.1 on a Raspberry Pi 2 using the helper from Adafruit's github, not their web site. That seems to make a difference.
    Here is a walk through:
    http://www.whitedome.com.au/kali-pi

    Pretty, isn't she?
    kali-pi_01-x-tft.jpg
    Hi re4son,

    Looks great Did you use the images.kali.org/kali-2.0.1-rpi2.img.xz as suggested in the article, or did you use the kali-linux-light-2.0-armhf.img.xz from the kali webpage ?
    The version from the article uses Kernel 3.18 rather than 4.0...

  8. #8
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Hi TheStigh,

    I've used kali-2.0.1-rpi2.img for the installation but upgraded to 2016.1 without any problems (apart from a few missing icons in X)
    There's no need to upgrade the kernel, 3.18 seems perfect for the RasPi.
    I've included the steps for the upgrade in my blog under:

    http://whitedome.com.au/re4son/sticky-fingers-kali-pi/

    Have fun,
    Re4son
    Last edited by re4son; 2016-04-16 at 05:44. Reason: Updated links

  9. #9
    Join Date
    2016-Mar
    Posts
    1
    Quote Originally Posted by re4son View Post
    Hi TheStigh,

    I've used kali-2.0.1-rpi2.img for the installation but upgraded to 2016.1 without any problems (apart from a few missing icons in X)
    There's no need to upgrade the kernel, 3.18 seems perfect for the RasPi.
    I've included the steps for the upgrade in my blog under:

    http://whitedome.com.au/re4son/index...ngers-kali-pi/

    Have fun,
    Re4son
    I cannot seam to get mine working... any chance of you sending me an image of the working pi with 3.5 screen [email protected]

    thanks

  10. #10
    Quote Originally Posted by lddmic View Post
    I cannot seam to get mine working... any chance of you sending me an image of the working pi with 3.5 screen [email protected]

    thanks
    My Pi 2 w/ 3.5 tft screen was also having issues, booting to white screen.

    After downloading the rpi2 v 2.1 rolling arm image, and following article above I was able to get the tft screen working.

    I used Adafruit kernel, which was posted on the article. Aswell as Adafruit helper.

    Adafruit helper errored out, unable to locate "/etc/kbt/config". I created the file it was missing and everything worked after next boot.
    Last edited by hightech316; 2016-03-07 at 03:42. Reason: Update : After hooking up exteneral display via HDMI,I'm stuck on a rainbow screen, no text. Keep updated if anything changes

  11. #11
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Hi all,

    I've updated the Adafruit PITFT kernel package to work on the Raspberry Pi 3 (and 2) and also included a patch to fix the unmet dependency issue discovered by hightech316.
    I've also updated the Sticky Finger's Kali-Pi walk through to include the new kernel and a fix of the missing menu icon issue.
    It's all available here:
    http://whitedome.com.au/re4son/sticky-fingers-kali-pi/

    Have fun,
    Re4son
    Last edited by re4son; 2016-04-16 at 05:42.

  12. #12
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Hi everyone,

    I've updated the TFT kernel and applied the wifi injection patch.
    The new package can be downloaded here:

    http://whitedome.com.au/download/Kal...current.tar.gz

    [Update 3-May-2016: New improved kernel]
    [Update 8-May-2016: New improved kernel with bug fixes, support for various TFT screens, kali-pi boot logo and improvements in speed]

    I am no longer using the Adafruit repo for my builds but moved to my own, updated it, fixed some bugs and added some features:

    - kernel 4.1.21
    – no more DMA errors
    – lightning fast
    – kali-pi boot logo
    – support for TFT displays by Adafruit, Elecfreaks, Sainsmart, Waveshare, etc.
    – as always, it comes with wifi injection patch

    The kernel source can be found here:
    https://github.com/Re4son/re4son-ras...i-4.1.y-re4son

    I've also updated the Sticky Finger's Kali-Pi walk through to include the new kernel.

    Have fun,
    Re4son
    Last edited by re4son; 2016-05-08 at 22:26. Reason: New kernel link and info

  13. #13
    Join Date
    2016-May
    Posts
    1

    Quote Originally Posted by re4son View Post
    Hi everyone,

    I've updated the TFT kernel and applied the wifi injection patch.
    The new package can be downloaded here:

    http://whitedome.com.au/download/Kal...current.tar.gz

    [Update 3-May-2016: New improved kernel]
    [Update 8-May-2016: New improved kernel with bug fixes, support for various TFT screens, kali-pi boot logo and improvements in speed]

    I am no longer using the Adafruit repo for my builds but moved to my own, updated it, fixed some bugs and added some features:

    - kernel 4.1.21
    – no more DMA errors
    – lightning fast
    – kali-pi boot logo
    – support for TFT displays by Adafruit, Elecfreaks, Sainsmart, Waveshare, etc.
    – as always, it comes with wifi injection patch

    The kernel source can be found here:
    https://github.com/Re4son/re4son-ras...i-4.1.y-re4son

    I've also updated the Sticky Finger's Kali-Pi walk through to include the new kernel.

    Have fun,
    Re4son
    You

    Are

    the

    MAN!

    Thank you!! Worked great for me, have my 2.8 Capacitive TFT working now.

  14. #14
    Join Date
    2016-Jun
    Posts
    2
    Hi Re4son,

    I followed your tutorial and my 28c pi tft screen is still white upon bootup. The HDMI display has a command line interface for some reason, though I can still login as root user.

    How do I get my screen to work??

    Thanks,
    John

  15. #15
    Join Date
    2016-Jun
    Posts
    2
    My Pi TFT (28c screen) still appears white, even after completing the re4son's latest tutorial. What am I doing wrong?? (I did change 35r to 28c in commands)

  16. #16
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Hi JohnGreen,

    There was a misplaced line feed in the 28c function which I fixed in the latest version.
    Just run the setup tool like this to update it:

    # ./re4son-pi-tft-setup -d

    [UPDATE] Replaced old version:
    Re4son Pi-TFT Setup 1.5.1

    [UPDATE] With new version:
    Re4son Pi-TFT Setup 1.5.2

    The new version works like a charm.

    Sorry for that.

    Many thanks,
    Re4son

  17. #17
    nice work.can you share completed img with us?for email it for me i will share here.
    [email protected]

  18. #18
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Quote Originally Posted by hossein3soot View Post
    nice work.can you share completed img with us?for email it for me i will share here.
    [email protected]
    Hi hossein3soot,

    Good idea, thanks.
    I have created an image, available here:
    https://whitedome.com.au/re4son/download/10447/

    Everything is pre-installed, you only have to set it up for your particular screen via:

    Code:
    cd /usr/local/src/re4son_kali-pi-tft_kernel_*
    mount /dev/mmcblk0p1 /boot
    ./re4son-pi-tft-setup -d    #(updates re4son-pi-tft-setup to the latest version)
    ./re4son-pi-tft-setup -h    #(lists all options - pick your screen from the list)
    ./re4son-pi-tft-setup -t <your screen> -u /root
    reboot
    Thats all if you want to stick with Vanilla Kali.

    Optionally you can enable “Automatic boot into Sticky Finger’s Touch Interface” via:
    Code:
    cd /usr/local/src/re4son_kali-pi-tft_kernel_*
    ./re4son-pi-tft-setup -b cli  # Boot into command line interface
    ./re4son-pi-tft-setup -a pi   # Enable auto-login for user "pi"
    Optimize Sticky Finger’s Touch Interface for your screen size and installation
    Pick one from the following (default is 3.5″ Kali-Pi MSF):
    cd /home/pi/pitft
    Code:
    cd /home/pi/pitft
    git checkout 2.8-MSF  #for 2.8" screen with basic controls, or
    git checkout 2.8-Full #for 2.8" screen with basic controls & OpenVAS, or
    git checkout 2.8      #for 2.8" screen with all controls, or
    git checkout 3.5-MSF  #for 3.5" screen with basic controls, or
    git checkout 3.5-Full #for 3.5" screen with basic controls & OpenVAS, or
    git checkout 3.5      #for 3.5" screen with all controls
    The complete walk through can be found here:
    https://whitedome.com.au/re4son/stic...stalled-image/

    Have fun,
    Re4son
    Last edited by re4son; 2016-06-24 at 12:31.

  19. #19

    non list 3.5 screen lcd

    Quote Originally Posted by re4son View Post
    Hi hossein3soot,

    Good idea, thanks.
    I have created an image, available here:
    https://whitedome.com.au/re4son/download/10447/

    Everything is pre-installed, you only have to set it up for your particular screen via:

    Code:
    cd /usr/local/src/re4son_kali-pi-tft_kernel_*
    mount /dev/mmcblk0p1 /boot
    ./re4son-pi-tft-setup -d    #(updates re4son-pi-tft-setup to the latest version)
    ./re4son-pi-tft-setup -h    #(lists all options - pick your screen from the list)
    ./re4son-pi-tft-setup -t <your screen> -u /root
    reboot
    Thats all if you want to stick with Vanilla Kali.

    Optionally you can enable “Automatic boot into Sticky Finger’s Touch Interface” via:
    Code:
    cd /usr/local/src/re4son_kali-pi-tft_kernel_*
    ./re4son-pi-tft-setup -b cli  # Boot into command line interface
    ./re4son-pi-tft-setup -a pi   # Enable auto-login for user "pi"
    Optimize Sticky Finger’s Touch Interface for your screen size and installation
    Pick one from the following (default is 3.5″ Kali-Pi MSF):
    cd /home/pi/pitft
    Code:
    cd /home/pi/pitft
    git checkout 2.8-MSF  #for 2.8" screen with basic controls, or
    git checkout 2.8-Full #for 2.8" screen with basic controls & OpenVAS, or
    git checkout 2.8      #for 2.8" screen with all controls, or
    git checkout 3.5-MSF  #for 3.5" screen with basic controls, or
    git checkout 3.5-Full #for 3.5" screen with basic controls & OpenVAS, or
    git checkout 3.5      #for 3.5" screen with all controls
    The complete walk through can be found here:
    https://whitedome.com.au/re4son/stic...stalled-image/

    Have fun,
    Re4son


    that was nice job

    what about non list screen such as "SainSmart 3.5" inch TFT LCD 240x320" how to install it?

    thanks man

  20. #20
    what about sainsmart 3.5 LCD? i install 3.2 and screen turn to gray.

  21. #21
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Hi hossein3soot,

    Use -t wave35 for the SainSmart 3.5"
    The screens are identical according to SainSmart (at least that's what it looks like in their documentation)

    Please let me know how you go.

    Good luck,
    Re4son

  22. #22

    Thumbs up

    Quote Originally Posted by re4son View Post
    Hi hossein3soot,

    Use -t wave35 for the SainSmart 3.5"
    The screens are identical according to SainSmart (at least that's what it looks like in their documentation)

    Please let me know how you go.

    Good luck,
    Re4son
    no it's not work,screen turn to gray and no show.

    any idea my hero?

  23. #23
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Hi hossein3soot,

    what does your /boot/config.txt look like? Can you see multiple "Re4son" configuration blocks? If so, just delete it all and run setup again for the wave35.
    If it still doesn't work, find the line:
    dtoverlay=waveshare35a,speed=32000000,fps=50,rotat e=90
    in your /boot/config.txt and remove the "speed=32000000,fps=50," bit
    That should work.

    Good luck,
    Re4son

  24. #24
    it's work thanks man
    Last edited by hossein3soot; 2016-06-27 at 17:55. Reason: chage

  25. #25
    Join Date
    2016-Jan
    Location
    Indonesia
    Posts
    1
    Quote Originally Posted by re4son View Post
    Good luck,
    Re4son
    Hello re4son, i have problem, so im buying tft 3,5 lcd, but i just see white screen on lcd and i found this for resolve my problem. okay so, after i install the kernel, configure wave35 setup, everything is done, and after reboot. i didn't see kali pi boot. just normal boot with 3 berry in top. boot is finish and i didnt see anything. just black screen om my lcd ( im using hdmi to my lcd 32" before and after install kernel). and my tft 3,5" on raspberry still showing white screen. do you have a suggestion?
    btw i do backup before installing kernel.

  26. #26
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Hi d13xar,

    That looks suspiciously like /boot wasn't mounted before you ran the install. You can check that by running "umount /boot" and "ls -l /boot". You shouldn't see any files, just an empty directory.
    If you don't, delete everything in /boot, mount /boot and install the kernel again.
    That should do the trick.

    Good luck,
    Re4son

  27. #27
    Join Date
    2017-Jun
    Posts
    1

    7.0" 40-Pin TFT Display - 800x480

    I have a 7.0" 40-Pin TFT Display - 800x480 connected to the kippah wich is pluged to the pi 3 using the 40 pins setup as follow :
    https://learn.adafruit.com/adafruit-...l-tft/overview

    I followed all the steps here :http://whitedome.com.au/re4son/sticky-fingers-kali-pi/
    and when I want to setup the screen I enter :
    ./re4son-pi-tft-setup -t pi70 -d /root cause its the only 7.0" listed ,but it still not working .
    How do I do to setup this particular screen ?



    Quote Originally Posted by re4son View Post
    Hi hossein3soot,

    what does your /boot/config.txt look like? Can you see multiple "Re4son" configuration blocks? If so, just delete it all and run setup again for the wave35.
    If it still doesn't work, find the line:
    dtoverlay=waveshare35a,speed=32000000,fps=50,rotat e=90
    in your /boot/config.txt and remove the "speed=32000000,fps=50," bit
    That should work.

    Good luck,
    Re4son

  28. #28
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Hi kaliji ,

    sorry missed you post. A config for this screen is not included in my setup tool (yet). The pi70 option is for the "official" raspberry screen.
    You can run "./re4son-pi-tft-setup -r -d /root" to remove the old config and follow this guide to get that display to work:

    https://learn.adafruit.com/adafruit-...t/installation

    You can skip the intro and jump straight to the "Install Device Tree Blob" section.

    Please let me know how you go and I can add an option for this screen in my setup tool.

    Happy hacking.

Similar Threads

  1. Kali Linux on Raspberry Pi 3 w/ PiTFT
    By Maxin8r95 in forum ARM Archive
    Replies: 3
    Last Post: 2016-11-15, 08:46
  2. Kali linux problem (Adafruit pitft)
    By callmesolo in forum Installing Archive
    Replies: 0
    Last Post: 2016-03-27, 04:08

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •