1.Which seller did you purchase the product(s) from?
Scorpion Vision
2.The Model number of the product(s) you have purchased?
IMX298/UC-572
3.Which Platform are you using the product(s) on?
Raspberry Pi4 running Raspberry Pi OS 64 bit
4.Which instruction are you following?
github
5.Has your product ever worked properly?
Yes, on 32 bit
6.What problems are you experiencing?
Hello,
I’m trying to get the UC-572 with the IMX298 camera working on 64 bit Raspberry Pi OS after having successfully got it working on a Raspberry Pi 32 bit OS. I’ve taken the following steps:
Enable camera and arm I2C
Install dependencies as listed on the MIPI_Camera page
There is a lib/aarch64 folder which contains a library for the camera, follow the README.md instructions to build mmal and copy the resultant so files with /usr/lib/aarch64-linux-gnu/
Copy the file lib/aarch64/libarducam_mipicamera.so to /usr/lib
We depend on WiringPi which is not available for the 64 but version so compile the library from a fork of Wiring Pi (https://github.com/WiringPi/WiringPi.git).
make arducamstill
When I test arducamstill I get:
pi@raspberrypi:~/MIPI_Camera/RPI $ ./arducamstill -t 0
Open camera…
sh: 1: i2cdetect: not found
I2C check functionality fail.
init camera status = 4098
This also crashes the RPi4 and it becomes unresponsive requiring a hard reboot. After a reboot I try to run ./camera_i2c and get the following:
root@raspberrypi:/home/pi/MIPI_Camera/RPI/utils# ./camera_i2c
setting GPIO for board revsion: c03111
Raspberry Pi3B / Pi3B+ / 3A / 4B(1G/2G/4G)
./camera_i2c: 151: ./camera_i2c: ./rpi3-gpiovirtbuf: not found
./camera_i2c: 155: ./camera_i2c: cannot open 5.0: No such file
./camera_i2c: 155: ./camera_i2c: [[: not found
./camera_i2c: 158: ./camera_i2c: i2cdetect: not found
root@raspberrypi:/home/pi/MIPI_Camera/RPI/utils#
This also crashes the board and it becomes unresponsive requiring a hard reboot again.
This is as far as I have got, can someone please help me to work through the steps to determine where my issue lies?
Thanks very much, I’d be happy to write up a guide on 64 bit raspberry pi OS installation when I’m done!
Regards,
Neil
7.What attempts at troubleshooting have you already made?
documentation searching
8.How would you like us to help you?
advise on 64 bit operation
As you can see from the original post, I followed the README.md from that link plus installed a 64 bit version of wiringpi that this library depended upon. It isn’t working as per the above description. I can’t do much more as the utils tools are 32 bit.
Can you please advise as the steps to follow to determine the problem. Note that I have the hardware working on 32 bit.
pi@raspberrypi:~/MIPI_Camera/RPI $ ./arducamstill -t 0
Open camera…
sh: 1: i2cdetect: not found
I2C check functionality fail.
init camera status = 4098
Then the RPi4 just freezes and needs a hard reboot.
I really need some help on this please - once I have this resolved I’m looking to buy 100+ units.