Page 1 of 1

摄像头初始化问题

Posted: 2025-03-14 13:51
by 砸松果
我正在为板子适配 OV5647 摄像头,现在已经确定 I2C 是可以扫到设备的,但是 RK 的驱动初始化会崩溃(貌似没有看到跟 OV5647 驱动的初始化信息),麻烦帮忙看看原因(貌似是与摄像头输出格式有关?)
非常感谢!

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.160 (root@zasongguo-desktop) (arm-rockchip830-linux-uclibcgnueabihf-gcc (crosstool-NG 1.24.0) 8.3.0, GNU ld (crosstool-NG 1.24.0) 2.32) #4 Fri Mar 14 21:58:56 CST 2025
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c53c7d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Luckfox Pico Max
[    0.000000] Memory policy: Data cache writeback
[    0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x00000000, size 0 MiB
[    0.000000] Reserved memory: created CMA memory pool at 0x0f600000, size 10 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] cma: Reserved 67584 KiB at 0x0b400000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: user_debug=31 storagemedia=mtd androidboot.storagemedia=mtd androidboot.mode=normal  rootwait earlycon=uart8250,mmio32,0xff4c0000 console=ttyFIQ0 root=ubi0:rootfs snd_soc_core.prealloc_buffer_size_kbytes=16 coherent_pool=0 mtdparts=spi-nand0:256K(env),256K@256K(idblock),512K(uboot),4M(boot),30M(oem),10M(userdata),210M(rootfs) ubi.mtd=6 rootfstype=ubifs rk_dma_heap_cma=66M androidboot.fwver=uboot-03/14/2025
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 174600K/262144K available (4286K kernel code, 387K rwdata, 1956K rodata, 200K init, 147K bss, 9720K reserved, 77824K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000516] Console: colour dummy device 80x30
[    0.000555] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000572] pid_max: default: 4096 minimum: 301
[    0.000733] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000746] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001324] CPU: Testing write buffer coherency: ok
[    0.001901] Setting up static identity map for 0x81c0 - 0x81f8
[    0.002397] devtmpfs: initialized
[    0.009503] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.009672] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009692] futex hash table entries: 16 (order: -5, 192 bytes, linear)
[    0.009806] pinctrl core: initialized pinctrl subsystem
[    0.010944] NET: Registered protocol family 16
[    0.011411] DMA: failed to allocate 0 KiB pool for atomic coherent allocation
[    0.011937] Registered FIQ tty driver
[    0.012275] thermal_sys: Registered thermal governor 'step_wise'
[    0.012281] thermal_sys: Registered thermal governor 'user_space'
[    0.012496] cpuidle: using governor menu
[    0.026840] rockchip-gpio ff380000.gpio: probed /pinctrl/gpio@ff380000
[    0.027509] rockchip-gpio ff530000.gpio: probed /pinctrl/gpio@ff530000
[    0.028141] rockchip-gpio ff540000.gpio: probed /pinctrl/gpio@ff540000
[    0.028862] rockchip-gpio ff550000.gpio: probed /pinctrl/gpio@ff550000
[    0.029498] rockchip-gpio ff560000.gpio: probed /pinctrl/gpio@ff560000
[    0.029586] rockchip-pinctrl pinctrl: probed pinctrl
[    0.040545] fiq_debugger fiq_debugger.0: IRQ uart_irq not found
[    0.040569] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[    0.040844] printk: console [ttyFIQ0] enabled
[    0.041018] Registered fiq debugger ttyFIQ0
[    0.042153] reg-fixed-voltage vdd-arm: Fixed regulator specified with variable voltages
[    0.042188] reg-fixed-voltage: probe of vdd-arm failed with error -22
[    0.042816] SCSI subsystem initialized
[    0.043021] usbcore: registered new interface driver usbfs
[    0.043066] usbcore: registered new interface driver hub
[    0.043119] usbcore: registered new device driver usb
[    0.043352] mc: Linux media interface: v0.10
[    0.043397] videodev: Linux video capture interface: v2.00
[    0.044472] Advanced Linux Sound Architecture Driver Initialized.
[    0.044969] Bluetooth: Core ver 2.22
[    0.045033] NET: Registered protocol family 31
[    0.045045] Bluetooth: HCI device and connection manager initialized
[    0.045061] Bluetooth: HCI socket layer initialized
[    0.045075] Bluetooth: L2CAP socket layer initialized
[    0.045096] Bluetooth: SCO socket layer initialized
[    0.045343] rockchip-cpuinfo cpuinfo: SoC		: 11061000
[    0.045362] rockchip-cpuinfo cpuinfo: Serial		: d6297cadb5f64537
[    0.045739] rockchip,rknpor-powergood ff000000.syscon:rknpor-powergood: probe success!
[    0.046532] clocksource: Switched to clocksource arch_sys_counter
[    0.053244] NET: Registered protocol family 2
[    0.053467] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.053960] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.053993] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.054018] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.054043] TCP: Hash tables configured (established 2048 bind 2048)
[    0.054140] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.054162] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.054294] NET: Registered protocol family 1
[    0.054792] RPC: Registered named UNIX socket transport module.
[    0.054814] RPC: Registered udp transport module.
[    0.054821] RPC: Registered tcp transport module.
[    0.054828] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.056821] rockchip-thermal ff3c8000.tsadc: tsadc is probed successfully!
[    0.057872] Initialise system trusted keyrings
[    0.058151] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.061690] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.062408] NFS: Registering the id_resolver key type
[    0.062481] Key type id_resolver registered
[    0.062492] Key type id_legacy registered
[    0.062532] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.153470] Key type asymmetric registered
[    0.153495] Asymmetric key parser 'x509' registered
[    0.153515] io scheduler mq-deadline registered
[    0.153908] rockchip-usb2phy ff3e0000.usb2-phy: IRQ index 0 not found
[    0.157003] pwm-backlight backlight: supply power not found, using dummy regulator
[    0.159686] dma-pl330 ff420000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.159712] dma-pl330 ff420000.dma-controller: 	DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    0.160454] rockchip-pvtm ff240000.pvtm: pvtm@0 probed
[    0.160624] rockchip-pvtm ff390000.pvtm: pvtm@0 probed
[    0.160918] rockchip-system-monitor rockchip-system-monitor: system monitor probe
[    0.161463] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.162188] ff4f0000.serial: ttyS5 at MMIO 0xff4f0000 (irq = 37, base_baud = 1500000) is a 16550A
[    0.166394] rockchip-drm display-subsystem: bound ff990000.vop (ops 0xb04733b8)
[    0.166454] rockchip-rgb ff000000.syscon:rgb: [drm:rockchip_rgb_bind] *ERROR* failed to find panel or bridge: -517
[    0.166711] random: crng init done
[    0.170404] panel-simple panel: supply power not found, using dummy regulator
[    0.179326] brd: module loaded
[    0.184567] loop: module loaded
[    0.186660] spi-nand spi2.0: Micron SPI NAND was found.
[    0.186690] spi-nand spi2.0: 256 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[    0.187623] 7 cmdlinepart partitions found on MTD device spi-nand0
[    0.187639] Creating 7 MTD partitions on "spi-nand0":
[    0.187652] 0x000000000000-0x000000040000 : "env"
[    0.189339] 0x000000040000-0x000000080000 : "idblock"
[    0.190926] 0x000000080000-0x000000100000 : "uboot"
[    0.192533] 0x000000100000-0x000000500000 : "boot"
[    0.194116] 0x000000500000-0x000002300000 : "oem"
[    0.195878] 0x000002300000-0x000002d00000 : "userdata"
[    0.197551] 0x000002d00000-0x00000ff00000 : "rootfs"
[    0.201233] rk_gmac-dwmac ffa80000.ethernet: IRQ eth_lpi not found
[    0.201402] rk_gmac-dwmac ffa80000.ethernet: PTP uses main clock
[    0.201447] rk_gmac-dwmac ffa80000.ethernet: no regulator found
[    0.201460] rk_gmac-dwmac ffa80000.ethernet: clock input or output? (input).
[    0.201472] rk_gmac-dwmac ffa80000.ethernet: Can not read property: tx_delay.
[    0.201483] rk_gmac-dwmac ffa80000.ethernet: set tx_delay to 0xffffffff
[    0.201493] rk_gmac-dwmac ffa80000.ethernet: Can not read property: rx_delay.
[    0.201501] rk_gmac-dwmac ffa80000.ethernet: set rx_delay to 0xffffffff
[    0.201571] rk_gmac-dwmac ffa80000.ethernet: integrated PHY? (yes).
[    0.201588] rk_gmac-dwmac ffa80000.ethernet: cannot get clock mac_clk_rx
[    0.201599] rk_gmac-dwmac ffa80000.ethernet: cannot get clock mac_clk_tx
[    0.201629] rk_gmac-dwmac ffa80000.ethernet: cannot get clock clk_mac_speed
[    0.201637] rk_gmac-dwmac ffa80000.ethernet: clock input from PHY
[    0.201881] rk_gmac-dwmac ffa80000.ethernet: init for RMII
[    0.202063] rk_gmac-dwmac ffa80000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    0.202085] rk_gmac-dwmac ffa80000.ethernet: 	DWMAC4/5
[    0.202098] rk_gmac-dwmac ffa80000.ethernet: DMA HW capability register supported
[    0.202109] rk_gmac-dwmac ffa80000.ethernet: RX Checksum Offload Engine supported
[    0.202118] rk_gmac-dwmac ffa80000.ethernet: TX Checksum insertion supported
[    0.202127] rk_gmac-dwmac ffa80000.ethernet: Wake-Up On Lan supported
[    0.202134] rk_gmac-dwmac ffa80000.ethernet: TSO supported
[    0.202142] rk_gmac-dwmac ffa80000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    0.202151] rk_gmac-dwmac ffa80000.ethernet: TSO feature enabled
[    0.202161] rk_gmac-dwmac ffa80000.ethernet: Using 40 bits DMA width
[    0.209216] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.209559] usbcore: registered new interface driver usb-storage
[    0.209743] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
[    0.209784] Mass Storage Function, version: 2009/09/11
[    0.209799] LUN: removable file: (no medium)
[    0.209825] no file given for LUN0
[    0.209858] udc ffb00000.usb: failed to start g_mass_storage: -22
[    0.211298] rockchip-rtc ff1c0000.rtc: registered as rtc0
[    0.211366] rockchip-rtc ff1c0000.rtc: setting system clock to 2021-01-01T12:00:48 UTC (1609502448)
[    0.211595] i2c /dev entries driver
[    0.213042] dw9714 1-000c: probing...
[    0.213072] dw9714 1-000c: could not get module rockchip,vcm-max-current from dts!
[    0.213087] dw9714 1-000c: could not get module rockchip,vcm-dlc-enable from dts!
[    0.213096] dw9714 1-000c: could not get module rockchip,vcm-mclk from dts!
[    0.213105] dw9714 1-000c: could not get module rockchip,vcm-t-src from dts!
[    0.213115] dw9714 1-000c: could not get module rockchip,vcm-adcanced-mode from dts!
[    0.213124] dw9714 1-000c: could not get module rockchip,vcm-sac-mode from dts!
[    0.213132] dw9714 1-000c: could not get module rockchip,vcm-sac-time from dts!
[    0.213141] dw9714 1-000c: could not get module rockchip,vcm-prescl from dts!
[    0.213149] dw9714 1-000c: could not get module rockchip,vcm-nrc-en from dts!
[    0.213158] dw9714 1-000c: could not get module rockchip,vcm-nrc-mode from dts!
[    0.213168] dw9714 1-000c: could not get module rockchip,vcm-nrc-preset from dts!
[    0.213176] dw9714 1-000c: could not get module rockchip,vcm-nrc-infl from dts!
[    0.213186] dw9714 1-000c: could not get module rockchip,vcm-nrc-time from dts!
[    0.213218] dw9714 1-000c: Failed to get xsd-gpios
[    0.213240] dw9714 1-000c: supply avdd not found, using dummy regulator
[    0.213434] dw9714 1-000c: dw9714_set_power(1040) on(1)
[    0.226428] dw9714 1-000c: check dw9714 connection OK!
[    0.226468] dw9714 1-000c: probing successful
[    0.229113] usbcore: registered new interface driver uvcvideo
[    0.229134] USB Video Class driver (1.1.1)
[    0.229739] Bluetooth: HCI UART driver ver 2.3
[    0.229757] Bluetooth: HCI UART protocol H4 registered
[    0.229863] Bluetooth: HCI UART protocol Broadcom registered
[    0.230044] cpu cpu0: leakage=14
[    0.230614] Synopsys Designware Multimedia Card Interface Driver
[    0.231584] dtbocfg: 0.1.0
[    0.231627] dtbocfg: OK
[    0.233728] rv1106-acodec ff480000.acodec: current soc_id: rv1106
[    0.233828] rv1106-acodec ff480000.acodec: Use pa_ctl_gpio and pa_ctl_delay_ms: 0
[    0.235531] NET: Registered protocol family 17
[    0.235639] Key type dns_resolver registered
[    0.236715] Loading compiled-in X.509 certificates
[    0.252276] flash vendor_init_thread!
[    0.252299] flash vendor storage:20170308 ret = -1
[    0.254104] rockchip-drm display-subsystem: bound ff990000.vop (ops 0xb04733b8)
[    0.254186] rockchip-drm display-subsystem: bound ff000000.syscon:rgb (ops 0xb0473f14)
[    0.254437] rockchip-drm display-subsystem: failed to parse loader memory
[    0.255820] rockchip-vop ff990000.vop: [drm:vop_crtc_atomic_enable] Update mode to 800x480p59, type: 17
[    0.290379] Console: switching to colour frame buffer device 100x30
[    0.301256] rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device
[    0.301960] [drm] Initialized rockchip 3.0.0 20140818 for display-subsystem on minor 0
[    0.302446] input: adc-keys as /devices/platform/adc-keys/input/input0
[    0.303731] asoc-simple-card acodec-sound: ASoC: DAPM unknown pin Headphones
[    0.377558] input: rv-acodec Headphones as /devices/platform/acodec-sound/sound/card0/input1
[    0.378652] ubi0: attaching mtd6
[    0.456578] asoc-simple-card acodec-sound: ASoC: DAPM unknown pin Headphones
[    0.604524] ubi0: scanning is finished
[    0.624431] ubi0: volume 0 ("rootfs") re-sized from 611 to 1636 LEBs
[    0.624943] ubi0: attached mtd6 (name "rootfs", size 210 MiB)
[    0.624962] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    0.624972] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    0.624983] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    0.624992] ubi0: good PEBs: 1680, bad PEBs: 0, corrupted PEBs: 0
[    0.625000] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    0.625011] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1595337588
[    0.625022] ubi0: available PEBs: 0, total reserved PEBs: 1680, PEBs reserved for bad PEB handling: 40
[    0.625631] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    0.625872] ubi0: background thread "ubi_bgt0d" started, PID 73
[    0.633048] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    0.633630] ALSA device list:
[    0.633649]   #0: rv-acodec
[    0.633855] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    0.633875] cfg80211: failed to load regulatory.db
[    0.637144] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    0.674338] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    0.674365] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    0.674381] UBIFS (ubi0:0): FS size: 206336000 bytes (196 MiB, 1625 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    0.674390] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    0.674403] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 7912B240-894A-472E-BBFB-EBFE10621866, small LPT model
[    0.679320] VFS: Mounted root (ubifs filesystem) readonly on device 0:15.
[    0.681298] devtmpfs: mounted
[    0.681519] Freeing unused kernel memory: 200K
[    0.681527] Kernel memory protection not selected by kernel config.
[    0.681553] Run /sbin/init as init process
[    0.701834] process '/bin/busybox' started with executable stack
[    0.813834] UBIFS (ubi0:0): start fixing up free space
[   13.653312] UBIFS (ubi0:0): free space fixup complete
[   13.664659] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 81
Saving 256 bits of creditable seed for next boot
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: [   14.119977] udevd[111]: starting version 3.2.7
[   14.174635] udevd[111]: specified group 'input' unknown
[   14.175539] udevd[111]: specified group 'kvm' unknown
[   14.238798] udevd[112]: starting eudev-3.2.7
[   14.678880] udevd[126]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd0ro': No such file or directory
[   14.687865] udevd[127]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd1ro': No such file or directory
[   14.698196] udevd[128]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd2ro': No such file or directory
[   14.702563] udevd[129]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd3ro': No such file or directory
[   14.711391] udevd[130]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd4ro': No such file or directory
[   14.718717] udevd[131]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd5ro': No such file or directory
[   14.724588] udevd[132]: failed to execute '/lib/udev/mtd_probe' 'mtd_probe /dev/mtd6ro': No such file or directory
done
/etc/init.d/S20linkmount info: mount point path [IGNORE] not found, skip...
***********/dev/ubi4_0 not exist***********
***********/dev/ubi4 not exist***********
[   15.092648] ubi4: attaching mtd4
[   15.125431] ubi4: scanning is finished
[   15.143769] ubi4: volume 0 ("oem") re-sized from 91 to 196 LEBs
[   15.147895] ubi4: attached mtd4 (name "oem", size 30 MiB)
UBI device number 4, total 240 LEBs (30474240 bytes, 29.1 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
[   15.147916] ubi4: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
try to make volume: /dev/ubi4_0 ...
[   15.147927] ubi4: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   15.147936] ubi4: VID header offset: 2048 (aligned 2048), data offset: 4096
ubimkvol: error!: bad volume size: "0"
[   15.147945] ubi4: good PEBs: 240, bad PEBs: 0, corrupted PEBs: 0
[   15.147955] ubi4: user volume: 1, internal volumes: 1, max. volumes count: 128
[   15.147966] ubi4: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 533411625
[   15.147976] ubi4: available PEBs: 0, total reserved PEBs: 240, PEBs reserved for bad PEB handling: 40
[   15.149034] ubi4: background thread "ubi_bgt4d" started, PID 152
[   15.194606] UBIFS (ubi4:0): Mounting in unauthenticated mode
[   15.195541] UBIFS (ubi4:0): background thread "ubifs_bgt4_0" started, PID 157
[   15.213349] UBIFS (ubi4:0): start fixing up free space
[   15.728013] UBIFS (ubi4:0): free space fixup complete
[   15.743256] UBIFS (ubi4:0): UBIFS: mounted UBI device 4, volume 0, name "oem"
[   15.743286] UBIFS (ubi4:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   15.743302] UBIFS (ubi4:0): FS size: 23617536 bytes (22 MiB, 186 LEBs), journal size 4190208 bytes (3 MiB, 33 LEBs)
[   15.743310] UBIFS (ubi4:0): reserved for root: 0 bytes (0 KiB)
[   15.743324] UBIFS (ubi4:0): media format: w4/r0 (latest is w5/r0), UUID 4E212367-A00B-4F3C-9ED4-6A7A424C0E6E, small LPT model
***********/dev/ubi5_0 not exist***********
***********/dev/ubi5 not exist***********
[   15.801062] ubi5: attaching mtd5
[   15.844800] ubi5: scanning is finished
[   15.871944] ubi5: volume 0 ("userdata") re-sized from 13 to 36 LEBs
[   15.878150] ubi5: attached mtd5 (name "userdata", size 10 MiB)
UBI device number 5, total 80 LEBs (10158080 bytes, 9.7 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
[   15.878170] ubi5: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   15.878180] ubi5: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
try to make volume: /dev/ubi5_0 ...
[   15.878188] ubi5: VID header offset: 2048 (aligned 2048), data offset: 4096
ubimkvol: error!: bad volume size: "0"
[   15.878196] ubi5: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
[   15.878204] ubi5: user volume: 1, internal volumes: 1, max. volumes count: 128
[   15.878214] ubi5: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1100124467
[   15.878225] ubi5: available PEBs: 0, total reserved PEBs: 80, PEBs reserved for bad PEB handling: 40
[   15.880400] ubi5: background thread "ubi_bgt5d" started, PID 166
[   15.927395] UBIFS (ubi5:0): Mounting in unauthenticated mode
[   15.928463] UBIFS (ubi5:0): background thread "ubifs_bgt5_0" started, PID 171
[   15.957024] UBIFS (ubi5:0): start fixing up free space
[   16.009502] UBIFS (ubi5:0): free space fixup complete
[   16.034057] UBIFS (ubi5:0): UBIFS: mounted UBI device 5, volume 0, name "userdata"
[   16.034085] UBIFS (ubi5:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   16.034099] UBIFS (ubi5:0): FS size: 3301376 bytes (3 MiB, 26 LEBs), journal size 1650688 bytes (1 MiB, 13 LEBs)
Initializing random number generator... [   16.034109] UBIFS (ubi5:0): reserved for root: 0 bytes (0 KiB)
[   16.034123] UBIFS (ubi5:0): media format: w4/r0 (latest is w5/r0), UUID 136D96E5-8EFA-4BBC-A133-43336A41DD22, small LPT model
done.
/dev/ubi5_0 on /userdata type ubifs (rw,relatime,assert=read-only,ubi=5,vol=0)
Starting network: [   16.240148] rk_dvbm ffa70000.rkdvbm: probe start
[   16.240189] rk_dvbm ffa70000.rkdvbm: dvbm ctx 12a8d1ce
[   16.245945] rk_dvbm ffa70000.rkdvbm: probe success
OK
Starting ntpd: [   16.294263] rkcifhw ffa10000.rkcif: no iommu attached, using non-iommu buffers
[   16.294295] rkcifhw ffa10000.rkcif: No reserved memory region assign to CIF
[   16.294683] rkcif rkcif-mipi-lvds: rkcif driver version: v00.02.00
[   16.294792] rkcif rkcif-mipi-lvds: attach to cif hw node
[   16.294805] rkcif rkcif-mipi-lvds: failed to get dphy hw node
[   16.294816] rkcif rkcif-mipi-lvds: rkcif wait line 0
[   16.294827] rkcif rkcif-mipi-lvds: rkcif fastboot reserve bufs num 3
[   16.294841] : terminal subdev does not exist
[   16.294851] : terminal subdev does not exist
[   16.294860] : terminal subdev does not exist
[   16.294868] : terminal subdev does not exist
[   16.294879] : get_remote_sensor: video pad[0] is null
[   16.294889] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[   16.294901] : rkcif_scale_set_fmt: req(80, 60) src out(0, 0)
[   16.294911] : get_remote_sensor: video pad[0] is null
[   16.294919] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[   16.294927] : rkcif_scale_set_fmt: req(80, 60) src out(0, 0)
[   16.294937] : get_remote_sensor: video pad[0] is null
[   16.294945] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[   16.294953] : rkcif_scale_set_fmt:req(80, 60) src out(0, 0)
[   16.294961] : get_remote_sensor: video pad[0] is null
[   16.294968] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[   16.294977] : rkcif_scale_set_fmt: req(80, 60) src out(0, 0)
[   16.307318] rkcif rkcif-mipi-lvds: No memory-region-thunderboot specified
[   16.308540] rockchip-mipi-csi2-hw ffa20000.mipi-csi2-hw: enter mipi csi2 hw probe!
[   16.308706] rockchip-mipi-csi2-hw ffa20000.mipi-csi2-hw: probe success, v4l2_dev:mipi-csi2-hw!
[   16.308838] rockchip-mipi-csi2-hw ffa30000.mipi-csi2-hw: enter mipi csi2 hw probe!
[   16.308966] rockchip-mipi-csi2-hw ffa30000.mipi-csi2-hw: probe success, v4l2_dev:mipi-csi2-hw!
[   16.309354] rockchip-mipi-csi2 mipi0-csi2: attach to csi2 hw node
[   16.309411] rkcif rkcif-mipi-lvds: Entity type for entity rockchip-mipi-csi2 was not initialized!
[   16.309430] rockchip-mipi-csi2: Async registered subdev
[   16.309446] rockchip-mipi-csi2: probe success, v4l2_dev:rkcif-mipi-lvds!
[   16.361381] rkisp_hw ffa00000.rkisp: is_thunderboot: 0
[   16.361472] rkisp_hw ffa00000.rkisp: max input:0x0@0fps
[   16.361634] rkisp_hw ffa00000.rkisp: get sram size:253952
[   16.361648] rkisp_hw ffa00000.rkisp: no iommu attached, using non-iommu buffers
[   16.361658] rkisp_hw ffa00000.rkisp: No reserved memory region. default cma area!
[   16.362019] rkisp rkisp-vir0: rkisp driver version: v02.05.00
[   16.362151] rkisp rkisp-vir0: No memory-region-thunderboot specified
[   16.363355] rkisp rkisp-vir0: Entity type for entity rkisp-isp-subdev was not initialized!
[   16.388139] rockchip-csi2-dphy-hw ff3e8000.csi2-dphy-hw: csi2 dphy hw probe successfully!
[   16.404624] rockchip-csi2-dphy csi2-dphy0: dphy0 matches ov5647 1-0036:bus type 5
[   16.406447] rkcif-mipi-lvds: rkcif_update_sensor_info: get terminal ov5647 1-0036 g_frame_interval failed!
[   16.406471] rkcif-mipi-lvds: sensor fmt invalid, set to default size
[   16.406491] 8<--- cut here ---
[   16.578056] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[   16.586150] pgd = 111154f3
[   16.588867] [00000000] *pgd=00000000
[   16.592446] Internal error: Oops - BUG: 5 [#1] THUMB2
[   16.597498] Modules linked in: phy_rockchip_csi2_dphy(+) phy_rockchip_csi2_dphy_hw video_rkisp video_rkcif rk_dvbm
[   16.607862] CPU: 0 PID: 203 Comm: insmod Not tainted 5.10.160 #4
[   16.613865] Hardware name: Generic DT based system
[   16.618766] PC is at rkcif_output_fmt_check+0xc/0x2a4 [video_rkcif]
[   16.625074] LR is at rkcif_set_fmt+0x99/0x3d4 [video_rkcif]
[   16.630646] pc : [<af808a2c>]    lr : [<af80ed69>]    psr: 60000033
[   16.636903] sp : b12b59e8  ip : 00000000  fp : b02e24d7
[   16.642125] r10: b16b0010  r9 : 00000000  r8 : b12b5a44
[   16.647346] r7 : af81e11c  r6 : b12b5ba0  r5 : b16b0010  r4 : 00000000
[   16.653868] r3 : 00000000  r2 : 00000280  r1 : af81e11c  r0 : b16b03f8
[   16.660394] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment user
[   16.667698] Control: 50c53c7d  Table: 016a0059  DAC: 00000055
[   16.673439] Process insmod (pid: 203, stack limit = 0x45061e0d)
[   16.679361] Stack: (0xb12b59e8 to 0xb12b6000)
[   16.683719] 59e0:                   b16b7480 b16b03f8 b12b5ba0 af81e11c b12b5a44 b16b7480
[   16.691895] 5a00: b16b03f8 af80ed69 00000160 00000000 d1e68646 00000003 6200005e 00000000
[   16.700069] 5a20: 00000000 00000000 00000000 00000000 00000000 b1294010 00000000 00000000
[   16.708243] 5a40: 00000000 00000000 00000000 00000280 000001e0 00000000 00000000 00000000
[   16.716417] 5a60: 3fffff60 b56c4e6a b11d5c94 00000000 0000005e 00000000 00000001 00000000
[   16.724592] 5a80: 0000005e b002cd95 b56c4e6a b002ce25 b12b5ae4 ffffffff 00000000 fffffdfd
[   16.732766] 5aa0: b16b0010 b16b03f8 b11d5014 00000004 b16b0234 b049b9f0 b02e24d7 b002ce8f
[   16.740941] 5ac0: b12b5ae4 b12b5ae4 b12b5ae4 b042e341 af822755 b12b5ae4 af81e3bb b56c4e6a
[   16.749115] 5ae0: af822755 00000001 b16b0010 b16b03f8 00000001 b049b9f0 00000000 b049b9f0
[   16.757290] 5b00: b02e24d7 af811627 00000001 00000000 00000002 00000000 00000000 00000000
[   16.765463] 5b20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   16.773637] 5b40: 00000000 00000000 00000001 00000000 00000000 00000000 00000000 00000000
[   16.781809] 5b60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   16.789984] 5b80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   16.798157] 5ba0: 00000000 00000000 30314752 00000000 00000000 00000000 00000000 00000000
[   16.806332] 5bc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   16.814505] 5be0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   16.822679] 5c00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   16.830853] 5c20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   16.839026] 5c40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   16.847200] 5c60: b16b8410 00000000 b16b02c4 b16b0200 00000004 b16b0234 b049b9f0 af806957
[   16.855376] 5c80: b11d5c34 b16b0024 b11d5288 012e29e3 b11d5268 b11d5268 b11d5c64 00000000
[   16.863550] 5ca0: b11d5d10 b16b001c b0697208 00000000 af87ac40 b02e30f9 b11d5c10 00000000
[   16.871726] 5cc0: b08bb010 b11d5c64 b11d5c34 af8798bd af8795c5 00000000 b16ac4d0 b00b0e8d
[   16.879901] 5ce0: 00000005 b16ac4d0 00000005 b16ac4d0 b16ac420 b08ba058 b05a093e b56c4e6a
[   16.888075] 5d00: af87ab4c 00000000 b08bb010 af87ab4c b070bfc4 00000000 af87ab4c 0000000f
[   16.896250] 5d20: af87ac40 b0231fbf b08bb010 00000000 b070bfcc b023131f 00000000 b08bb010
[   16.904426] 5d40: af87ab4c af87ab4c b06e0540 00000000 b163fb74 b12b5f44 af87ac40 b023150d
[   16.912600] 5d60: 00000000 00000000 b08bb010 b02315ff 00000000 b08bb010 af87ab4c b023167f
[   16.920776] 5d80: 00000000 b08bb010 af87ab4c b0231611 b06e0540 b0230259 b08a504c b08b9130
[   16.928950] 5da0: af87ab4c b163fb40 00000000 b0230b19 af87ab24 af87ab37 00000000 af87ab4c
[   16.937126] 5dc0: b0697208 ffffe000 af87d001 00000000 b164fa00 b023198d b0231e13 b06f5000
[   16.945300] 5de0: b0697208 b00096eb 00000124 b00b1bf5 00000000 00000002 00000124 00000000
[   16.953475] 5e00: 00000000 bb212820 b0801e00 00000001 00000000 c2225078 b0801f00 00000cc0
[   16.961650] 5e20: 00002512 b1206880 c2225078 b0073d31 b0801f00 b56c4e6a af87ac40 b164f9c0
[   16.969826] 5e40: b1206880 af87ac88 c2225078 b00417e3 af87ac40 bb1d2040 00000002 b164f9c0
[   16.978000] 5e60: 00000002 b0042b97 af87ac4c 00007fff af87ac40 b0040fed c2225078 af87adb0
[   16.986175] 5e80: b0439654 c2225028 af87d0c8 0000003b 00572008 b11dbc00 00000000 00000000
[   16.994348] 5ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   17.002523] 5ec0: 000040a0 b11dbc00 6e72656b 00006c65 00000000 00000000 00000000 00000000
[   17.010696] 5ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   17.018870] 5f00: 00000000 b56c4e6a b12b5f40 00000000 00572008 00000003 0000017b b0008424
[   17.027046] 5f20: b12b4000 0000017b 00000000 b0042e47 b12b5f40 7fffffff 00000000 00000002
[   17.035222] 5f40: c2221000 c2222831 c2222d00 c2221000 000040a0 c2224b00 c22249a4 c2223a88
[   17.043396] 5f60: 00001dc0 00002180 0000158c 0000243e 00000000 00000000 00000000 0000157c
[   17.051572] 5f80: 00000021 00000022 00000018 00000000 00000014 00000000 816d89e2 aebdaebd
[   17.059747] 5fa0: aebdadc4 b0008201 816d89e2 aebdaebd 00000003 00572008 00000000 aebdaebd
[   17.067923] 5fc0: 816d89e2 aebdaebd aebdadc4 0000017b 00000003 00000000 005709dc 00000000
[   17.076097] 5fe0: aebdac28 aebdac18 004b67d8 a6eb18b0 20000010 00000003 00000000 00000000
[   17.084380] [<af808a2c>] (rkcif_output_fmt_check [video_rkcif]) from [<af80ed69>] (rkcif_set_fmt+0x99/0x3d4 [video_rkcif])
[   17.095501] [<af80ed69>] (rkcif_set_fmt [video_rkcif]) from [<af811627>] (rkcif_set_default_fmt+0xc7/0x104 [video_rkcif])
[   17.106537] [<af811627>] (rkcif_set_default_fmt [video_rkcif]) from [<af806957>] (subdev_notifier_complete+0xf7/0x19c [video_rkcif])
[   17.118488] [<af806957>] (subdev_notifier_complete [video_rkcif]) from [<b02e30f9>] (v4l2_async_register_subdev+0x81/0xcc)
[   17.129542] [<b02e30f9>] (v4l2_async_register_subdev) from [<af8798bd>] (rockchip_csi2_dphy_probe+0x1b9/0x1f8 [phy_rockchip_csi2_dphy])
[   17.141716] [<af8798bd>] (rockchip_csi2_dphy_probe [phy_rockchip_csi2_dphy]) from [<b0231fbf>] (platform_drv_probe+0x2d/0x5a)
[   17.153015] [<b0231fbf>] (platform_drv_probe) from [<b023131f>] (really_probe+0x171/0x242)
[   17.161280] [<b023131f>] (really_probe) from [<b023150d>] (driver_probe_device+0x5d/0x6c)
[   17.169459] [<b023150d>] (driver_probe_device) from [<b02315ff>] (device_driver_attach+0x27/0x38)
[   17.178324] [<b02315ff>] (device_driver_attach) from [<b023167f>] (__driver_attach+0x6f/0x78)
[   17.186851] [<b023167f>] (__driver_attach) from [<b0230259>] (bus_for_each_dev+0x2b/0x42)
[   17.195030] [<b0230259>] (bus_for_each_dev) from [<b0230b19>] (bus_add_driver+0x6d/0x124)
[   17.203208] [<b0230b19>] (bus_add_driver) from [<b023198d>] (driver_register+0x59/0x88)
[   17.211207] [<b023198d>] (driver_register) from [<b00096eb>] (do_one_initcall+0x43/0xf0)
[   17.219305] [<b00096eb>] (do_one_initcall) from [<b00417e3>] (do_init_module+0x27/0x120)
[   17.227400] [<b00417e3>] (do_init_module) from [<b0042b97>] (load_module+0x1223/0x13d4)
[   17.235398] [<b0042b97>] (load_module) from [<b0042e47>] (sys_finit_module+0x53/0x5c)
[   17.243226] [<b0042e47>] (sys_finit_module) from [<b0008201>] (ret_fast_syscall+0x1/0x58)
[   17.251396] Exception stack(0xb12b5fa8 to 0xb12b5ff0)
[   17.256451] 5fa0:                   816d89e2 aebdaebd 00000003 00572008 00000000 aebdaebd
[   17.264626] 5fc0: 816d89e2 aebdaebd aebdadc4 0000017b 00000003 00000000 005709dc 00000000
[   17.272798] 5fe0: aebdac28 aebdac18 004b67d8 a6eb18b0
[   17.277855] Code: f8d0 3588 7804 6845 (681a) f243 
[   17.282697] ---[ end trace a9f431d93c977909 ]---

Re: 摄像头初始化问题

Posted: 2025-03-15 6:50
by Crocodile
您好,建议是打开ov5647.c 的dev_dbg打印,看看能不能获取到更多有用信息;同时先确定摄像头可以用v4l2-utils 工具读取到并能够获取 RAW 图再启动 RKISP 调试。
摄像头的型号多样驱动复杂,没有硬件环境很难提供帮助,相关细节请查询文档