Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc

    SOLVED RaspberryPi OS 64-bit

    Raspberry Pi App Software
    3
    3
    617
    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
      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_xumm 1 Reply Last reply Reply Quote 0
      • veye_xumm
        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.

        N 1 Reply Last reply Reply Quote 0
        • N
          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
          • First post
            Last post