Hi, I’m stuck trying to get two IMX477 cameras working in master-slave (sync) mode on a Jetson Nano. I ran the provided install_all.sh to install the IMX477_master_slave driver and it spits out a bunch of errors and then literally tells me to contact support. I also looked at the driver on GitHub and it looks really old / outdated. Is there an updated IMX477_master_slave driver I can use?
Welcome, and sorry you’re hitting errors on the install. Before I dig in, can you give me a few details so I know exactly which hardware/driver combination you have?
Which IMX477 variant are the two cameras (the model number printed on the board, e.g. B0249)?
Are you following a specific guide/video for the master-slave setup? If so, which one?
What does the tail end of the install_all.sh output look like (the part right before the error and the support message)?
Can you run these and paste the output:
uname -r
lsmod | grep -i imx477
v4l2-ctl --list-devices
i2cdetect -y -r 6 (and any other i2c bus the second camera sits on)
That’ll tell me whether the problem is the installer, the kernel headers, or the driver source itself.
To recap the original problem: I ran install_all.sh to install the IMX477_master_slave driver and it prints error messages and then advises contacting support. I don’t get a working module at the end at all.
If the two cameras are on different CSI connectors they’ll usually show up on different i2c buses, so let’s confirm both are actually visible to the system before we blame the driver.
OK, here’s roughly what I get. The tail of the output looks like this:
[ OK ] removing old arducam drivers
[ OK ] copying driver source
[ .. ] building module for 4.9.253-tegra-32.6.1-20210726122000
make -C /lib/modules/4.9.253-tegra/build M=/home/nano/arducam/IMX477_master_slave modules
make[1]: *** /lib/modules/4.9.253-tegra/build: No such file or directory. Stop.
make: *** [Makefile:12: default] Error 2
[FAILED] driver build failed
Please contact [email protected] for assistance
And the checks:
$ uname -r
4.9.253-tegra-32.6.1-20210726122000
$ lsmod | grep -i imx477
(no output)
$ i2cdetect -y -r 6
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- 1a -- -- -- -- --
$ i2cdetect -y -r 7
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- 1a -- -- -- -- --
So both cameras seem to be detected on i2c, but no driver is loaded.
Good, that’s a useful data point. /lib/modules/4.9.253-tegra/build missing means the installer can’t compile anything — that path is normally a symlink to the kernel source/headers. Nothing will build until that exists, regardless of how new the driver source is.
Try installing the L4T kernel headers that match your exact kernel build:
After that, re-run the installer and paste the new tail (or the whole install.log if it’s short). If it gets further this time, that tells us the header issue was masking a second problem.
The headers package installed and now /lib/modules/4.9.253-tegra/build points to the kernel source. Re-ran the installer and it gets further but still dies.
This time the compiler actually starts on the module and then bails out. Excerpt:
CC [M] /home/nano/arducam/IMX477_master_slave/imx477_master_slave.c
/home/nano/arducam/IMX477_master_slave/imx477_master_slave.c: In function 'imx477_probe':
/home/nano/arducam/IMX477_master_slave/imx477_master_slave.c:314:21: error: unknown type name 'camera_common_regmode'
/home/nano/arducam/IMX477_master_slave/imx477_master_slave.c:402:9: error: 'struct camera_common_data' has no member named 'priv'
/home/nano/arducam/IMX477_master_slave/imx477_master_slave.c:588:2: error: implicit declaration of function 'camera_common_power_on'
make[2]: *** [scripts/Makefile.build:315: /home/nano/arducam/IMX477_master_slave/imx477_master_slave.o] Error 1
make: *** [Makefile:12: default] Error 2
[FAILED] driver build failed
There’s also a prebuilt .ko included in the package, so I tried forcing that one with insmod just to see, and it refuses to load:
$ sudo insmod imx477.ko
insmod: ERROR: could not insert module imx477.ko: Invalid module format
$ dmesg | tail -n 5
imx477: version magic '4.9.140-tegra SMP preempt mod_unload aarch64' should be '4.9.253-tegra-32.6.1-20210726122000 SMP preempt mod_unload aarch64'
So it compiles against the current headers only if I patch a lot of stuff, and the shipped binary is built for a much older kernel.
Quick addition — the cameras themselves are fine in normal mode. When I boot with the regular Arducam IMX477 driver (non-sync), v4l2-ctl --list-devices shows video0 and video1 and I can capture from both. The problem only shows up when I try to put them into master-slave mode with the IMX477_master_slave driver.
Also, I went back and looked at the GitHub side: the IMX477_master_slave driver hasn’t been touched in a very long time and there are several open issues from other people asking for an update, so I’m clearly not the only one.
Thanks for the extra detail — the fact that both sensors are detected on i2c and stream fine on the standard driver confirms your hardware and cabling are OK, and this is purely a driver-side problem.
I checked internally on the master-slave driver. Unfortunately this one is in a different situation than the standard IMX477 driver: the IMX477_master_slave driver hasn’t been maintained for a long time, and its sync performance was never good enough for practical use. Because of that, development of this driver was discontinued a while back, and there is no updated/fixed version available on our side to send you. That also explains everything you’re seeing — it was written against an old L4T kernel, so it won’t build cleanly against 4.9.253-tegra-32.6.1, and the bundled .ko has a version magic (4.9.140) that can’t load on your kernel. There’s no ETA for a new version either, since the project isn’t being continued.
That’s disappointing but good to know it’s not something I’m doing wrong.
If there’s no maintained driver, can I get the source code of the IMX477 master-slave driver? I’m willing to port it myself to a newer JetPack — I’d just need the actual source. I downloaded the zip package named ‘sourcecode’ from the GitHub releases page (Releases · ArduCAM/MIPI_Camera · GitHub) and there is no code in it at all — it’s basically empty, just folders with nothing useful inside. And since there are still people opening issues asking for an update, there’s clearly demand for it.
Let me summarize where this lands so it’s clear for anyone else reading the thread later:
Current conclusion: the IMX477_master_slave driver is effectively deprecated/abandoned. It was last built for a much older L4T kernel (version magic 4.9.140-tegra), it does not compile against 4.9.253-tegra-32.6.1-20210726122000 without heavy rework, and the prebuilt .ko won’t load due to the kernel version mismatch. Development of this driver was discontinued because its sync performance never reached a usable level, so there is no updated or fixed master-slave driver available, and no schedule for one.
On the source request: the sourcecode zip on the releases page does not contain the master-slave source, and there’s no published updated copy of it that I can point you to. I’ve noted the request and the interest from the other GitHub issues, but I can’t promise a release — the project isn’t being actively developed.
Practical options for a sync setup on Nano right now:
Run the two IMX477s independently with the standard driver (which you already confirmed works).
If you need true simultaneous capture, an external trigger / hardware sync approach is the more realistic route than the software master-slave driver.
If you want to know whether any current alternative sync solution exists, the sales side is the right channel to check availability rather than support.
If you’d like, reply here with which JetPack version you’d target for a port, and I can at least tell you which camera_common / V4L2 APIs in that kernel changed most between your kernel and newer ones — that’s usually the bulk of the work when reviving source like this.