导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. mysteryli
    3. 帖子
    M
    • 资料
    • 关注 0
    • 粉丝 1
    • 我的积分 6354
    • 主题 48
    • 帖子 128
    • 最佳 20
    • 群组 0

    mysteryli 发布的帖子

    • 全志V821 SPI驱动ST7789,初始化阶段SPI上有波形,但是无法输出图形

      7fdb84f8-ccce-4b2a-90c6-9bbf824026af-image.png
      输出图形时,SPI上没有任何波形
      启动log如下

      [0]BOOT0 commit :
      [0]set pll start
      [1]set pll end
      [1]reset_src: rtc wdg rst
      [2]reset_src: det rst
      [2]reset_src: pwron rst
      [3]board init ok: use hosc 40M
      [4]DRAM use internal ZQ!!
      [4]ZQ value = 0x31
      [4]DRAM BOOT DRIVE INFO: V1.02
      [4]DRAM CLK = 520 MHz
      [5]DRAM Type = 2 (2:DDR2,3:DDR3)
      [5]DRAMC read ODT off.
      [5]DRAM ODT off.
      [5]ddr_clk0 = 1040 MHz
      [6]trefi: 7.8us
      [6]DRAM Size = 64 MB
      [8]DRAM simple test OK.
      [8]dram size =64
      [9]set spif freq:100000000
      [9]spi sample_mode:0 sample_delay:1b
      [11]spinor id is: 85 20 18, read cmd: ed
      [11]Succeed in reading toc file head.
      [11]The size of toc is c0000.
      [20]Entry_name        = opensbi
      [20]Entry_name        = u-boot
      [22]Entry_name        = pmboot
      [22]GPT load from sector:0x0, sectors: 0x8
      [38]Jump to OpenSBI: opensbi_base = 0x80fc0000, dtb_base = 0x0, uboot_base = 0x82000000
      
      OpenSBI 92310c8ed361641fa38c20bd0073be189e0f1282
         ____                    _____ ____ _____
        / __ \                  / ____|  _ \_   _|
       | |  | |_ __   ___ _ __ | (___ | |_) || |
       | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
       | |__| | |_) |  __/ | | |____) | |_) || |_
        \____/| .__/ \___|_| |_|_____/|____/_____|
              | |
              |_|
      
      init msb region pma attribute
      Platform Name             : sun300iw1
      Platform Features         : medeleg
      Platform HART Count       : 1
      Platform IPI Device       : sunxi_plicsw
      Platform Timer Device     : sunxi_plmt @ 40000000Hz
      Platform Console Device   : sunxi_uart
      Platform HSM Device       : ---
      Platform PMU Device       : ---
      Platform Reboot Device    : sunxi_wdt
      Platform Shutdown Device  : sunxi_wdt
      Firmware Base             : 0x80fc0400
      Firmware Size             : 75 KB
      Runtime SBI Version       : 0.3
      
      Domain0 Name              : root
      Domain0 Boot HART         : 0
      Domain0 HARTs             : 0*
      Domain0 Region00          : 0x80fc0000-0x80fdffff ()
      Domain0 Region01          : 0x00000000-0xffffffff (R,W,X)
      Domain0 Next Address      : 0x82000000
      Domain0 Next Arg1         : 0x00000000
      Domain0 Next Mode         : S-mode
      Domain0 SysReset          : yes
      
      Boot HART ID              : 0
      Boot HART Domain          : root
      Boot HART ISA             : rv32imafdcnsux
      Boot HART Features        : scounteren,mcounteren,mcountinhibit,sscofpmf
      Boot HART PMP Count       : 64
      Boot HART PMP Granularity : 8
      Boot HART PMP Address Bits: 31
      Boot HART MHPM Count      : 4
      Boot HART MIDELEG         : 0x00000222
      Boot HART MEDELEG         : 0x0000b109
      
      
      U-Boot 2018.07 (Nov 19 2025 - 22:47:09 +0800) Allwinner Technology
      
      I2C:   ready
      [00.053]DRAM:  64 MiB
      [00.053]Relocation Offset is: 01f23000, reloc addr is: 83f23000
      [00.056]secure enable bit: 0
      [00.056]drivers/sunxi_power/pmu_axpnull.c pmu_axpnull_probe 26 axpdummy probe
      FDT ERROR:fdt_get_regulator_name:get property handle twi-supply error:FDT_ERR_INTERNAL
      [00.058]axp2601 pmic_bus_read fail
      [00.058]BMU: AXPNULL
      [00.059]CPU=960 MHz,PERI=3072 Mhz,AHB=192 Mhz, APB=96Mhz
      SPI ALL:   ready
      [00.061]flash init start
      [00.061]workmode = 0,storage type = 3
      [00.066]spi sample_mode:0 sample_delay:1b
      [00.067]spif sunxi_slave->max_hz:100000000
      SF: Detected py25q128ha(IO DTR) with page size 256 Bytes, erase size 64 KiB, total 16 MiB
      [00.069]sunxi flash init ok
      [00.071]Loading Environment from SUNXI_FLASH... OK
      [00.082]get secure storage map err
      [00.082]sunxi secure storage is not supported
      [00.082]usb burn from boot
      delay time 0
      [00.092]usb prepare ok
      [00.356]usb sof ok
      [00.356]usb probe ok
      [00.357]usb setup ok
      set address 0x15
      set address 0x15 ok
      try to update
      [00.761]do_burn_from_boot usb : have no handshake
      [00.761]get secure storage map err
      List file under ULI/factory
      ** Unrecognized filesystem type **
      [00.762]get secure storage map err
      [00.762]get secure storage map err
      [00.763]get secure storage map err
      [00.763]get secure storage map err
      root_partition is rootfs
      set root to /dev/mtdblock7
      [00.764]update part info
      [00.764]update bootcmd
      [00.765]change working_fdt 0x838e2ea0 to 0x838c2ea0
      [00.777]## error: update_fdt_dram_para : FDT_ERR_NOTFOUND
      [00.779]update dts
      Info: gmac phy mode = rmii, phy_interface = 6
      FDT ERROR:get muxsel err returned FDT_ERR_INTERNAL
      Error: gmac set pin failed
      [00.783]Board Net Initialization Failed
      [00.783]No ethernet found.
      Hit any key to stop autoboot:  0
      [00.857]no vendor_boot partition is found
      Android's image name: sun300i_riscv32
      Detect comp gzip
      ERROR: reserving fdt memory region failed (addr=80ffff00 size=100)
      [01.080]
      Starting kernel ...
      
      [    0.000000] Linux version 5.4.220 (l@l-Default-string) (gcc version 10.4.0 (2024-02-02_nds32le-linux-glibc-v5d-bbc31ec98)) #13 PREEMPT Wed Nov 19 22:48:16 CST 2025
      [    0.000000] printk: bootconsole [earlycon0] enabled
      [    0.000000] Reserved memory: created CMA memory pool at 0x0000000083c00000, size 4 MiB
      [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
      [    0.000000] Reserved memory: created DMA memory pool at 0x0000000081200000, size 0 MiB
      [    0.000000] OF: reserved mem: initialized node vdev0buffer@81200000, compatible id shared-dma-pool
      [    0.000000] Reserved memory: created DMA memory pool at 0x0000000081646000, size 0 MiB
      [    0.000000] OF: reserved mem: initialized node e907_rpbuf@81646000, compatible id shared-dma-pool
      [    0.000000] Zone ranges:
      [    0.000000]   Normal   [mem 0x0000000080000000-0x0000000083ffffff]
      [    0.000000] Movable zone start for each node
      [    0.000000] Early memory node ranges
      [    0.000000]   node   0: [mem 0x0000000080000000-0x0000000080ffefff]
      [    0.000000]   node   0: [mem 0x0000000081244000-0x0000000081643fff]
      [    0.000000]   node   0: [mem 0x000000008164e000-0x0000000083ffffff]
      [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000083ffffff]
      [    0.000000] On node 0 totalpages: 15793
      [    0.000000]   Normal zone: 128 pages used for memmap
      [    0.000000]   Normal zone: 0 pages reserved
      [    0.000000]   Normal zone: 15793 pages, LIFO batch:3
      [    0.000000] SBI specification v0.3 detected
      [    0.000000] SBI implementation ID=0x1 Version=0x10000
      [    0.000000] SBI v0.2 TIME extension detected
      [    0.000000] SBI v0.2 IPI extension detected
      [    0.000000] SBI v0.2 RFENCE extension detected
      [    0.000000] SBI SRST extension detected
      [    0.000000] riscv: base ISA extensions acdfim
      [    0.000000] riscv: ELF capabilities acdfim
      [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
      [    0.000000] pcpu-alloc: [0] 0
      [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15665
      [    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x42500000 initcall_debug=0 console=ttyS0,1500000 loglevel=8 root=/dev/mtdblock7 rootwait init=/init rdinit=/rdinit partitions=boot-resource@mtdblock1:env@mtdblock2:env-redund@mtdblock3:boot@mtdblock4:private@mtdblock5:riscv0@mtdblock6:rootfs@mtdblock7:rootfs_data@mtdblock8:UDISK@mtdblock9 cma=1M coherent_pool= androidboot.serialno=9c000c71b701c762312 wifi_mac=60:c2:2a:0d:ed:49 androidboot.hardware=sun300iw1p1 boot_type=3 androidboot.boot_type=3 gpt=1 uboot_message=2018.07(11/19/2025-22:47:09) mbr_offset=1032192 bootreason=button androidboot.dramfreq=520 androidboot.dramsize=64 mtdparts=<NULL> uboot_backup=ubootA
      [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
      [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
      [    0.000000] Sorting __ex_table...
      [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
      [    0.000000] Memory: 27276K/63172K available (5263K kernel code, 363K rwdata, 2019K rodata, 164K init, 288K bss, 31800K reserved, 4096K cma-reserved)
      [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
      [    0.000000] rcu: Preemptible hierarchical RCU implementation.
      [    0.000000]  Tasks RCU enabled.
      [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
      [    0.000000] NR_IRQS: 72, nr_irqs: 72, preallocated irqs: 0
      [    0.000000] plic: mapped 187 interrupts with 1 handlers for 2 contexts.
      [    0.000000] sunxi:ccu-ng:[INFO]: Current HOSC rate is 40000000HZ
      [    0.000000] AW BSP version: UNKNOWN, 2025-11-19 22:48:11
      [    0.000000] sunxi:ccu-ng:[INFO]: aon_ccu: sunxi ccu init OK
      [    0.000000] sunxi:ccu-ng:[INFO]: sunxi ccu common driver version: 1.2.4
      [    0.000000] sunxi:ccu-ng:[INFO]: ccu: sunxi ccu init OK
      [    0.000000] sunxi:ccu-ng:[INFO]: sunxi app ccu driver version: 0.7.2
      [    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
      [    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x939a85c40, max_idle_ns: 440795202120 ns
      [    0.000011] sched_clock: 64 bits at 40MHz, resolution 25ns, wraps every 4398046511100ns
      [    0.001084] Console: colour dummy device 80x25
      [    0.001159] Calibrating delay loop (skipped), value calculated using timer frequency.. 80.00 BogoMIPS (lpj=160000)
      [    0.001803] pid_max: default: 32768 minimum: 301
      [    0.002393] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.002727] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.005626] rcu: Hierarchical SRCU implementation.
      [    0.011342] devtmpfs: initialized
      [    0.032543] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
      [    0.032894] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
      [    0.033757] pinctrl core: initialized pinctrl subsystem
      [    0.041888] phys:80000000 low vir:c0000000 non-cache:dfc80000~e3c80000
      [    0.043077] NET: Registered protocol family 16
      [    0.047875] sunxi:ccu-ng:[INFO]: sunxi prcm ccu driver version: 0.0.4
      [    0.056201] sunxi:pin-42000000.pinctrl:[INFO]: pinctrl withstand voltage config mode=auto_hard
      [    0.056451] sunxi:pin:[INFO]: sunxi pinctrl core driver version: 1.4.8
      [    0.057469] sunxi:pin:[INFO]: sunxi rtc-pinctrl version: 0.0.2
      [    0.060024] sunxi:pin-42000540.pinctrl:[INFO]: pinctrl withstand voltage config mode=auto_hard
      [    0.064422] sunxi hwspinlock vbase:0x(ptrval)
      [    0.094037] SCSI subsystem initialized
      [    0.094888] usbcore: registered new interface driver usbfs
      [    0.095003] usbcore: registered new interface driver hub
      [    0.095388] usbcore: registered new device driver usb
      [    0.095857] mc: Linux media interface: v0.10
      [    0.096065] videodev: Linux video capture interface: v2.00
      [    0.097304] Advanced Linux Sound Architecture Driver Initialized.
      [    0.099492] sun6i-dma 43002000.dma-controller: sunxi dma probed, driver version: 1.2.11
      [    0.101407] sunxi-soc-regulator 4a000800.soc_pmu0: Supply for ldo1 (ldo1) resolved to itself
      [    0.101647] ldo1: supplied by regulator-dummy
      [    0.102833] ion_size_pool heap_size_pool@0: no small_source configurated, use cma as default
      [    0.104821] sunxi:pin-42000000.pinctrl:[INFO]: Auto power withstand voltage configuration detected, automatically exit!
      [    0.105460] sunxi-twi 42502000.twi0: 42502000.twi0 supply twi not found, using dummy regulator
      [    0.106771] sunxi:twi-42502000.twi0:[INFO]: v2.7.9 probe success
      [    0.107758] sunxi:pwm-42000c00.pwm:[INFO]: start probe
      [    0.108437] sunxi:pwm-42000c00.pwm:[INFO]: pwmchip probe success
      [    0.110600] clocksource: Switched to clocksource riscv_clocksource
      [    0.115043] thermal_sys: Registered thermal governor 'fair_share'
      [    0.115053] thermal_sys: Registered thermal governor 'bang_bang'
      [    0.115109] thermal_sys: Registered thermal governor 'step_wise'
      [    0.115568] thermal_sys: Registered thermal governor 'user_space'
      [    0.116028] thermal_sys: Registered thermal governor 'power_allocator'
      [    0.117094] thermal thermal_zone1: power_allocator: sustainable_power will be estimated
      [    0.118457] sunxi_usb_udc 44100000.udc-controller: sunxi:sunxi_usb_udc UDC Inner DMA Feature - wordaddr: -1, extend: disabled
      [    0.120029] NET: Registered protocol family 2
      [    0.120337] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
      [    0.121545] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
      [    0.121809] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.122373] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.123019] TCP: Hash tables configured (established 1024 bind 1024)
      [    0.123555] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
      [    0.123901] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
      [    0.124714] NET: Registered protocol family 1
      [    0.125544] RPC: Registered named UNIX socket transport module.
      [    0.125586] RPC: Registered udp transport module.
      [    0.125945] RPC: Registered tcp transport module.
      [    0.126305] RPC: Registered tcp NFSv4.1 backchannel transport module.
      [    0.127771] sunxi-spi-ng 44026000.spi: 44026000.spi supply spi not found, using dummy regulator
      [    0.128265] sunxi:spi-44026000.spi:[INFO]: bus num_1 mode_1 freq_48000000
      [    0.128579] sunxi:spi-44026000.spi:[INFO]: cs num_2 mode_1
      [    0.128989] of_dma_request_slave_channel: dma-names property of node '/soc@2002000/spi@44026000' missing or empty
      [    0.129773] sunxi:spi-44026000.spi:[ERR]: failed to request dma tx channel -19
      [    0.131148] sunxi-spi-ng 44026000.spi: registered master spi1
      [    0.131425] spi spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0
      [    0.131991] sunxi-spi-ng 44026000.spi: registered child spi1.0
      [    0.132149] sunxi:spi-44026000.spi:[INFO]: probe success (Version 2.5.4)
      [    0.135941] workingset: timestamp_bits=30 max_order=13 bucket_order=0
      [    0.148992] squashfs: version 4.0 (2009/01/31) Phillip Lougher
      [    0.150462] NFS: Registering the id_resolver key type
      [    0.150702] Key type id_resolver registered
      [    0.150896] Key type id_legacy registered
      [    0.151245] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
      [    0.151744] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
      [    0.152340] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
      [    0.153762] fuse: init (API version 7.31)
      [    0.155297] NET: Registered protocol family 38
      [    0.155390] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
      [    0.155827] io scheduler mq-deadline registered
      [    0.156137] io scheduler kyber registered
      [    0.179855] loop: module loaded
      [    0.180852] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      [    0.180973] ehci-platform: EHCI generic platform driver
      [    0.181791] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      [    0.181877] ohci-platform: OHCI generic platform driver
      [    0.183666] usbcore: registered new interface driver uas
      [    0.183797] usbcore: registered new interface driver usb-storage
      [    0.184332] i2c /dev entries driver
      [    0.185670] usbcore: registered new interface driver usbhid
      [    0.185704] usbhid: USB HID core driver
      [    0.187999] uart-ng uart-ng0: uart-ng0 supply uart not found, using dummy regulator
      [    0.188366] sunxi:uart-ng-uart-ng0:[INFO]: cannot get the TX DMA channel!
      [    0.188732] sunxi:uart-ng-uart-ng0:[INFO]: cannot get the RX DMA channel!
      [    0.189291] sunxi:uart-ng:[INFO]: sunxi uart-ng driver version: 1.1.10
      [    0.189781] uart-ng0: ttyS0 at MMIO 0x42500000 (irq = 134, base_baud = 12000000) is a SUNXI
      [    0.190371] sunxi:uart-ng-uart-ng0:[INFO]: console setup baud 1500000 parity n bits 8, flow n
      [    0.191144] sunxi:uart-ng-uart-ng0:[INFO]: uart0, select set 6, baud 1500000, uartclk 192000000 beyond rance[24000000, 120000000]
      [    0.191978] printk: console [ttyS0] enabled
      [    0.191978] printk: console [ttyS0] enabled
      [    0.192836] printk: bootconsole [earlycon0] disabled
      [    0.192836] printk: bootconsole [earlycon0] disabled
      [    0.195061] sunxi:rtc-4a000c00.rtc:[WARN]: Fail to get clock 'rtc-1k'
      [    0.195858] sunxi:rtc-4a000c00.rtc:[WARN]: Fail to get clock 'rtc-spi'
      [    0.196671] sunxi:rtc:[INFO]:  Saving SoC boot-reason: COLD-BOOT
      [    0.197365] sunxi:rtc-4a000c00.rtc:[INFO]: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
      [    0.198616] sunxi:rtc-4a000c00.rtc:[WARN]: Warning: Using internal RC 16M clock source. Time may be inaccurate!
      [    0.199786] sunxi:rtc-4a000c00.rtc:[WARN]: Warning: Using internal RC 16M clock source. Time may be inaccurate!
      [    0.201239] sunxi:rtc-4a000c00.rtc:[WARN]: Warning: Using internal RC 16M clock source. Time may be inaccurate!
      [    0.202422] sunxi:rtc-4a000c00.rtc:[WARN]: Warning: Using internal RC 16M clock source. Time may be inaccurate!
      [    0.203622] sunxi:rtc-4a000c00.rtc:[WARN]: Warning: Using internal RC 16M clock source. Time may be inaccurate!
      [    0.205473] sunxi-rtc 4a000c00.rtc: registered as rtc0
      [    0.206128] sunxi:rtc_sun300iw1_frun_counter:[ERR]: rtc_frun_counter_init(83): rtc frun counter src not from extern32k osc
      [    0.207437] sunxi:rtc-4a000c00.rtc:[WARN]: clocksource not work: rtc free running counter
      [    0.208383] sunxi:rtc-4a000c00.rtc:[INFO]: sunxi rtc probed
      [    0.210873] sunxi-wdt 4a001000.watchdog: Watchdog enabled (timeout=300 sec, nowayout=0), driver version: 1.0.5
      [    0.214262] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: SD/MMC/SDIO Host Controller Driver(v5.55 2024-08-26 15:32)
      [    0.215734] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: ctl-spec-caps 8
      [    0.216569] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: No vmmc regulator found
      [    0.217402] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: No vqmmc regulator found
      [    0.218261] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: No vdmmc regulator found
      [    0.219152] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: No vd33sw regulator found
      [    0.220020] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: No vd18sw regulator found
      [    0.220885] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: No vq33sw regulator found
      [    0.221750] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: No vq18sw regulator found
      [    0.222632] sunxi:sunxi_mmc_host-44020000.sdmmc:[ERR]: manual set ocr
      [    0.223397] sunxi:sunxi_mmc_host-44020000.sdmmc:[WARN]: Cann't get pin bias hs pinstate,check if needed
      [    0.224585] sunxi:sunxi_mmc_host-44020000.sdmmc:[ERR]: Could not get store clock
      [    0.225445] sunxi:sunxi_mmc_host-44020000.sdmmc:[ERR]: Could not get msi_lite clock
      [    0.226924] sunxi-mmc 44020000.sdmmc: Got CD GPIO
      [    0.227605] sunxi-mmc 44020000.sdmmc: sunxi:sunxi_mmc_hostcd-set-debounce is missing, function is no used
      [    0.229333] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    0.242521] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    0.256844] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    0.258533] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: detmode:gpio irq
      [    0.261548] sunxi:sunxi_spif-44f00000.spif:[INFO]: sample_mode:0 sample_delay:1b
      [    0.262718] sunxi:sunxi_spif-44f00000.spif:[INFO]: [spi-flash0] mclk 24000000
      [    0.263594] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    0.265221] sunxi:sunxi_spif-44f00000.spif:[ERR]: sunxi_spif_soft_reset timeout
      [    0.267342] sunxi:sunxi_mmc_host-44020000.sdmmc:[ERR]: smc 0 p0 err, cmd 8, RTO !!
      [    0.268492] sunxi:sunxi_spif-44f00000.spif:[INFO]: [spi-flash0] working clk 100000000
      [    0.269393] sunxi:sunxi_mmc_host-44020000.sdmmc:[ERR]: smc 0 p0 err, cmd 55, RTO !!
      [    0.271113] sunxi:sunxi_mmc_host-44020000.sdmmc:[ERR]: smc 0 p0 err, cmd 55, RTO !!
      [    0.272354] sunxi_spif 44f00000.spif: py25q128ha (16384 Kbytes) IO DTR
      [    0.273120] sunxi:sunxi_mmc_host-44020000.sdmmc:[ERR]: smc 0 p0 err, cmd 55, RTO !!
      [    0.274536] 10 sunxipart partitions found on MTD device spif
      [    0.275198] sunxi:sunxi_mmc_host-44020000.sdmmc:[ERR]: smc 0 p0 err, cmd 55, RTO !!
      [    0.276126] sunxi:sunxi_mmc_host-44020000.sdmmc:[INFO]: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
      [    0.277507] sunxi:pin-42000000.pinctrl:[INFO]: Auto power withstand voltage configuration detected, automatically exit!
      [    0.278782] Creating 10 MTD partitions on "spif":
      [    0.279334] 0x000000000000-0x000000100000 : "uboot"
      [    0.287898] 0x000000100000-0x000000180000 : "boot-resource"
      [    0.290933] 0x000000180000-0x0000001a0000 : "env"
      [    0.299903] 0x0000001a0000-0x0000001c0000 : "env-redund"
      [    0.302905] 0x0000001c0000-0x0000006c0000 : "boot"
      [    0.311877] 0x0000006c0000-0x0000006d0000 : "private"
      [    0.314832] 0x0000006d0000-0x000000800000 : "riscv0"
      [    0.323883] 0x000000800000-0x000000d70000 : "rootfs"
      [    0.326839] 0x000000d70000-0x000000df0000 : "rootfs_data"
      [    0.335880] 0x000000df0000-0x000001000000 : "UDISK"
      [    0.338850] sunxi:sunxi_spif-44f00000.spif:[INFO]: probe succeed (Version 1.0.2)
      [    0.341301] sunxi:lcd_fb:[NOTE]: sunxi_lcd_fb_gpio_request, gpio_name=lcd_gpio_0, gpio=98, value=0, ret=0
      [    0.342437] sunxi:lcd_fb:[NOTE]: lcd 0, driver_name st7789v,  panel_name st7789v
      [    0.343342] sunxi:lcd_fb:[WARN]: lcd_panel_fun[0].cfg_panel_info is NULL
      [    0.345464] sunxi:lcd_fb:[NOTE]: sunxi_lcd_fb_gpio_request, gpio_name=lcd_gpio_0, gpio=98, value=0, ret=0
      [    0.346659] sunxi:lcd_fb:[NOTE]: sunxi_lcd_fb_gpio_request, gpio_name=lcd_spi_dc_pin, gpio=109, value=0, ret=0
      [    0.347825] sunxi:lcd_fb:[WARN]: sunxi_lcd_fb_pwm_set_polarity pwm 0, active low
      [    0.348705] spi spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0
      [    0.349440] sunxi:lcd_fb:[NOTE]: Init spi:bits_per_word:8 max_speed_hz:48000000 mode:0
      [    0.351948] sunxi:g2d_sunxi:[INFO]: [G2D]: rcq version initialized.major:244
      [    0.352793] sunxi:g2d_sunxi:[INFO]: [G2D]: g2d_module_init
      [    0.354671] sunxi:gpadc:[INFO]: sunxi_gpadc_init(): 2148: gpadc class register success
      [    0.356044] sunxi:gpadc-42009000.gpadc0:[WARN]: warn: sample rate not set
      [    0.357248] input: sunxi-gpadc0/channel0/input0 as /devices/platform/soc@2002000/42009000.gpadc0/input/input0
      [    0.359069] input: sunxi-gpadc0/channel1/input0 as /devices/platform/soc@2002000/42009000.gpadc0/input/input1
      [    0.361049] sunxi:gpadc-42009000.gpadc0:[INFO]: sunxi_gpadc probe success
      [    0.367912] sunxi-msgbox 43033000.msgbox: sunxi:sunxi_msgboxsunxi_msgbox_probe(): sunxi msgbox start probe
      [    0.369281] sunxi-msgbox 43033000.msgbox: sunxi:sunxi_msgboxsunxi_msgbox_probe(): sunxi msgbox probe success
      [    0.371797] sunxi-rproc 43030000.e907_rproc: sunxi rproc driver 2.4.3
      [    0.372737] sunxi-rproc 43030000.e907_rproc: rv-cfg base: 0x43030000, va: 0xe3c9b000
      [    0.373736] sunxi-rproc 43030000.e907_rproc: find rproc standby error
      [    0.374867] sunxi-rproc 43030000.e907_rproc: timeout_ms: 6000
      [    0.375565] sunxi-rproc 43030000.e907_rproc: reset_type: 2
      [    0.376196] sunxi-rproc 43030000.e907_rproc: reg:        43031000
      [    0.376911] sunxi-rproc 43030000.e907_rproc: irq_num:    163
      [    0.377576] sunxi-rproc 43030000.e907_rproc: panic_on_timeout: 1
      [    0.378746] sunxi-rproc 43030000.e907_rproc: register memory firmware('amp_rv0.bin') for 'e907', addr: 0x81244000, size: 2097152
      [    0.380094] sunxi_remoteproc: register mem fw('amp_rv0.bin'), addr=0x0000000081244000, len=2097152
      [    0.381138] sunxi-rproc 43030000.e907_rproc: is_using_kernel_fw: 0
      [    0.381961] remoteproc remoteproc0: e907_rproc is available
      [    0.382762] remoteproc remoteproc0: powering up e907_rproc
      [    0.383402] remoteproc remoteproc0: load fw from memory
      [    0.384027] remoteproc remoteproc0: checking internal firmware
      [    0.384725] remoteproc remoteproc0: Booting fw image amp_rv0.bin, size 2097152
      [    0.385906] sunxi-rproc 43030000.e907_rproc: handle vendor resource, type: 129
      [    0.386848] sunxi-rproc 43030000.e907_rproc: add trace mem 'aw_trace_log', da: 0x81129fc0, len: 4096
      [    0.388020] remoteproc remoteproc0: Physical address cast in 32bit to fit resource table format
      [    0.389047] rproc_wdt remoteproc0-wdt: rproc has been booted, note that the config will be overwritten
      [    0.390228] sunxi_remoteproc: unregister mem fw('amp_rv0.bin'), addr=0x0000000081244000,len=2097152
      [    0.391898] Freeing amp_rv0.bin memory: 2048K
      [    0.392519]  remoteproc0#vdev0buffer: assigned reserved memory node vdev0buffer@81200000
      [    0.394749] virtio_rpmsg_bus virtio0: rpmsg host is online
      [    0.395427]  remoteproc0#vdev0buffer: registered virtio0 (type 7)
      [    0.396152] remoteproc remoteproc0: remote processor e907_rproc is now up
      [    0.397008] sunxi-rproc 43030000.e907_rproc: sunxi rproc driver probe ok
      [    0.398629] sunxi-rpbuf-controller rpbuf_controller0@0: assigned reserved memory node e907_rpbuf@81646000
      [    0.400613] [ADDR_MGT] addr_mgt_probe: module version: v1.0.13
      [    0.401820] [ADDR_MGT] addr_mgt_probe: success.
      [    0.402884] NET: Registered protocol family 17
      [    0.403441] NET: Registered protocol family 15
      [    0.404105] Key type dns_resolver registered
      [    0.416297] virtio_rpmsg_bus virtio0: creating channel sunxi,rpmsg_ctrl addr 0x400
      [    0.419693] virtio_rpmsg_bus virtio0: creating channel rpbuf-service addr 0x401
      [    0.420861] rpbuf_service_rpmsg virtio0.rpbuf-service.-1.1025: rpmsg device parent 0: virtio0
      [    0.421868] rpbuf_service_rpmsg virtio0.rpbuf-service.-1.1025: rpmsg device parent 1: remoteproc0#vdev0buffer
      [    0.426594] rpbuf_service_rpmsg virtio0.rpbuf-service.-1.1025: rpmsg device parent 2: remoteproc0
      [    0.427643] rpbuf_service_rpmsg virtio0.rpbuf-service.-1.1025: rpmsg device parent 3: 43030000.e907_rproc
      [    0.431637] sunxi-rpbuf-controller rpbuf_controller0@0: buffer "xradio_mtx": NULL -> remote_dummy_buffers
      [    0.432820] sunxi-rpbuf-controller rpbuf_controller0@0: buffer "xradio_mrx": NULL -> remote_dummy_buffers
      [    0.433954] virtio_rpmsg_bus virtio0: creating channel xrlink_rpmsg addr 0x402
      [    0.441790] sunxi:rtc-4a000c00.rtc:[WARN]: Warning: Using internal RC 16M clock source. Time may be inaccurate!
      [    0.443080] sunxi-rtc 4a000c00.rtc: setting system clock to 1970-01-01T00:00:01 UTC (1)
      [    0.445723] sunxi:sound-common:[ERR]: 301 pacfg_level_trig_init(): pa-pin-0 (79) request failed
      [    0.446786] sunxi:sound-common:[ERR]: 612 snd_sunxi_pa_pin_init(): pacfg_level_trig_init failed
      [    0.449296] sunxi:sound-i2s:[WARN]: 2206 snd_sunxi_dts_params_init(): clk-en-post-delay missing
      [    0.450334] sunxi:sound-i2s:[WARN]: 2214 snd_sunxi_dts_params_init(): clk-keep missing
      [    0.452061] sunxi:sound-mach:[WARN]: 372 asoc_simple_parse_ucfmt(): set data late to default
      [    0.453577] debugfs: Directory 'soc@2002000:codec_plat' with parent 'audiocodec' already present!
      [    0.454886] sunxi-snd-mach soc@2002000:codec_mach: 42030000.codec <-> soc@2002000:codec_plat mapping ok
      [    0.457562] sunxi:sound-mach:[WARN]: 372 asoc_simple_parse_ucfmt(): set data late to default
      [    0.458626] sunxi-snd-mach soc@2002000:i2s0_mach: No 'sound-dai' property
      [    0.459728] debugfs: Directory '42032000.i2s0_plat' with parent 'sndi2s0' already present!
      [    0.460938] sunxi-snd-mach soc@2002000:i2s0_mach: snd-soc-dummy-dai <-> 42032000.i2s0_plat mapping ok
      [    0.467923] ALSA device list:
      [    0.468284]   #0: audiocodec
      [    0.468651]   #1: sndi2s0
      [    0.469200] sunxi:uart-ng-uart-ng0:[INFO]: uart0, select set 6, baud 1500000, uartclk 192000000 beyond rance[24000000, 120000000]
      [    0.476389] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
      [    0.480828] devtmpfs: mounted
      [    0.481373] Freeing unused kernel memory: 164K
      [    0.481919] This architecture does not have kernel memory protection.
      [    0.482821] Run /init as init process
      [    0.610547] +++start init 7789
      mount: mounting none on /dev failed: Resource busy
      boot-resource@mtdblock1:env@mtdblock2:env-redund@mtdblock3:boot@mtdblock4:private@mtdblock5:riscv0@mtdblock6:rootfs@mtdblock7:rootfs_data@mtdblock8:UDISK@mtdblock9
      [    1.162603] overlayfs: upper fs does not support tmpfile.
      [    1.163242] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
      init started: BusyBox v1.33.2 (2025-06-12 13:40:09 UTC)
      starting pid 95, tty '': '/etc/init.d/rcS boot'
      ------run rc.final file-----
      Load mpp modules
      [    1.358715] sunxi:pwm-42000c00.pwm:[ERR]: can't parse pwm device
      [    1.449309] sunxi:vin:[WARN]: sensor_helper_probe: cannot get sensor0_cameravdd supply, setting it to NULL!
      [    1.459134] sunxi:vin:[WARN]: sensor_helper_probe: cannot get sensor0_iovdd supply, setting it to NULL!
      [    1.460267] sunxi:vin:[WARN]: sensor_helper_probe: cannot get sensor0_avdd supply, setting it to NULL!
      [    1.461352] sunxi:vin:[WARN]: sensor_helper_probe: cannot get sensor0_dvdd supply, setting it to NULL!
      [    1.478815] sunxi_usb_udc 44100000.udc-controller: 44100000.udc-controller supply udc not found, using dummy regulator
      sh: write error: Invalid argument
      [    1.573932] file system registered
      [    1.611606] udc 44100000.udc-controller: failed to start g1: -19
      sh: write error: No such device
      [    1.690714] read descriptors
      [    1.691078] read strings
      [    1.947415] sunxi:vin:[WARN]: get csi isp clk fail
      [    1.948031] sunxi:vin:[WARN]: get csi isp src clk fail
      [    1.949959] sunxi:vin:[INFO]: [gc2083_mipi]PWR_ON!!!
      [    1.982297] sunxi:vin:[INFO]: [gc2083_mipi]PWR_OFF!!do nothing
      [    1.995165] sunxi:vin:[INFO]: vinc1 is null
      [    1.996276] sunxi:vin:[INFO]: vinc5 is null
      [    2.003133] configfs-gadget gadget: high-speed config #1: c
      [    2.034038] sunxi:VE:[INFO]: 2238 sunxi_cedar_init(): sunxi cedar version 1.1
      [    2.035308] sunxi:VE:[INFO]: 2160 sunxi_cedar_probe(): probe ve
      [    2.036402] sunxi-cedar 41c0e000.ve: 41c0e000.ve supply ve not found, using dummy regulator
      Load usb modules
      Load wifi modules
      [    2.126012] [xradio_mod_init,690][XRADIO_ALWY] xradio wlan version:XR_V1.0.0.250218
      [    2.126990] [xradio_core_init,543][XRADIO_ALWY] xradio core init
      [    2.128083] [xradio_rpmsg_init,191][IO] xrlink rpmsg creat succeed
      [    2.129440] sunxi-rpbuf-controller rpbuf_controller0@0: "xradio_mrx" allocate payload memory: va 0x(ptrval), pa 0x0000000083c08000, len 20480
      [    2.130985] sunxi-rpbuf-controller rpbuf_controller0@0: buffer "xradio_mrx" (id:1): remote_dummy_buffers -> buffers
      [    2.132401] sunxi-rpbuf-controller rpbuf_controller0@0: "xradio_mtx" allocate payload memory: va 0x(ptrval), pa 0x0000000083c10000, len 12288
      [    2.133885] sunxi-rpbuf-controller rpbuf_controller0@0: buffer "xradio_mtx" (id:0): remote_dummy_buffers -> buffers
      [    2.135380] [xradio_rpbuf_init,555][IO] xrlink master rpbuf creat succeed
      [    2.136192] [xradio_platform_init,84][PLAT] xradio_platform_init sucess 0xc13d6c00
      [    2.137072] [xradio_core_init,550][XRADIO_ALWY] xradio_plat c13d6c00
      [    2.137814] [xradio_core_init,553][XRADIO_ALWY] xradio add_net_dev
      [    2.139982] [xradio_core_init,560][XRADIO_ALWY] xradio debug com init
      [    2.140860] [xradio_core_init,564][XRADIO_ALWY] xradio queue init
      [    2.141607] [xradio_core_init,569][XRADIO_ALWY] xradio platform on
      [    2.142312] [xradio_core_init,574][XRADIO_ALWY] register tx and rx task
      [    2.143667] [xradio_core_init,579][XRADIO_ALWY] up cmd init
      [    2.144345] [xradio_core_init,584][XRADIO_ALWY] low cmd init
      [    2.145016] [xradio_core_init,589][XRADIO_ALWY] hand way
      [    2.146664] [xraido_low_cmd_dev_hand_way,129][CMD] Host hand way dev success.
      [    2.147511] [xradio_core_init,594][XRADIO_ALWY] xradio core init Suceess
      [    2.148836] [xradio_set_kernel_macaddr,454][XRADIO_ALWY] MACADDR=60:c2:2a:0d:ed:49
      [    2.149898] [xradio_core_init,610][XRADIO_ALWY] AP_ADDR=60:c2:2a:0d:6d:4a
      [    2.150729] [xradio_core_init,617][XRADIO_ALWY] wlan device is opening...
      [    2.243542] [xradio_core_init,622][XRADIO_ALWY] wlan device is ready
      [    2.244278] ======== XRADIO WIFI OPEN ========
      Starting wifi_deamon....: WINF: wifimanger verion:2.0.8.5 20251119-14:13:58
      WINF: **************************************
      WINF: * Copyright (c) 2019-2025 Allwinner Technology Co., Ltd. ALL rights reserved
      WINF: * version: 2.0.8.5 20251119-14:13:58
      WINF: * module name: UNKNOWN (D)
      WINF: * wifimg support mode:(sta | ap | --- | --- | ------ | -------)
      WINF: * module support mode:(sta | ap | --- | --- | ------ | -------)
      WINF: * actual support mode:(sta | ap | --- | --- | ------ | -------)
      WINF: **************************************
      WINF: wifi mode sta on success
      WINF: wifi on sta success
      WINF: wifi set auto reconnect enable success
      mount: mounting /dev/mmcblk0p1 on /mnt/extsd failed: No such file or directory
      starting pid 196, tty '/dev/console': '-/bin/sh'
      
      
      BusyBox v1.33.2 (2025-06-12 13:40:09 UTC) built-in shell (ash)
      
       _____  _              __     _
      |_   _||_| ___  _ _   |  |   |_| ___  _ _  _ _
        | |   _ |   ||   |  |  |__ | ||   || | ||_'_|
        | |  | || | || _ |  |_____||_||_|_||___||_,_|
        |_|  |_||_|_||_|_|  Tina is Based on OpenWrt!
       ----------------------------------------------
       Tina Linux (5.0, unknown)
       ----------------------------------------------
      root@(none):/# [   30.956654] random: cat: uninitialized urandom read (4096 bytes read)
      [   30.957697] random: cat: uninitialized urandom read (4096 bytes read)
      [   30.958806] random: cat: uninitialized urandom read (4096 bytes read)
      [   38.532217] random: cat: uninitialized urandom read (4096 bytes read)
      [   38.533267] random: cat: uninitialized urandom read (4096 bytes read)
      [   38.534263] random: cat: uninitialized urandom read (4096 bytes read)
      [   56.522067] random: cat: uninitialized urandom read (4096 bytes read)
      [   56.523222] random: cat: uninitialized urandom read (4096 bytes read)
      [   56.524228] random: cat: uninitialized urandom read (4096 bytes read)
      [  105.623932] random: cat: uninitialized urandom read (4096 bytes read)
      
      
      
      发布在 V Series
      M
      mysteryli
    • 请教关于V821的SPI的问题-设备树

      对于文件 bsp/configs/linux-5.4-ansc/sun300iw1p1.dtsi
      明明使用了SPI0连接norflash,为什么spi0还是status = "disabled";呢?
      如果我要用到spi1驱动LCD,是都要把SPI1改为status = "okay";呢?
      313c6d9f-0402-4038-92b3-91d4b6503d42-image.png

      发布在 V Series
      M
      mysteryli
    • 驱动ST7789时候遇到了SPI不输出波形的问题

      下面是逻辑分析仪抓的波形,DC和RST是正常有波形的
      f50549d7-8abc-4335-9652-14442054cf12-image.png
      设备数等配置是按照下面链接的教程来的
      https://docs.aw-ol.com/docs/soc/v821/disp/spi_lcd/disp_driver_dbi_spi_1.3inch/

      &spi1 {
      	pinctrl-0 = <&spi1_pins_default>;
      	pinctrl-1 = <&spi1_pins_sleep>;
      	pinctrl-names = "default", "sleep";
      	clock-frequency = <1000000>;
      	sunxi,spi-bus-mode = <SUNXI_SPI_BUS_MASTER>;
      	sunxi,spi-cs-mode = <SUNXI_SPI_CS_SOFT>;
      	status = "okay";
      	panel_st7789v_spi1: slave@0 {
      		device_type = "spi-panel";
      		compatible = "allwinner,spi-panel";
      		reg = <0x0>;
      		spi-max-frequency = <1000000>;
      		lcd_used = <1>;
      		lcd_driver_name = "st7789v";
      		lcd_if = <0>;
      		lcd_dbi_if = <0>;
      		lcd_data_speed = <48>;
      		lcd_x = <280>;
      		lcd_y = <240>;
      		lcd_pixel_fmt = <10>;
      		lcd_dbi_fmt = <2>;
      		lcd_rgb_order = <0>;
      		lcd_width = <60>;
      		lcd_height = <60>;
      		lcd_pwm_used = <0>;
      		lcd_pwm_ch = <6>;
      		lcd_pwm_freq = <5000>;
      		lcd_pwm_pol = <1>;
      		lcd_frm = <1>;
      		lcd_gamma_en = <1>;
      		fb_buffer_num = <2>;
      		lcd_backlight = <100>;
      		lcd_fps = <60>;
      		lcd_dbi_te = <0>;
      		lcd_dbi_clk_mode = <0>;
      		lcd_spi_dc_pin = <&pio PD 13 GPIO_ACTIVE_LOW>;
      		lcd_gpio_0 = <&pio PD 2 GPIO_ACTIVE_LOW>;
      		status = "okay";
      	};
      
      };
      

      最后再贴下驱动代码

      #include "st7789v.h"
      
      static void LCD_power_on(u32 sel);
      static void LCD_power_off(u32 sel);
      static void LCD_bl_open(u32 sel);
      static void LCD_bl_close(u32 sel);
      static void LCD_panel_init(u32 sel);
      static void LCD_panel_exit(u32 sel);
      #define RESET(s, v) sunxi_lcd_gpio_set_value(s, 0, v)
      #define power_en(sel, val) sunxi_lcd_gpio_set_value(sel, 0, val)
      #define lcd_fb_here ;
      //static struct disp_panel_para info[LCD_FB_MAX];
      
      static void address(unsigned int sel, int x, int y, int width, int height)
      {
      	sunxi_lcd_cmd_write(sel, 0x2B); /* Set row address */
      	sunxi_lcd_para_write(sel, (y >> 8) & 0xff);
      	sunxi_lcd_para_write(sel, y & 0xff);
      	sunxi_lcd_para_write(sel, (height >> 8) & 0xff);
      	sunxi_lcd_para_write(sel, height & 0xff);
      	sunxi_lcd_cmd_write(sel, 0x2A); /* Set coloum address */
      	sunxi_lcd_para_write(sel, (x >> 8) & 0xff);
      	sunxi_lcd_para_write(sel, x & 0xff);
      	sunxi_lcd_para_write(sel, (width >> 8) & 0xff);
      	sunxi_lcd_para_write(sel, width & 0xff);
      	sunxi_lcd_cmd_write(sel, 0x2c);
      }
      
      static void LCD_panel_init(unsigned int sel)
      {
      	// if (bsp_disp_get_panel_info(sel, &info[sel])) {
      	// 	lcd_fb_wrn("get panel info fail!\n");
      	// 	return;
      	// }
      	printk("+++start init 7789\n");
      
      	sunxi_lcd_cmd_write(sel, 0x11); // Sleep out 
      
      	sunxi_lcd_delay_ms(50);    
      	//************* Start Initial Sequence **********// 
      	sunxi_lcd_cmd_write(sel, 0x36);
      	sunxi_lcd_para_write(sel, 0x00);
      
      	sunxi_lcd_cmd_write(sel, 0x3A);     
      	sunxi_lcd_para_write(sel, 0x05);   
      
      	sunxi_lcd_cmd_write(sel, 0xB2);     
      	sunxi_lcd_para_write(sel, 0x0C);   
      	sunxi_lcd_para_write(sel, 0x0C);   
      	sunxi_lcd_para_write(sel, 0x00);   
      	sunxi_lcd_para_write(sel, 0x33);   
      	sunxi_lcd_para_write(sel, 0x33);
      
      	sunxi_lcd_cmd_write(sel, 0xB7);     
      	sunxi_lcd_para_write(sel, 0x35);   
      
      	sunxi_lcd_cmd_write(sel, 0xBB);     
      	sunxi_lcd_para_write(sel, 0x19);   // 2b
      
      	sunxi_lcd_cmd_write(sel, 0xC0);     
      	sunxi_lcd_para_write(sel, 0x2C);   
      
      	sunxi_lcd_cmd_write(sel, 0xC2);     
      	sunxi_lcd_para_write(sel, 0x01);   
      
      	sunxi_lcd_cmd_write(sel, 0xC3);     
      	sunxi_lcd_para_write(sel, 0x12);   
      
      	sunxi_lcd_cmd_write(sel, 0xC4);     
      	sunxi_lcd_para_write(sel, 0x20);   // VDV, 0x20:0v
      
      	sunxi_lcd_cmd_write(sel, 0xC6);     
      	sunxi_lcd_para_write(sel, 0x0F);   // 0x13:60Hz   
      
      	sunxi_lcd_cmd_write(sel, 0xD0);     
      	sunxi_lcd_para_write(sel, 0xA4);   
      	sunxi_lcd_para_write(sel, 0xA1); 
      
      	
      	sunxi_lcd_cmd_write(sel, 0xE0);     
      	sunxi_lcd_para_write(sel, 0xD0);   
      	sunxi_lcd_para_write(sel, 0x04);   
      	sunxi_lcd_para_write(sel, 0x0D);   
      	sunxi_lcd_para_write(sel, 0x11);   
      	sunxi_lcd_para_write(sel, 0x13);   
      	sunxi_lcd_para_write(sel, 0x2B);   
      	sunxi_lcd_para_write(sel, 0x3F);   
      	sunxi_lcd_para_write(sel, 0x54);   
      	sunxi_lcd_para_write(sel, 0x4C);   
      	sunxi_lcd_para_write(sel, 0x18);   
      	sunxi_lcd_para_write(sel, 0x0D);   
      	sunxi_lcd_para_write(sel, 0x0B);   
      	sunxi_lcd_para_write(sel, 0x1F);   
      	sunxi_lcd_para_write(sel, 0x23);   
      
      	sunxi_lcd_cmd_write(sel, 0xE1);     
      	sunxi_lcd_para_write(sel, 0xD0);   
      	sunxi_lcd_para_write(sel, 0x04);   
      	sunxi_lcd_para_write(sel, 0x0C);   
      	sunxi_lcd_para_write(sel, 0x11);   
      	sunxi_lcd_para_write(sel, 0x13);   
      	sunxi_lcd_para_write(sel, 0x2C);   
      	sunxi_lcd_para_write(sel, 0x3F);   
      	sunxi_lcd_para_write(sel, 0x44);   
      	sunxi_lcd_para_write(sel, 0x51);   
      	sunxi_lcd_para_write(sel, 0x2F);   
      	sunxi_lcd_para_write(sel, 0x1F);   
      	sunxi_lcd_para_write(sel, 0x1F);   
      	sunxi_lcd_para_write(sel, 0x20);   
      	sunxi_lcd_para_write(sel, 0x23); 
      
          sunxi_lcd_cmd_write(sel, 0x21); 
      	sunxi_lcd_cmd_write(sel, 0x11); 
          mdelay(50);
          sunxi_lcd_cmd_write(sel, 0x29); 
          mdelay(200);
      
      	// if (info[sel].lcd_x < info[sel].lcd_y)
      	// 	address(sel, 0, 0, info[sel].lcd_x - 1, info[sel].lcd_y - 1);
      	// else
      	// 	address(sel, 0, 0, info[sel].lcd_y - 1, info[sel].lcd_x - 1);
      }
      
      static void LCD_panel_exit(unsigned int sel)
      {
      	sunxi_lcd_cmd_write(sel, 0x28);
      	sunxi_lcd_delay_ms(20);
      	sunxi_lcd_cmd_write(sel, 0x10);
      	sunxi_lcd_delay_ms(20);
      	sunxi_lcd_pin_cfg(sel, 0);
      }
      
      static s32 LCD_open_flow(u32 sel)
      {
      	lcd_fb_here;
      	/* open lcd power, and delay 50ms */
      	LCD_OPEN_FUNC(sel, LCD_power_on, 50);
      	/* open lcd power, than delay 200ms */
      	LCD_OPEN_FUNC(sel, LCD_panel_init, 200);
      
      	//LCD_OPEN_FUNC(sel, lcd_fb_black_screen, 50);
      	/* open lcd backlight, and delay 0ms */
      	LCD_OPEN_FUNC(sel, LCD_bl_open, 0);
      
      	return 0;
      }
      
      static s32 LCD_close_flow(u32 sel)
      {
      	lcd_fb_here;
      	/* close lcd backlight, and delay 0ms */
      	LCD_CLOSE_FUNC(sel, LCD_bl_close, 50);
      	/* open lcd power, than delay 200ms */
      	LCD_CLOSE_FUNC(sel, LCD_panel_exit, 10);
      	/* close lcd power, and delay 500ms */
      	LCD_CLOSE_FUNC(sel, LCD_power_off, 10);
      
      	return 0;
      }
      
      static void LCD_power_on(u32 sel)
      {
      	/* config lcd_power pin to open lcd power0 */
      	lcd_fb_here;
      	power_en(sel, 1);
      
      	sunxi_lcd_power_enable(sel, 0);
      
      	sunxi_lcd_pin_cfg(sel, 1);
      	RESET(sel, 1);
      	sunxi_lcd_delay_ms(100);
      	RESET(sel, 0);
      	sunxi_lcd_delay_ms(100);
      	RESET(sel, 1);
      }
      
      static void LCD_power_off(u32 sel)
      {
      	lcd_fb_here;
      	/* config lcd_power pin to close lcd power0 */
      	sunxi_lcd_power_disable(sel, 0);
      	power_en(sel, 0);
      }
      
      static void LCD_bl_open(u32 sel)
      {
      	sunxi_lcd_pwm_enable(sel);
      	/* config lcd_bl_en pin to open lcd backlight */
      	sunxi_lcd_backlight_enable(sel);
      	lcd_fb_here;
      }
      
      static void LCD_bl_close(u32 sel)
      {
      	/* config lcd_bl_en pin to close lcd backlight */
      	sunxi_lcd_backlight_disable(sel);
      	sunxi_lcd_pwm_disable(sel);
      	lcd_fb_here;
      }
      
      
      /* sel: 0:lcd0; 1:lcd1 */
      static s32 LCD_user_defined_func(u32 sel, u32 para1, u32 para2, u32 para3)
      {
      	lcd_fb_here;
      	return 0;
      }
      
      static int lcd_set_var(unsigned int sel, struct fb_info *p_info)
      {
      	return 0;
      }
      
      static int lcd_set_addr_win(unsigned int sel, int x, int y, int width, int height)
      {
      	address(sel, x, y, width, height);
      	return 0;
      }
      
      static int lcd_blank(unsigned int sel, unsigned int en)
      {
      	return 0;
      }
      
      struct __lcd_panel st7789v_panel = {
      	/* panel driver name, must mach the name of lcd_drv_name in sys_config.fex
      	*/
      	.name = "st7789v",
      	.func = {
      		.cfg_open_flow = LCD_open_flow,
      		.cfg_close_flow = LCD_close_flow,
      		.lcd_user_defined_func = LCD_user_defined_func,
      		.blank = lcd_blank,
      		.set_var = lcd_set_var,
      		.set_addr_win = lcd_set_addr_win,
      	},
      };
      
      发布在 V Series
      M
      mysteryli
    • 回复: wifi命令不打印任何东西

      V821平台修改后确实OK了
      但是V851S平台还要继续调查

      发布在 V Series
      M
      mysteryli
    • 回复: V821平台如何修改文件系统分区大小

      @awwwwa 在 V821平台如何修改文件系统分区大小 中说:

      https://docs.aw-ol.com/docs/soc/v821/software/configure#分区表

      这个是整个文件系统的,不是文件系统内的分区啊

      发布在 V Series
      M
      mysteryli
    • 回复: 做了一批V821的板子,现在招募有识之士一起调试开发

      企鹅群788138909

      发布在 V Series
      M
      mysteryli
    • V821平台如何修改文件系统分区大小

      如下图
      我想将/tmp的大小减小,将/的大小变大,将UDISK的大小也减小
      V821+PY32Q128
      caad2454-071c-4892-8ebc-982554226c1a-img_v3_02ro_03b8c886-1698-47f2-b267-00dc0b63ebag.jpg

      发布在 V Series
      M
      mysteryli
    • 回复: wifi命令不打印任何东西

      @momoyu 在 wifi命令不打印任何东西 中说:

      @mysteryli 我看你的截图,应该是adb里操作的?
      在 ADB 输入的 WIFI 指令操作会打印到串口,你直接用串口操作就可以了。
      或者按照下面的链接去修改:
      https://docs.aw-ol.com/docs/soc/v821/faq/v821_system#adb中输入-wifi-指令adb没有输出

      好的,但是V851S平台也是如此,用串口也没输出,这个是怎么回事呢

      发布在 V Series
      M
      mysteryli
    • 做了一批V821的板子,现在招募有识之士一起调试开发

      目前已经可以启动系统,ADB正常,sensor正常,其他外设还在调试中
      个人能力有限,有感兴趣的联系我,做了27片
      企鹅929916200
      由于是晕哥赞助的板子,因此送板子的策略需要我和他商量下
      空板也有很多,这个可以免费送,自己出邮费即可,我邮寄也行,全国都是5-6块
      还有就是只贴了大部分原件,个别原件需要手工补焊,由于我的焊工确实不怎么样,因此我不管焊接哈
      dd679d71-3725-47eb-b561-9da6bde3a46a-image.png
      79eece60-6f70-4a56-833f-bb0505097e46-image.png
      dcf8dbdb-8ef0-4b2d-bbce-4234eadcfacc-image.png
      cfcb1615-8675-4786-8fdf-10eeed2469d5-image.png

      发布在 V Series
      M
      mysteryli
    • wifi命令不打印任何东西

      如题,教程如下
      5610e4c5-56ee-443e-95dc-f6454ecb8a88-image.png
      但是我的不打印任何东西,也修改了日志级别,我有两个平台,V851S和V821丢都是这样,感觉是哪里配置的不对,请大佬指点。。
      0fb0cc79-2d75-4847-abca-733bbe518e8d-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: YuzuKi X 100ask V851s 连接wifi

      如何添加iw命令呢?

      发布在 V Series
      M
      mysteryli
    • 拉取V821 SDK repo init 报错如下,是哪里的问题呢

      19203187-d99c-4079-af75-730fd7743893-image.png
      有大佬遇到过嘛
      https://docs.aw-ol.com/docs/soc/v821/software/sdk_download
      按照这个链接下载SDK的

      发布在 V Series
      M
      mysteryli
    • 回复: V851S开发板tinyplay无法发出声音

      结贴
      可以了
      tinymix set 'LINEOUT Switch' 1
      tinymix set 'SPK Switch' 1
      tinymix set 'LINEOUT volume' 31
      tinyplay -D 0 temp.wav

      发布在 V Series
      M
      mysteryli
    • V851S开发板tinyplay无法发出声音

      ec9c67ee-73c4-43b3-a816-115c5c5a8a59-image.png

      哪位大佬知道怎么回事啊 声音文件是没问题的

      发布在 V Series
      M
      mysteryli
    • 回复: 是否能看出来无法启动的原因是什么,添加了V851S的补丁后就无法启动了

      @awwwwa 在 是否能看出来无法启动的原因是什么,添加了V851S的补丁后就无法启动了 中说:

      已经启动了,console=tty0 显示在屏幕上了吧

      可以无法进入终端呢,是终端显示到屏幕上了嘛,而且屏幕也没有显示
      下一步不知道怎么排查了。。
      要把终端重定向到串口嘛

      发布在 V Series
      M
      mysteryli
    • 是否能看出来无法启动的原因是什么,添加了V851S的补丁后就无法启动了

      板子是V851S自己设计的板子
      加了一下3.1寸mipi屏的驱动后,就无法启动文件系统了,请问大佬什么原因

      a0fa549c-4371-462e-a6b6-2aa28ae4132b-image.png

      发布在 V Series
      M
      mysteryli
    • 关于V851S引脚供电电压的一些问题

      V851S这两个引脚到底是1.5v还是1.8v呢,看手册说都行啊
      实测1.5V的板子一切正常,1.8V的也一切正常但是一用ISP就死机,不知道有关系没,毕竟ISP也要用DRAM
      505255d9-142f-4408-8c3d-3939f6e36e86-img_v3_02bh_fb09abbd-8439-40a8-aa6f-fc1cbcbf197g.jpg
      7dca122c-9703-4136-8fd0-1e7c03ccced0-img_v3_02bh_a942e352-64d3-4d32-b8d3-3143257e5dag.jpg

      发布在 V Series
      M
      mysteryli
    • V851S的DRAM供电引脚的问题

      V851S这两个引脚到底是1.5v还是1.8v呢,看手册说都行啊
      而且还有一个DRAM供电引脚都是1.8V
      实测1.5V的板子一切正常,1.8V的也一切正常但是一用ISP就死机,不知道有关系没,毕竟ISP也要用DRAM

      dcc905a5-db79-4cf4-b240-237e2b221d3a-img_v3_02bh_fb09abbd-8439-40a8-aa6f-fc1cbcbf197g.jpg
      5b9b1c81-5f50-4453-8583-281db1dc1fc4-img_v3_02bh_a942e352-64d3-4d32-b8d3-3143257e5dag.jpg

      发布在 V Series
      M
      mysteryli
    • 遇到XZ问题的来看看

      目前在调试ISP,遇到下面问题,大佬提示说可能是文件系统问题,但是完全摸不到头脑应该如何查找。
      看起来XZ命令失败了。。。
      已经确定的是文件系统不是只读的,可以正常在根目录创建文件和读取
      [ 42.310398] SQUASHFS error: xz decompression failed, data probably corrupt
      ![83922060-9494-4d71-919d-79011166343b-ISB`S$9GW578ESK[]XV%20.png

      发布在 V Series
      M
      mysteryli
    • 回复: 遇到一个无法烧录的问题,求大佬解答

      @mysteryli
      可以了 结贴

      发布在 V Series
      M
      mysteryli
    • V851s上的ISP坏掉了吗

      我是自己的V851S板子并使用东山开发板的docker SDK,移植了opencv后发现调用ISP报错了,不知道是不是缺少了isp0_1920_1088_30_0_ctx_saved.bin这个文件,如下是报错内容和串口输出
      4637af68-c30c-4aae-abfe-225ec72be802-(%ZTKF{D4J`AL(7C%RACU_P.jpg
      cfc31d7c-3dd3-4ef1-8975-d043d189bd55-1AGRE_W{%M$J~$YA7O(F0WP.jpg

      发布在 V Series
      M
      mysteryli
    • 遇到一个无法烧录的问题,求大佬解答

      开发环境使用的是docker
      芯片是V851S,之前能正常编译SDK和下载镜像,后来合并了一下小正太大佬的opencv,发下能编译和生成镜像,但是下载的时候下载失败,串口输出如下,应该怎么排查呢
      3340a63d-9420-43ea-b0a9-cc37f4bd6d09-GU{UQKEG{_1YH)LOWXL3{`P.png

      发布在 V Series
      M
      mysteryli
    • 回复: 全志v851s使用fbtft驱动0.96寸st7735屏分享

      @whycanservice2
      老哥 问两个问题
      1.你的PH0做pwm调好了吗
      2.屏幕会显示启动log嘛

      发布在 V Series
      M
      mysteryli
    • 回复: 关于V851S的opencv问题

      但是patch中修改的文件,例如cap_v4l.cpp等
      我只能在out中找到他们
      0ac1d8f0-227f-4250-be9e-0da2bc8b9b43-image.png

      发布在 V Series
      M
      mysteryli
    • 关于V851S的opencv问题

      看了大佬的博客
      https://gloomyghost.com/live/20240121.aspx
      想加入opencv支持,但是遇到问题就是大佬说要改下代码中opencv的视频捕获类型,但是不知道具体是改哪些代码,不知道是否有大佬可指点一二

      4253f10b-e56b-403f-b8d2-0ae8ffec7f31-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: V853/V851s 增加 OpenCV, FFmpeg 编译包

      看到大佬帖子 有人试过吗
      https://gloomyghost.com/live/20240121.aspx
      成功了请踢我一下

      发布在 V Series
      M
      mysteryli
    • 回复: V853/V851s 增加 OpenCV, FFmpeg 编译包

      @null037 在 V853/V851s 增加 OpenCV, FFmpeg 编译包 中说:

      @yuzukitsuru 大佬,将opencv已经打包进去,编译生成新镜像后,测试了一下opencv-sample,发现opencv无法打开GC2053的video0节点,然后我外接一个USB摄像头就,修改程序读取的节点可以程序就正常读取video1节点。

      下面是读取默认GC2053 video0节点时的报错

      root@TinaLinux:/# opencv-camera 
      VIDEOIO ERROR: V4L2: Unable to c[  702.464977] [VIN_ERR]video0 has already stream off
      apture video memory.VIDEOIO ERRO[  702.473357] [VIN_ERR]gc2053_mipi is not used, video0 cannot be close!
      R: V4L: can't open camera by index 0
      /dev/video0 does not support memory mapping
      Could not open video device.
      

      这个GC2053节点使用camerademo可以正常拍照测试。

      当我外接一个usb摄像头,修改代码读取video1节点时,就可正常显示

      root@TinaLinux:/# ls /dev/video*                                                                                                          
      /dev/video0   /dev/video1   /dev/video12
      root@TinaLinux:/# opencv-camera 
      [   47.443615] random: crng init done
      [   47.447436] random: 2 urandom warning(s) missed due to ratelimiting
      Successfully opened video device
      

      请问为什么GC2053节点无法被opencv程序读取呢?

      @null037
      请问问题解决了么? 我和你遇到同样的问题。

      发布在 V Series
      M
      mysteryli
    • 回复: 问下大家camerademo抓的是原图还是ISP调色过的图呢

      @yuzukitsuru
      但是adb上看来会死掉(是整个linux挂掉adb断开,需要重新上电才行),回头我看一眼串口输出,

      发布在 V Series
      M
      mysteryli
    • 回复: 问下大家camerademo抓的是原图还是ISP调色过的图呢

      运行的时候好像遇到了问题

      78457ba3-9c93-4c44-9acf-6deadd038edb-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: T113-s3 CAN linux 下已调通

      @qinlinbin 在 T113-s3 CAN linux 下已调通 中说:

      大佬,想问一下,你有测试过80k以下波特率的吗?我试了一下,会报这个错误。
      ip link set can0 type can bitrate 50000
      sunxi_can 2504000.can can0: bitrate error 8589934.5% too high。你有遇到过吗?

      看起来是驱动不支持这么低波特率?

      发布在 创龙科技专区
      M
      mysteryli
    • 全志有支持FD的跑linux的芯片嘛

      rt
      想DIY一些汽车诊断相关的东西要用到FD

      发布在 Linux
      M
      mysteryli
    • 回复: 关于打印启动日志到/dev/fb0的问题

      好像不行

      40f2ed9c-e4e1-44c9-8cd1-1b3be0a6f508-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: 问下大家camerademo抓的是原图还是ISP调色过的图呢

      @awwwwa
      可以了 谢谢大佬

      发布在 V Series
      M
      mysteryli
    • V851S芯片想使用PH0-PWM0

      按照手册打开的时候输出如下,请问大家可能是什么原因,还有就是这个是用作SPI-TFT的背光用,不想每次开机后打开,想启动初始化pwm时候设置后占空比,怎么修改呢,要魔改驱动嘛
      sh: write error: No such device
      报错如下
      6e01e530-d38a-4fad-935f-2982cd033b52-image.png
      设备树如下
      2c4147c7-99e8-4ab1-84f6-034e4fa2eca6-image.png
      8f545054-03fe-443f-840d-75f273bd81ea-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: 问下大家camerademo抓的是原图还是ISP调色过的图呢

      勾选了之后编译SDK报错,可能是什么原因呢

      f4ff07d8-7aed-44de-bd52-f219f3433db1-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: 问下大家camerademo抓的是原图还是ISP调色过的图呢

      @awwwwa 在 问下大家camerademo抓的是原图还是ISP调色过的图呢 中说:

      camerademo 支持抓ISP后的图

      勾选使用 VIN ISP 驱动即可

      使用 ISP  camerademo NV21 1920 1080 20 bmp /tmp 2
      

      64c4745f-dcb6-4375-9044-e326b781c8fb-image.png

      直接抓RAW:camerademo BGGR10 1920 1080 20 bmp /tmp 2
      

      0709b912-7318-4488-94f1-051b564a65fb-image.png

      好的,谢谢大佬

      发布在 V Series
      M
      mysteryli
    • 问下大家camerademo抓的是原图还是ISP调色过的图呢

      我是想抓ISP调色过的图

      发布在 V Series
      M
      mysteryli
    • 关于打印启动日志到/dev/fb0的问题

      请问下大家 V851S移植了一块SPI屏幕并生成/dev/fb0 目前都正常,想把linux启动日志打印到上面,要怎么修改呢
      记得之前V3S可以修改SD卡中的bootargs,现在用的nand不会了

      发布在 V Series
      M
      mysteryli
    • 回复: 编译全志V851s的SDK遇到如下问题,有没有同样的

      @awwwwa
      先谢过老哥
      不过试过了 还是不行
      这个是GPT的答案嘛哈哈

      发布在 V Series
      M
      mysteryli
    • 回复: 编译全志V851s的SDK遇到如下问题,有没有同样的

      @awwwwa 在 编译全志V851s的SDK遇到如下问题,有没有同样的 中说:

      perl环境

      bed7abd7-8c7b-49c0-a522-d2a9751d9c24-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: 编译全志V851s的SDK遇到如下问题,有没有同样的

      @awwwwa 在 编译全志V851s的SDK遇到如下问题,有没有同样的 中说:

      看起来是系统perl环境问题,请问是什么系统

      ubuntu系统20.04
      那要怎么解决呢

      发布在 V Series
      M
      mysteryli
    • 回复: 【水经验混下载权限专用贴】如何升级LV2拉取SDK

      谢谢,感谢分享,我是为了LV2,加油

      发布在 灌水区
      M
      mysteryli
    • 回复: YUVToBMP函数运行时间长问题

      @awwwwa 在 YUVToBMP函数运行时间长问题 中说:

      @mysteryli 正常,这个函数没有任何优化只是实现了功能,可以使用G2D转换YUV2RGB

      有示例啥的嘛
      怎么用G2D代替软件实现

      发布在 V Series
      M
      mysteryli
    • YUVToBMP函数运行时间长问题

      RT
      V851S下这个函数转换一个1920*1080的图片大概需要100ms左右,这是正常的嘛

      另外这个转换是不是可以用G2D硬件完成,会快一些?

      发布在 V Series
      M
      mysteryli
    • 编译全志V851s的SDK遇到如下问题,有没有同样的

      Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./scripts/package-metadata.pl line 2.

      b7d0dc86-0999-4674-bc20-3a37a4923dae-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: V851S tina linux ov5647 驱动程序没有 dmesg

      @zheng1 那没有,放弃了,谢谢劝谏

      发布在 V Series
      M
      mysteryli
    • 回复: V851S上的ISP真的坏了吗?

      @yuzukitsuru trigerISP和ISP是什么区别呢

      发布在 V Series
      M
      mysteryli
    • 回复: V851S tina linux ov5647 驱动程序没有 dmesg

      @zheng1 在 V851S tina linux ov5647 驱动程序没有 dmesg 中说:

      @kanken6174 camerademo抓图正常吗?如果camerademo抓图正常,那就是Tiger ISP的配置问题了。先确保camerademo能抓到正确的图

      我的平台camerademo能抓图了
      Tiger ISP怎么调呢

      发布在 V Series
      M
      mysteryli
    • 回复: 新 SDK 平台下载 V853 SDK

      V851S的SDK也在这里下载吗?

      发布在 V Series
      M
      mysteryli
    • 回复: 全志V853 jpg怎么直接显示屏幕上

      fbviewer能自动缩放图片嘛

      发布在 V Series
      M
      mysteryli
    • 回复: camerademo.c修改后编译打包的camerademo不变

      @awwwwa 在 camerademo.c修改后编译打包的camerademo不变 中说:

      @mysteryli 可以到 out/v853/xxxx/openwrt/build_dir/target/camerademo/ipkg-install/usr

      来还愿了,十分感谢老哥

      发布在 V Series
      M
      mysteryli
    • 回复: camerademo.c修改后编译打包的camerademo不变

      @awwwwa 在 camerademo.c修改后编译打包的camerademo不变 中说:

      mmo camerademo -B

      老哥 麻烦再问下
      编译后生成的二进制在哪呀

      发布在 V Series
      M
      mysteryli
    • camerademo.c修改后编译打包的camerademo不变

      请问有人遇到过嘛,Tina
      by the way
      怎么单独编译camerademo

      发布在 V Series
      M
      mysteryli
    • 回复: V853移植imx219 cameradebug 出错

      换sensor都需要修改什么呢

      发布在 V Series
      M
      mysteryli
    • 回复: V853适配FFMPEG网络推流的摄像头有推荐吗?

      @vincent1 在 V853适配FFMPEG网络推流的摄像头有推荐吗? 中说:

      @mysteryli eye-mpp这个包是要做什么才能获取的吗?我的sdk里面是没有eye-mpp这个包得

      不会的,官网下的都有的啊

      发布在 V Series
      M
      mysteryli
    • 回复: V853适配FFMPEG网络推流的摄像头有推荐吗?

      我记得eye-mpp里面有个RTSP的DEMO,如果实时性要求不高可以试试
      不过我没跑起来那个Demo,而且有几个网友也没有跑起来,不知道官方是否会去解决
      你如果跑起来后,FFmpeg可以推流RTSP

      发布在 V Series
      M
      mysteryli
    • 回复: sample_vi2venc2muxer 在V851S上崩溃

      @dingxmhan 楼主解决了吗?遇到同样的问题

      发布在 V Series
      M
      mysteryli
    • 回复: 柚木PI蜥蜴 V851S MPP sample rtsp 运行不了

      我的也是,我也试了VIRVI2VENC也不行
      vi_g2d可以

      发布在 V Series
      M
      mysteryli
    • 回复: 有人尝试把Docker的代码拷贝到本地进行编译吗

      @mysteryli 在 有人尝试把Docker的代码拷贝到本地进行编译吗 中说:

      @aw2022 在 有人尝试把Docker的代码拷贝到本地进行编译吗 中说:

      @mysteryli 我的拷出来能编。 应该是环境的问题

      你是用docker ps 拷贝出来的嘛 拷贝出来好像只有root权限才能用呀,你的是这样吗

      因为我这边好像docker命令必须sudo才能用起来 不知道为啥 你是这样嘛

      发布在 V Series
      M
      mysteryli
    • 回复: 有人尝试把Docker的代码拷贝到本地进行编译吗

      @aw2022 在 有人尝试把Docker的代码拷贝到本地进行编译吗 中说:

      @mysteryli 我的拷出来能编。 应该是环境的问题

      你是用docker ps 拷贝出来的嘛 拷贝出来好像只有root权限才能用呀,你的是这样吗

      发布在 V Series
      M
      mysteryli
    • 有人尝试把Docker的代码拷贝到本地进行编译吗

      RT
      我这边把文件都拷贝出来后编译不过
      或者你们修改Docker里面的文件,总不能都用vim吧。。

      发布在 V Series
      M
      mysteryli
    • eyesee-mpp编译报错,请问有大佬遇到过么

      报错内容如下

      l@l-Default-string:~/action2-v851s/openwrt/package/allwinner/eyesee-mpp/middleware$ mm -B
      
      make openwrt_rootfs package/middleware/clean V=s
      
      ===There is tina environment.===
       Note: make is the shell functon in envsetup.sh. 
      
      == action: openwrt_rootfs, action_args: package/middleware/clean V=s ==
      ========ACTION List: build_openwrt_rootfs package/middleware/clean V=s;========
      options : 
      ==mkcmd.sh: build_openwrt_rootfs package/middleware/clean V=s==
      make: Entering directory '/home/l/action2-v851s/openwrt/openwrt'
      make[1]: Entering directory '/home/l/action2-v851s/openwrt/openwrt'
      CreateSoftLink  /home/l/action2-v851s/openwrt/openwrt/tmp link to  /home/l/action2-v851s/out/v851s/lizard/openwrt/tmp
      CreateSoftLink  /home/l/action2-v851s/openwrt/openwrt/staging_dir link to  /home/l/action2-v851s/out/v851s/lizard/openwrt/staging_dir
      make[2]: Entering directory '/home/l/action2-v851s/openwrt/openwrt'
      make[2]: Leaving directory '/home/l/action2-v851s/openwrt/openwrt'
      
      Check Vendor Package...
      CreateSoftLink  /home/l/action2-v851s/openwrt/openwrt/package/subpackage link to  /home/l/action2-v851s/openwrt/package
      end
      Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./scripts/package-metadata.pl line 2.
      BEGIN failed--compilation aborted at ./scripts/package-metadata.pl line 2.
      Failed to build tmp/.config-package.in
      Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./scripts/package-metadata.pl line 2.
      BEGIN failed--compilation aborted at ./scripts/package-metadata.pl line 2.
      /home/l/action2-v851s/openwrt/openwrt/include/toplevel.mk:83: recipe for target 'prepare-tmpinfo' failed
      make[1]: *** [prepare-tmpinfo] Error 1
      make[1]: Leaving directory '/home/l/action2-v851s/openwrt/openwrt'
      /home/l/action2-v851s/openwrt/openwrt/include/toplevel.mk:236: recipe for target 'package/middleware/clean' failed
      make: *** [package/middleware/clean] Error 2
      make: Leaving directory '/home/l/action2-v851s/openwrt/openwrt'
      
      make openwrt_rootfs package/middleware/compile V=s
      
      ===There is tina environment.===
       Note: make is the shell functon in envsetup.sh. 
      
      == action: openwrt_rootfs, action_args: package/middleware/compile V=s ==
      ========ACTION List: build_openwrt_rootfs package/middleware/compile V=s;========
      options : 
      ==mkcmd.sh: build_openwrt_rootfs package/middleware/compile V=s==
      make: Entering directory '/home/l/action2-v851s/openwrt/openwrt'
      make[1]: Entering directory '/home/l/action2-v851s/openwrt/openwrt'
      CreateSoftLink  /home/l/action2-v851s/openwrt/openwrt/tmp link to  /home/l/action2-v851s/out/v851s/lizard/openwrt/tmp
      CreateSoftLink  /home/l/action2-v851s/openwrt/openwrt/staging_dir link to  /home/l/action2-v851s/out/v851s/lizard/openwrt/staging_dir
      make[2]: Entering directory '/home/l/action2-v851s/openwrt/openwrt'
      make[2]: Leaving directory '/home/l/action2-v851s/openwrt/openwrt'
      
      Check Vendor Package...
      CreateSoftLink  /home/l/action2-v851s/openwrt/openwrt/package/subpackage link to  /home/l/action2-v851s/openwrt/package
      end
      Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./scripts/package-metadata.pl line 2.
      BEGIN failed--compilation aborted at ./scripts/package-metadata.pl line 2.
      Failed to build tmp/.config-package.in
      Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./scripts/package-metadata.pl line 2.
      BEGIN failed--compilation aborted at ./scripts/package-metadata.pl line 2.
      /home/l/action2-v851s/openwrt/openwrt/include/toplevel.mk:83: recipe for target 'prepare-tmpinfo' failed
      make[1]: *** [prepare-tmpinfo] Error 1
      make[1]: Leaving directory '/home/l/action2-v851s/openwrt/openwrt'
      /home/l/action2-v851s/openwrt/openwrt/include/toplevel.mk:236: recipe for target 'package/middleware/compile' failed
      make: *** [package/middleware/compile] Error 2
      make: Leaving directory '/home/l/action2-v851s/openwrt/openwrt'
      l@l-Default-string:~/action2-v851s/openwrt/package/allwinner/eyesee-mpp/middleware$ 
      
      发布在 V Series
      M
      mysteryli
    • MPP的Demo产生的NV21格式的图片怎么查看

      RT,全志的mpp的demo会产生NV21格式的原始图片,怎么查看这些图片呢
      我的板子只有/dev/fb0,没有/dev/disp
      所以没法显示

      发布在 V Series
      M
      mysteryli
    • 关于全志显示图层的问题

      回复: v851s g2d 模块 sample 深究

      看到G2D的例程输出到/dev/disp,
      我换了屏幕使用fbtft,生成了FB0,怎么才能让这个mpp例程输出到fb0呢?

      发布在 V Series
      M
      mysteryli
    • 回复: lvgl触摸OK,点击没反应是怎么回事呢?

      问题解决,结贴

      发布在 V Series
      M
      mysteryli
    • 回复: 为什么我的板子复位重启后按上键,没有历史命令了

      @whycan 在 为什么我的板子复位重启后按上键,没有历史命令了 中说:

      @mysteryli

      tina默认没有开启cmd history功能,

      make menuconfig 搜索 HIST,开启对应的设置,然后重新编译打包烧录,应该就可以了。

      好用 还愿

      发布在 V Series
      M
      mysteryli
    • 回复: lvgl触摸OK,点击没反应是怎么回事呢?

      %HTRYRDKZ@LY}516FRTRYD2.png
      如果改为按下再松开 就是下面这种
      D[G8~R%ZUQU}T{$5U]$BZS0.png

      196ccf79-7fd4-4d0a-b1ac-532e85e846aa-V9U%IOH)403N57($GCOD9 (002).png

      发布在 V Series
      M
      mysteryli
    • 回复: lvgl触摸OK,点击没反应是怎么回事呢?

      有没有哪位大佬手头刚好有evtest,且有触摸的,帮忙看下输出对不对

      发布在 V Series
      M
      mysteryli
    • 回复: v853如何调用摄像头并用于yolov3进行目标检测

      @misay 在 v853如何调用摄像头并用于yolov3进行目标检测 中说:

      目前做好了火焰检测的相关内容,push照片可以推理检测,现在想调用摄像头并存储图像再检测,不知道该咋继续了,来个大佬救救2affbb89-ceef-4a05-91d9-e57c28901559-c6e766d2a966c5953903b8ee7632edf.png

      当然是改代码了,基于SDK里yolov3的demo改成从摄像头拿图

      发布在 V Series
      M
      mysteryli
    • 回复: 我这个校准没反应,有没有大佬知道的,f1c100s

      @gaowei15537316965 在 我这个校准没反应,有没有大佬知道的,f1c100s 中说:

      @mysteryli 这个有啥解决方法吗,或者就是有啥可以去看的方向吗

      我和你平台不同 触摸也不同 我是电容屏,tina环境,估计没啥参考价值

      发布在 Linux
      M
      mysteryli
    • 回复: 我这个校准没反应,有没有大佬知道的,f1c100s

      我的问题和你这个还不太一样,我的问题是光标可以受控制,却无法按下,看你这个evtest的结果,只是上报了位置,看起来也没按下,跟进你后面进度

      发布在 Linux
      M
      mysteryli
    • 回复: V853怎么交叉编译OpenCV

      @lingzhi12321 在 V853怎么交叉编译OpenCV 中说:

      @whycan V853怎样启动这个界面?make menuconfig启动的是openwrt configuration界面
      4bd88b27-7a06-4192-bd7f-31b97a26a7f8-image.png

      没用buildroot的文件系统,用的openwrt的文件系统 应该没这个界面吧

      发布在 V Series
      M
      mysteryli
    • lvgl触摸OK,点击没反应是怎么回事呢?

      触摸移动鼠标可以跟着移动,但是点击却没反应,调试发现ABS_X和ABS_Y事件都有,BTN_TOUCH事件却没有上报到/dev/input/event0
      求大佬帮忙分析
      驱动中上报关键代码如下

      	input_report_abs(ts_data->input_dev,ABS_X, x);
      	input_report_abs(ts_data->input_dev,ABS_Y, y);
      		printk("key up\r\n");
      	input_report_key(ts_data->input_dev,BTN_TOUCH,1);
      	input_sync(ts_data->input_dev);
      
      发布在 V Series
      M
      mysteryli
    • 为什么我的板子复位重启后按上键,没有历史命令了

      如题,正常不是应该有个.history嘛

      发布在 V Series
      M
      mysteryli
    • 使用tina,有没有办法只更新内核

      如题 平台是V851S,目前是mkernel和pack后生成img用phonesuit刷进去,如果我修改了一些驱动,文件系统中的文件还想保留,怎么办呢

      发布在 V Series
      M
      mysteryli
    • 回复: 求助,触摸事件上报导致内核崩溃

      @whycanservice 在 求助,触摸事件上报导致内核崩溃 中说:

      崩溃的log有吗

      我放弃了,因为我发现在中断中上报可以,在delay_work中调用上报就会有问题,不知道为什么

      发布在 V Series
      M
      mysteryli
    • 求助,触摸事件上报导致内核崩溃

      核心代码如下,内核报错内容晚点贴上,这么写看起来应该没啥问题吧

      	input_report_abs(ts_data->input_dev,ABS_X, 10);
      	input_report_abs(ts_data->input_dev,ABS_Y, 10);
      	input_report_abs(ts_data->input_dev,ABS_PRESSURE, 1);
      	input_report_key(ts_data->input_dev,BTN_TOUCH,1);
      
      	// //input_mt_sync_frame(ts_data->input_dev);
      	input_sync(ts_data->input_dev);
      	input_report_abs(ts_data->input_dev,ABS_PRESSURE, 0);
      	input_report_key(ts_data->input_dev,BTN_TOUCH,0);
      	input_sync(ts_data->input_dev);
      
      	INIT_DELAYED_WORK(&ts_data->poll_work, cst3xx_touch_report1);
      	//INIT_DELAYED_WORK(&poll_work, hyn_interrupt_handler);
      	schedule_delayed_work(&ts_data->poll_work,
      				msecs_to_jiffies(80));
      
      static void cst3xx_touch_report1(struct work_struct *work)
      {
      	u8 buf[5];
      	struct delayed_work *dw =
      		container_of(work, struct delayed_work, work);
      	struct hynitron_ts_data *ts_data =
      		container_of(dw, struct hynitron_ts_data, poll_work);
      	if( touch_flag ){
      		touch_flag = 0;
      		// int err = cst3xx_i2c_read_register(ts_data->client, 0x02,
      		// 	buf, 5);
      		// if ( err ){
      		// 	dev_err(&ts_data->client->dev, "cst3xx touch read failure %d\n",err);
      		// }
      		// printk("touch data is 0x%2x 0x%2x 0x%2x 0x%2x\r\n",buf[1],buf[2],buf[3],buf[4]);
      		cst3xx_touch_report(ts_data->client);
      	}
      	schedule_delayed_work(&ts_data->poll_work,
      			msecs_to_jiffies(80));
      }
      
      	input = devm_input_allocate_device(dev);
      	if (!input)
      		return -ENOMEM;
      
      	ts_data->input_dev = input;
      	input->name = client->name;
      	input->id.bustype = BUS_I2C;
      	set_bit(EV_ABS, input->evbit);
      	set_bit(EV_KEY, input->evbit);
      	set_bit(BTN_TOUCH, input->keybit);
      
      	input_set_abs_params(ts_data->input_dev, ABS_X,
      			     0, 240, 0, 0);
      	input_set_abs_params(ts_data->input_dev, ABS_Y,
      			     0, 280, 0, 0);
      	input_set_abs_params(ts_data->input_dev, ABS_PRESSURE,
      			     0, 1, 0, 0);
      
      	err = input_register_device(input);
      	if (err) {
      		dev_err(dev, "failed to register input device: %d\n", err);
      		return err;
      	}
      
      发布在 V Series
      M
      mysteryli
    • 回复: 作为一个刚接触嵌入式的初学者,全志V853的开发文档在帮了我大忙的过程中,也让像我一样的初学者无力吐槽!

      直接用root用户你就不怕我再脚本里塞个 rm -rf /*
      哈哈哈

      发布在 V Series
      M
      mysteryli
    • 回复: V851S的IIC报错这个,请问是什么原因

      @whycan
      但是这个是说传输未完成
      是因为我没接任何IIC设备,主机收不到ACK,所以认为传输未完成是吧
      那我直接去内核里吧打印的地方注释了,是不是也行🤕

      发布在 V Series
      M
      mysteryli
    • V851S的IIC报错这个,请问是什么原因

      SDK是东山pi的那个docker,在系统中执行i2cdetece -y 3
      就会出现如下情况
      eeaf4cd4-2491-4917-aefb-d38e1d669dc1-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: 有没有大佬研究过SDK的GPIO机制

      @whycan
      发现了两个gpio.h不知道什么区别,用的哪个 arch下的那个好像有东西
      759a9f64-1f0d-4bd6-aee1-ec57a2c0a957-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: 有没有大佬研究过SDK的GPIO机制

      @whycan
      kernel/linux-4.9/include/linux/gpio.h
      我想应该不是调用的这个函数,是我查找的方式不对
      IO在内核驱动调用阿志肯定得验证过的

      发布在 V Series
      M
      mysteryli
    • 有没有大佬研究过SDK的GPIO机制

      一路跟踪GPIO的设置函数,最后发现是个空函数,我哪里搞错了呢?
      看了V85X的SDK和D1S的SDK,发现都是这样的
      ea92cb50-3917-4f07-bb80-61f88f2f7467-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: 没有make命令怎么make kernel_menuconfig

      @h2631436132 在 没有make命令怎么make kernel_menuconfig 中说:

      @whycanservice 那这一步怎么实现
      bb867a92-58b6-45aa-9ee8-b98c0f5209f3-image.png
      这是串口信息
      e041f01c-db10-4e29-b1ac-f75fa2ba859a-image.png
      虚拟机里也弄不了

      76faad0f-d851-4cf9-b7d0-139de0337ec0-image.png

      我只能说 严格按照手册操作哈

      发布在 V Series
      M
      mysteryli
    • 回复: 在tina中添加了ST7789V的驱动后,无法调用初始化函数

      tips:另外还有一个线索就是之前有一块MIPI的屏幕,初始化代码也是正确的,同样无法点亮,大佬docker里面的代码可以点亮,由于内核代码量较大,实在无法比较查分,仅对比了Driver文件夹和设备树,发现是相同的

      发布在 V Series
      M
      mysteryli
    • 在tina中添加了ST7789V的驱动后,无法调用初始化函数

      回复: 使用 LicheeRV 86 Panel 与 Tina BSP 实现 RGB 与 SPI 双屏显示
      参照大佬的这个博客修改了代码,无法进入初始化函数,是什么原因呢
      f67898a7-e19b-46da-a7f3-c3e6a26b6b49-image.png

      c154b3fc-9c6a-4713-a693-9e9d6d6ec13c-image.png

      ace12d4d-4dca-406a-83f8-b21f2b80c2e6-image.png

      a530fbca-fbac-45bc-84c9-f5eaf7f41e2e-image.png

      发布在 V Series
      M
      mysteryli
    • 回复: v851s使用yolo3 demo错误 ,如何优化,如何处理

      怎么把yolov3的demo编译进镜像中呢?

      发布在 V Series
      M
      mysteryli
    • 回复: 851有没有适配过30w像素的dvp摄像头?

      @yelong98 SDK好像适配的都是MIPI接口的 DVP速度跟不上吧

      发布在 V Series
      M
      mysteryli
    • 回复: V851s、V851se、V853s、V853的区别

      @xiaowenge
      一样吧 V851S想用RGMII也没法输出LCD了

      发布在 V Series
      M
      mysteryli
    • 1
    • 2
    • 1 / 2