-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VC Driver installation is always failing For Jetson Nano 4G B01 Board #86
Comments
Hello @Frennz, the Jetson Nano SystemOnModule is capable of using 4 lanes, but the DevKit exposes only 2 of them. That means
must be set. Otherwise the build process of the device tree will return an error.
The Readme.md still has an error regarding the example dtsi. The rggb info is swapped for the IMX226. That will be fixed in the next release. The build-essentials package should be installed by the setup.sh script (bin folder) and the setup.sh script is called by quickstart.sh script. This happens automatically when calling quickstart. When using a freshly fetched repo, there is no build directory with Linux_for_Tegra/rootfs/dev/random... The quickstart.sh script must not be run as root! When there is a root operation necessary, you will be prompted to the root password. The quickstart script is calling the three sub scripts setup.sh, build.sh and flash.sh. The quickstart script is demanding the recovery mode at the beginning of the procedure, but the recovery mode is necessary for the flashing procedure as the last part. We can also go through the process step by step.
For the first try, you can leave out the configuration of the sensor. You can configure it after the process.
If this script terminates with a failure, please upload the exact message. Otherwise it has built the kernel and you can flash your device.
If the message:
This will take some time. After the device has boot up the first time, you can setup your target system or shut it down and put it in the recovery mode again. By calling
the sensor can be configured.
will build the device tree only.
will flash the device tree only. If there is an error at some point, you can attach the log. Regards |
Thank you for the explanation I got it running after modifying the QuickStart script for the configuration and then running the build and flash command manually. I changed the lane to 2 lanes but left all the values the same and it somehow passed the v4l2 test and I ran gst-launch-1.0 nvarguscamerasrc ! nvoverlaysink without any problems, it even reported 40fps. I'm not sure if this is just reading the values from the device tree or if it's dropping frames or something I will follow this up later. I need at least 24 frames for my project and since the limitation for full sensor readout is 20fps with 2 lanes I'd like to ask how I should modify my device tree for a config that runs at least to 24 fps, if you can help me with that I would be grateful. |
Hello @Frennz, the gstreamer/nvarguscamerasrc has an option text-overlay=true and also -v For your fps problem there are several solutions. You can either relinquish some lines of the sensor array. The IMX412 is able to get faster by leaving out horizontal lines. Please have a look at the https://github.com/VC-MIPI-modules/vc_mipi_nvidia/blob/master/doc/ROI_CROPPING.md document Regards |
Ok, I see, we have to correct the entry "frame rate increase" from no to yes and also modify the vc website, because now the sensor is able to increase it's frame rate by leaving out lines. |
That is awesome to hear thank you for the in depth support and the fast responses. Binning is also marked as not possible on the VC website if that's also possible for super sampling that would be great. Last question ... In this Datasheet from Sony: https://www.sony-semicon.com/files/62/flyer_security/IMX412-AACK_Flyer.pdf the framerate for 10 bit is 60fps and 40 fps for 12bit for the IMX412-aack. I'm not sure what the difference is to the IMX412-aack-c or the IMX-412-aack-d and if this also applies to your vc module or if it's not possible because data limitations of the the csi2/mipi interface? |
In reference to -c and -d I'm stumped. I am about to integrate the binning feature, but I'm not sure when it will be ready. |
-C is color and -D is Monochrome but vc only makes the IMX412 in the Color Version Can you verify the Frame rate over 4 Lanes? Also, this Data Sheet says the Sensor can deliver 60 frames/s https://www.sony-semicon.com/files/62/flyer_security/IMX412-AACK_Flyer.pdf at full sensor read out is it possible with your Mipi Board? |
IMX412 on Jetson Nano 4GB B01 Installation
I'm new to the Jetson Nano Platform and got the VC IMX412 Sensor for Machine Vision Purposes.
I followed all instructions for the Recovery mode, connected it to an Ubuntu 18 LTS and 20 LTS Host, but Building / Flashing the Configuration was never Successful for me and I used a whole day trying all the different methods to install the Kernel config for the sensor without any Success.
My tegra210-camera-vc-mipi-cam.dtsi configuration is the following:
{..}
#define VC_MIPI_LANES 4 // 1, 2 Lanes (4 For the IMX412)
{..}
#if VC_MIPI_CAM_0 == 1
i2c@0 {
#if VC_MIPI_MANUFACTURER == 1
vc_mipi_cam0: vc_mipi@1a {
reg = <0x1a>;
{..}
The Configuration was my first mayor confusion point because The values in the table on the README is Different from the Specifications provided from the Website: https://www.vision-components.com/fileadmin/external/documentation/hardware/VC_MIPI_Camera_Module/index.html
and is even wrong when looking in the example Configuration for the IMX226 that uses the right configuration from the Specifications and not the table values in the README.
If you look at the IMX226 example config and the values in the table, there is a mismatch.
But it's correct if looking at the IMX226 Specifications on the Website?
Now the Building errors
I Installed sudo apt install git
I Installed sudo apt install build-essential
ONCE BEFORE and ONCE NOT at all before running ./quickstart.sh
to try if it's an issue with the build tools
but errors always arose
In Ubuntu LTS 20
I Got the Errors:
Error: /home/machine/Desktop/vc_mipi_nvidia/build/Nano_32.7.1/Linux_for_Tegra/source/public/kernel/kernel-4.9/arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t210/porg/kernel-dts/porg-platforms/tegra210-camera-vc-mipi-cam.dtsi:82.38-39 syntax error
FATAL ERROR: Unable to parse input tree
make[2]: *** [/home/machine/Desktop/vc_mipi_nvidia/build/Nano_32.7.1/Linux_for_Tegra/source/public/kernel/kernel-4.9/arch/arm64/boot/dts/Makefile:120: arch/arm64/boot/dts/ddot/ddot/ddot/ddot/ddot/ddot/hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0002-p3449-0000-b00.dtb] Error 1
DTC arch/arm64/boot/dts/ddot/ddot/ddot/ddot/ddot/ddot/hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0002-p3449-0000-a02.dtb
make[1]: *** [arch/arm64/Makefile:154: dtbs] Error 2
make: *** [Makefile:171: sub-make] Error 2
No Syntax Errors anymore, but the build process stops with this feedback:
Installing QEMU binary in rootfs
mknod: /home/machine/Desktop/vc_mipi_nvidia/build/Nano_32.7.1/Linux_for_Tegra/rootfs/dev/random: File exists
dpkg: error processing package nvidia-l4t-gputools (--install):
installed nvidia-l4t-gputools package post-installation script subprocess returned error exit status 1
I Have no Idea how to Proceed and Switch My Host Machine to Ubuntu 18 LTS
In Ubuntu LTS 18
I Got the Errors:
Ok I run the ./quickstart.sh with sudo privileges as : sudo ./quickstart.sh
nvcommon_build.sh
nvbuild.sh
Initialized empty Git repository in /home/machine/Desktop/vc_mipi_nvidia/build/Nano_32.7.1/Linux_for_Tegra/source/public/.git/
fatal: not in a git directory
I re-run the ./quickstart.sh Script
QEMU binary is not available, looking for QEMU from host system
Found /usr/bin/qemu-aarch64-static
Installing QEMU binary in rootfs
mknod: /home/machine/Desktop/vc_mipi_nvidia/build/Nano_32.7.1/Linux_for_Tegra/rootfs/dev/random: File exists
Errors were encountered while processing:
nvidia-l4t-gputools
I Have no Idea how to Proceed
Alternative install
I looked at the instructions for integrating the driver in your own BSP. I do not know how to find the exact BSP Information what PATCH files are and HOW to apply them to Build The Kernel, but that's probably because I'm new to the Jetson system.
I Have no idea how to troubleshoot these errors
I do not know what is causing the build flash process to not succeed
If there is any possibility for help and a guided process I would be grateful for any support in that matter in English or German, my email is Franz@hnva.de
Appended is my tegra210-camera-vc-mipi-cam.dtsi
Named : tegra210-camera-vc-mipi-cam_IMX412CFG
tegra210-camera-vc-mipi-cam_IMX412CFG.zip
The text was updated successfully, but these errors were encountered: