VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    RaspberryPi OS 64-bit

    Scheduled Pinned Locked Moved Raspberry Pi App Software
    3 Posts 3 Posters 2.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      natzguk
      last edited by

      Hi I am on 64-bit Raspberry Pi 4B

      Operating System: Debian GNU/Linux 12 (bookworm)
      Kernel: Linux 6.1.0-rpi6-rpi-v8
      Architecture: arm64

      Unfortunately I can not use VEYE-MIPI-X I2C.sh since i2c_read and i2c_write are only for 32bit. Is there any support for 64-bit planned?

      veye_xummV 1 Reply Last reply Reply Quote 0
      • veye_xummV Offline
        veye_xumm @natzguk
        last edited by

        @natzguk Hello, these two programs are written in C language, and the source code is provided in the directory. You just need to recompile them.

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          newleaf @veye_xumm
          last edited by newleaf

          @veye_xumm For anyone else. This works perfectly. Note that when recompiling on 64-bit Pi, the following warning is produced. It still builds. Just copy the outputs to bin and the scripts work fine.

          ./make.sh
          i2c_read.c: In function ‘main’:
          i2c_read.c:112:35: warning: passing argument 4 of ‘i2c_rd’ from incompatible pointer type [-Wincompatible-pointer-types]
            112 |  i2c_rd(fd, device_addr,reg_addr, &value, num);
                |                                   ^~~~~~
                |                                   |
                |                                   unsigned char (*)[512]
          i2c_read.c:20:68: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char (*)[512]’
             20 | static int i2c_rd(int fd, uint8_t i2c_addr, uint16_t reg, uint8_t *values, uint32_t n)
          
          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post