Skip to content

Raspberry Pi Camera 2.1 on TX2 #2

@LalitPradhan

Description

@LalitPradhan

@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,

  1. I replaced the files imx219.c and imx219_mode_tbls.h in Linux_for_Tegra/sources/kernel/kernel-4.4/drivers/media/i2c.
  2. Commented out the camera lines in tegra186-quill-p3310-1000-a00-00-base.dts
  3. Made all the changes as mentioned in tegra186-my-camera-config-a00.dtsi in both modules and platform.
  4. downloaded toolchain and your helper scripts in the right location
  5. Made changes as mentioned by running ./build-kernel.sh -m
  6. Rebuilt kernel using ./build-kernel.sh -r (I can see built-in.mod.c, built-in.o, i2c-mux-pca954x.o, modules.builtin, modules.order files in Linux_for_Tegra_tx2/kernel/drivers/i2c/muxes)
  7. ran ./apply_binaries.sh
  8. Flashed it with jetpack by running JetPack-L4T-3.1-linux-x64.run

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions