页次: 1
Hi
I think my problems are for ov5647_mipi driver but i do not know how to solve it
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.4.39 (user@user-laptop) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #6 Sun May 28 12:34:50 +0330 2023
[ 0.000000] Initialized persistent memory from 41d20800-41d307ff
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 29308k/29308k available, 36228k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0505000 (5108 kB)
[ 0.000000] .init : 0xc0505000 - 0xc0528000 ( 140 kB)
[ 0.000000] .data : 0xc0528000 - 0xc05ab170 ( 525 kB)
[ 0.000000] .bss : 0xc05ab194 - 0xc068bed4 ( 900 kB)
[ 0.000000] NR_IRQS:544
[ 0.000000] Architected local timer running at 24.00MHz.
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.001722] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[ 0.002288] pid_max: default: 32768 minimum: 301
[ 0.005561] Mount-cache hash table entries: 512
[ 0.013717] CPU: Testing write buffer coherency: ok
[ 0.015222] Setting up static identity map for 0x4038de70 - 0x4038dec8
[ 0.023137] devtmpfs: initialized
[ 0.056965] pinctrl core: initialized pinctrl subsystem
[ 0.061407] NET: Registered protocol family 16
[ 0.065198] DMA: preallocated 128 KiB pool for atomic coherent allocations
[ 0.066157] script_sysfs_init success
[ 0.088169] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[ 0.117526] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[ 0.121420] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[ 0.137814] persistent_ram: uncorrectable error in header
[ 0.138122] persistent_ram: no valid data in buffer (sig = 0x55175517)
[ 0.170103] console [ram-1] enabled
[ 0.188150] Not Found clk pll_isp in script
[ 0.190106] Not Found clk pll_video in script
[ 0.199133] Not Found clk pll_ve in script
[ 0.200104] Not Found clk pll_periph0 in script
[ 0.209181] Not Found clk pll_de in script
[ 0.283365] bio: create slab <bio-0> at 0
[ 0.290870] pwm module init!
[ 0.331363] SCSI subsystem initialized
[ 0.338920] usbcore: registered new interface driver usbfs
[ 0.341167] usbcore: registered new interface driver hub
[ 0.350845] usbcore: registered new device driver usb
[ 0.357272] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[ 0.360164] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[ 0.373674] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x34)
[ 0.380132] axp20_board 0-0034: failed reading at 0x03
[ 0.385576] axp20_board: probe of 0-0034 failed with error -70
[ 0.392999] Linux media interface: v0.10
[ 0.398389] Linux video capture interface: v2.00
[ 0.401073] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[ 0.410837] Advanced Linux Sound Architecture Driver Version 1.0.25.
[ 0.430564] Switching to clocksource arch_sys_counter
[ 0.587982] NET: Registered protocol family 2
[ 0.601008] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.612354] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.623381] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.629621] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.638830] TCP: reno registered
[ 0.643792] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.653349] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.664195] NET: Registered protocol family 1
[ 0.678203] standby_mode = 1.
[ 0.683110] wakeup src cnt is : 3.
[ 0.688175] pmu1_enable = 0x1.
[ 0.697168] pmux_id = 0x1.
[ 0.702376] config_pmux_para: script_parser_fetch err.
[ 0.707226] pmu2_enable = 0x0.
[ 0.716254] add_sys_pwr_dm: get ldo name failed
[ 0.721298] add_sys_pwr_dm: get ldo name failed
[ 0.726144] add_sys_pwr_dm: get ldo name failed
[ 0.735311] add_sys_pwr_dm: get ldo name failed
[ 0.740320] add_sys_pwr_dm: get ldo name failed
[ 0.749368] add_sys_pwr_dm: get ldo name failed
[ 0.754351] add_sys_pwr_dm: get ldo name failed
[ 0.759217] add_sys_pwr_dm: get ldo name failed
[ 0.768420] add_sys_pwr_dm: get ldo name failed
[ 0.773393] add_sys_pwr_dm: get ldo name failed
[ 0.782506] after inited: sys_mask config = 0x0.
[ 0.787348] dynamic_standby enalbe = 0x0.
[ 0.792873] sunxi_reg_init enter
[ 0.827766] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.833695] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.847930] msgmni has been set to 57
[ 0.859878] io scheduler noop registered
[ 0.864821] io scheduler deadline registered
[ 0.874693] io scheduler cfq registered (default)
[ 0.885127] [DISP]disp_module_init
[ 0.899021] cmdline,disp=
[ 0.918241] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[ 0.927964] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[ 0.944317] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[ 0.987627] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator
[ 1.001481] [DISP] disp_sys_gpio_set_value,line:374:OSAL_GPIO_DevWRITE_ONEPIN_DATA, hdl is NULL
[ 1.016311] [DISP]disp_module_init finish
[ 1.023506] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[ 1.036682] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[ 1.045543] sw_uart_pm()890 - uart0 clk is already enable
[ 1.050422] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[ 1.192654] console [ttyS0] enabled
[ 2.347280] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[ 2.369861] spi spi0: master is unqueued, this is deprecated
[ 2.383024] m25p_probe()982 - Use the Dual Mode Read.
[ 2.398681] m25p80 spi0.0: found m25p05-nonjedec, expected w25q128
[ 2.410953] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[ 2.428293] partitions_register()865 - m25p80_read() ret 0, PartCnt: 0
[ 2.440963] m25p80: probe of spi0.0 failed with error -22
[ 2.471187] Failed to alloc md5
[ 2.479778] eth0: Use random mac address
[ 2.490667] usbcore: registered new interface driver rtl8150
[ 2.506349] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.539578] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.558353] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[ 2.577043] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[ 2.600368] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[ 2.625636] hub 1-0:1.0: USB hub found
[ 2.634942] hub 1-0:1.0: 1 port detected
[ 2.654436] sunxi-ehci sunxi-ehci.1: remove, state 1
[ 2.665154] usb usb1: USB disconnect, device number 1
[ 2.684239] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[ 2.710557] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.743285] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[ 2.761680] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[ 2.779877] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[ 2.862804] hub 1-0:1.0: USB hub found
[ 2.876307] hub 1-0:1.0: 1 port detected
[ 2.890854] sunxi-ohci sunxi-ohci.1: remove, state 1
[ 2.901582] usb usb1: USB disconnect, device number 1
[ 2.924228] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[ 2.946326] Initializing USB Mass Storage driver...
[ 2.961976] usbcore: registered new interface driver usb-storage
[ 2.973881] USB Mass Storage support registered.
[ 2.993565] file system registered
[ 3.024468] android_usb gadget: Mass Storage Function, version: 2009/09/11
[ 3.041784] android_usb gadget: Number of LUNs=1
[ 3.052201] lun0: LUN: removable file: (no medium)
[ 3.069801] android_usb gadget: android_usb ready
[ 3.085148] sunxikbd_script_init: key para not found, used default para.
[ 3.110228] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[ 3.123340] i2c /dev entries driver
[ 3.138991] [VFE]cci probe start cci_sel = 0!
[ 3.153237] [VFE]cci probe end cci_sel = 0!
[ 3.163505] [VFE]cci_init end
[ 3.171788] [VFE]Welcome to Video Front End driver
[ 3.188688] [VFE]pdev->id = 0
[ 3.196964] [VFE]dev->mipi_sel = 0
[ 3.205811] [VFE]dev->vip_sel = 0
[ 3.218659] [VFE]dev->isp_sel = 0
[ 3.227638] [VFE]fetch front sensor list info start!
[ 3.238347] [VFE]Fetch sensor list form"/system/etc/hawkview/sensor_list_cfg.ini"
[ 3.285315] [VFE]fetch front sensor list info end!
[ 3.303368] [VFE_WARN]vfe vpu clock is null
[ 3.336177] [VFE]vfe_init end
[ 3.344429] [VFE]probe_work_handle start!
[ 3.353985] [VFE]..........................vfe clk open!.......................
[ 3.385461] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 3.403790] [VFE]v4l2 subdev register input_num = 0
[ 3.414300] [VFE]vfe sensor detect start! input_num = 0
[ 3.429449] [VFE]Find sensor name is "ov5647_mipi", i2c address is 6c, type is "RAW" !
[ 3.443692] [VFE]Sub device register "ov5647_mipi" i2c_addr = 0x6c start!
[ 3.460717] [VFE]v4l2_device_register_subdev return 0
[ 3.471526] [VFE]registered sensor subdev is OK!
[ 3.486007] [VFE]Check sensor!
[ 3.494398] [VFE]Sub device register "ov5647_mipi" is OK!
[ 3.512120] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 3.528311] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 3.548152] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 3.568235] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 3.584088] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 3.604121] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 3.622367] [VFE]Check open /system/etc/hawkview/ov5647_mipi/isp_test_param.ini failed!
[ 3.622684] Match isp cfg start!
[ 3.649527] [VFE]Match isp cfg ok
[ 3.658426] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[ 3.673794] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[ 3.692836] [VFE]V4L2 device registered as video0
[ 3.714120] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[ 3.726702] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[ 3.742099] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[ 3.761472] [VFE]..........................vfe clk close!.......................
[ 3.775218] [VFE]probe_work_handle end!
[ 3.836926] no led_3, ignore it!
[ 3.845605] no led_4, ignore it!
[ 3.854190] no led_5, ignore it!
[ 3.862869] no led_6, ignore it!
[ 3.875603] no led_7, ignore it!
[ 3.888669] leds-gpio: probe of leds-gpio failed with error -16
[ 3.907303] usbcore: registered new interface driver usbhid
[ 3.918758] usbhid: USB HID core driver
[ 3.943323] ashmem: initialized
[ 3.956016] *******************Try sdio*******************
[ 3.969344] logger: created 256K log 'log_main'
[ 3.986597] logger: created 32K log 'log_events'
[ 3.997358] *******************Try sd *******************
[ 4.010254] logger: created 32K log 'log_radio'
[ 4.031486] logger: created 32K log 'log_system'
[ 4.064997] script_get_item return type err, consider it no ldo
[ 4.090705] asoc: sndcodec <-> sunxi-codec mapping ok
[ 4.133457] TCP: cubic registered
[ 4.142363] NET: Registered protocol family 17
[ 4.159635] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 4.182250] ThumbEE CPU extension supported.
[ 4.192218] Registering SWP/SWPB emulation handler
[ 4.214002] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 4.241184] mmc0: new high speed SDHC card at address aaaa
[ 4.257363] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 4.275307] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 4.292697] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 4.310748] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 4.329449] mmcblk0: p1 p2
[ 4.338376] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 4.365627] mmcblk mmc0:aaaa: Card claimed for testing.
[ 4.376705] mmc0:aaaa: SC16G 14.8 GiB
[ 4.390708] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 4.405376] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 4.423658] *******************sd init ok*******************
[ 4.436323] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 4.455671] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 4.477592] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 4.499155] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 4.513709] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 4.532930] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 4.556119] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:17 UTC (17)
[ 4.576956] *******************Try sdio*******************
[ 4.611888] *******************Try sd *******************
[ 4.630581] ALSA device list:
[ 4.638716] #0: audiocodec
[ 4.659211] *******************Try mmc*******************
[ 4.670934] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 4.704100] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 4.798936] *******************Try sdio*******************
[ 4.827169] *******************Try sd *******************
[ 4.867564] *******************Try mmc*******************
[ 4.999220] *******************Try sdio*******************
[ 5.037269] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 5.052871] *******************Try sd *******************
[ 5.068233] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 5.087816] *******************Try mmc*******************
[ 5.103742] devtmpfs: mounted
[ 5.113154] Freeing init memory: 140K
[ 5.230991] *******************Try sdio*******************
[ 5.257038] *******************Try sd *******************
[ 5.280339] *******************Try mmc*******************
[ 5.455371] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator... done.
Starting network: OK
hi
I did all steps based on https://whycan.com/682
but i could not work correctly with ov5647
hi please guide me how to solve my error when i want to use ov5647 and get this error:
# yavta -c10 -f YUYV -s 640x480 --skip 7 -F /dev/video0
[ 38.804824] [VFE]vfe_open
[ 38.818534] [VFE]..........................vfe clk open!.......................
[ 38.834542] [VFE]vfe_open ok
Device /dev/video0 opened: sunxi[ 38.844654] [VFE_ERR]try yuv422 bus error when pix fmt is yuv422 interleaved at try_fmt_internal!
-vfe (sunxi_vfe sunxi_vfe.0).
[ 38.866452] [VFE_ERR]pixel format (0x56595559) width 640 height 480 invalid at vidioc_s_fmt_vid_cap.
Unable to set format: Invalid ar[ 38.889835] [VFE]vfe_close
gument (22).
[ 38.900433] [VFE]vfe select input flag = 0, s_input have not be used .
[ 38.917764] [VFE]..........................vfe clk close!.......................
[ 38.935932] [VFE]vfe_close end
页次: 1