Nano crashes when trying to view imx 219 camera

I bought a waveshare kit and my first Nano. This is my first ever project board mind you, first time with Linux, though I’m from the dos 5.0 days, and I have a Hackintosh.

When I try to view this IMX 219 77 camera from the terminal it crashes my Nano and causes a restart.

Ls - l /dev/video* shows it sees a camera

Failed camera?
Insights?

Thanks for your time

Did you try to set the powermode to 5W?

1 Like

Thank you!
I just tried, I also got a restart before displaying the camera.
I should mention that I am using a power supply connected to the barrel jack connector, so I think I’m good to run at 10w.

That’s a really good idea though. I am powering a small touch screen via USB from the Nano. I tried without it as well, I still crash though.

This is my third re image, pretty fresh.

hello brandon.hortman,

may I know what’s the commands you’re used to access IMX219 camera sensor.
you may also setup terminal to gather kernel messages for reference, for example, $ dmesg --follow.
thanks

1 Like

I got a IMX477 from arducam. Amazon gave me a 50$ credit.
After driver installation (which I might add didnt go so smoothly at first, havent felt like a tech noob in a while!) I cant view this guy either.

It doesnt crash though!

brandon@brandon-desktop:~ SENSOR_ID=0 brandon@brandon-desktop:~ FRAMERATE=60
brandon@brandon-desktop:~$ gst-launch-1.0 nvarguscamerasrc sensor-id=$SENSOR_ID ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=$FRAMERATE/1” ! nvvidconv ! nvoverlaysink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 215)
(Argus) Error Timeout: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 102)
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:551 Failed to create CameraProvider
Got EOS from element “pipeline0”.
Execution ended after 0:01:00.080381100
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

hello brandon.hortman,

there’s by default include IMX219 camera drivers in the kernel images, but IMX477 doesn’t.
may I know which camera sensor you’re now working with actually, IMX219 or IMX477?

1 Like

yes, now i have both sensors, but im currentl only working with the imx477. I have installed the drivers, connected the camera and paid close attention to the direction of the ribbon connectors.

hello brandon.hortman,

FYI, there’s list of cameras supported by Jetson Camera Partners on the Jetson platform.
could you please also contact with your sensor vendor to verify the working driver.

BTW,
may I know which JetPack release you’re used.
you may check release tag for more details. i.e. $ cat /etc/nv_tegra_release
thanks

It seems my wifi card and the camera have errors! Thanks for teaching me that command!

