How to Flash bootdata stored as bin file in filesystem to MIPI ISP in Jetson Nano?

I’m using MIPI based sensor to stream video in Jetson Nano, this sensor is connected to ISP and Jetson Nano connected to this ISP through MIPI interface, now initially I need to load bootdata, for that I had seen some sources where they are storing binary file in OTP flash and for flashing bootdata to ISP they are reading data from OTP flash and sending to ISP, for now I have binary file, I dont have any OTP flash so what I want to do is I will store binary file in FILESYSTEM and through driver I want to read this binary file and flash to ISP , can anyone tell me How to do this?

HI there @nolanmaverick524.

I think you might find better help in our dedicated Jetson category. I hope you don’t mind if I move this topi over there?



I had found this post Direct firmware load for ap1302_fw.bin failed with error -2
here this guy stores bin file in /lib/firmware/ and tries to flash to ap1302 , this is how I want, can anyone tell me how to do that?

hello nolanmaverick524,

I’m not fully understand your comment.
may I know what’s the actual use-case, what did you meant flash to ISP?

hello JerryChang,
please check this link TEV-Jetson_Camera_driver/main.c at tn_l4t-r32.7.1_kernel-4.9 · TechNexion-Vision/TEV-Jetson_Camera_driver · GitHub once, data taken from bin file is being written to AP1302 ISP, and the bin which they used to write data is stored in OTP memory, now what I want to do is, I want to store this bin file in rootfs and my driver need to read this bin file from rootfs and write these data to AP1302 ISP as sensor_load_bootdata function in the link is being written.

hello nolanmaverick524,

please refer to CID controls, TEGRA_CAMERA_CID_OTP_DATA.
you may also check reference camera drivers for reading sensor’s OTP for calibration file.
for example, $public_sources/kernel_src/kernel/nvidia/drivers/media/i2c/nv_ov5693.c

Thanks for response,
the source you suggested, is reading bin data from OTP, what I need is read bin data from root file system.

hello nolanmaverick524,

I assume you’re going to parse the calibration file via rootfs for image tuning.

it’s by default having camera ISP override file putting under /var/nvidia/nvcam/settings/.
there’s capability for loading camera calibration file from that during camera initialization.

however, we don’t support image tuning related stuff through forum discussion thread.
did you co-work with Jetson Camera Partners? you may contact with them for further supports.

Hi nolanmaverick524,

I couldn’t able to read binary from the rootfs. Instead, I converted the .bin file to a header and read it from there. I needed to change that driver a bit, in order to make it work with my custom ap1302. But do contact me via mail if you want further help.

can you provide your mail ID?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.