I have successfully built and flashed a custom kernel image for the Nano to use the 327S.
I used the instructions at https://wiki.veye.cc/index.php/VEYE_CS_Camera_source_for_Jetson and the VEYE-MIPI-CAM2M source.
Everything works. I can stream video, capture images (event from Go code), and control the cut filter using Go's periph library.
Observation and question:
With the Nano, I am experiencing an odd behavior where the video0
device is not available after a cold boot (where the device is off for some period of time and powered up). From dmesg
, I see
[ 3.469294] veyecam 7-003b: probing v4l2 sensor
[ 3.469545] veyecam 7-003b: tegracam sensor driver:veyecam_v2.0.6
[ 3.480088] tegra-vii2c 546c0000.i2c: no acknowledge from address 0x3b
[ 3.488825] veyecam 7-003b: probe failed
[ 3.494165] veyecam 7-003b: board setup failed
[ 3.502582] veyecam 8-003b: probing v4l2 sensor
[ 3.502824] veyecam 8-003b: tegracam sensor driver:veyecam_v2.0.6
[ 3.513797] Mass Storage Function, version: 2009/09/11
[ 3.513803] LUN: removable file: (no medium)
[ 3.528349] using random self ethernet address
[ 3.535722] tegra-vii2c 546c0000.i2c: no acknowledge from address 0x3b
[ 3.536048] veyecam 8-003b: probe failed
[ 3.536051] veyecam 8-003b: board setup failed
If I reboot the device, then everything works. This is consistent. I must do a reboot after a cold boot in order for the camera to be seen.
Also, I am unable to access an I2C device that is plugged into the board. The I2C cut works fine with bus 8. But trying a device on another bus fails. I did successfully apply the USB bus firmware patch from Seeed if that has any impact.
i2cdetect -l
i2c-3 i2c 7000c700.i2c I2C adapter
i2c-1 i2c 7000c400.i2c I2C adapter
i2c-101 i2c tegradc.1 I2C adapter
i2c-8 i2c i2c-6-mux (chan_id 1) I2C adapter
i2c-6 i2c Tegra I2C adapter I2C adapter
i2c-4 i2c 7000d000.i2c I2C adapter
i2c-2 i2c 7000c500.i2c I2C adapter
i2c-0 i2c 7000c000.i2c I2C adapter
i2c-7 i2c i2c-6-mux (chan_id 0) I2C adapter
i2c-5 i2c 7000d100.i2c I2C adapter
Any thoughts on why a reboot is needed? As far as the not seeing other bus devices, it may be unrelated.
Thx!