hi:
i have a camera is raw14 format, configure the dts
dynamic_pixel_bit_depth = “14”;
csi_pixel_bit_depth = “14”;
mode_type = “bayer”;
pixel_phase = “grbg”;
kernel log error
[ 46.125872] extract_pixel_format: Need to extend formatbayer_grbg14
[ 46.126077] ox03c 30-001b: Unsupported pixel format
[ 46.126217] ox03c 30-001b: Failed to read mode0 image props
[ 46.126391] ox03c 30-001b: Could not initialize sensor properties.
[ 46.126572] ox03c 30-001b: Failed to initialize ox03c-0
[ 46.126726] ox03c 30-001b: tegra camera driver registration failed
You need add RAW14 relative code like in the extract_pixel_format() function in …/kernel/nvidia/drivers/media/platform/tegra/camera/sensor_common.c
Thanks
hi:
add follow the patch, load the driver the system crash, now can’t catch log
— a/kernel/nvidia/drivers/media/platform/tegra/camera/sensor_common.c
+++ b/kernel/nvidia/drivers/media/platform/tegra/camera/sensor_common.c
@@ -251,6 +251,8 @@ static int extract_pixel_format(
*format = V4L2_PIX_FMT_SGBRG12;
else if (strncmp(pixel_t, “bayer_grbg12”, size) == 0)
*format = V4L2_PIX_FMT_SGRBG12;
-
else if (strncmp(pixel_t, "bayer_grbg14", size) == 0)
-
*format = V4L2_PIX_FMT_SGRBG14;
else if (strncmp(pixel_t, "rgb_rgb88824", size) == 0)
*format = V4L2_PIX_FMT_RGB24;
Build the sensor driver as loadable module(ko) to insmod after boot to system to check the log.
hi:
now build the ko,and load the ko then system crash
Message from syslogd@nvidia-desktop at Sep 19 14:12:55 …
kernel:[ 9855.859965] Internal error: Oops: 96000004 [#1] PREEMPT SMP,
checkout the sensor_common.c and test ok.
i want to catch the console log
NVIDIA Jetson Orin - Serial Console - RidgeRun Developer Wiki
but the ubuntu no ttyACM* dev
You need a USB to UART dongle for it.
You need to add relative code by yourself.
Thanks
hi:
upload the patch,please check, now use this command ‘nvgstcapture-1.0 --sensor-id=0 --sensor-mode=0’ These interfaces cannot be invoked,sensor_ops->set_mode(tc_dev),sensor_ops->start_streaming(tc_dev); in file kernel/nvidia/drivers/media/platform/tegra/camera/tegracam_v4l2.c
raw14.diff (3.1 KB)
Did you try v4l2-ctl --stream-mmap?
hi:
Did you try v4l2-ctl --stream-mmap?----》 test ok
These interfaces can be invoked
[ 82.883674] ox03c 30-001b: v4l2sd_stream++ enable 1
[ 82.887296] ox03c 30-001b: v4l2sd_stream set_mode
— a/kernel/nvidia/drivers/media/platform/tegra/camera/tegracam_v4l2.c
+++ b/kernel/nvidia/drivers/media/platform/tegra/camera/tegracam_v4l2.c
@@ -33,7 +33,7 @@ static int v4l2sd_stream(struct v4l2_subdev *sd, int enable)
struct sensor_blob *mode_blob;
int err = 0;
@@ -51,7 +51,7 @@ static int v4l2sd_stream(struct v4l2_subdev sd, int enable)
/ increase ref count so module can’t be unloaded */
if (!try_module_get(s_data->owner))
return -ENODEV;
What’s the below command shows?
nvargus_nvraw --lps
nvidia@nvidia-desktop:~/driver$ ./insmod.sh
[sudo] password for nvidia:
nvidia@nvidia-desktop:~/driver$ export DISPLAY=:0
nvidia@nvidia-desktop:~/driver$ nvargus_nvraw --lps
nvargus_nvraw version 1.14.0
Number of supported sensor entries 8
Entry Source Mode Uniquename Resolution FR BitDepth Mode
Index Index Index CSI Dyn Type
0 0 0 ox03c_bottomleft 1920x1080 29 14 14 Bayer
1 1 0 ox03c_bottomright 1920x1080 29 14 14 Bayer
2 2 0 ox03c_centerleft 1920x1080 29 14 14 Bayer
3 3 0 ox03c_centerright 1920x1080 29 14 14 Bayer
4 4 0 ox03c_topleft 1920x1080 29 14 14 Bayer
5 5 0 ox03c_topright 1920x1080 29 14 14 Bayer
6 6 0 ox03c_position6 1920x1080 29 14 14 Bayer
7 7 0 ox03c_position7 1920x1080 29 14 14 Bayer
nvidia@nvidia-desktop:~/driver$
Please add message in the sensor driver corresponding function like imx219_set_mode()
Thanks
static int sensor_set_mode(struct tegracam_device *tc_dev)
{
…
dev_info(dev, “==link_speed = 0x%x, lane_rate=0x%x , serdes_pixel_clock = 0x%lld\n”, link_speed, lane_rate, mode->signal_properties.serdes_pixel_clock.val);
}
add this log, but It’s not printed when use this command ‘nvgstcapture-1.0 --sensor-id=0 --sensor-mode=0’
What’s the daemon message.
sudo service nvargus-daemon stop
sudo su
nvargus-daemon
run nvgstcapture-1.0 in another console
check the message from the daemon
when use this command ‘v4l2-ctl -d /dev/video0 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=10000’ and the log can print
[ 1410.415439] ox03c 30-001b: v4l2sd_stream++ enable 1
[ 1410.419055] ox03c 30-001b: v4l2sd_stream set_mode
[ 1410.419064] ox03c 30-001b: ==link_speed = 0x5, lane_rate=0x5 , serdes_pixel_clock = 0x150000000
nvidia@nvidia-desktop:~/driver$ sudo service nvargus-daemon stop
nvidia@nvidia-desktop:~/driver$ sudo su
root@nvidia-desktop:/home/nvidia/driver# sudo su
root@nvidia-desktop:/home/nvidia/driver# nvargus-daemon
=== NVIDIA Libargus Camera Service (0.99.33)=== Listening for connections…=== nvgstcapture-1.0[2750]: Connection established (FFFF88364900)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module2
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module3
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module4
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module5
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module6
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module7
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
(Argus) Error BadParameter: Unidentified sensor placement (in src/common/ScfTranslate.cpp, function fromScfSensorPlacement(), line 595)
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
(Argus) Error BadParameter: Unidentified sensor placement (in src/common/ScfTranslate.cpp, function fromScfSensorPlacement(), line 595)
=== nvgstcapture-1.0[2750]: CameraProvider initialized (0xffff807e63c0)SCF: Error BadValue: NvPHSSendThroughputHints (in src/common/CameraPowerHint.cpp, function sendCameraPowerHint(), line 56)
LSC: LSC surface is not based on full res!
No protocol specified
No protocol specified
No protocol specified
No protocol specified
(Argus) Error NotSupported: Failed to initialize EGLDisplay (in src/eglutils/EGLUtils.cpp, function getDefaultDisplay(), line 77)
(Argus) Error NotSupported: Failed to get default display (in src/api/EGLOutputStreamImpl.cpp, function initialize(), line 99)
(Argus) Error NotSupported: (propagating from src/api/CaptureSessionImpl.cpp, function createEGLOutputStream(), line 977)
(Argus) Error InvalidState: Unknown stream deleted. (in src/api/CaptureSessionImpl.cpp, function outputStreamDeleted(), line 1094)
(Argus) Error NotSupported: (propagating from src/api/CaptureSessionImpl.cpp, function createOutputStreamInternal(), line 839)