Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页
    1. Home
    2. shz18877605430
    S
    • Profile
    • Following 0
    • Followers 0
    • my integral 1578
    • Topics 11
    • Posts 37
    • Best 0
    • Groups 0

    shz18877605430LV 5

    @shz18877605430

    1578
    integral
    0
    Reputation
    6
    Profile views
    37
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    shz18877605430 Unfollow Follow

    Latest posts made by shz18877605430

    • Reply: F133跑bluez的时候,加载rtk_hciattach -n -s 115200 ttyS1 rtk_h5 & 报错。

      @whycan 测过了,是拉高的。高电平

      posted in Linux
      S
      shz18877605430
    • Reply: F133跑bluez的时候,加载rtk_hciattach -n -s 115200 ttyS1 rtk_h5 & 报错。

      @whycan 这个蓝牙使能管脚会一直高吗?还是瞬间拉高然后回到低电平?

      posted in Linux
      S
      shz18877605430
    • Reply: F133跑bluez的时候,加载rtk_hciattach -n -s 115200 ttyS1 rtk_h5 & 报错。

      @whycan 我测了的时候已经是拉低了(不上电默认和GND导通的),但是我还是把100k的电阻接上去做下拉了。还是出现这个问题。

      posted in Linux
      S
      shz18877605430
    • F133跑bluez的时候,加载rtk_hciattach -n -s 115200 ttyS1 rtk_h5 & 报错。

      F133跑bluez的时候,加载rtk_hciattach -n -s 115200 ttyS1 rtk_h5 &报错

      运行了以下操作,rtl8723ds驱动已经运行,hci_uart.ko也运行了。

      /etc/init.d/dbus start
      echo 0 > /sys/class/rfkill/rfkill0/state
      echo 1 > /sys/class/rfkill/rfkill0/state
      
      

      加载rtk_hciattach -n -s 115200 ttyS1 rtk_h5 &的时候出现了协议不支持。但是内核已经开启了h5

      f1170d5d-b2ac-44a8-a354-2924d9d93d0d-image.png

      
      root@TinaLinux:/# Realtek Bluetooth :Realtek Bluetooth init uart with init speed:115200, type:HCI UART H5
      Realtek Bluetooth :Realtek hciattach version 3.1
      
      Realtek Bluetooth :Use epoll
      Realtek Bluetooth :[SYNC] Get SYNC Resp Pkt
      Realtek Bluetooth :[CONFIG] Get SYNC pkt
      Realtek Bluetooth :[CONFIG] Get CONFG pkt
      Realtek Bluetooth :[CONFIG] Get CONFG resp pkt
      Realtek Bluetooth :dic is 1, cfg field 0x14
      Realtek Bluetooth :H5 init finished
      
      Realtek Bluetooth :Realtek H5 IC
      Realtek Bluetooth :Receive cmd complete event of command: 1001
      Realtek Bluetooth :HCI Version 0x08
      Realtek Bluetooth :HCI Revision 0x000d
      Realtek Bluetooth :LMP Subversion 0x8723
      Realtek Bluetooth :Receive cmd complete event of command: fc6d
      Realtek Bluetooth :Read ROM version 02
      Realtek Bluetooth :LMP Subversion 0x8723
      Realtek Bluetooth :EVersion 2
      Realtek Bluetooth :IC: RTL8723DS
      Realtek Bluetooth :Firmware/config: rtl8723d_fw, rtl8723d_config
      Realtek Bluetooth :Couldnt open extra config /opt/rtk_btconfig.txt, No such file or directory
      Realtek Bluetooth :Couldnt access customer BT MAC file /opt/bdaddr
      Realtek Bluetooth :Origin cfg len 48
      Realtek Bluetooth :55 ab 23 87 2a 00 0c 00 10 02 80 92 04 50 c5 ea
      Realtek Bluetooth :19 e1 1b fd af 5f 01 a4 0b d9 00 01 0f e4 00 01
      Realtek Bluetooth :08 f3 00 01 0c f4 00 08 01 00 01 90 00 00 09 04
      Realtek Bluetooth :Config baudrate: 04928002
      Realtek Bluetooth :uart flow ctrl: 1
      Realtek Bluetooth :Vendor baud from Config file: 04928002
      Realtek Bluetooth :New cfg len 48
      Realtek Bluetooth :55 ab 23 87 2a 00 0c 00 10 02 80 92 04 50 c5 ea
      Realtek Bluetooth :19 e1 1b fd af 5f 01 a4 0b d9 00 01 0f e4 00 01
      Realtek Bluetooth :08 f3 00 01 0c f4 00 08 01 00 01 90 00 00 09 04
      Realtek Bluetooth :Load FW /lib/firmware/rtlbt/rtl8723d_fw OK, size 52096
      Realtek Bluetooth :rtb_get_fw_project_id: opcode 0, len 1, data 9
      Realtek Bluetooth :FW version 0xaa7add92, Patch num 3
      Realtek Bluetooth :Chip id 0x0001
      Realtek Bluetooth :Chip id 0x0002
      Realtek Bluetooth :Chip id 0x0003
      Realtek Bluetooth :Patch length 0x81b8
      Realtek Bluetooth :Start offset 0x00004980
      Realtek Bluetooth :Svn version:    20318
      Realtek Bluetooth :Coexistence: BTCOEX_20180125-2323
      
      Realtek Bluetooth :FW  exists, Config file  exists
      Realtek Bluetooth :Total len 33256 for fwc
      Realtek Bluetooth :baudrate in change speed command: 0x02 0x80 0x92 0x04
      Realtek Bluetooth :Receive cmd complete event of command: fc17
      Realtek Bluetooth :Received cc of vendor change baud
      Realtek Bluetooth :Final speed 1500000
      Realtek Bluetooth :end_idx: 131, lp_len: 244, additional pkts: 0
      
      Realtek Bluetooth :Start downloading...
      Realtek Bluetooth :Send last pkt
      Realtek Bluetooth :Enable host hw flow control
      Realtek Bluetooth :h5_hci_reset: Issue hci reset cmd
      Realtek Bluetooth :Receive cmd complete event of command: 0c03
      Realtek Bluetooth :Received cc of hci reset cmd
      Realtek Bluetooth :Init Process finished
      Realtek Bluetooth ERROR: Can't set device 93, Protocol not supported
      Realtek Bluetooth ERROR: Can't initialize device 93, Protocol not supported
      
      

      各位大佬指教一下!!!

      posted in Linux
      S
      shz18877605430
    • Reply: F133启动之后,/sys/class目录下找不到rfkill

      8723ds的wlan0是能正常使用的,已经连接网络,能ping通。

      posted in Linux
      S
      shz18877605430
    • F133启动之后,/sys/class目录下找不到rfkill

      大佬们,F133启动之后,/sys/class目录下找不到rfkill文件,配置已经开启,内核已经打开驱动,但是就是找不到rfkill目录。

      be595528-561f-4554-b819-39ccc25894a8-image.png

      d1167fcb-4f36-4d36-8116-6bdc8b7cf8c2-image.png

      572809df-c391-4417-b022-4f6c905f8405-image.png

      内核日志如下:

      U-Boot 2018.05-g24521d6-dirty (Mar 10 2023 - 20:31:27 +0800) Allwinner Technology
      
      [00.354]DRAM:  64 MiB
      [00.356]Relocation Offset is: 01ee7000
      [00.361]secure enable bit: 0
      [00.364]CPU=720 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [00.370]flash init start
      [00.372]workmode = 0,storage type = 0
      sspi->base_addr = 0x4025000, the SPI control register:
      [VER] 0x4025000 = 0x00010001, [GCR] 0x4025004 = 0x00000083, [TCR] 0x4025008 = 0x00000184
      [ICR] 0x4025010 = 0x00000f00, [ISR] 0x4025014 = 0x00000032, [FCR] 0x4025018 = 0x00200020
      [FSR] 0x402501c = 0x00000000, [WCR] 0x4025020 = 0x00000000, [CCR] 0x4025024 = 0x00000002
      [SDC] 0x4025028 = 0x00002000, [BCR] 0x4025030 = 0x00000000, [TCR] 0x4025034 = 0x00000000
      [BCC] 0x4025038 = 0x20000000, [DMA] 0x4025088 = 0x000000e5
      
      [00.421]sunxi-spinand-phy: not detect any munufacture from id table
      [00.427]sunxi-spinand-phy: get spi-nand Model from fdt fail
      [00.433]sunxi-spinand-phy: get phy info from fdt fail
      
      device nand0 <nand>, # parts = 4
       #: name                size            offset          mask_flags
       0: boot0               0x00100000      0x00000000      1
       1: uboot               0x00300000      0x00100000      1
       2: secure_storage      0x00100000      0x00400000      1
       3: sys                 0x07b00000      0x00500000      0
      
      active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000
      
      defaults:
      mtdids  : nand0=nand
      mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
      [00.547]ubi0: attaching mtd4
      [00.643]ubi0: scanning is finished
      [00.650]ubi0: attached mtd4 (name "sys", size 123 MiB)
      [00.655]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
      [00.661]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
      [00.667]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
      [00.674]ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0
      [00.679]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128
      [00.686]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
      [00.693]ubi0: available PEBs: 0, total reserved PEBs: 492, PEBs reserved for bad PEB handling: 20
      [00.702]sunxi flash init ok
      [00.704]line:703 init_clocks
      [00.708]drv_disp_init
      fdt_getprop_u32 s_pwm.pwm-base fail
      [00.728]drv_disp_init finish
      [00.730]boot_gui_init:start
      [00.733]set disp.dev2_output_type fail. using defval=0
      [00.740]boot_gui_init:finish
      partno erro : can't find partition bootloader
      54 bytes read in 1 ms (52.7 KiB/s)
      [00.871]bmp_name=bootlogo.bmp size 38454
      38454 bytes read in 3 ms (12.2 MiB/s)
      [00.920]LCD open finish
      [00.995]Loading Environment from SUNXI_FLASH... OK
      [01.018]out of usb burn from boot: not need burn key
      [01.024]Item0 (Map) magic is bad
      partno erro : can't find partition private
      [01.052]update bootcmd
      [01.065]change working_fdt 0x42aa6da0 to 0x42a86da0
      No reserved memory region found in source FDT
      [01.101]update dts
      noncached_alloc(): addr = 0x42ca5080
      noncached_alloc(): addr = 0x42ca50c0
      noncached_alloc(): addr = 0x42ca5100
      noncached_alloc(): addr = 0x42ca5940
      geth_sys_init:634: get node 'gmac0' error
      geth_sys_init fail!
      [01.121]Board Net Initialization Failed
      [01.125]No ethernet found.
      Hit any key to stop autoboot:  0
      [02.528]no vendor_boot partition is found
      Android's image name: d1s-nezha
      Detect comp none
      [02.547]
      Starting kernel ...
      
      ** 4 printk messages dropped **
      Movable zone start for each node
      Early memory node ranges
        node   0: [mem 0x0000000040000000-0x0000000043ffffff]
      Initmem setup node 0 [mem 0x0000000040000000-0x0000000043ffffff]
      On node 0 totalpages: 16384
        DMA32 zone: 224 pages used for memmap
        DMA32 zone: 0 pages reserved
        DMA32 zone: 16384 pages, LIFO batch:3
      elf_hwcap is 0x20112d
      pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
      pcpu-alloc: [0] 0
      Built 1 zonelists, mobility grouping on.  Total pages: 16160
      Kernel command line: ubi.mtd=sys ubi.block=0,rootfs earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/ubiblock0_5 rootfstype=squashfs init=/pseudo_init partitions=mbr@ubi0_0:boot-resource@ubi0_1:env@ubi0_2:env-redund@ubi0_3:boot@ubi0_4:rootfs@ubi0_5:recovery@ubi0_6:rootfs_data@ubi0_7:UDISK@ubi0_8: cma=0M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.hardware=sun20iw1p1 boot_type=5 androidboot.boot_type=5 gpt=1 uboot_message=2018.05-g24521d6-dirty(03
      Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
      Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
      Sorting __ex_table...
      mem auto-init: stack:off, heap alloc:off, heap free:off
      Memory: 54564K/65536K available (5087K kernel code, 497K rwdata, 1868K rodata, 144K init, 331K bss, 10972K reserved, 0K cma-reserved)
      SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
      rcu: Preemptible hierarchical RCU implementation.
              Tasks RCU enabled.
      rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
      NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
      plic: mapped 200 interrupts with 1 handlers for 2 contexts.
      riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
      clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
      sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
      riscv_timer_clockevent depends on broadcast, but no broadcast function available
      clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
      Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
      pid_max: default: 32768 minimum: 301
      Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
      Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
      ASID allocator initialised with 65536 entries
      rcu: Hierarchical SRCU implementation.
      devtmpfs: initialized
      random: get_random_u32 called from bucket_table_alloc.isra.27+0xfe/0x120 with crng_init=0
      clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      futex hash table entries: 256 (order: 0, 6144 bytes, linear)
      pinctrl core: initialized pinctrl subsystem
      NET: Registered protocol family 16
      DMA: preallocated 256 KiB pool for atomic allocations
      cpuidle: using governor menu
      rtc_ccu: sunxi ccu init OK
      clock: sunxi ccu init OK
      clock: sunxi ccu init OK
      iommu: Default domain type: Translated
      sunxi iommu: irq = 4
      SCSI subsystem initialized
      usbcore: registered new interface driver usbfs
      usbcore: registered new interface driver hub
      usbcore: registered new device driver usb
      videodev: Linux video capture interface: v2.00
      Advanced Linux Sound Architecture Driver Initialized.
      Bluetooth: Core ver 2.22
      NET: Registered protocol family 31
      Bluetooth: HCI device and connection manager initialized
      Bluetooth: HCI socket layer initialized
      Bluetooth: L2CAP socket layer initialized
      Bluetooth: SCO socket layer initialized
      pwm module init!
      g2d 5410000.g2d: Adding to iommu group 0
      G2D: rcq version initialized.major:252
      clocksource: Switched to clocksource riscv_clocksource
      sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
      NET: Registered protocol family 2
      tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
      TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
      TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
      TCP: Hash tables configured (established 512 bind 512)
      UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
      UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
      NET: Registered protocol family 1
      sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
      spi spi0: spi0 supply spi not found, using dummy regulator
      sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
      sunxi_spi_resource_get()2189 - Failed to get sample mode
      sunxi_spi_resource_get()2194 - Failed to get sample delay
      sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
      sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
      sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base ffffffd004058000, irq 31
      workingset: timestamp_bits=62 max_order=14 bucket_order=0
      squashfs: version 4.0 (2009/01/31) Phillip Lougher
      ntfs: driver 2.1.32 [Flags: R/W].
      io scheduler mq-deadline registered
      io scheduler kyber registered
      [DISP]disp_module_init
      disp 5000000.disp: Adding to iommu group 0
      [DISP] parser_disp_init_para,line:1430:
      of_property_read fb0_width fail
      [DISP] disp_init,line:2386:
      smooth display screen:0 type:1 mode:4
      display_fb_request,fb_id:0
      Freeing logo buffer memory: 1500K
      disp_al_manager_apply ouput_type:1
      sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
      [DISP]disp_module_init finish
      sunxi_sid_init()551 - insmod ok
      pwm-regulator: supplied by regulator-dummy
      sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
      uart uart0: get regulator failed
      uart uart0: uart0 supply uart not found, using dummy regulator
      uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
      sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
      printk: console [ttyS0] enabled
      sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
      uart uart1: get regulator failed
      uart uart1: uart1 supply uart not found, using dummy regulator
      uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
      misc dump reg init
      sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
      sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
      sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
      sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
      sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
      sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
      sunxi-rfkill soc@3000000:rfkill@0: get gpio wlan_regon failed
      sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
      sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
      sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
      sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
      sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
      [ADDR_MGT] addr_mgt_probe: module version: v1.0.10
      [ADDR_MGT] addr_mgt_probe: success.
      sunxi-spinand: AW SPINand MTD Layer Version: 2.0 20201228
      sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.10 20200306
      sunxi-spinand-phy: not detect any munufacture from id table
      sunxi-spinand-phy: get spi-nand Model from fdt fail
      sunxi-spinand-phy: get phy info from fdt fail
      sunxi-spinand-phy: not detect munufacture from fdt
      sunxi-spinand-phy: detect munufacture from id table: GD
      sunxi-spinand-phy: detect spinand id: ffff51c8 ffffffff
      sunxi-spinand-phy: ========== arch info ==========
      sunxi-spinand-phy: Model:               GD5F1GQ5UEYIG
      sunxi-spinand-phy: Munufacture:         GD
      sunxi-spinand-phy: DieCntPerChip:       1
      sunxi-spinand-phy: BlkCntPerDie:        1024
      sunxi-spinand-phy: PageCntPerBlk:       64
      sunxi-spinand-phy: SectCntPerPage:      4
      sunxi-spinand-phy: OobSizePerPage:      64
      sunxi-spinand-phy: BadBlockFlag:        0x0
      sunxi-spinand-phy: OperationOpt:        0x7
      sunxi-spinand-phy: MaxEraseTimes:       50000
      sunxi-spinand-phy: EccFlag:             0x1
      sunxi-spinand-phy: EccType:             7
      sunxi-spinand-phy: EccProtectedType:    2
      sunxi-spinand-phy: ========================================
      sunxi-spinand-phy:
      sunxi-spinand-phy: ========== physical info ==========
      sunxi-spinand-phy: TotalSize:    128 M
      sunxi-spinand-phy: SectorSize:   512 B
      sunxi-spinand-phy: PageSize:     2 K
      sunxi-spinand-phy: BlockSize:    128 K
      sunxi-spinand-phy: OOBSize:      64 B
      sunxi-spinand-phy: ========================================
      sunxi-spinand-phy:
      sunxi-spinand-phy: ========== logical info ==========
      sunxi-spinand-phy: TotalSize:    128 M
      sunxi-spinand-phy: SectorSize:   512 B
      sunxi-spinand-phy: PageSize:     4 K
      sunxi-spinand-phy: BlockSize:    256 K
      sunxi-spinand-phy: OOBSize:      128 B
      sunxi-spinand-phy: ========================================
      sunxi-spinand-phy: GD5F1GQ5UEYIG reset rx bit width to 1
      sunxi-spinand-phy: GD5F1GQ5UEYIG reset tx bit width to 1
      sunxi-spinand-phy: block lock register: 0x00
      sunxi-spinand-phy: feature register: 0x11
      sunxi-spinand-phy: sunxi physic nand init end
      Creating 4 MTD partitions on "sunxi_mtd_nand":
      0x000000000000-0x000000100000 : "boot0"
      0x000000100000-0x000000500000 : "uboot"
      random: fast init done
      0x000000500000-0x000000600000 : "secure_storage"
      0x000000600000-0x000008000000 : "sys"
      RTL871X: module init start
      RTL871X: rtl8189fs v4.3.24.8_22657.20170607
      RTL871X: module init ret=0
      ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      sunxi-ehci: EHCI SUNXI driver
      get ehci1-controller wakeup-source is fail.
      sunxi ehci1-controller don't init wakeup source
      [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xffffffe00079b9c0, 0x:ffffffd004071000, irq_no:31
      sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply drvvbus not found, using dummy regulator
      sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
      sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
      sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
      sunxi-ehci 4200000.ehci1-controller: irq 49, io mem 0x04200000
      sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
      hub 1-0:1.0: USB hub found
      hub 1-0:1.0: 1 port detected
      ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      sunxi-ohci: OHCI SUNXI driver
      get ohci1-controller wakeup-source is fail.
      sunxi ohci1-controller don't init wakeup source
      [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xffffffe00079bd88
      sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply drvvbus not found, using dummy regulator
      sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
      sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
      sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
      sunxi-ohci 4200400.ohci1-controller: irq 50, io mem 0x04200400
      hub 2-0:1.0: USB hub found
      hub 2-0:1.0: 1 port detected
      sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
      sunxi-rtc 7090000.rtc: registered as rtc0
      sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:04 UTC (4)
      sunxi-rtc 7090000.rtc: sunxi rtc probed
      i2c /dev entries driver
      IR NEC protocol handler initialized
      uvcvideo: Unable to create debugfs directory
      usbcore: registered new interface driver uvcvideo
      USB Video Class driver (1.1.1)
      sunxi cedar version 1.1
      sunxi-cedar 1c0e000.ve: Adding to iommu group 0
      VE: install start!!!
      
      VE: cedar-ve the get irq is 6
      
      VE: install end!!!
      
      VE: sunxi_cedar_probe
      sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-11-18 10:02)
      sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
      sunxi-mmc 4021000.sdmmc: No vmmc regulator found
      sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
      sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
      sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
      sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
      sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
      sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
      sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
      sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
      sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      sunxi-mmc 4021000.sdmmc: detmode:manually by software
      ashmem: initialized
      exFAT: Version 1.3.0
      sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [AUDIOCODEC][sunxi_codec_parse_params][2412]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
      
      [AUDIOCODEC][sunxi_codec_parse_params][2448]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
      [AUDIOCODEC][sunxi_internal_codec_probe][2609]:codec probe finished
      sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      sid_rd_ver_reg()254 - ver >= 4, soc ver:5
      [SNDCODEC][sunxi_card_init][583]:card init finished
      sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
      sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
      input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
      [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
      NET: Registered protocol family 10
      Segment Routing with IPv6
      [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
      NET: Registered protocol family 17
      Bluetooth: RFCOMM TTY layer initialized
      Bluetooth: RFCOMM socket layer initialized
      sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      Bluetooth: RFCOMM ver 1.11
      sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator
      sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
      mmc0: new high speed SDIO card at address 0001
      input: fts_ts as /devices/platform/soc@3000000/sunxi-i2c2/i2c-2/2-0038/input/input1
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      fts_ts 2-0038: 2-0038 supply  not found, using dummy regulator
      fts_ts 2-0038: 2-0038 supply  not found, using dummy regulator
      sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x38)
      sunxi-i2c sunxi-i2c2: probe success
      reg-fixed-voltage usb1-vbus: nonexclusive access to GPIO for usb1-vbus
      get ehci0-controller wakeup-source is fail.
      sunxi ehci0-controller don't init wakeup source
      [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe00079b230, 0x:ffffffd0040f4000, irq_no:2e
      [sunxi-ehci0]: Not init ehci0
      get ohci0-controller wakeup-source is fail.
      sunxi ohci0-controller don't init wakeup source
      [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe00079b5f8
      [sunxi-ohci0]: Not init ohci0
      ubi0: attaching mtd3
      ubi0: scanning is finished
      ubi0: attached mtd3 (name "sys", size 122 MiB)
      ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
      ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
      ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
      ubi0: good PEBs: 488, bad PEBs: 0, corrupted PEBs: 0
      ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128
      ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
      ubi0: available PEBs: 6, total reserved PEBs: 482, PEBs reserved for bad PEB handling: 10
      ubi0: background thread "ubi_bgt0d" started, PID 62
      block ubiblock0_5: created from ubi0:5(rootfs)
      ERR: det_vbus gpio_request failed
      platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
      clk: Not disabling unused clocks
      ALSA device list:
        #0: audiocodec
      alloc_fd: slot 0 not NULL!
      cfg80211: failed to load regulatory.db
      VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
      devtmpfs: mounted
      Freeing unused kernel memory: 144K
      This architecture does not have kernel memory protection.
      Run /pseudo_init as init process
      random: crng init done
      mount: mounting none on /dev failed: Device or resource busy
      UBIFS (ubi0:7): Mounting in unauthenticated mode
      UBIFS (ubi0:7): background thread "ubifs_bgt0_7" started, PID 90
      UBIFS (ubi0:7): recovery needed
      UBIFS (ubi0:7): recovery completed
      UBIFS (ubi0:7): UBIFS: mounted UBI device 0, volume 7, name "rootfs_data"
      UBIFS (ubi0:7): LEB size: 258048 bytes (252 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
      UBIFS (ubi0:7): FS size: 3096576 bytes (2 MiB, 12 LEBs), journal size 1806337 bytes (1 MiB, 5 LEBs)
      UBIFS (ubi0:7): reserved for root: 146258 bytes (142 KiB)
      UBIFS (ubi0:7): media format: w5/r0 (latest is w5/r0), UUID EF7D946C-F15A-4E7A-8105-8B255A805796, small LPT model
      can't run '/etc/preinit': No such file or directory
      mount: mounting proc on /proc failed: Device or resource busy
      mount: mounting tmpfs on /run failed: No such file or directory
      hostname: can't open '/etc/hostname': No such file or directory
      ------run rc.preboot file-----
      UBIFS (ubi0:8): Mounting in unauthenticated mode
      UBIFS (ubi0:8): background thread "ubifs_bgt0_8" started, PID 119
      UBIFS (ubi0:8): recovery needed
      UBIFS (ubi0:8): recovery completed
      UBIFS (ubi0:8): UBIFS: mounted UBI device 0, volume 8, name "UDISK"
      UBIFS (ubi0:8): LEB size: 258048 bytes (252 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
      UBIFS (ubi0:8): FS size: 47738880 bytes (45 MiB, 185 LEBs), journal size 2322432 bytes (2 MiB, 9 LEBs)
      UBIFS (ubi0:8): reserved for root: 2254825 bytes (2201 KiB)
      UBIFS (ubi0:8): media format: w5/r0 (latest is w5/r0), UUID 26DCDA98-CAB6-4A6D-B43F-4EC2345931D8, small LPT model
      ------run rc.modules file-----
      usbcore: registered new interface driver usb-storage
      sunxi_gpadc_init,2151, success
      sunxi_gpadc_setup: get channel scan data failed
      input: sunxi-gpadc0 as /devices/virtual/input/input2
      
      
      sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
      sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
      Successfully initialized wpa_supplicant
      ------run rc.final file-----
      numid=30,iface=MIXER,name='Headphone Switch'
        ; type=BOOLEAN,access=rw------,values=1
        : values=on
      file system registered
      configfs-gadget 4100000.udc-controller: failed to start g1: -19
      sh: write error: No such device
      read descriptors
      read strings
      
      insmod_host_driver
      
      [ehci0-controller]: sunxi_usb_enable_ehci
      [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe00079b230, 0x:ffffffd0040f4000, irq_no:2e
      sunxi-ehci 4101000.ehci0-controller: 4101000.ehci0-controller supply hci not found, using dummy regulator
      sunxi-ehci 4101000.ehci0-controller: EHCI Host Controller
      sunxi-ehci 4101000.ehci0-controller: new USB bus registered, assigned bus number 3
      sunxi-ehci 4101000.ehci0-controller: irq 46, io mem 0x04101000
      sunxi-ehci 4101000.ehci0-controller: USB 2.0 started, EHCI 1.00
      hub 3-0:1.0: USB hub found
      hub 3-0:1.0: 1 port detected
      [ohci0-controller]: sunxi_usb_enable_ohci
      [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe00079b5f8
      sunxi-ohci 4101400.ohci0-controller: 4101400.ohci0-controller supply hci not found, using dummy regulator
      sunxi-ohci 4101400.ohci0-controller: OHCI Host Controller
      sunxi-ohci 4101400.ohci0-controller: new USB bus registered, assigned bus number 4
      sunxi-ohci 4101400.ohci0-controller: irq 47, io mem 0x04101400
      hub 4-0:1.0: USB hub found
      hub 4-0:1.0: 1 port detected
      host_chose finished!
      IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
      
      
      BusyBox v1.27.2 () built-in shell (ash)
      
      ------run profile file-----
      nice: can't execute '/usr/bin/story_bin': No such file or directory
       _____  _              __     _
      |_   _||_| ___  _ _   |  |   |_| ___  _ _  _ _
        | |   _ |   ||   |  |  |__ | ||   || | ||_'_|
        | |  | || | || _ |  |_____||_||_|_||___||_,_|
        |_|  |_||_|_||_|_|  Tina is Based on OpenWrt!
       ----------------------------------------------
       Tina Linux (Neptune, 61CC0487)
       ----------------------------------------------
      root@TinaLinux:/#
      
      
      
      
      
      posted in Linux
      S
      shz18877605430
    • T113跑bluez,bluetoothctl命令行操作的时候,手机能搜索到蓝牙,但是连接的时候一直连接不上

      T113跑bluez,bluetoothctl命令行操作的时候,手机能搜索到蓝牙,但是连接的时候一直连接不上,

      大致流程如下操作:

      /etc/init.d/dbus start
      echo 0 > /sys/class/rfkill/rfkill0/state
      echo 1 > /sys/class/rfkill/rfkill0/state
      rtk_hciattach -n -s 115200 ttyS1 rtk_h5 & 	
      hciconfig hci0 up
      bluetoothd -C &
      bluetoothctl
          ---->power on               //打开电源
          ---->discoverable on     //打开可发现
          ---->menu adv
               ---->name qq123      //设置蓝牙名字:qq123
               ---->back
          ---->advertise on           //广播
      
      

      然后使用手机端的nrf connect助手搜索蓝牙,然后点击连接,但是连接不上,超时。

      af8cb9bd-a365-4d2b-9cfc-84737b6e2217-image.png

      6d274850-8f1a-4a0a-89de-7ab53029bf0c-image.png

      各位大佬,支支招!!!

      posted in Linux
      S
      shz18877605430
    • Reply: 我又来求助大佬了。T113 RGB屏调试。lvgl字体显示虚浮

      @yunchawaishi 改一下dclk的屏幕,改到24Mhz,你现在肯定是48Mhz

      posted in D1系列-RISC-V
      S
      shz18877605430
    • Tina F133调试5寸RGB,整体图像很淡,有抖动波纹,今天终于踩完坑了。

      1、前序

      • 前几天,买了个显示屏,5寸的RGB(800*480),遇到了个奇葩的问题,用了芒果的F133(MQ-R)板子,然后开启了lvgl的demo程序,发现屏幕整体图像很淡,有抖动波纹,有种撕裂的感觉,不信你看😁 。可能不是很清晰,如下:

      fe38c654-be68-4624-bcd3-4ca028bc165f-2D13F840CE14A7DBEBF4D6BB2B56EDC6.jpg

      2、过程

      • 当时出现了这个问题的时候,我首先看了设备树,发现设备树该改的都改了呀,也没看出啥毛病,然后一直在哪里乱调,群里问了大佬,得到了一点点的灵感,看来还是要上RGB显示屏的手册才行,如下图所示。

      4b

      • 接着对着手册改,发现改了也没用,然后用了示波器测量dclk,发现时钟频率是48Mhz,哇,这么嗨高,手册显示最高也就27Mhz,以是我想了想,要不把频率降下来看看,然后打了两个补丁:
      0001-disp-support-dynamic-adjust-tcon_div.patch:
          放置到 lichee/linux-5.4 目录中执行 
          git apply 0001-disp-support-dynamic-adjust-tcon_div.patch
      
      0001-disp-support-dynamic-adjust-tcon_div-uboot.patch:
          放置到 lichee/brandy-2.0/u-boot-2018 目录中执行 
          git apply 0001-disp-support-dynamic-adjust-tcon_div-uboot.patch
      

      补丁在这个全志服务平台上:https://open.allwinnertech.com/#/sdk/0?menuID=36

      如图所示:

      GMXOQI.png

      • 接着依旧于事无补,没用啊,算了,打了补丁就不管了,过了两天,带着板子到公司的示波器上测测波形,靠,还是48Mhz,无语,只能看看有没有同步吧,接着在uboot命令行下用了fdt print命令看了一下设备树的参数,发现和内核的设备树一样,这下扯淡了,证明改的设备树内啥问题啊,都更新进去了,于是我还是不死心,坚决拿uboot的设备树开刀,改成了和内核的参数一样,烧录进去,啪,示波器测量,24Mhz,成了。没了,请看下一集。

      贴图贴图,收工。

      a92879E3C3F9B7B0C138C422B5.jpg

      贴个内核设备树(uboot也是一样的)上来给大家看看:

      &lcd0 {
      	lcd_used            = <1>;
      
      	lcd_driver_name     = "default_lcd";
      	lcd_backlight       = <50>;
      	lcd_if              = <0>;
      
      	lcd_x               = <800>;
      	lcd_y               = <480>;
      	lcd_width           = <108>;
      	lcd_height          = <65>;
      	lcd_dclk_freq       = <22>;
      
      	lcd_pwm_used        = <1>;
      	lcd_pwm_ch          = <9>;
      	lcd_pwm_freq        = <50000>;
      	lcd_pwm_pol         = <0>;
      	lcd_pwm_max_limit   = <255>;
      	
      	lcd_hbp             = <12>;
      	lcd_ht              = <816>;
      	lcd_hspw            = <4>;
      	lcd_vbp             = <12>;
      	lcd_vt              = <496>;
      	lcd_vspw            = <4>;
      
      	lcd_lvds_if         = <0>;
      	lcd_lvds_colordepth = <1>;
      	lcd_lvds_mode       = <0>;
      	lcd_frm             = <0>;
      	lcd_io_phase        = <0x0000>;
      	lcd_gamma_en        = <0>;
      	lcd_bright_curve_en = <0>;
      	lcd_cmap_en         = <0>;
      
      	deu_mode            = <0>;
      	lcdgamma4iep        = <22>;
      	smart_color         = <90>;
      
      	pinctrl-0 = <&rgb18_pins_a>;
      	pinctrl-1 = <&rgb18_pins_b>;
      };
      

      // 记得改uboot的设备树,一定、一定、一定,重要的事情要说三遍!!!

      posted in 编译和烧写问题专区
      S
      shz18877605430
    • 全志T113使用adb,无法连接

      1、开了adb ,启动板子,然后使用命令:cat /sys/devices/platform/soc@3000000/soc@3000000:usbc0@0/usb_device
      出现了截图中的第一个红框的现象。

      2、重新给板子上电,在没有使用上面的命令,然后出现了截图中的第二个红框的现象。

      d314ac74-4650-4875-b78c-25a22b9517e5-image.png

      各位大佬,求解!!!

      posted in 编译和烧写问题专区
      S
      shz18877605430