Hi, I’m with OpenHD. I’m trying to get the IMX519 autofocus camera module (the one for Raspberry Pi and Jetson Nano) running on a Jetson Nano 2GB and a Jetson Nano 4GB, and I just can’t get it to work. The core problem is that OpenHD requires a custom kernel to run our system, so there’s no way we can just install your prebuilt kernels and go with it. To support the camera we need a kernel-module, or the driver source, so we can build it into our own kernel. Just releasing custom-built kernels doesn’t count as a driver for us. I’ve been following the instructions at GitHub - ArduCAM/MIPI_Camera · GitHub but I never got it to work, honestly not even close. Is a usable driver/module available anywhere?
Hi Raphael, thanks for the detailed report. We’re happy to support this and we’d genuinely like to get the IMX519 (and its variants) working for the OpenHD community. For context, we’ve already brought some of our customized Pi cameras (V1/V2/HQ) over to the Jetson platform, and we’re in talks with Nvidia about creating more Jetson-based camera solutions, so better Jetson support is coming.
To point you in the right direction, a few questions:
- Which kernel version are you building against for the Nano?
- How exactly are you pulling in the driver right now — as an out-of-tree module, or as a patched-in driver?
- Do you get any build errors, or does it compile but the camera just isn’t detected (nothing on /dev/video0, no dmesg probe lines)?
I didn’t see any logs attached, so if you can share the relevant dmesg output or your build log that would help a lot.
No logs yet, sorry — nothing flashes on dmesg because I never get that far. Here’s what I’m working with:
Our kernel builder is here: https://github.com/OpenHD/OpenHDKernelBuilder/blob/2.1-milestones/build.sh
I started trying to integrate “that stuff” a few days ago. I think the issue is I’m leaving out most of the stuff inside the nvidia folder in the kernel-builder — lines 132 to 144 of build.sh are where I’m including files, and I suspect that’s where it falls apart. I also considered just moving the driver inside the kernel/kernel-folder and integrating it into the regular Linux kernel tree directly, but I haven’t had time for that yet.
One more thing worth flagging: installing your install-script completely messes up my setup. For anyone running a custom kernel like us, the kernel basically gets scrapped when installing the “driver”. At minimum there should be a warning about that.
Thanks, that clears it up. Here’s the root cause: our prebuilt kernels and the install-script assume you’re running the stock vendor kernel, so they overwrite it — which is exactly what’s scrapping your build. That path will never work for OpenHD.
The right approach is the one you already suspected: build your own kernel, add the camera driver source, and apply a few tweaks (module + device tree overlay) rather than installing our prebuilt images.
I wrote a guide that walks through adding the IMX519 driver to a custom kernel build:
Work through that and let me know how far you get — if you hit a specific error, post the build output or dmesg and I’ll dig in with you.
Got it — thanks for the guide. That’s basically what I was planning to do but this saves me some guessing. I’ll be starting to work on this again later this week and I’ll report back once I’ve had a go at it.
No rush — just checking in. Did the custom-kernel guide get you anywhere, or are you still blocked? If the driver builds but the sensor still isn’t probing, paste the output and I’ll take a look.
Sorry, haven’t had a chance to get back to it yet — I’ll be starting to work on this again later this week. I’ll update this thread once I’ve actually run it through the build.
Understood, standing by. To summarize where we are for anyone finding this thread later:
- Running a prebuilt Arducam kernel or the install-script is a dead end on a custom-kernel system — it overwrites/replaces the kernel you built (that’s the “kernel gets scrapped” behavior).
- The workable path is to keep your own kernel and add the IMX519 driver source plus the required device tree tweaks as part of your build (the OpenHD kernel builder is the right place for this).
- The custom-kernel build guide above walks through adding the driver and making the needed tweaks.
We haven’t confirmed a working camera yet — Raphael is going to attempt the custom-kernel integration and report back. If anyone else has already cross-compiled the IMX519 driver into an OpenHD-style image, feel free to share your steps or the errors you ran into.