[ 464.541454] iwlwifi 0000:01:00.0: Microcode SW error detected. Restarting 0x2000000.
[ 464.549342] iwlwifi 0000:01:00.0: CSR values:
[ 464.553721] iwlwifi 0000:01:00.0: (2nd byte of CSR_INT_COALESCING is CSR_INT_PERIODIC_REG)
[ 464.562033] iwlwifi 0000:01:00.0: CSR_HW_IF_CONFIG_REG: 0X00c89000
[ 464.568866] iwlwifi 0000:01:00.0: CSR_INT_COALESCING: 0X0000ff40
[ 464.575700] iwlwifi 0000:01:00.0: CSR_INT: 0X10000000
[ 464.582527] iwlwifi 0000:01:00.0: CSR_INT_MASK: 0X00000000
[ 464.589374] iwlwifi 0000:01:00.0: CSR_FH_INT_STATUS: 0X00000000
[ 464.596252] iwlwifi 0000:01:00.0: CSR_GPIO_IN: 0X00000010
[ 464.603106] iwlwifi 0000:01:00.0: CSR_RESET: 0X00000000
[ 464.609937] iwlwifi 0000:01:00.0: CSR_GP_CNTRL: 0X08040005
[ 464.616764] iwlwifi 0000:01:00.0: CSR_HW_REV: 0X00000230
[ 464.623599] iwlwifi 0000:01:00.0: CSR_EEPROM_REG: 0Xd55555d5
[ 464.630442] iwlwifi 0000:01:00.0: CSR_EEPROM_GP: 0Xd55555d5
[ 464.637285] iwlwifi 0000:01:00.0: CSR_OTP_GP_REG: 0Xd55555d5
[ 464.644128] iwlwifi 0000:01:00.0: CSR_GIO_REG: 0X001f0042
[ 464.650978] iwlwifi 0000:01:00.0: CSR_GP_UCODE_REG: 0X00000000
[ 464.657826] iwlwifi 0000:01:00.0: CSR_GP_DRIVER_REG: 0X00000000
[ 464.664675] iwlwifi 0000:01:00.0: CSR_UCODE_DRV_GP1: 0X00000000
[ 464.671522] iwlwifi 0000:01:00.0: CSR_UCODE_DRV_GP2: 0X00000000
[ 464.678359] iwlwifi 0000:01:00.0: CSR_LED_REG: 0X00000060
[ 464.685255] iwlwifi 0000:01:00.0: CSR_DRAM_INT_TBL_REG: 0X8816c238
[ 464.692096] iwlwifi 0000:01:00.0: CSR_GIO_CHICKEN_BITS: 0X07800200
[ 464.698950] iwlwifi 0000:01:00.0: CSR_ANA_PLL_CFG: 0Xd55555d5
[ 464.705834] iwlwifi 0000:01:00.0: CSR_MONITOR_STATUS_REG: 0Xc03803c0
[ 464.712687] iwlwifi 0000:01:00.0: CSR_HW_REV_WA_REG: 0X0001001a
[ 464.719572] iwlwifi 0000:01:00.0: CSR_DBG_HPET_MEM_REG: 0Xffff0010
[ 464.726427] iwlwifi 0000:01:00.0: FH register values:
[ 464.731559] iwlwifi 0000:01:00.0: FH_RSCSR_CHNL0_STTS_WPTR_REG: 0X15dc5400
[ 464.739197] iwlwifi 0000:01:00.0: FH_RSCSR_CHNL0_RBDCB_BASE_REG: 0X015dc530
[ 464.746870] iwlwifi 0000:01:00.0: FH_RSCSR_CHNL0_WPTR: 0X000000f8
[ 464.754562] iwlwifi 0000:01:00.0: FH_MEM_RCSR_CHNL0_CONFIG_REG: 0X00801054
[ 464.762262] iwlwifi 0000:01:00.0: FH_MEM_RSSR_SHARED_CTRL_REG: 0X000000fc
[ 464.769900] iwlwifi 0000:01:00.0: FH_MEM_RSSR_RX_STATUS_REG: 0X02030000
[ 464.777580] iwlwifi 0000:01:00.0: FH_MEM_RSSR_RX_ENABLE_ERR_IRQ2DRV: 0X00000000
[ 464.785212] iwlwifi 0000:01:00.0: FH_TSSR_TX_STATUS_REG: 0X07ff0001
[ 464.792835] iwlwifi 0000:01:00.0: FH_TSSR_TX_ERROR_REG: 0X00000000
[ 464.800568] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 464.806163] iwlwifi 0000:01:00.0: Status: 0x00000000, count: 6
[ 464.812008] iwlwifi 0000:01:00.0: Loaded firmware version: 22.391740.0
[ 464.818562] iwlwifi 0000:01:00.0: 0x00000071 | ADVANCED_SYSASSERT
[ 464.825566] iwlwifi 0000:01:00.0: 0x05800280 | trm_hw_status0
[ 464.831351] iwlwifi 0000:01:00.0: 0x00000000 | trm_hw_status1
[ 464.837131] iwlwifi 0000:01:00.0: 0x0000E258 | branchlink2
[ 464.842632] iwlwifi 0000:01:00.0: 0x00027324 | interruptlink1
[ 464.848393] iwlwifi 0000:01:00.0: 0x0004606A | interruptlink2
[ 464.854155] iwlwifi 0000:01:00.0: 0x00000000 | data1
[ 464.859135] iwlwifi 0000:01:00.0: 0x00001000 | data2
[ 464.864114] iwlwifi 0000:01:00.0: 0x02039842 | data3
[ 464.869101] iwlwifi 0000:01:00.0: 0x44012B33 | beacon time
[ 464.874602] iwlwifi 0000:01:00.0: 0x028814D0 | tsf low
[ 464.879757] iwlwifi 0000:01:00.0: 0x00000205 | tsf hi
[ 464.884821] iwlwifi 0000:01:00.0: 0x00000000 | time gp1
[ 464.890059] iwlwifi 0000:01:00.0: 0x1B43365E | time gp2
[ 464.895295] iwlwifi 0000:01:00.0: 0x00000000 | uCode revision type
[ 464.901491] iwlwifi 0000:01:00.0: 0x00000016 | uCode version major
[ 464.907684] iwlwifi 0000:01:00.0: 0x0005FA3C | uCode version minor
[ 464.913899] iwlwifi 0000:01:00.0: 0x00000230 | hw version
[ 464.919333] iwlwifi 0000:01:00.0: 0x00C89000 | board version
[ 464.925020] iwlwifi 0000:01:00.0: 0x062F001C | hcmd
[ 464.929924] iwlwifi 0000:01:00.0: 0xA68E3800 | isr0
[ 464.934811] iwlwifi 0000:01:00.0: 0x01818000 | isr1
[ 464.939710] iwlwifi 0000:01:00.0: 0x0800181A | isr2
[ 464.944604] iwlwifi 0000:01:00.0: 0x00417C8D | isr3
[ 464.949496] iwlwifi 0000:01:00.0: 0x00000000 | isr4
[ 464.954391] iwlwifi 0000:01:00.0: 0x00000110 | last cmd Id
[ 464.959923] iwlwifi 0000:01:00.0: 0x00000000 | wait_event
[ 464.965338] iwlwifi 0000:01:00.0: 0x00004088 | l2p_control
[ 464.970851] iwlwifi 0000:01:00.0: 0x00498004 | l2p_duration
[ 464.976436] iwlwifi 0000:01:00.0: 0x00000000 | l2p_mhvalid
[ 464.981953] iwlwifi 0000:01:00.0: 0x000000CB | l2p_addr_match
[ 464.987731] iwlwifi 0000:01:00.0: 0x0000000D | lmpm_pmg_sel
[ 464.993334] iwlwifi 0000:01:00.0: 0x25091923 | timestamp
[ 464.998660] iwlwifi 0000:01:00.0: 0x0010F800 | flow_handler
[ 465.004326] iwlwifi 0000:01:00.0: Start IWL Error Log Dump:
[ 465.009923] iwlwifi 0000:01:00.0: Status: 0x00000000, count: 7
[ 465.015769] iwlwifi 0000:01:00.0: 0x00000067 | ADVANCED_SYSASSERT
[ 465.021879] iwlwifi 0000:01:00.0: 0x00000000 | umac branchlink1
[ 465.027821] iwlwifi 0000:01:00.0: 0xC0082F64 | umac branchlink2
[ 465.033786] iwlwifi 0000:01:00.0: 0xC0081000 | umac interruptlink1
[ 465.039974] iwlwifi 0000:01:00.0: 0xC0081000 | umac interruptlink2
[ 465.046167] iwlwifi 0000:01:00.0: 0x00004000 | umac data1
[ 465.051589] iwlwifi 0000:01:00.0: 0xC0081000 | umac data2
[ 465.057009] iwlwifi 0000:01:00.0: 0xDEADBEEF | umac data3
[ 465.062420] iwlwifi 0000:01:00.0: 0x00000016 | umac major
[ 465.067828] iwlwifi 0000:01:00.0: 0x0005FA3C | umac minor
[ 465.073245] iwlwifi 0000:01:00.0: 0xC0886280 | frame pointer
[ 465.078926] iwlwifi 0000:01:00.0: 0xC0886280 | stack pointer
[ 465.084606] iwlwifi 0000:01:00.0: 0x0967014E | last host cmd
[ 465.090294] iwlwifi 0000:01:00.0: 0x00000000 | isr status reg
[ 465.096063] ieee80211 phy0: Hardware restart was requested
[ 465.580548] iwlwifi 0000:01:00.0: L1 Enabled - LTR Enabled
[ 465.580808] iwlwifi 0000:01:00.0: L1 Enabled - LTR Enabled
[ 465.697887] iwlwifi 0000:01:00.0: L1 Enabled - LTR Enabled
[ 465.698311] iwlwifi 0000:01:00.0: L1 Enabled - LTR Enabled
[ 466.143391] tegradc tegradc.0: unblank
[ 466.148154] tegradc tegradc.0: nominal-pclk:74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500
[ 466.148252] tegradc tegradc.0: hdmi: tmds rate:74250K prod-setting:prod_c_hdmi_54m_75m
[ 466.151402] tegradc tegradc.0: hdmi: get RGB quant from EDID.
[ 466.151410] tegradc tegradc.0: hdmi: get YCC quant from EDID.
[ 466.187980] extcon-disp-state extcon:disp-state: cable 47 state 1
[ 466.187982] Extcon AUX1(HDMI) enable
[ 466.224806] tegradc tegradc.0: unblank
[ 466.224817] tegradc tegradc.1: blank - powerdown
[ 503.642844] pcieport 0000:00:01.0: AER: Corrected error received: id=0010
[ 503.642895] pcieport 0000:00:01.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=0008(Receiver ID)
[ 503.653433] pcieport 0000:00:01.0: device [10de:0fae] error status/mask=00000001/00002000
[ 503.662033] pcieport 0000:00:01.0: [ 0] Receiver Error (First)
[ 518.821293] imx477 6-001a: Error updating control ranges -22
[ 518.837908] imx477 6-001a: Error updating control ranges -22
[ 518.861303] misc tegra_camera_ctrl: ISO BW req 1671345 > 1500000 (max) capping to max
[ 518.861317] misc tegra_camera_ctrl: tegra_camera_update_isobw: Warning, Requested ISO BW 1500000 has been capped to VI’s max BW 1500000
[ 520.367229] fence timeout on [ffffffc0c1212240] after 1500ms
[ 520.367297] name=[nvhost_sync:17], current value=0 waiting value=1
[ 520.367343] fence timeout on [ffffffc0c12123c0] after 1500ms
[ 520.367395] name=[nvhost_sync:16], current value=0 waiting value=1
[ 520.367405] ---- mlocks ----

R32 (release), REVISION: 4.4, GCID: 23942405, BOARD: t210ref, EABI: aarch64, DATE: Fri Oct 16 19:44:43 UTC 2020

hello brandon.hortman,

please further narrow down the issue by refer to Approaches for Validating and Testing the V4L2 Driver.
you may check Applications Using V4L2 IOCTL Directly for sample commands,
please enable V4L2 standard IOCTL to verify basic functionality during sensor bring-up.
thanks

1 Like

Thank you very much sir!