I patched imx477 driver on Xavier NX dev kit and flashed.
while rebooting, it displays “failed to start nvpmodel.service”.
Hi,
Although it shows failed to start nvpmodel.service in booting, please check the system status. Power modes are listed in
https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fpower_management_jetson_xavier.html%23wwpID0E0NO0HA
It is mode 3 by default and two CPUs are online. Please run sudo tegrastats to check if there are only two online CPUs.
I want to install four immx477 camera in p3509-0000-a00 platform.
I want to install four immx477 cameras in p3509-0000-a00 platform. so I modified DTSI files follows.
/ {
host1x {
vi@15c10000 {
num-channels = <4>;
ports {
#address-cells = <1>;
#size-cells = <0>;
vi_port0: port@0 {
reg = <0>;
rbpcv3_imx477_vi_in0: endpoint {
status = “okay”;
port-index = <0>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_csi_out0>;
};
};
vi_port1: port@1 {
reg = <1>;
rbpcv3_imx477_vi_in1: endpoint {
status = “okay”;
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_csi_out1>;
};
};
vi_port2: port@2 {
reg = <0>;
rbpcv3_imx477_vi_in2: endpoint {
status = “okay”;
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_csi_out2>;
};
};
vi_port3: port@3 {
reg = <1>;
rbpcv3_imx477_vi_in3: endpoint {
status = “okay”;
port-index = <3>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_csi_out3>;
};
};
};
};
nvcsi@15a00000 {
num-channels = <4>;
#address-cells = <1>;
#size-cells = <0>;
csi_chan0: channel@0 {
reg = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan0_port0: port@0 {
reg = <0>;
status = "okay";
rbpcv3_imx477_csi_in0: endpoint@0 {
port-index = <0>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_out0>;
};
};
csi_chan0_port1: port@1 {
reg = <1>;
status = "okay";
rbpcv3_imx477_csi_out0: endpoint@1 {
status = "okay";
remote-endpoint = <&rbpcv3_imx477_vi_in0>;
};
};
};
};
csi_chan1: channel@1 {
reg = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan1_port0: port@0 {
reg = <0>;
status = "okay";
rbpcv3_imx477_csi_in1: endpoint@2 {
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_out1>;
};
};
csi_chan1_port1: port@1 {
reg = <1>;
status = "okay";
rbpcv3_imx477_csi_out1: endpoint@3 {
status = "okay";
remote-endpoint = <&rbpcv3_imx477_vi_in1>;
};
};
};
};
csi_chan2: channel@2 {
reg = <2>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan2_port0: port@0 {
reg = <0>;
status = "okay";
rbpcv3_imx477_csi_in2: endpoint@4 {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_out2>;
};
};
csi_chan2_port1: port@1 {
reg = <1>;
status = "okay";
rbpcv3_imx477_csi_out2: endpoint@5 {
status = "okay";
remote-endpoint = <&rbpcv3_imx477_vi_in2>;
};
};
};
};
csi_chan3: channel@3 {
reg = <3>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan3_port0: port@0 {
reg = <0>;
status = "okay";
rbpcv3_imx477_csi_in3: endpoint@6 {
port-index = <3>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_out3>;
};
};
csi_chan3_port1: port@1 {
reg = <1>;
status = "okay";
rbpcv3_imx477_csi_out3: endpoint@7 {
remote-endpoint = <&rbpcv3_imx477_vi_in3>;
};
};
};
};
};
};
i2c@3180000 {
tca9548@77 {
i2c_0:i2c@0 {
imx477_cam0: rbpcv3_imx477_a@1a {
compatible = "ridgerun,imx477";
/* I2C device address */
reg = <0x1a>;
/* V4L2 device node location */
devnode = "video0";
/* Physical dimensions of sensor */
physical_w = "7.564";
physical_h = "5.476";
sensor_model = "imx477";
use_sensor_mode_id = "true";
mode0 { /* IMX477_MODE_4032X3040 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_a";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "4032";
active_h = "3040";
mode_type = "bayer";
pixel_phase = "rggb";
csi_pixel_bit_depth = "10";
readout_orientation = "90";
line_length = "9024";
inherent_gain = "1";
mclk_multiplier = "80";
pix_clk_hz = "840000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "356"; /* 22x */
step_gain_val = "1";
default_gain = "16"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "2000000"; /* 2.0 fps */
max_framerate = "30000000"; /* 30.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
min_exp_time = "13"; /* us */
max_exp_time = "683709"; /* us */
step_exp_time = "1";
default_exp_time = "2495"; /* us */
embedded_metadata_height = "2";
};
mode1 { /* IMX477_MODE_1920X1080 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_a";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "1920";
active_h = "1080";
mode_type = "bayer";
pixel_phase = "rggb";
csi_pixel_bit_depth = "10";
readout_orientation = "90";
line_length = "9024";
inherent_gain = "1";
mclk_multiplier = "80";
pix_clk_hz = "840000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "356"; /* 22x */
step_gain_val = "1";
default_gain = "16"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "2000000"; /* 2.0 fps */
max_framerate = "60000000"; /* 60.0 fps */
step_framerate = "1";
default_framerate = "60000000"; /* 60.0 fps */
min_exp_time = "13"; /* us */
max_exp_time = "683709"; /* us */
step_exp_time = "1";
default_exp_time = "2495"; /* us */
embedded_metadata_height = "2";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
rbpcv3_imx477_out0: endpoint {
port-index = <0>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_csi_in0>;
};
};
};
};
};
i2c_1:i2c@1 {
imx477_cam1: rbpcv3_imx477_b@1a {
compatible = "ridgerun,imx477";
/* I2C device address */
reg = <0x1a>;
/* V4L2 device node location */
devnode = "video1";
/* Physical dimensions of sensor */
physical_w = "7.564";
physical_h = "5.476";
sensor_model = "imx477";
use_sensor_mode_id = "true";
mode0 { /* IMX477_MODE_4032X3040 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_a";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "4032";
active_h = "3040";
mode_type = "bayer";
pixel_phase = "rggb";
csi_pixel_bit_depth = "10";
readout_orientation = "90";
line_length = "9024";
inherent_gain = "1";
mclk_multiplier = "80";
pix_clk_hz = "840000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "356"; /* 22x */
step_gain_val = "1";
default_gain = "16"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "2000000"; /* 2.0 fps */
max_framerate = "30000000"; /* 30.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
min_exp_time = "13"; /* us */
max_exp_time = "683709"; /* us */
step_exp_time = "1";
default_exp_time = "2495"; /* us */
embedded_metadata_height = "2";
};
mode1 { /* IMX477_MODE_1920X1080 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_a";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "1920";
active_h = "1080";
mode_type = "bayer";
pixel_phase = "rggb";
csi_pixel_bit_depth = "10";
readout_orientation = "90";
line_length = "9024";
inherent_gain = "1";
mclk_multiplier = "80";
pix_clk_hz = "840000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "356"; /* 22x */
step_gain_val = "1";
default_gain = "16"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "2000000"; /* 2.0 fps */
max_framerate = "60000000"; /* 60.0 fps */
step_framerate = "1";
default_framerate = "60000000"; /* 60.0 fps */
min_exp_time = "13"; /* us */
max_exp_time = "683709"; /* us */
step_exp_time = "1";
default_exp_time = "2495"; /* us */
embedded_metadata_height = "2";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
rbpcv3_imx477_out1: endpoint {
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_csi_in1>;
};
};
};
};
};
i2c_2:i2c@2 {
imx477_cam2: rbpcv3_imx477_c@1a {
compatible = "ridgerun,imx477";
/* I2C device address */
reg = <0x1a>;
/* V4L2 device node location */
devnode = "video2";
/* Physical dimensions of sensor */
physical_w = "7.564";
physical_h = "5.476";
sensor_model = "imx477";
use_sensor_mode_id = "true";
mode0 { /* IMX477_MODE_4032X3040 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_a";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "4032";
active_h = "3040";
mode_type = "bayer";
pixel_phase = "rggb";
csi_pixel_bit_depth = "10";
readout_orientation = "90";
line_length = "9024";
inherent_gain = "1";
mclk_multiplier = "80";
pix_clk_hz = "840000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "356"; /* 22x */
step_gain_val = "1";
default_gain = "16"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "2000000"; /* 2.0 fps */
max_framerate = "30000000"; /* 30.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
min_exp_time = "13"; /* us */
max_exp_time = "683709"; /* us */
step_exp_time = "1";
default_exp_time = "2495"; /* us */
embedded_metadata_height = "2";
};
mode1 { /* IMX477_MODE_1920X1080 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_a";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "1920";
active_h = "1080";
mode_type = "bayer";
pixel_phase = "rggb";
csi_pixel_bit_depth = "10";
readout_orientation = "90";
line_length = "9024";
inherent_gain = "1";
mclk_multiplier = "80";
pix_clk_hz = "840000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "356"; /* 22x */
step_gain_val = "1";
default_gain = "16"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "2000000"; /* 2.0 fps */
max_framerate = "60000000"; /* 60.0 fps */
step_framerate = "1";
default_framerate = "60000000"; /* 60.0 fps */
min_exp_time = "13"; /* us */
max_exp_time = "683709"; /* us */
step_exp_time = "1";
default_exp_time = "2495"; /* us */
embedded_metadata_height = "2";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
rbpcv3_imx477_out2: endpoint {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_csi_in2>;
};
};
};
};
};
i2c_3: i2c@3 {
imx477_cam3: rbpcv3_imx477_d@1a {
compatible = "ridgerun,imx477";
/* I2C device address */
reg = <0x1a>;
/* V4L2 device node location */
devnode = "video3";
/* Physical dimensions of sensor */
physical_w = "7.564";
physical_h = "5.476";
sensor_model = "imx477";
use_sensor_mode_id = "true";
mode0 { /* IMX477_MODE_4032X3040 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_c";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "4032";
active_h = "3040";
mode_type = "bayer";
pixel_phase = "rggb";
csi_pixel_bit_depth = "10";
readout_orientation = "90";
line_length = "9024";
inherent_gain = "1";
mclk_multiplier = "80";
pix_clk_hz = "840000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "356"; /* 22x */
step_gain_val = "1";
default_gain = "16"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "2000000"; /* 2.0 fps */
max_framerate = "30000000"; /* 30.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
min_exp_time = "13"; /* us */
max_exp_time = "683709"; /* us */
step_exp_time = "1";
default_exp_time = "2495"; /* us */
embedded_metadata_height = "2";
};
mode1 { /* IMX477_MODE_1920X1080 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_c";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "1920";
active_h = "1080";
mode_type = "bayer";
pixel_phase = "rggb";
csi_pixel_bit_depth = "10";
readout_orientation = "90";
line_length = "9024";
inherent_gain = "1";
mclk_multiplier = "80";
pix_clk_hz = "840000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "356"; /* 22x */
step_gain_val = "1";
default_gain = "16"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "2000000"; /* 2.0 fps */
max_framerate = "60000000"; /* 60.0 fps */
step_framerate = "1";
default_framerate = "60000000"; /* 60.0 fps */
min_exp_time = "13"; /* us */
max_exp_time = "683709"; /* us */
step_exp_time = "1";
default_exp_time = "2495"; /* us */
embedded_metadata_height = "2";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
rbpcv3_imx477_out3: endpoint {
port-index = <3>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_imx477_csi_in3>;
};
};
};
};
};
};
};
};
/ {
tcp: tegra-camera-platform {
compatible = “nvidia, tegra-camera-platform”;
num_csi_lanes = <8>;
max_lane_speed = <1500000>;
min_bits_per_pixel = <10>;
vi_peak_byte_per_pixel = <2>;
vi_bw_margin_pct = <25>;
max_pixel_rate = <750000>;
isp_peak_byte_per_pixel = <5>;
isp_bw_margin_pct = <25>;
modules {
cam_module0: module0 {
badge = "jakku_front_RBP194";
position = "front";
orientation = "1";
status = "okay";
cam_module0_drivernode0: drivernode0 {
status = "okay";
pcl_id = "v4l2_sensor";
devname = "imx477 9-001a";
proc-device-tree = "/proc/device-tree/cam_i2cmux/tca9548@77/i2c@0/rbpcv3_imx477_a@1a";
};
};
cam_module1: module1 {
badge = "jakku_rear_RBP194";
position = "rear";
orientation = "1";
status = "okay";
cam_module1_drivernode0: drivernode0 {
status = "okay";
pcl_id = "v4l2_sensor";
devname = "imx477 10-001a";
proc-device-tree = "/proc/device-tree/cam_i2cmux/tca9548@77/i2c@1/rbpcv3_imx477_b@1a";
};
};
cam_module2: module2 {
badge = "jakku_front_RBP194";
position = "front";
orientation = "1";
status = "okay";
cam_module2_drivernode0: drivernode0 {
status = "okay";
pcl_id = "v4l2_sensor";
devname = "imx477 11-001a";
proc-device-tree = "/proc/device-tree/cam_i2cmux/tca9548@77/i2c@2/rbpcv3_imx477_c@1a";
};
};
cam_module3: module3 {
badge = "jakku_rear_RBP194";
position = "rear";
orientation = "1";
status = "okay";
cam_module3_drivernode0: drivernode0 {
status = "okay";
pcl_id = "v4l2_sensor";
devname = "imx477 12-001a";
proc-device-tree = "/proc/device-tree/cam_i2cmux/tca9548@77/i2c@3/rbpcv3_imx477_d@1a";
};
};
};
};
};
#define CAM0_PWDN TEGRA194_MAIN_GPIO(P, 4)
#define CAM1_PWDN TEGRA194_AON_GPIO(CC, 3)
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
/* camera control gpio definitions */
/ {
gpio@2200000 {
camera-control-output-low {
gpio-hog;
output-low;
gpios = <CAM0_PWDN 0 CAM1_PWDN 0>;
label = “cam0-pwdn”, “cam1-pwdn”;
};
};
i2c@3180000 {
tca9548_77: tca9548@77{
compatible = "nxp,pca9548";
reg = <0x77>;
#address-cells = <1>;
#size-cells = <0>;
/*vcc-supply = "NULL";*/
skip_mux_detect = "yes";
force_bus_start = <CAMERA_I2C_MUX_BUS(0)>;
i2c@0 {
reg = <0>;
i2c-mux,deselect-on-exit;
#address-cells = <1>;
#size-cells = <0>;
rbpcv3_imx477_a@1a {
pwdn-gpios = <&tegra_main_gpio CAM0_PWDN GPIO_ACTIVE_HIGH>;
};
};
i2c@1 {
reg = <1>;
i2c-mux,deselect-on-exit;
#address-cells = <1>;
#size-cells = <0>;
rbpcv3_imx477_b@1a {
pwdn-gpios = <&tegra_main_gpio CAM1_PWDN GPIO_ACTIVE_HIGH>;
};
};
i2c@2 {
reg = <0>;
i2c-mux,deselect-on-exit;
#address-cells = <1>;
#size-cells = <0>;
rbpcv3_imx477_c@1a {
pwdn-gpios = <&tegra_main_gpio CAM0_PWDN GPIO_ACTIVE_HIGH>;
};
};
i2c@3 {
reg = <1>;
i2c-mux,deselect-on-exit;
#address-cells = <1>;
#size-cells = <0>;
rbpcv3_imx477_d@1a {
pwdn-gpios = <&tegra_main_gpio CAM1_PWDN GPIO_ACTIVE_HIGH>;
};
};
};
};
};
dmesg displays “pca954x 2-0077: vcc regualtor get failed, -19”
my cameras don’t use power from jetson kit.
Hi,
Do you get the camera from our partners? We have camera partners:
Would need the vendor’s help. Would be great if you can provide information about the vendor.