Results 1 to 3 of 3

Thread: Kali and raspi-gpio for arm64

  1. #1
    Join Date
    2015-Oct
    Location
    TX
    Posts
    3

    Kali and raspi-gpio for arm64

    Anyone have a link for a package for raspi-gpio for the arm64 package? I have a new case for my RPi 4 with some control capabilities of a fan and other items from Argon40 and the controlling script requires raspi-gpio package.

    My thanks in advance,

    Michael

  2. #2
    Join Date
    2020-Jul
    Posts
    1

    I've just got it working. Try this!

    Krogstad,

    I was facing this problem myself. I've already had a troublesome experience with Manjaro but that one had more to do with the packaging method. Anyway, I just managed to get it working on "Kali Linux RaspberryPi 2 (v1.2), 3 and 4 (64-Bit). My case is Argon1 for Raspberry PI4 from Argon40.

    Follow these steps:

    1. If you just want to get on with business quickly, run:

    "sudo curl https://raw.githubusercontent.com/me...ster/argon1.sh |bash". This will install the required files and any required dependencies.


    Otherwise, if you want to keep your file for future use, go to your home directory and create a folder like "argonone". download the following script from C?dric Meuter which was intended for it to be used on Ubuntu 20.04
    ( The URL to his great work is: https://github.com/meuter/argon-one-case-ubuntu-20.04 )

    Make the script executable (chmod +x filename.sh) and then run it.

    2. Configure your Argon1 to run the fan permanently. This will help you know if you have gotten the fan to work properly on the spot.

    "argonone-config" followed by "1" for "Always on".

    If the fan doesn't run, follow these steps:


    a) Check your config.txt file

    "sudo nano /boot/config.txt"

    and make sure you have uncommented "dtparam=i2c1=on" somewhere in the configuration:


    b) run the argononed service as a python script to get more details from Python:

    "sudo /usr/bin/python3 /usr/bin/argononed.py"

    If you get the following error:

    Traceback (most recent call last):
    File "/usr/bin/argononed.py", line 11, in <module>
    bus = smbus.SMBus(1)
    FileNotFoundError: [Errno 2] No such file or directory

    The problem is probably caused because either the fan is not connected or Kali didn't load the i2c Module. Let's check that out first.

    "sudo i2cdetect -y 1"

    If you get this error:

    Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory

    Run lsmod and look for anything with "i2c"

    "lsmod |grep i2c"

    You should see something like:

    i2c_bcm2835 16384 0

    If you do, turn on the corresponding Linux module

    "sudo modprobe i2c-dev"

    Now look for i2c again in lsmod

    "lsmod |grep i2c"

    You should see something like:

    i2c_dev 20480 0
    i2c_bcm2835 16384 0

    So now the module is up and running.

    We can verify that by typing:

    "sudo i2cdetect -y 1"

    If the module has been loaded successfully, you should see something like:

    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00: -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- 1a -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --

    Now you can test the Argon1 python3 script:

    "sudo /usr/bin/python3 /usr/bin/argononed.py"

    You should now be able to hear the fan.

    One last step is to ensure we boot with the module turned on so the fan and buttons work as expected.

    "sudo nano /etc/modules" and add on:
    i2c-dev

    Don't forget to configure the fan behaviour by running "argonone-config"


    In addition to the great work from C?dric Meuter, the following Pi Forum thread helped me figure the last part of the problem. https://www.raspberrypi.org/forums/v...c.php?t=115080

  3. #3
    Join Date
    2015-Oct
    Location
    TX
    Posts
    3

    Worked like a charm.

    That was the trick. Thank you SO much for your assistance and great documentation.

    Michael

Similar Threads

  1. Raspi zero w gpio gui output
    By Inigma13 in forum Kali Linux TroubleShooting
    Replies: 0
    Last Post: 2020-03-03, 22:43
  2. Kali Linux on Raspberry Pi4 and GPIO Pins not working.
    By SprayPaint in forum Kali Linux TroubleShooting
    Replies: 1
    Last Post: 2020-02-29, 21:38
  3. Kali on SCB ARM64
    By monmoonmooonmoooon in forum ARM Archive
    Replies: 0
    Last Post: 2015-12-17, 10:21
  4. How to get GPIO working?
    By aleza84 in forum ARM Archive
    Replies: 1
    Last Post: 2015-11-26, 13:58

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
  •