-
Notifications
You must be signed in to change notification settings - Fork 1
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
Raspberry Pi Camera 2.1 on TX2 #2
Comments
I can see my PiCamera but still am unable to get any video feed from it. Have you had any luck yet? |
Hey, Not yet. I got a few patches from Ridgerun and built the Kernel using them but still no luck. I need to add a patch to gstreamer to detect RAW10 instead of RAW8. I will try that and update you. |
P.S. I'm able to see video0 now with that patch. |
@GiraffeRage I've got it to capture the images using raspberry pi finally but at the moment its in RAW format (bayer files). Will check if I can convert it to RGB or not and let you know. |
Hi, sorry for the late reply, I wrote the driver a while ago and it worked for the 24.X version of the TX2 Jetpack but when I tried it on the 3X.X version of Jetpack things didn't work. If you got a patch from Ridgerun that included the driver then you are in good shape. The main concern I have is the DTS. My board used GPIOs to multiplex the camera I2C, Essentially changing the single Camera I2C to 3 Camera I2Cs. So when I booted up the kernel there were three extra I2C buses (/dev/i2c7, /dev/i2c8, /dev/i2c9). I'm not sure how the Auvidea boards were designed, if they used GPIOs to control the multiplexer or if they used an I2C based multiplexer. If so then their DTS file would look different than mine... I just looked over their J106 technical reference, it looks like it may not be multiplexed at all. You might need to modify the DTS file in order to get the cameras to work correctly. Specifically where I talk about the DTS in the post:
This stuff needs to change, it looks like camera 0-N is on I2C0 so you would need to take out "i2c-camera-mux" section because there is no multiplexer any more, to give an example I'm going to remove all the camera specific stuff but it would go from something like this:
To something like this
You will also need to modify the 'tegra-camera-platform' so that the 'proc-device-tree' and 'devname' is pointing to the right place. so what is now written as this:
To something like
@LalitPradhan there is a circuitous way to get the bayer to a more useful TIFF format using this repo Here is how I used it to convert from bayer to tiff
Then use image magik to convert the tiff to png
|
Hey @cospan, Thanks for taking the time to help us out! |
@cospan Thanks for the update. I will try them out later on a different TX2. As of now I have the RPI 2.1 Cameras working with J106 on Jetpack 3.1 I had already tried the bayer2rgb link you have provided. I somehow run into bad arguments error when I run in on the TX2. But work fine and converts properly on the 1080Ti host machine. I'm working on two things here:
@GiraffeRage Ridgerun folks were kind and they gave the patches for free. J106 on TX2 for 6 Sony IMX219 sensor cameras on Jetpack 3.1. You might want to mail them regarding this. |
I solved the bayer2rgb issue on TX2 using #jdthomas/bayer2rgb#1 in the bayer2rgb.c and then doing make |
@cospan , Can you help me with imx219_mode_tbls.h file? I wanted the camera to capture the full resolution of 3280x2464. How do I configure this part: Thanks. |
@CospanDesign
I was following your blog http://cospandesign.github.io/linux,tx2,kernel,driver/2017/12/15/tx2-rpi-camera-port.html.
I have an Auvidea J106 board and raspberry pi 2.1 CSI cameras. As per your blog,
But I never see 3 extra buses as you have mentioned in /dev. I always have the regular 8 i2c devices. I also never see 3 new /dev/videoX entries.
When I run the following in my TX2
sudo su
cd /sys/class/gpio
echo 461 > export
cd gpio461
echo out > direction
echo 0 > value
echo 1 > value
i2cdetect -y -r 0
I see
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- 64 -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- —
Which is for PiCamera 2.1
But on running gstreamer commands I get an error for pipeline.
Could you please help me out if I did the correct steps or not?
The text was updated successfully, but these errors were encountered: