导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. cjia3254
    3. 帖子
    C
    • 资料
    • 关注 0
    • 粉丝 0
    • 我的积分 1183
    • 主题 8
    • 帖子 18
    • 最佳 3
    • 群组 0

    cjia3254 发布的帖子

    • 回复: t113-S3 init dram fail(TF卡)

      我之前有因为少滤波电容导致内核起不动的现象

      发布在 Linux
      C
      cjia3254
    • 回复: 看了半天,还是不知道v536 怎么配置 wm8978/es8388 这种i2s codec芯片,大佬过来帮我瞅瞅?

      @ubuntu 请问哥的设备树是怎么写的,我现在在用t113外挂wm8960,在调试,i2s其他信号都有就i2s_dout没有。

      发布在 其它全志芯片讨论区
      C
      cjia3254
    • t113 i2s 引脚调试

      正常设置的设备树,但是引脚没有复用成i2s,而是变成了io_disabled
      设备树

      &daudio2 {
          mclk_div    = <0x01>;
          frametype   = <0x00>;
          tdm_config  = <0x01>;
          sign_extend     = <0x00>;
          msb_lsb_first   = <0x00>;
          pcm_lrck_period = <0x80>;
          slot_width_select = <0x20>;
          pinctrl-0       = <&daudio2_pins_a &daudio2_pins_b &daudio2_pins_c>;
          pinctrl-1       = <&daudio2_pins_d>;
          pinctrl-names   = "default", "sleep";
          pinctrl_used    = <0x1>;
          status = "okay";
      };
          daudio2_pins_a: adaudio2@0 {
              /* I2S_PIN: MCLK, BCLK, LRCK */
              pins = "PB7", "PB5", "PB6";
              function = "i2s2";
              drive-strength = <100>;
              bias-disable;
          };
          daudio2_pins_b: adaudio2@1 {
              /* I2S_PIN: DIN0 */
              pins = "PB3";
              function = "i2s2_din";
              drive-strength = <100>;
              bias-disable;
          };
          daudio2_pins_c: adaudio2@2 {
              /* I2S_PIN: DOUT0 */
              pins = "PB4";
              function = "i2s2_dout";
              drive-strength = <100>;
              bias-disable;
          };
          daudio2_pins_d: adaudio2_sleep@0 {
              pins = "PB7", "PB6", "PB5", "PB4", "PB3";
              function = "io_disabled";
              drive-strength = <100>;
              bias-disable;
          };
      

      cat /sys/kernel/debug/pinctrl/2000000.pinctrl/pinmux-pins

      pin 35 (PB3): device 2034000.daudio function io_disabled group PB3
      pin 36 (PB4): device 2034000.daudio function io_disabled group PB4
      pin 37 (PB5): device 2034000.daudio function io_disabled group PB5
      pin 38 (PB6): device 2034000.daudio function io_disabled group PB6
      pin 39 (PB7): device 2034000.daudio function io_disabled group PB7
      

      cat /sys/kernel/debug/pinctrl/pinctrl-handles
      从这里可以看出2034000.daudio current state: sleep,状态是sleep。

      device: 2034000.daudio current state: sleep
        state: default
          type: MUX_GROUP controller 2000000.pinctrl group: PB7 (7) function: i2s2 (22)
          type: CONFIGS_GROUP controller 2000000.pinctrl group PB7 (7)config 00002809
      config 00000001
          type: MUX_GROUP controller 2000000.pinctrl group: PB5 (5) function: i2s2 (22)
          type: CONFIGS_GROUP controller 2000000.pinctrl group PB5 (5)config 00002809
      config 00000001
          type: MUX_GROUP controller 2000000.pinctrl group: PB6 (6) function: i2s2 (22)
          type: CONFIGS_GROUP controller 2000000.pinctrl group PB6 (6)config 00002809
      config 00000001
          type: MUX_GROUP controller 2000000.pinctrl group: PB3 (3) function: i2s2_din (14)
          type: CONFIGS_GROUP controller 2000000.pinctrl group PB3 (3)config 00002809
      config 00000001
          type: MUX_GROUP controller 2000000.pinctrl group: PB4 (4) function: i2s2_dout (13)
          type: CONFIGS_GROUP controller 2000000.pinctrl group PB4 (4)config 00002809
      config 00000001
        state: sleep
          type: MUX_GROUP controller 2000000.pinctrl group: PB7 (7) function: io_disabled (11)
          type: CONFIGS_GROUP controller 2000000.pinctrl group PB7 (7)config 00002809
      config 00000001
          type: MUX_GROUP controller 2000000.pinctrl group: PB6 (6) function: io_disabled (11)
          type: CONFIGS_GROUP controller 2000000.pinctrl group PB6 (6)config 00002809
      config 00000001
          type: MUX_GROUP controller 2000000.pinctrl group: PB5 (5) function: io_disabled (11)
          type: CONFIGS_GROUP controller 2000000.pinctrl group PB5 (5)config 00002809
      config 00000001
          type: MUX_GROUP controller 2000000.pinctrl group: PB4 (4) function: io_disabled (11)
          type: CONFIGS_GROUP controller 2000000.pinctrl group PB4 (4)config 00002809
      config 00000001
          type: MUX_GROUP controller 2000000.pinctrl group: PB3 (3) function: io_disabled (11)
          type: CONFIGS_GROUP controller 2000000.pinctrl group PB3 (3)config 00002809
      config 00000001
      

      但是在日志中未见明显的引脚冲突错误

      [    0.000000] Booting Linux on physical CPU 0x0
      [    0.000000] Linux version 5.4.61 (cjia@0652cdfa7734) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #47 SMP PREEMPT Sun Apr 21 12:05:33 UTC 2024
      [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
      [    0.000000] CPU: div instructions available: patching division code
      [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
      [    0.000000] OF: fdt: Machine model: sun8iw20
      [    0.000000] printk: bootconsole [earlycon0] enabled
      [    0.000000] Memory policy: Data cache writealloc
      [    0.000000] cma: Reserved 8 MiB at 0x47800000
      [    0.000000] On node 0 totalpages: 32768
      [    0.000000]   Normal zone: 256 pages used for memmap
      [    0.000000]   Normal zone: 0 pages reserved
      [    0.000000]   Normal zone: 32768 pages, LIFO batch:7
      [    0.000000] psci: probing for conduit method from DT.
      [    0.000000] psci: PSCIv1.0 detected in firmware.
      [    0.000000] psci: Using standard PSCI v0.2 function IDs
      [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
      [    0.000000] psci: SMC Calling Convention v1.0
      [    0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440
      [    0.000000] pcpu-alloc: s30348 r8192 d22900 u61440 alloc=15*4096
      [    0.000000] pcpu-alloc: [0] 0 [0] 1 
      [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
      [    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500400 clk_ignore_unused initcall_debug=0 console=ttyS1,115200 loglevel=8 root=/dev/mmcblk0p5 init=/pseudo_init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:private@mmcblk0p6:rootfs_data@mmcblk0p7:UDISK@mmcblk0p8 cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun8iw20p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.07-ge987def5-dirty(04/17/2024-10:02:06) androidboot.dramsize=128 
      [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
      [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
      [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
      [    0.000000] Memory: 108668K/131072K available (6144K kernel code, 245K rwdata, 1548K rodata, 1024K init, 1128K bss, 14212K reserved, 8192K cma-reserved)
      [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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 10 jiffies.
      [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
      [    0.000000] random: get_random_bytes called from start_kernel+0x26c/0x3ec with crng_init=0
      [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
      [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
      [    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
      [    0.008007] Switching to timer-based delay loop, resolution 41ns
      [    0.014183] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
      [    0.023870] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
      [    0.034235] pid_max: default: 32768 minimum: 301
      [    0.038977] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.046308] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.054621] CPU: Testing write buffer coherency: ok
      [    0.059825] /cpus/cpu@0 missing clock-frequency property
      [    0.065141] /cpus/cpu@1 missing clock-frequency property
      [    0.070490] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
      [    0.076649] Setting up static identity map for 0x40100000 - 0x40100060
      [    0.083317] rcu: Hierarchical SRCU implementation.
      [    0.088521] smp: Bringing up secondary CPUs ...
      [    0.094147] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
      [    0.094264] smp: Brought up 1 node, 2 CPUs
      [    0.104059] SMP: Total of 2 processors activated (96.00 BogoMIPS).
      [    0.110228] CPU: All CPU(s) started in SVC mode.
      [    0.115317] devtmpfs: initialized
      [    0.129793] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
      [    0.137896] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      [    0.147757] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
      [    0.154992] pinctrl core: initialized pinctrl subsystem
      [    0.161158] NET: Registered protocol family 16
      [    0.167020] DMA: preallocated 256 KiB pool for atomic coherent allocations
      [    0.200794] rtc_ccu: sunxi ccu init OK
      [    0.206748] ccu: sunxi ccu init OK
      [    0.210545] r_ccu: sunxi ccu init OK
      [    0.231617] sun6i-dma 3002000.dma-controller: sunxi dma probed
      [    0.239229] iommu: Default domain type: Translated 
      [    0.244264] sunxi iommu: irq = 24
      [    0.248461] SCSI subsystem initialized
      [    0.252459] usbcore: registered new interface driver usbfs
      [    0.258019] usbcore: registered new interface driver hub
      [    0.263429] usbcore: registered new device driver usb
      [    0.269267] Advanced Linux Sound Architecture Driver Initialized.
      [    0.275906] Bluetooth: Core ver 2.22
      [    0.279549] NET: Registered protocol family 31
      [    0.283986] Bluetooth: HCI device and connection manager initialized
      [    0.290392] Bluetooth: HCI socket layer initialized
      [    0.295266] Bluetooth: L2CAP socket layer initialized
      [    0.300341] Bluetooth: SCO socket layer initialized
      [    0.305462] pwm module init!
      [    0.309497] g2d 5410000.g2d: Adding to iommu group 0
      [    0.314775] G2D: rcq version initialized.major:252
      [    0.320333] clocksource: Switched to clocksource arch_sys_counter
      [    0.334827] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
      [    0.344056] NET: Registered protocol family 2
      [    0.348962] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
      [    0.357401] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.365099] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
      [    0.372161] TCP: Hash tables configured (established 1024 bind 1024)
      [    0.378601] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.385182] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.392369] NET: Registered protocol family 1
      [    0.397642] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
      [    0.408002] spi spi1: spi1 supply spi not found, using dummy regulator
      [    0.414733] sunxi_spi_resource_get()2438 - [spi1] SPI MASTER MODE
      [    0.420880] sunxi_spi_resource_get()2476 - Failed to get sample mode
      [    0.427233] sunxi_spi_resource_get()2481 - Failed to get sample delay
      [    0.433679] sunxi_spi_resource_get()2485 - sample_mode:-1431633921 sample_delay:-1431633921
      [    0.442091] sunxi_spi_clk_init()2527 - [spi1] mclk 100000000
      [    0.448444] sunxi_spi_probe()2978 - [spi1]: driver probe succeed, base c881f000, irq 39
      [    0.457969] workingset: timestamp_bits=30 max_order=15 bucket_order=0
      [    0.469357] squashfs: version 4.0 (2009/01/31) Phillip Lougher
      [    0.475398] ntfs: driver 2.1.32 [Flags: R/W].
      [    0.508652] io scheduler mq-deadline registered
      [    0.513224] io scheduler kyber registered
      [    0.519065] sunxi_sid_init()783 - insmod ok
      [    0.524484] uart uart1: uart1 supply uart not found, using dummy regulator
      [    0.531682] uart1: ttyS1 at MMIO 0x2500400 (irq = 34, base_baud = 1500000) is a SUNXI
      [    0.539531] sw_console_setup()1807 - console setup baud 115200 parity n bits 8, flow n
      [    0.547520] printk: console [ttyS1] enabled
      [    0.556466] printk: bootconsole [earlycon0] disabled
      [    0.567753] misc dump reg init
      [    0.572326] dma-buf: Running sanitycheck
      [    0.576727] dma-buf: Running dma_fence
      [    0.580949] sizeof(dma_fence)=48
      [    0.584663] dma-buf: Running dma_fence/sanitycheck
      [    0.590050] dma-buf: Running dma_fence/test_signaling
      [    0.595731] dma-buf: Running dma_fence/test_add_callback
      [    0.601703] dma-buf: Running dma_fence/test_late_add_callback
      [    0.608146] dma-buf: Running dma_fence/test_rm_callback
      [    0.614014] dma-buf: Running dma_fence/test_late_rm_callback
      [    0.620374] dma-buf: Running dma_fence/test_status
      [    0.625746] dma-buf: Running dma_fence/test_error
      [    0.631029] dma-buf: Running dma_fence/test_wait
      [    0.636208] dma-buf: Running dma_fence/test_wait_timeout
      [    0.680343] dma-buf: Running dma_fence/test_stub
      [    0.685539] dma-buf: Running dma_fence/race_signal_callback
      [    0.760351] thread_signal_callback[0] completed 36788 passes, 28 misses
      [    0.767781] thread_signal_callback[1] completed 36797 passes, 37 misses
      [    0.840369] thread_signal_callback[0] completed 41827 passes, 41825 misses
      [    0.848090] thread_signal_callback[1] completed 41860 passes, 41860 misses
      [    0.856578] libphy: Fixed MDIO Bus: probed
      [    0.862342] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
      [    0.873810] gmac-power0: NULL
      [    0.877139] gmac-power1: NULL
      [    0.880513] gmac-power2: NULL
      [    0.884824] Failed to alloc md5
      [    0.888357] eth0: Use random mac address
      [    0.893026] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      [    0.900371] sunxi-ehci: EHCI SUNXI driver
      [    0.905253] get ehci0-controller wakeup-source is fail.
      [    0.911237] sunxi ehci0-controller don't init wakeup source
      [    0.917493] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0b4fe98, 0x:c8825000, irq_no:36
      [    0.929509] [sunxi-ehci0]: Not init ehci0
      [    0.934249] get ehci1-controller wakeup-source is fail.
      [    0.940182] sunxi ehci1-controller don't init wakeup source
      [    0.946461] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0b503b8, 0x:c8829000, irq_no:38
      [    0.958689] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
      [    0.970960] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
      [    0.978214] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
      [    0.988334] sunxi-ehci 4200000.ehci1-controller: irq 56, io mem 0x04200000
      [    1.020348] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
      [    1.028166] sunxi-ehci 4200000.ehci1-controller: ehci_irq: highspeed device connect
      [    1.037607] hub 1-0:1.0: USB hub found
      [    1.041889] hub 1-0:1.0: 1 port detected
      [    1.046855] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      [    1.053854] sunxi-ohci: OHCI SUNXI driver
      [    1.058766] get ohci0-controller wakeup-source is fail.
      [    1.064761] sunxi ohci0-controller don't init wakeup source
      [    1.071036] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0b50128
      [    1.080709] [sunxi-ohci0]: Not init ohci0
      [    1.085440] get ohci1-controller wakeup-source is fail.
      [    1.091411] sunxi ohci1-controller don't init wakeup source
      [    1.097665] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0b50648
      [    1.107567] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
      [    1.119819] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
      [    1.127118] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
      [    1.137019] sunxi-ohci 4200400.ohci1-controller: irq 57, io mem 0x04200400
      [    1.215168] hub 2-0:1.0: USB hub found
      [    1.219412] hub 2-0:1.0: 1 port detected
      [    1.224512] i2c /dev entries driver
      [    1.228501] sunxi cedar version 1.1
      [    1.232615] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
      [    1.238940] VE: sunxi_cedar_probe power-domain init!!!
      [    1.244730] VE: install start!!!
      [    1.244730] 
      [    1.250240] VE: cedar-ve the get irq is 40
      [    1.250240] 
      [    1.256690] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
      [    1.256690] 
      [    1.265999] VE: install end!!!
      [    1.265999] 
      [    1.271088] VE: sunxi_cedar_probe
      [    1.275026] Bluetooth: HCI UART driver ver 2.3
      [    1.280009] Bluetooth: HCI UART protocol H4 registered
      [    1.285789] Bluetooth: HCI UART protocol BCSP registered
      [    1.292061] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
      [    1.300801] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
      [    1.310701] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
      [    1.316897] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
      [    1.323268] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
      [    1.329712] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
      [    1.336183] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
      [    1.342739] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
      [    1.349280] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
      [    1.355832] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
      [    1.363125] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.374316] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
      [    1.394477] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.410361] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
      [    1.418722] sunxi-mmc 4020000.sdmmc: detmode:manually by software
      [    1.425596] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.438022] exFAT: Version 1.3.0
      [    1.442973] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.443952] sunxi-spdif 2036000.spdif: request pinctrl handle for audio failed
      [    1.462740] sunxi-spdif 2036000.spdif: [sunxi_spdif_dev_probe] failed
      [    1.470065] sunxi-spdif: probe of 2036000.spdif failed with error -22
      [    1.477325] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.477816] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
      [    1.500239] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
      [    1.501278] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.512222] sunxi-daudio 2034000.daudio: regulator missing or invalid
      [    1.530557] [AUDIOCODEC][sunxi_codec_parse_params][2437]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
      [    1.530557] 
      [    1.547758] [AUDIOCODEC][sunxi_codec_parse_params][2473]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
      [    1.559078] [AUDIOCODEC][sunxi_internal_codec_probe][2634]:codec probe finished
      [    1.568244] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
      [    1.578076] [SNDCODEC][sunxi_card_init][583]:card init finished
      [    1.585233] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
      [    1.596169] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
      [    1.608114] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
      [    1.615676] mmc0: host does not support reading read-only switch, assuming write-enable
      [    1.624723] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      [    1.624818] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      [    1.636264] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
      [    1.648974] NET: Registered protocol family 10
      [    1.660364] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
      [    1.661445] Segment Routing with IPv6
      [    1.672251] mmc0: new high speed SDHC card at address 59b4
      [    1.676355] NET: Registered protocol family 17
      [    1.683345] mmcblk0: mmc0:59b4 NCard 14.9 GiB 
      [    1.687580] Bluetooth: RFCOMM TTY layer initialized
      [    1.697918] Bluetooth: RFCOMM socket layer initialized
      [    1.698117] hub 1-1:1.0: USB hub found
      [    1.703744] Bluetooth: RFCOMM ver 1.11
      [    1.712368] hub 1-1:1.0: 4 ports detected
      [    1.712824] Registering SWP/SWPB emulation handler
      [    1.723151]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
      [    1.737265] sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator
      [    1.747599] pca953x 2-0039: 2-0039 supply vcc not found, using dummy regulator
      [    1.755935] pca953x 2-0039: using no AI
      [    1.763135] sunxi-i2c sunxi-i2c2: probe success
      [    1.769164] sunxi-spdif 2036000.spdif: request pinctrl handle for audio failed
      [    1.777322] sunxi-spdif 2036000.spdif: [sunxi_spdif_dev_probe] failed
      [    1.784657] sunxi-spdif: probe of 2036000.spdif failed with error -22
      [    1.792820] debugfs: Directory '2031000.dmic' with parent 'snddmic' already present!
      [    1.801894] sunxi-audio-card 2031060.sounddmic: dmic-hifi <-> 2031000.dmic mapping ok
      [    1.812024] debugfs: Directory '2034000.daudio' with parent 'wlf,wm8960' already present!
      [    1.821904] sunxi-audio-card 20340a0.sounddaudio2: wm8960-hifi <-> 2034000.daudio mapping ok
      [    1.952737] otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator
      [    1.966586] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
      [    1.976323] clk: Not disabling unused clocks
      [    1.976334] ALSA device list:
      [    1.981158] cfg80211: failed to load regulatory.db
      [    1.984485]   #0: audiocodec
      [    1.993073]   #1: snddmic
      [    1.996019]   #2: wlf,wm8960
      [    2.005941] VFS: Mounted root (squashfs filesystem) readonly on device 179:5.
      [    2.017190] devtmpfs: mounted
      [    2.022442] Freeing unused kernel memory: 1024K
      [    2.050488] Run /pseudo_init as init process
      [    2.060383] usb 1-1.2: new high-speed USB device number 3 using sunxi-ehci
      [    2.337780] random: fast init done
      [    2.427630] EXT4-fs: Warning: mounting with data=journal disables delayed allocation and O_DIRECT support!
      [    2.448452] EXT4-fs (mmcblk0p7): mounted filesystem with journalled data mode. Opts: data=journal
      [    2.858833] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
      [    2.945224] SQUASHFS error: zlib decompression failed, data probably corrupt
      [    2.953249] SQUASHFS error: squashfs_read_data failed to read block 0x24104a7
      [    2.961277] SQUASHFS error: Unable to read metadata cache entry [24104a7]
      [    2.968873] SQUASHFS error: Unable to read inode 0x89f117a
      [    2.993472] SQUASHFS error: Unable to read metadata cache entry [24104a7]
      [    3.007146] SQUASHFS error: Unable to read inode 0x89f13af
      [    3.025426] SQUASHFS error: Unable to read metadata cache entry [24104a7]
      [    3.042998] SQUASHFS error: Unable to read inode 0x89f13af
      [    3.045080] file system registered
      [    3.069565] SQUASHFS error: Unable to read metadata cache entry [24104a7]
      [    3.074896] configfs-gadget 4100000.udc-controller: failed to start g1: -19
      [    3.077318] SQUASHFS error: Unable to read inode 0x89f17de
      [    3.092658] SQUASHFS error: Unable to read metadata cache entry [24104a7]
      [    3.093901] SQUASHFS error: Unable to read metadata cache entry [24104a7]
      [    3.102445] SQUASHFS error: Unable to read inode 0x89f0b4c
      [    3.109391] SQUASHFS error: Unable to read inode 0x89f1b71
      [    3.125091] SQUASHFS error: Unable to read metadata cache entry [24104a7]
      [    3.132738] SQUASHFS error: Unable to read inode 0x89f1b71
      [    5.250616] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator
      [    5.266593] read descriptors
      [    5.269841] read strings
      [    5.480640] android_work: sent uevent USB_STATE=CONNECTED
      [    5.510482] configfs-gadget gadget: high-speed config #1: c
      [    5.516812] android_work: sent uevent USB_STATE=CONFIGURED
      
      发布在 其它全志芯片讨论区
      C
      cjia3254
    • 回复: t113 tina 卡死在rc_mount_filesystem

      @daizebin
      不过有时候还是会卡在fsck.ext4,修复文件系统上

      e2fsck 1.46.4 (18-Aug-2021)
      ext2fs_open2: Bad magic number in super-block
      /usr/sbin/fsck.ext4: Superblock invalid, trying backup blocks...
      /dev/mmcblk0p8 was not cleanly unmounted, check forced.
      Pass 1: Checking inodes, blocks, and sizes
      
      发布在 其它全志芯片讨论区
      C
      cjia3254
    • t113 tina sdb push 内核崩溃

      现状是小文件可以正常传输,测试的是7m的音频文件,没有问题
      但是一旦文件大起来,就无法传输了,测试56m的wav文件就无法传输了,会卡在8%或14%。

      日志

      [    0.000000] Booting Linux on physical CPU 0x0
      [    0.000000] Linux version 5.4.61 (cjia@0652cdfa7734) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #17 SMP PREEMPT Thu Apr 18 01:06:14 
      [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
      [    0.000000] CPU: div instructions available: patching division code
      [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
      [    0.000000] OF: fdt: Machine model: sun8iw20
      [    0.000000] printk: bootconsole [earlycon0] enabled
      [    0.000000] Memory policy: Data cache writealloc
      [    0.000000] cma: Reserved 8 MiB at 0x47800000
      [    0.000000] On node 0 totalpages: 32768
      [    0.000000]   Normal zone: 256 pages used for memmap
      [    0.000000]   Normal zone: 0 pages reserved
      [    0.000000]   Normal zone: 32768 pages, LIFO batch:7
      [    0.000000] psci: probing for conduit method from DT.
      [    0.000000] psci: PSCIv1.0 detected in firmware.
      [    0.000000] psci: Using standard PSCI v0.2 function IDs
      [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
      [    0.000000] psci: SMC Calling Convention v1.0
      [    0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440
      [    0.000000] pcpu-alloc: s30348 r8192 d22900 u61440 alloc=15*4096
      [    0.000000] pcpu-alloc: [0] 0 [0] 1 
      [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
      [    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500400 clk_ignore_unused initcall_debug=0 console=ttyS1,115200 loglevel=8 root=/dev/mmcblk0p5 init=/pseudo_init partitions=boot-resource@mmcblk0mcblk0p5:private@mmcblk0p6:rootfs_data@mmcblk0p7:UDISK@mmcblk0p8 cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun8iw20p1 boot_type=1 androidboot.boo24-10:02:06) androidboot.dramsize=128 
      [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
      [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
      [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
      [    0.000000] Memory: 108672K/131072K available (6144K kernel code, 241K rwdata, 1520K rodata, 1024K init, 1128K bss, 14208K reserved, 8192K cma-reserved)
      [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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 10 jiffies.
      [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
      [    0.000000] random: get_random_bytes called from start_kernel+0x26c/0x3ec with crng_init=0
      [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
      [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
      [    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
      [    0.008016] Switching to timer-based delay loop, resolution 41ns
      [    0.014175] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
      [    0.023879] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
      [    0.034252] pid_max: default: 32768 minimum: 301
      [    0.038999] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.046332] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.054642] CPU: Testing write buffer coherency: ok
      [    0.059851] /cpus/cpu@0 missing clock-frequency property
      [    0.065185] /cpus/cpu@1 missing clock-frequency property
      [    0.070516] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
      [    0.076675] Setting up static identity map for 0x40100000 - 0x40100060
      [    0.083342] rcu: Hierarchical SRCU implementation.
      [    0.088551] smp: Bringing up secondary CPUs ...
      [    0.094180] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
      [    0.094297] smp: Brought up 1 node, 2 CPUs
      [    0.104093] SMP: Total of 2 processors activated (96.00 BogoMIPS).
      [    0.110271] CPU: All CPU(s) started in SVC mode.
      [    0.115349] devtmpfs: initialized
      [    0.129762] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
      [    0.137902] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      [    0.147773] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
      [    0.154987] pinctrl core: initialized pinctrl subsystem
      [    0.161138] NET: Registered protocol family 16
      [    0.167017] DMA: preallocated 256 KiB pool for atomic coherent allocations
      [    0.200732] rtc_ccu: sunxi ccu init OK
      [    0.206740] ccu: sunxi ccu init OK
      [    0.210544] r_ccu: sunxi ccu init OK
      [    0.231450] sun6i-dma 3002000.dma-controller: sunxi dma probed
      [    0.238885] iommu: Default domain type: Translated 
      [    0.243922] sunxi iommu: irq = 24
      [    0.248118] SCSI subsystem initialized
      [    0.252067] usbcore: registered new interface driver usbfs
      [    0.257594] usbcore: registered new interface driver hub
      [    0.263015] usbcore: registered new device driver usb
      [    0.268831] Advanced Linux Sound Architecture Driver Initialized.
      [    0.275637] Bluetooth: Core ver 2.22
      [    0.279261] NET: Registered protocol family 31
      [    0.283724] Bluetooth: HCI device and connection manager initialized
      [    0.290121] Bluetooth: HCI socket layer initialized
      [    0.295004] Bluetooth: L2CAP socket layer initialized
      [    0.300071] Bluetooth: SCO socket layer initialized
      [    0.305203] pwm module init!
      [    0.309233] g2d 5410000.g2d: Adding to iommu group 0
      [    0.314509] G2D: rcq version initialized.major:252
      [    0.320044] clocksource: Switched to clocksource arch_sys_counter
      [    0.334460] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
      [    0.343709] NET: Registered protocol family 2
      [    0.348611] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
      [    0.357028] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.364710] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
      [    0.371806] TCP: Hash tables configured (established 1024 bind 1024)
      [    0.378264] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.384828] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.392001] NET: Registered protocol family 1
      [    0.397267] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
      [    0.407630] spi spi1: spi1 supply spi not found, using dummy regulator
      [    0.414370] sunxi_spi_resource_get()2438 - [spi1] SPI MASTER MODE
      [    0.420535] sunxi_spi_resource_get()2476 - Failed to get sample mode
      [    0.426889] sunxi_spi_resource_get()2481 - Failed to get sample delay
      [    0.433336] sunxi_spi_resource_get()2485 - sample_mode:-1431633921 sample_delay:-1431633921
      [    0.441772] sunxi_spi_clk_init()2527 - [spi1] mclk 100000000
      [    0.448151] sunxi_spi_probe()2978 - [spi1]: driver probe succeed, base c881f000, irq 39
      [    0.457694] workingset: timestamp_bits=30 max_order=15 bucket_order=0
      [    0.469029] squashfs: version 4.0 (2009/01/31) Phillip Lougher
      [    0.475081] ntfs: driver 2.1.32 [Flags: R/W].
      [    0.508267] io scheduler mq-deadline registered
      [    0.512831] io scheduler kyber registered
      [    0.518727] sunxi_sid_init()783 - insmod ok
      [    0.524104] uart uart1: uart1 supply uart not found, using dummy regulator
      [    0.531282] uart1: ttyS1 at MMIO 0x2500400 (irq = 34, base_baud = 1500000) is a SUNXI
      [    0.539134] sw_console_setup()1807 - console setup baud 115200 parity n bits 8, flow n
      �[    0.547123] printk: console [ttyS1] enabled
      [    0.547123] printk: console [ttyS1] enabled
      [    0.556050] printk: bootconsole [earlycon0] disabled
      [    0.556050] printk: bootconsole [earlycon0] disabled
      [    0.567342] misc dump reg init
      [    0.571931] dma-buf: Running sanitycheck
      [    0.576331] dma-buf: Running dma_fence
      [    0.580554] sizeof(dma_fence)=48
      [    0.584265] dma-buf: Running dma_fence/sanitycheck
      [    0.589649] dma-buf: Running dma_fence/test_signaling
      [    0.595329] dma-buf: Running dma_fence/test_add_callback
      [    0.601300] dma-buf: Running dma_fence/test_late_add_callback
      [    0.607744] dma-buf: Running dma_fence/test_rm_callback
      [    0.613612] dma-buf: Running dma_fence/test_late_rm_callback
      [    0.619959] dma-buf: Running dma_fence/test_status
      [    0.625343] dma-buf: Running dma_fence/test_error
      [    0.630626] dma-buf: Running dma_fence/test_wait
      [    0.635805] dma-buf: Running dma_fence/test_wait_timeout
      [    0.680054] dma-buf: Running dma_fence/test_stub
      [    0.685250] dma-buf: Running dma_fence/race_signal_callback
      [    0.760071] thread_signal_callback[0] completed 36525 passes, 66 misses
      [    0.767520] thread_signal_callback[1] completed 36531 passes, 73 misses
      [    0.840054] thread_signal_callback[0] completed 42309 passes, 42308 misses
      [    0.847789] thread_signal_callback[1] completed 42332 passes, 42332 misses
      [    0.856273] libphy: Fixed MDIO Bus: probed
      [    0.861999] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
      [    0.873477] gmac-power0: NULL
      [    0.876805] gmac-power1: NULL
      [    0.880159] gmac-power2: NULL
      [    0.884488] Failed to alloc md5
      [    0.888019] eth0: Use random mac address
      [    0.892680] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      [    0.900003] sunxi-ehci: EHCI SUNXI driver
      [    0.904816] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      [    0.911788] sunxi-ohci: OHCI SUNXI driver
      [    0.916680] i2c /dev entries driver
      [    0.920688] sunxi cedar version 1.1
      [    0.924741] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
      [    0.931072] VE: sunxi_cedar_probe power-domain init!!!
      [    0.936838] VE: install start!!!
      [    0.936838] 
      [    0.942381] VE: cedar-ve the get irq is 40
      [    0.942381] 
      [    0.948808] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
      [    0.948808] 
      [    0.958112] VE: install end!!!
      [    0.958112] 
      [    0.963253] VE: sunxi_cedar_probe
      [    0.967184] Bluetooth: HCI UART driver ver 2.3
      [    0.972194] Bluetooth: HCI UART protocol H4 registered
      [    0.977955] Bluetooth: HCI UART protocol BCSP registered
      [    0.984194] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
      [    0.992899] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
      [    1.002776] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
      [    1.008969] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
      [    1.015337] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
      [    1.021794] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
      [    1.028237] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
      [    1.034789] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
      [    1.041341] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
      [    1.047881] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
      [    1.055180] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.066373] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
      [    1.086528] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.110777] sunxi-mmc 4020000.sdmmc: detmode:manually by software
      [    1.117632] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.130090] exFAT: Version 1.3.0
      [    1.135684] sunxi-spdif 2036000.spdif: request pinctrl handle for audio failed
      [    1.143856] sunxi-spdif 2036000.spdif: [sunxi_spdif_dev_probe] failed
      [    1.151231] sunxi-spdif: probe of 2036000.spdif failed with error -22
      [    1.152409] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.158962] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
      [    1.181426] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
      [    1.192840] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.193491] sunxi-daudio 2034000.daudio: regulator missing or invalid
      [    1.212125] [AUDIOCODEC][sunxi_codec_parse_params][2437]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
      [    1.212125] 
      [    1.213029] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.229320] [AUDIOCODEC][sunxi_codec_parse_params][2473]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
      [    1.252322] [AUDIOCODEC][sunxi_internal_codec_probe][2634]:codec probe finished
      [    1.261403] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
      [    1.271240] [SNDCODEC][sunxi_card_init][583]:card init finished
      [    1.278376] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
      [    1.289327] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
      [    1.301315] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
      [    1.309713] NET: Registered protocol family 10
      [    1.315819] Segment Routing with IPv6
      [    1.319965] mmc0: host does not support reading read-only switch, assuming write-enable
      [    1.320068] NET: Registered protocol family 17
      [    1.333963] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      [    1.333969] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
      [    1.340192] Bluetooth: RFCOMM TTY layer initialized
      [    1.345602] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      [    1.352903] Bluetooth: RFCOMM socket layer initialized
      [    1.375807] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
      [    1.375823] Bluetooth: RFCOMM ver 1.11
      [    1.387585] mmc0: new high speed SDHC card at address 5048
      [    1.392267] Registering SWP/SWPB emulation handler
      [    1.398816] mmcblk0: mmc0:5048 SD32G 29.7 GiB 
      [    1.413397]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
      [    1.418705] sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator
      [    1.428832] sunxi-i2c sunxi-i2c2: probe success
      [    1.435185] sunxi-spdif 2036000.spdif: request pinctrl handle for audio failed
      [    1.443335] sunxi-spdif 2036000.spdif: [sunxi_spdif_dev_probe] failed
      [    1.450679] sunxi-spdif: probe of 2036000.spdif failed with error -22
      [    1.458345] sun8iw20-pinctrl 2000000.pinctrl: pin PB3 already requested by 2034000.daudio; cannot claim for 2000000.pinctrl:35
      [    1.471159] sun8iw20-pinctrl 2000000.pinctrl: pin-35 (2000000.pinctrl:35) status -22
      [    1.479863] reg-fixed-voltage: probe of usb1-vbus failed with error -22
      [    1.487947] debugfs: Directory '2031000.dmic' with parent 'snddmic' already present!
      [    1.497012] sunxi-audio-card 2031060.sounddmic: dmic-hifi <-> 2031000.dmic mapping ok
      [    1.508172] otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator
      [    1.519575] sun8iw20-pinctrl 2000000.pinctrl: pin PB6 already requested by 2034000.daudio; cannot claim for 2000000.pinctrl:38
      [    1.532379] sun8iw20-pinctrl 2000000.pinctrl: pin-38 (2000000.pinctrl:38) status -22
      [    1.543759] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
      [    1.550098] clk: Not disabling unused clocks
      [    1.553476] cfg80211: failed to load regulatory.db
      [    1.558212] ALSA device list:
      [    1.566929]   #0: audiocodec
      [    1.570170]   #1: snddmic
      [    1.581453] VFS: Mounted root (squashfs filesystem) readonly on device 179:5.
      [    1.592554] devtmpfs: mounted
      [    1.597775] Freeing unused kernel memory: 1024K
      [    1.630247] Run /pseudo_init as init process
      mount: mounting none on /dev failed: Resource busy
      [    1.973849] EXT4-fs: Warning: mounting with data=journal disables delayed allocation and O_DIRECT support!
      [    1.990718] EXT4-fs (mmcblk0p7): mounted filesystem with journalled data mode. Opts: data=journal
      Didn't found ubi volume "env"
      Cannot open /dev/ubi0: No such file or directory
      Didn't found ubi volume "env-redund"
      Cannot open /dev/ubi0: No such file or directory
      can't run '/etc/preinit': No such file or directory
      mount: mounting proc on /proc failed: 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-----
      ------- ext4 ---------
      e2fsck 1.46.4 (18-Aug-2021)
      /dev/mmcblk0p8: recovering journal
      Setting free inodes count to 1909428 (was 1909429)
      Setting free blocks count to 7471695 (was 7471727)
      /dev/mmcblk0p8: clean, 12/1909440 files, 163933/7635628 blocks
      ------- /usr/sbin/fsck.ext4 -v  -y /dev/mmcblk0p8 ---------
      [    2.336855] random: fast init done
      [    2.356488] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
      ------run rc.modules file-----
      ------run rc.final file-----
      Error relocating /usr/bin/amixer: snd_ctl_elem_info_is_writable@snd_ctl_card_info_get_id: symbol not found
      
      
      BusyBox v1.27.2 () built-in shell (ash)
      
      ------run profile file-----
       _____  _              __     _
      |_   _||_| ___  _ _   |  |   |_| ___  _ _  _ _
        | |   _ |   ||   |  |  |__ | ||   || | ||_'_|
        | |  | || | || _ |  |_____||_||_|_||___||_,_|
        |_|  |_||_|_||_|_|  Tina is Based on OpenWrt!
       ----------------------------------------------
       Tina Linux (Neptune, 61CC0487)
       ----------------------------------------------
      Mon Feb  6 00:00:00 GMT 2023
      nodev   debugfs
      root@TinaLinux:/# [    2.523080] file system registered
      [    2.540667] configfs-gadget 4100000.udc-controller: failed to start g1: -19
      sh: write error: No such device
      [    3.640337] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator
      [    3.656313] read descriptors
      [    3.659560] read strings
      [    3.869386] android_work: sent uevent USB_STATE=CONNECTED
      [    3.894803] configfs-gadget gadget: high-speed config #1: c
      [    3.901127] android_work: sent uevent USB_STATE=CONFIGURED
      
      root@TinaLinux:/# 
      root@TinaLinux:/# [  318.002516] 8<--- cut here ---
      [  318.005954] Unable to handle kernel paging request at virtual address fef8fe56
      [  318.014054] pgd = (ptrval)
      [  318.017085] [fef8fe56] *pgd=00000000
      [  318.021096] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
      [  318.027051] Modules linked in:
      [  318.030478] CPU: 0 PID: 190 Comm: adbd Not tainted 5.4.61 #17
      [  318.036919] Hardware name: Generic DT based system
      [  318.042301] PC is at kmem_cache_alloc+0xfc/0x160
      [  318.047482] LR is at slab_pre_alloc_hook+0x18/0x2c
      [  318.052852] pc : [<c01c70d0>]    lr : [<c01c51c0>]    psr: a0000013
      [  318.059882] sp : c6585c90  ip : 00000000  fp : c77dd920
      [  318.065738] r10: 00000392  r9 : c6585c90  r8 : c01fca88
      [  318.071596] r7 : 00408d40  r6 : c6584000  r5 : c7003e00  r4 : fef8fe56
      [  318.078919] r3 : 00000000  r2 : 06d7f000  r1 : 00000392  r0 : c7003e00
      [  318.086240] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
      [  318.094242] Control: 10c5387d  Table: 4659006a  DAC: 00000051
      [  318.100684] Process adbd (pid: 190, stack limit = 0x(ptrval))
      [  318.107127] Stack: (0xc6585c90 to 0xc6586000)
      [  318.112015] 5c80:                                     00000000 00000000 00000000 00408c40
      [  318.121191] 5ca0: ffffffff ffffffff 00001000 c01fca88 00000000 00000000 00000000 c01fcbf4
      [  318.130358] 5cc0: c77dd920 00000000 00000001 c77dd920 00000000 00000000 c77dd920 c6dc9d78
      [  318.139534] 5ce0: 00001000 c6585e04 00000154 c01fcc5c c77dd920 00000000 00000000 c01fcd74
      [  318.148710] 5d00: c77dd920 c01fe8ec c01aae60 a30fff65 c0937b48 c01970b8 00000000 a30fff65
      [  318.157886] 5d20: c02756f8 c6dd9000 c65dc000 00000000 00000c40 c024aae0 c0b48888 c6585e04
      [  318.167063] 5d40: 00000154 a30fff65 00000001 c77dd920 c6dc9d78 c6dc9e78 c6584000 00001000
      [  318.176239] 5d60: c6dd9000 c6585e04 00000154 c01fedd8 00001000 c024aae0 00000000 00000000
      [  318.185415] 5d80: c77dd920 c02502c4 00001000 c024aae0 c6dc9e78 c0250f58 00154000 00000000
      [  318.194592] 5da0: 00155000 00000000 00153000 00000154 00000000 a30fff65 017830a0 00001000
      [  318.203768] 5dc0: c6585ef8 c6dc9e78 00004000 00001000 c655dc00 c070f950 c02500c0 c018e2b4
      [  318.212944] 5de0: 00001000 00000000 c6585e04 c6585e08 00154000 00000000 c6584000 00000000
      [  318.222120] 5e00: 63e0443b c77dd900 00000000 a30fff65 00000000 c7076600 c6585f10 c6585ef8
      [  318.231297] 5e20: 00000000 c655dc00 c6585ef8 00000000 c6dc9e78 c0190740 c6dc9d78 00000004
      [  318.240473] 5e40: 0051417c c018db90 c6585e50 c6c45680 00010000 c6585f10 c6dc9d78 c6585ef8
      [  318.249649] 5e60: 00000000 c6585e9c c6dc9d78 00000004 0051417c c023ffdc 00000000 a30fff65
      [  318.258826] 5e80: c6585ef8 000000b0 c6584000 c64d6800 c6c45680 c6dc9df8 c6585f70 00000000
      [  318.268000] 5ea0: 00000000 00000004 00000000 00000000 c6585ef8 00000000 00000000 a30fff65
      [  318.277176] 5ec0: 00000000 c6584000 c6585f70 c655dc00 00010000 00000000 00010000 00000004
      [  318.286352] 5ee0: 0051417c c01cd2f0 00010000 c6585ef4 0177f0a0 00010000 00000005 00004000
      [  318.295519] 5f00: 0000c000 c6585ef0 00000001 00000000 c655dc00 00000000 00150000 00000000
      [  318.304694] 5f20: 00000000 c6585e9c 00000000 00000000 00000000 00000000 c6585f48 a30fff65
      [  318.313871] 5f40: c655dc00 00010000 00000000 0177f0a0 c6585f70 c01ce690 c655dc00 c6585f70
      [  318.323047] 5f60: c6584000 0177f0a0 c6585f7c c01ce824 00150000 00000000 00000010 c655dc00
      [  318.332223] 5f80: 00000003 a30fff65 b6fef120 00000000 00000000 0052002e 00000004 c0101228
      [  318.341399] 5fa0: c6584000 c0101000 00000000 00000000 00000010 0177f0a0 00010000 00000000
      [  318.350575] 5fc0: 00000000 00000000 0052002e 00000004 00527dac 00527dac 0177f0a0 0051417c
      [  318.359752] 5fe0: b6f1c2b0 b6f1c29c b6fc745c b6fc6968 60000010 00000010 00000000 00000000
      [  318.368931] [<c01c70d0>] (kmem_cache_alloc) from [<c01fca88>] (alloc_buffer_head+0x14/0x9c)
      [  318.378309] [<c01fca88>] (alloc_buffer_head) from [<c01fcbf4>] (alloc_page_buffers+0x4c/0xa0)
      [  318.387877] [<c01fcbf4>] (alloc_page_buffers) from [<c01fcc5c>] (create_empty_buffers+0x14/0xf0)
      [  318.397742] [<c01fcc5c>] (create_empty_buffers) from [<c01fcd74>] (create_page_buffers+0x3c/0x54)
      [  318.407701] [<c01fcd74>] (create_page_buffers) from [<c01fe8ec>] (__block_write_begin_int+0x80/0x54c)
      [  318.418053] [<c01fe8ec>] (__block_write_begin_int) from [<c01fedd8>] (__block_write_begin+0x20/0x28)
      [  318.428306] [<c01fedd8>] (__block_write_begin) from [<c02502c4>] (ext4_da_write_begin+0x204/0x288)
      [  318.438367] [<c02502c4>] (ext4_da_write_begin) from [<c018e2b4>] (generic_perform_write+0xb0/0x1b4)
      [  318.448526] [<c018e2b4>] (generic_perform_write) from [<c0190740>] (__generic_file_write_iter+0x13c/0x160)
      [  318.459368] [<c0190740>] (__generic_file_write_iter) from [<c023ffdc>] (ext4_file_write_iter+0x3d8/0x3e8)
      [  318.470113] [<c023ffdc>] (ext4_file_write_iter) from [<c01cd2f0>] (__vfs_write+0xb0/0xe4)
      [  318.479296] [<c01cd2f0>] (__vfs_write) from [<c01ce690>] (vfs_write+0x98/0xbc)
      [  318.487403] [<c01ce690>] (vfs_write) from [<c01ce824>] (ksys_write+0x70/0xb8)
      [  318.495416] [<c01ce824>] (ksys_write) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
      [  318.504003] Exception stack(0xc6585fa8 to 0xc6585ff0)
      [  318.509669] 5fa0:                   00000000 00000000 00000010 0177f0a0 00010000 00000000
      [  318.518845] 5fc0: 00000000 00000000 0052002e 00000004 00527dac 00527dac 0177f0a0 0051417c
      [  318.528008] 5fe0: b6f1c2b0 b6f1c29c b6fc745c b6fc6968
      [  318.533677] Code: eb11fd86 e1a00004 e8bd87f0 e5953014 (e7940003) 
      [  318.540511] ---[ end trace a5d558ca6731eb3a ]---
      

      分区挂载情况

      root@TinaLinux:/# df -h
      Filesystem                Size      Used Available Use% Mounted on
      /dev/root                36.3M     36.3M         0 100% /rom
      devtmpfs                 53.1M         0     53.1M   0% /dev
      tmpfs                    57.6M         0     57.6M   0% /tmp
      /dev/by-name/rootfs_data
                              458.3M     17.0K    454.3M   0% /overlay
      overlayfs:/overlay      458.3M     17.0K    454.3M   0% /
      /dev/mmcblk0p8           28.5G      1.4M     28.5G   0% /mnt/UDISK
      root@TinaLinux:/# mount
      /dev/root on /rom type squashfs (ro,relatime)
      devtmpfs on /dev type devtmpfs (rw,relatime,size=54336k,nr_inodes=13584,mode=755)
      /proc on /proc type proc (rw,relatime)
      tmpfs on /tmp type tmpfs (rw,relatime)
      sys on /sys type sysfs (rw,relatime)
      /dev/by-name/rootfs_data on /overlay type ext4 (rw,sync,relatime,nodelalloc,data=journal)
      overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/workdir)
      devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
      /dev/mmcblk0p8 on /mnt/UDISK type ext4 (rw,relatime)
      none on /sys/kernel/config type configfs (rw,relatime)
      none on /sys/kernel/debug type debugfs (rw,relatime)
      adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
      

      adb命令

      E:\CloudMusic>adb -s 20080411 push ./voyager.wav  /mnt/UDISK
      [  7%] /mnt/UDISK/voyager.wav  
      
      发布在 其它全志芯片讨论区
      C
      cjia3254
    • 回复: t113 tina 卡死在rc_mount_filesystem

      @daizebin

      ------- ext4 ---------
      e2fsck 1.46.4 (18-Aug-2021)
      /dev/mmcblk0p8: recovering journal
      Setting free inodes count to 1909428 (was 1909429)
      Setting free blocks count to 7471695 (was 7471727)
      /dev/mmcblk0p8: clean, 12/1909440 files, 163933/7635628 blocks
      ------- /usr/sbin/fsck.ext4 -v  -y /dev/mmcblk0p8 ---------
      

      这个应该是正常的吧
      按照你的要求改了

      [partition]
          name         = rootfs_data
          size         = 1024000
          user_type    = 0x8000
      
      [partition]
          name         = UDISK
      ;    name         = rootfs_data
          size         = 10240
          user_type    = 0x8000
      
      发布在 其它全志芯片讨论区
      C
      cjia3254
    • t113 tina 卡死在rc_mount_filesystem

      自制t113开发板,启用e2fsprog与ext4,但是开机会卡死在修复ext4上
      日志

      [    2.567510] VFS: Mounted root (squashfs filesystem) readonly on device 179:5.
      [    2.578435] devtmpfs: mounted
      [    2.583670] Freeing unused kernel memory: 1024K
      [    2.612824] Run /pseudo_init as init process
      mount: mounting none on /dev failed: Resource busy
      [    2.742770] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
      [    2.926464] EXT4-fs: Warning: mounting with data=journal disables delayed allocation and O_DIRECT support!
      [    2.943837] EXT4-fs (mmcblk0p7): mounted filesystem with journalled data mode. Opts: data=journal
      [    2.944392] hub 1-1:1.0: USB hub found
      [    2.958140] hub 1-1:1.0: 4 ports detected
      Didn't found ubi volume "env"
      Cannot open /dev/ubi0: No such file or directory
      Didn't found ubi volume "env-redund"
      Cannot open /dev/ubi0: No such file or directory
      can't run '/etc/preinit': No such file or directory
      mount: mounting proc on /proc failed: 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-----
      ------- ext4 ---------
      e2fsck 1.46.4 (18-Aug-2021)
      ext2fs_open2: Bad magic number in super-block
      /usr/sbin/fsck.ext4: Superblock invalid, trying backup blocks...
      /dev/mmcblk0p8 was not cleanly unmounted, check forced.
      Pass 1: Checking inodes, blocks, and sizes
      

      经过排查发现卡死在rcS的rc_mount_filesystem中的/usr/sbin/fsck.ext4 -v -y "$fs_src"

      		echo "------- ext4 ---------"
      		/usr/sbin/fsck.ext4 -v  -y "$fs_src" 
      		echo "------- /usr/sbin/fsck.ext4 -v  -y "$fs_src" ---------"
      		mount -t ext4 "$fs_src" "$fs_mntpt" 2>/dev/null
      		if [ "$?" -ne "0" ]; then
      			mkfs.ext4 -m 0 "$fs_src" >/dev/null
      			mount -t ext4 "$fs_src" "$fs_mntpt" 2>/dev/null
      		fi
      

      fsck.ext4的输出为

      e2fsck 1.46.4 (18-Aug-2021)
      ext2fs_open2: Bad magic number in super-block
      /usr/sbin/fsck.ext4: Superblock invalid, trying backup blocks...
      /dev/mmcblk0p8 was not cleanly unmounted, check forced.
      Pass 1: Checking inodes, blocks, and sizes
      

      分区表为

      ;---------------------------------------------------------------------------------------------------
      ; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
      ;---------------------------------------------------------------------------------------------------
      
      
      ;---------------------------------------------------------------------------------------------------
      ;                                   固件下载参数配置
      ;---------------------------------------------------------------------------------------------------
      ;***************************************************************************************************
      ;    mbr的大小, 以Kbyte为单位
      ;***************************************************************************************************
      [mbr]
      size = 16384
      
      ;***************************************************************************************************
      ;                                              分区配置
      ;
      ;
      ;  partition 定义范例:
      ;    [partition]                ;  //表示是一个分区
      ;    name        = USERFS2      ; //分区名称
      ;    size        = 16384        ; //分区大小 单位: 扇区.分区表示个数最多2^31 * 512 = 2T
      ;    downloadfile = "123.fex"   ; //下载文件的路径和名称,可以使用相对路径,相对是指相对于image.cfg文件所在分区。也可以使用绝对路径
      ;    keydata     = 1            ; //私有数据分区,重新量产数据将不丢失
      ;    encrypt     = 1            ; //采用加密方式烧录,将提供数据加密,但损失烧录速度
      ;    user_type   = ?            ; //私有用法
      ;    verify      = 1            ; //要求量产完成后校验是否正确
      ;
      ; 注:1、name唯一, 不允许同名
      ;     2、name最大12个字符
      ;     3、size = 0, 将创建一个无大小的空分区
      ;     4、align to logical block size(504 sectors), leb size = 2*(1 nand phy block size - 1 phy page size)
      ;***************************************************************************************************
      [partition_start]
      
      [partition]
          name         = boot-resource
          size         = 504
          downloadfile = "boot-resource.fex"
          user_type    = 0x8000
      
      
      [partition]
          name         = env
          size         = 504
          downloadfile = "env.fex"
          user_type    = 0x8000
      
      [partition]
          name         = env-redund
          size         = 504
          downloadfile = "env.fex"
          user_type    = 0x8000
      
      [partition]
          name         = boot
          size         = 15360
          downloadfile = "boot.fex"
          user_type    = 0x8000
      
      [partition]
          name         = rootfs
          size         = 147600
          downloadfile = "rootfs.fex"
          user_type    = 0x8000
      
      ;[partition]
      ;    name         = dsp0
      ;    size         = 2048
      ;    downloadfile = "dsp0.fex"
      ;    user_type    = 0x8000
      
      ;[partition]
      ;    name         = recovery
      ;    size         = 16128
      ;    ;downloadfile = "recovery.fex"
      ;    user_type    = 0x8000
      
      [partition]
          name         = private
          size         = 10240
          user_type    = 0x8000
      
      [partition]
          name         = rootfs_data
          size         = 1024000
          user_type    = 0x8000
      
      [partition]
          name         = UDISK
          name         = rootfs_data
          size         = 10240
          user_type    = 0x8000
      
      
      发布在 其它全志芯片讨论区
      C
      cjia3254
    • 回复: t113-s3因为硬件原因导致内核无法启动

      @asoul_ava 是个电源供电都加电容了。

      发布在 Linux
      C
      cjia3254
    • 回复: t113-s3因为硬件原因导致内核无法启动

      又重新画了块t113的板子,加了几个滤波电容,就能正常启动内核了。

      发布在 Linux
      C
      cjia3254
    • 回复: t113-s3因为硬件原因导致内核无法启动

      @jingyan 这个我测试过,固件在另外一个d1s板子上能正常工作,在我新画的这个上面到内核就没输出了。

      发布在 Linux
      C
      cjia3254
    • 回复: t113-s3因为硬件原因导致内核无法启动

      @awwwwa 说来奇怪,我最近画的一块d1s也是这样的情况,boot0和uboot都能启动,就到内核没输出了

      U-Boot 2018.07-ge987def5-dirty (Mar 28 2024 - 20:41:35 +0800) Allwinner Technology
      
      [00.277]DRAM:  64 MiB
      [00.279]Relocation Offset is: 01ee9000
      [00.283]secure enable bit: 0
      can't support chip type 24064
      [00.289]CPU=720 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      sunxi flash map init
      SPI ALL:   ready
      [00.300]flash init start
      [00.302]workmode = 0,storage type = 1
      card_no = 0 
      [00.307][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00
      nodeoffset=10900
      [00.314][mmc]: get sdc_type fail and use default host:tm1.
      [00.321][mmc]: can't find node "mmc0",will add new node
      [00.326][mmc]: fdt err returned <no error>
      [00.329][mmc]: Using default timing para
      [00.333][mmc]: SUNXI SDMMC Controller Version:0x50310
      if 
      [00.353][mmc]: card_caps:0x3000000a
      [00.356][mmc]: host_caps:0x3000003f
      [00.360]sunxi flash init ok
      [00.362]line:703 init_clocks
      [00.366]drv_disp_init
      request pwm success, pwm7:pwm7:0x2000c00.
      [00.387]drv_disp_init finish
      [00.396]Loading Environment from SUNXI_FLASH... OK
      [00.416]boot_gui_init:start
      [00.420]set disp.dev2_output_type fail. using defval=0
      [00.447]set disp.fb0_rot_used fail. using defval=0
      [00.452]set disp.fb0_rot_degree fail. using defval=0
      [00.622]boot_gui_init:finish
      partno erro : can't find partition bootloader
      [00.633]bmp_name=bootlogo.bmp size 38454
      [00.645]out of usb burn from boot: not need burn key
      [00.651]Item0 (Map) magic is bad
      [00.654]the secure storage item0 copy0 magic is bad
      [00.659]Item0 (Map) magic is bad
      [00.662]the secure storage item0 copy1 magic is bad
      [00.667]Item0 (Map) magic is bad
      partno erro : can't find partition private
      root_partition is rootfs
      set root to /dev/mmFDT ERROR:fdt_get_all_pin:get property handle pinctrl-0 error:FDT_ERR_INTERNAL
      sunxi_pwm_pin_set_state, fdt_set_all_pin, ret=-1
      [00.691]LCD open finish
      cblk0p5
      [00.693]update part info
      [00.697]update bootcmd
      [00.700]change working_fdt 0x42aa8da0 to 0x42a88da0
      disable nand error: FDT_ERR_BADPATH
      [00.710]The storage not support sample function
      No reserved memory region found in source FDT
      [00.742]update dts
      Hit any key to stop autoboot:  0 
      input addr exceed dram scope
      [02.087]no vendor_boot partition is found
      Android's image name: d1s-nezha
      Detect comp none
      [02.107]
      Starting kernel ...
      
      [02.109][mmc]: MMC Device 2 not found
      [02.113][mmc]: mmc 2 not find, so not exit
      
      发布在 Linux
      C
      cjia3254
    • t113 uboot 读取不到tf卡

      自制t113开发板,现状boot0可以运行,uboot读取tf卡失败
      日志输出

      U-Boot 2018.05-g24521d6-dirty (Feb 29 2024 - 19:07:26 +0800) Allwinner Technology
      
      [00.308]CPU:   Allwinner Family
      [00.311]Model: sun8iw20
      I2C:   FDT ERROR:fdt_set_all_pin:[twi0]-->FDT_ERR_BADPATH
      FDT ERROR:fdt_set_all_pin:[twi1]-->FDT_ERR_BADPATH
      ready
      [00.333]DRAM:  128 MiB
      [00.336]Relocation Offset is: 04f01000
      [00.355]secure enable bit: 0
      [00.358]smc_tee_inform_fdt failed with: -65526[00.362]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [29]HELLO! BOOT0 is starting!
      [32]BOOT0 commit : 88480af-dirty
      [35]set pll start
      [41]periph0 has been enabled
      [44]set pll end
      [45][pmu]: bus read error
      [48]board init ok
      [49]ZQ value = 0x2f
      [51]get_pmu_exist() = -1
      [54]ddr_efuse_type: 0xa
      [56]trefi:7.8ms
      [58][AUTO DEBUG] single rank and full DQ!
      [62]ddr_efuse_type: 0xa
      [65]trefi:7.8ms
      [67][AUTO DEBUG] rank 0 row = 13 
      [70][AUTO DEBUG] rank 0 bank = 8 
      [73][AUTO DEBUG] rank 0 page size = 2 KB 
      [77]DRAM BOOT DRIVE INFO: V0.33
      [80]DRAM CLK = 936 MHz
      [82]DRAM Type = 3 (2:DDR2,3:DDR3)
      [86]DRAMC read ODT  off.
      [88]DRAM ODT value: 0x42.
      [91]ddr_efuse_type: 0xa
      [94]DRAM SIZE =128 M
      [96]dram_tpr4:0x0
      [97]PLL_DDR_CTRL_REG:0xf8004d00
      [100]DRAM_CLK_REG:0xc0000000
      [103][TIMING DEBUG] MR2= 0x20
      [111]DRAM simple test OK.
      [113]rtc standby flag is 0x0, super standby flag is 0x0
      [118]dram size =128
      [121]card no is 0
      [123]sdcard 0 line count 4
      [125][mmc]: mmc driver ver 2021-05-21 14:47
      [134][mmc]: Wrong media type 0x0
      [137][mmc]: ***Try SD card 0***
      [157][mmc]: HSSDR52/SDR25 4 bit
      [160][mmc]: 50000000 Hz
      [162][mmc]: 30436 MB
      [164][mmc]: ***SD/MMC 0 init OK!!!***
      [237]Loading boot-pkg Succeed(index=0).
      [241]Entry_name        = u-boot
      [247]Entry_name        = optee
      [251]Entry_name        = dtb
      [253]mmc not para
      [255]Jump to second Boot.
      M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm
      
      
      U-Boot 2018.05-g24521d6-dirty (Feb 29 2024 - 19:07:26 +0800) Allwinner Technology
      
      [00.309]CPU:   Allwinner Family
      [00.311]Model: sun8iw20
      I2C:   FDT ERROR:fdt_set_all_pin:[twi0]-->FDT_ERR_BADPATH
      FDT ERROR:fdt_set_all_pin:[twi1]-->FDT_ERR_BADPATH
      ready
      [00.333]DRAM:  128 MiB
      [00.336]Relocation Offset is: 04f01000
      [00.355]secure enable bit: 0
      [00.358]smc_tee_inform_fdt failed with: -65526[00.362]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [00.368]gic: sec monitor mode
      [00.371]flash init start
      [00.373]workmode = 0,storage type = 1
      [00.376][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00
      [00.382][mmc]: get card0 para fail
      [00.385][mmc]: sunxi mmc host init failed!
      [00.389][mmc]: sunxi host mmc config failed!
      [00.393]error card no error
      [00.395][mmc]: MMC Device -1 not found
      fail to find one useful mmc card
      initcall sequence 47f90548 failed at call 4300d5a1 (err=-1)
      ### ERROR ### Please RESET the board ###
      

      对于编译出的设备树进项反汇编得到

              card0_boot_para@2 {
                  device_type = "card0_boot_para";
                  card_ctrl = <0x00000000>;
                  card_high_speed = <0x00000001>;
                  card_line = <0x00000004>;
                  pinctrl-0 = <0x0000001c>;
                  status = "okay";
              };
      

      先追踪到是uboot读取设备树出错,

      #define   FDT_PATH_CARD0_BOOT_PARA           "/soc/card0_boot_para"
      
      	if (sdc_no == 0) {
      		nodeoffset =  fdt_path_offset(working_fdt, FDT_PATH_CARD0_BOOT_PARA);
      		printf("nodeoffset=%d\n",(int )nodeoffset);
      		nodeoffset=2;
      		if (nodeoffset < 0) {
      			MMCINFO("get card0 para fail\n");
      			return -1;
      		}
      

      调试输出nodeoffset=-11

      [00.310]CPU:   Allwinner Family
      [00.313]Model: sun8iw20
      I2C:   FDT ERROR:fdt_set_all_pin:[twi0]-->FDT_ERR_BADPATH
      FDT ERROR:fdt_set_all_pin:[twi1]-->FDT_ERR_BADPATH
      ready
      [00.334]DRAM:  128 MiB
      [00.337]Relocation Offset is: 04eff000
      [00.356]secure enable bit: 0
      [00.359]smc_tee_inform_fdt failed with: ffff000a
      [00.364]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [00.370]gic: sec monitor mode
      sunxi flash map init
      [00.375]flash init start
      [00.377]workmode = 0,storage type = 1
      card_no = 0 
      [00.381][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00
      nodeoffset=-11[00.388][mmc]: get sdc_type fail and use default host:tm1.
      [00.393][mmc]: get card0 para fail
      [00.396][mmc]: can't find node "mmc0",will add new node
      [00.401][mmc]: fdt err returned <no error>
      [00.405][mmc]: Using default timing para
      [00.409][mmc]: sunxi mmc pin set failed!
      [00.412]error card no error
      [00.415][mmc]: MMC Device -1 not found
      if 
      fail to find one useful mmc card===0 
      initcall sequence 47f8fc04 failed at call 4300d991 (err=-1)
      ### ERROR ### Please RESET the board ###
      

      我怀疑是偏移地址有问题,导致找不到。

      发布在 其它全志芯片讨论区
      C
      cjia3254
    • t113 uboot 读取不到tf卡

      自制t113开发板,现状boot0可以运行,uboot读取tf卡失败
      日志输出

      U-Boot 2018.05-g24521d6-dirty (Feb 29 2024 - 19:07:26 +0800) Allwinner Technology
      
      [00.308]CPU:   Allwinner Family
      [00.311]Model: sun8iw20
      I2C:   FDT ERROR:fdt_set_all_pin:[twi0]-->FDT_ERR_BADPATH
      FDT ERROR:fdt_set_all_pin:[twi1]-->FDT_ERR_BADPATH
      ready
      [00.333]DRAM:  128 MiB
      [00.336]Relocation Offset is: 04f01000
      [00.355]secure enable bit: 0
      [00.358]smc_tee_inform_fdt failed with: -65526[00.362]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [29]HELLO! BOOT0 is starting!
      [32]BOOT0 commit : 88480af-dirty
      [35]set pll start
      [41]periph0 has been enabled
      [44]set pll end
      [45][pmu]: bus read error
      [48]board init ok
      [49]ZQ value = 0x2f
      [51]get_pmu_exist() = -1
      [54]ddr_efuse_type: 0xa
      [56]trefi:7.8ms
      [58][AUTO DEBUG] single rank and full DQ!
      [62]ddr_efuse_type: 0xa
      [65]trefi:7.8ms
      [67][AUTO DEBUG] rank 0 row = 13 
      [70][AUTO DEBUG] rank 0 bank = 8 
      [73][AUTO DEBUG] rank 0 page size = 2 KB 
      [77]DRAM BOOT DRIVE INFO: V0.33
      [80]DRAM CLK = 936 MHz
      [82]DRAM Type = 3 (2:DDR2,3:DDR3)
      [86]DRAMC read ODT  off.
      [88]DRAM ODT value: 0x42.
      [91]ddr_efuse_type: 0xa
      [94]DRAM SIZE =128 M
      [96]dram_tpr4:0x0
      [97]PLL_DDR_CTRL_REG:0xf8004d00
      [100]DRAM_CLK_REG:0xc0000000
      [103][TIMING DEBUG] MR2= 0x20
      [111]DRAM simple test OK.
      [113]rtc standby flag is 0x0, super standby flag is 0x0
      [118]dram size =128
      [121]card no is 0
      [123]sdcard 0 line count 4
      [125][mmc]: mmc driver ver 2021-05-21 14:47
      [134][mmc]: Wrong media type 0x0
      [137][mmc]: ***Try SD card 0***
      [157][mmc]: HSSDR52/SDR25 4 bit
      [160][mmc]: 50000000 Hz
      [162][mmc]: 30436 MB
      [164][mmc]: ***SD/MMC 0 init OK!!!***
      [237]Loading boot-pkg Succeed(index=0).
      [241]Entry_name        = u-boot
      [247]Entry_name        = optee
      [251]Entry_name        = dtb
      [253]mmc not para
      [255]Jump to second Boot.
      M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm
      
      
      U-Boot 2018.05-g24521d6-dirty (Feb 29 2024 - 19:07:26 +0800) Allwinner Technology
      
      [00.309]CPU:   Allwinner Family
      [00.311]Model: sun8iw20
      I2C:   FDT ERROR:fdt_set_all_pin:[twi0]-->FDT_ERR_BADPATH
      FDT ERROR:fdt_set_all_pin:[twi1]-->FDT_ERR_BADPATH
      ready
      [00.333]DRAM:  128 MiB
      [00.336]Relocation Offset is: 04f01000
      [00.355]secure enable bit: 0
      [00.358]smc_tee_inform_fdt failed with: -65526[00.362]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [00.368]gic: sec monitor mode
      [00.371]flash init start
      [00.373]workmode = 0,storage type = 1
      [00.376][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00
      [00.382][mmc]: get card0 para fail
      [00.385][mmc]: sunxi mmc host init failed!
      [00.389][mmc]: sunxi host mmc config failed!
      [00.393]error card no error
      [00.395][mmc]: MMC Device -1 not found
      fail to find one useful mmc card
      initcall sequence 47f90548 failed at call 4300d5a1 (err=-1)
      ### ERROR ### Please RESET the board ###
      

      先追踪到是uboot读取设备树出错,

      #define   FDT_PATH_CARD0_BOOT_PARA           "/soc/card0_boot_para"
      
      	if (sdc_no == 0) {
      		nodeoffset =  fdt_path_offset(working_fdt, FDT_PATH_CARD0_BOOT_PARA);
      		if (nodeoffset < 0) {
      			MMCINFO("get card0 para fail\n");
      			return -1;
      		}
      

      对于编译出的设备树进项反汇编得到xxx.dts

              card0_boot_para@2 {
                  device_type = "card0_boot_para";
                  card_ctrl = <0x00000000>;
                  card_high_speed = <0x00000001>;
                  card_line = <0x00000004>;
                  pinctrl-0 = <0x0000001c>;
                  status = "okay";
              };
      

      我怀疑是偏移地址有问题,导致找不到。

      发布在 其它全志芯片讨论区
      C
      cjia3254
    • d1s I2S2-DOUT0 无输出

      自制d1s 开发板,外挂wm8960解编码芯片。
      设备树配置

      	daudio2_pins_a: daudio2@0 {
      		/* I2S_PIN: MCLK, BCLK, LRCK */
      		pins = "PB7", "PB5", "PB6";
      		function = "i2s2";
      		drive-strength = <100>;
      		bias-disable;
      	};
      
      	daudio2_pins_b: daudio2@1 {
      		/* I2S_PIN: DOUT0 */
      		pins = "PB4";
      		function = "i2s2_dout";
      		drive-strength = <100>;
      		bias-disable;
      	};
      
      	daudio2_pins_c: daudio2@2 {
      		/* I2S_PIN: DIN0 */
      		pins = "PB3";
      		function = "i2s2_din";
      		drive-strength = <100>;
      		bias-disable;
      	};
      
      
      &daudio2 {
      	mclk_div 	= <0x02>;
      	frametype 	= <0x01>;
      	tdm_config 	= <0x01>;
      	sign_extend 	= <0x00>;
      	tx_data_mode 	= <0x00>;
      	rx_data_mode 	= <0x00>;
      	msb_lsb_first 	= <0x00>;
      	pcm_lrck_period = <0x80>;
      	slot_width_select = <0x20>;
      	asrc_function_en  = <0x00>;
      	pinctrl-names   = "default", "sleep";
      	pinctrl-0       = <&daudio2_pins_a &daudio2_pins_b &daudio2_pins_c>;
      	pinctrl-1       = <&daudio2_pins_d>;
      	pinctrl_used	= <0x1>;
      	daudio_type	= <0x0>;
      	status = "okay";
      };
      &sounddaudio2 {
      
      	status = "okay";
      	model = "wm8960-audio";
      	simple-audio-card,name = "wlf,wm8960";
      	simple-audio-card,format = "i2s";
      	simple-audio-card,bitclock-master = <&daudio2_master>;
      	simple-audio-card,frame-master = <&daudio2_master>;
      	simple-audio-card,widgets =
      			"Microphone", "Mic Jack",
      			"Line", "Line In",
      			"Line", "Line Out",
      			"Speaker", "Speaker",
      			"Headphone", "Headphone Jack";
      	simple-audio-card,routing =
      			"Headphone Jack", "HP_L",
      			"Headphone Jack", "HP_R",
      			"Speaker", "SPK_LP",
      			"Speaker", "SPK_LN",
      			"Speaker", "SPK_RP",
      			"Speaker", "SPK_RN";
      	simple-audio-card,cpu {
      		sound-dai = <&daudio2>;
      	};
      
      	daudio2_master: simple-audio-card,codec {
      		sound-dai = <&wm8960>;
      	};
      
      };
      
      &twi3 {
      	clock-frequency = <400000>;
      	pinctrl-0 = <&twi3_pins_a>;
      	pinctrl-1 = <&twi3_pins_b>;
      	pinctrl-names = "default", "sleep";
      	status = "okay";
      
      	wm8960: wm8960@1a {
      		#sound-dai-cells = <0>;
      		compatible = "wlf,wm8960";
      		reg = <0x1a>;
      		clock-names = "mclk";
      		wlf,shared-lrclk;
      		status = "okay";
      	};
      };
      
      

      启动日志

      [    0.000000]   Normal   empty
      [    0.000000] Movable zone start for each node
      [    0.000000] Early memory node ranges
      [    0.000000]   node   0: [mem 0x0000000040000000-0x0000000043ffffff]
      [    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000043ffffff]
      [    0.000000] On node 0 totalpages: 16384
      [    0.000000]   DMA32 zone: 224 pages used for memmap
      [    0.000000]   DMA32 zone: 0 pages reserved
      [    0.000000]   DMA32 zone: 16384 pages, LIFO batch:3
      [    0.000000] elf_hwcap is 0x20112d
      [    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: 16160
      [    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500400 clk_ignore_unused initcall_debug=0 console=ttyS1,115200 loglevel=8 root=/dev/mmcblk0p5 init=/pseudo_init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:recovery@mmcblk0p6:rootfs_data@mmcblk0p7:UDISK@mmcblk0p8 cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun20iw1p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.07-ge987def5-dirty(03/08/2024-08:54:18) mbr_offset=1556480 disp_reserve=4096000,0x0000000042b3a000 androidboot.dramsize=64 
      [    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
      [    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
      [    0.000000] Sorting __ex_table...
      [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
      [    0.000000] Memory: 44388K/65536K available (4728K kernel code, 483K rwdata, 1815K rodata, 168K init, 226K bss, 12956K reserved, 8192K 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 10 jiffies.
      [    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
      [    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
      [    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
      [    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
      [    0.000009] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
      [    0.000034] riscv_timer_clockevent depends on broadcast, but no broadcast function available
      [    0.000475] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
      [    0.001211] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
      [    0.001237] pid_max: default: 32768 minimum: 301
      [    0.001489] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
      [    0.001511] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
      [    0.003871] ASID allocator initialised with 65536 entries
      [    0.004085] rcu: Hierarchical SRCU implementation.
      [    0.004937] devtmpfs: initialized
      [    0.024557] random: get_random_u32 called from bucket_table_alloc.isra.27+0x10a/0x12c with crng_init=0
      [    0.025822] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      [    0.025864] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
      [    0.026535] pinctrl core: initialized pinctrl subsystem
      [    0.028293] NET: Registered protocol family 16
      [    0.031034] DMA: preallocated 256 KiB pool for atomic allocations
      [    0.031711] cpuidle: using governor menu
      [    0.085950] rtc_ccu: sunxi ccu init OK
      [    0.096761] clock: sunxi ccu init OK
      [    0.098965] clock: sunxi ccu init OK
      [    0.135533] sun6i-dma 3002000.dma-controller: sunxi dma probed
      [    0.138370] iommu: Default domain type: Translated 
      [    0.138619] sunxi iommu: irq = 4
      [    0.140105] SCSI subsystem initialized
      [    0.140569] usbcore: registered new interface driver usbfs
      [    0.141157] usbcore: registered new interface driver hub
      [    0.141316] usbcore: registered new device driver usb
      [    0.142290] sunxi-msgbox-amp 3003000.msgbox: invalid resource
      [    0.143364] Advanced Linux Sound Architecture Driver Initialized.
      [    0.144213] Bluetooth: Core ver 2.22
      [    0.144323] NET: Registered protocol family 31
      [    0.144338] Bluetooth: HCI device and connection manager initialized
      [    0.144367] Bluetooth: HCI socket layer initialized
      [    0.144388] Bluetooth: L2CAP socket layer initialized
      [    0.144434] Bluetooth: SCO socket layer initialized
      [    0.144818] pwm module init!
      [    0.147301] clocksource: Switched to clocksource riscv_clocksource
      [    0.165154] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
      [    0.169421] NET: Registered protocol family 2
      [    0.170584] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
      [    0.170648] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
      [    0.170673] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
      [    0.170693] TCP: Hash tables configured (established 512 bind 512)
      [    0.170883] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.170940] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.171254] NET: Registered protocol family 1
      [    0.172626] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
      [    0.173486] spi spi1: spi1 supply spi not found, using dummy regulator
      [    0.173797] sunxi_spi_resource_get()2438 - [spi1] SPI MASTER MODE
      [    0.173876] sunxi_spi_resource_get()2476 - Failed to get sample mode
      [    0.173889] sunxi_spi_resource_get()2481 - Failed to get sample delay
      [    0.173901] sunxi_spi_resource_get()2485 - sample_mode:-1431633921 sample_delay:-1431633921
      [    0.173987] sunxi_spi_clk_init()2527 - [spi1] mclk 100000000
      [    0.174700] sunxi_spi_probe()2978 - [spi1]: driver probe succeed, base ffffffd00405e000, irq 32
      [    0.177636] workingset: timestamp_bits=62 max_order=14 bucket_order=0
      [    0.188194] squashfs: version 4.0 (2009/01/31) Phillip Lougher
      [    0.188481] ntfs: driver 2.1.32 [Flags: R/W].
      [    0.217379] io scheduler mq-deadline registered
      [    0.217397] io scheduler kyber registered
      [    0.218507] [DISP]disp_module_init
      [    0.219358] disp 5000000.disp: Adding to iommu group 0
      [    0.220282] [DISP] parser_disp_init_para,line:1430:
      [    0.220288] of_property_read fb0_width fail
      [    0.220316] [DISP] disp_init,line:2387:
      [    0.220322] smooth display screen:0 type:1 mode:4
      [    0.268683] display_fb_request,fb_id:0
      [    0.334568] [DISP]disp_module_init finish
      [    0.335656] sunxi_sid_init()783 - insmod ok
      [    0.336654] pwm-regulator: supplied by regulator-dummy
      [    0.338463] disp_al_manager_apply ouput_type:1
      [    0.338682] [DISP] lcd_clk_config,line:774:
      [    0.338699] disp 0, clk: pll(420000000),clk(420000000),dclk(70000000) dsi_rate(70000000)
      [    0.338699]      clk real:pll(420000000),clk(420000000),dclk(105000000) dsi_rate(150000000)
      [    0.338815] sunxi_pwm_enable_dual: can't parse pwm device
      [    0.339749] uart uart1: uart1 supply uart not found, using dummy regulator
      [    0.340224] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
      [    0.340261] sw_console_setup()1807 - console setup baud 115200 parity n bits 8, flow n
      [    1.076390] printk: console [ttyS1] enabled
      [    1.084621] libphy: Fixed MDIO Bus: probed
      [    1.095536] Freeing logo buffer memory: 4000K
      [    1.100979] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
      [    1.112756] gmac-power0: NULL
      [    1.116072] gmac-power1: NULL
      [    1.119449] gmac-power2: NULL
      [    1.124708] Failed to alloc md5
      [    1.128367] eth0: Use random mac address
      [    1.133219] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      [    1.140720] sunxi-ehci: EHCI SUNXI driver
      [    1.145945] get ehci1-controller wakeup-source is fail.
      [    1.152063] sunxi ehci1-controller don't init wakeup source
      [    1.158474] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xffffffe000730d00, 0x:ffffffd004070000, irq_no:31
      [    1.172157] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply drvvbus not found, using dummy regulator
      [    1.184912] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
      [    1.197508] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
      [    1.204845] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
      [    1.214733] sunxi-ehci 4200000.ehci1-controller: irq 49, io mem 0x04200000
      [    1.247370] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
      [    1.255214] sunxi-ehci 4200000.ehci1-controller: ehci_irq: highspeed device connect
      [    1.265217] hub 1-0:1.0: USB hub found
      [    1.269659] hub 1-0:1.0: 1 port detected
      [    1.275197] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      [    1.282277] sunxi-ohci: OHCI SUNXI driver
      [    1.287665] get ohci1-controller wakeup-source is fail.
      [    1.293660] sunxi ohci1-controller don't init wakeup source
      [    1.299966] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xffffffe0007310c8
      [    1.310538] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply drvvbus not found, using dummy regulator
      [    1.323251] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
      [    1.335781] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
      [    1.343130] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
      [    1.353028] sunxi-ohci 4200400.ohci1-controller: irq 50, io mem 0x04200400
      [    1.432746] hub 2-0:1.0: USB hub found
      [    1.437025] hub 2-0:1.0: 1 port detected
      [    1.442981] usbcore: registered new interface driver uas
      [    1.449344] usbcore: registered new interface driver usb-storage
      [    1.456461] sunxi_gpadc_init,2151, success
      [    1.461561] sunxi_gpadc_setup: get channel scan data failed
      [    1.468564] input: sunxi-gpadc0 as /devices/virtual/input/input0
      [    1.476635] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
      [    1.489640] sunxi-rtc 7090000.rtc: registered as rtc0
      [    1.495474] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:03 UTC (3)
      [    1.504542] sunxi-rtc 7090000.rtc: sunxi rtc probed
      [    1.510764] i2c /dev entries driver
      [    1.514872] IR NEC protocol handler initialized
      [    1.520875] Bluetooth: HCI UART driver ver 2.3
      [    1.525877] Bluetooth: HCI UART protocol H4 registered
      [    1.531743] Bluetooth: HCI UART protocol BCSP registered
      [    1.538152] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
      [    1.549027] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
      [    1.559060] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
      [    1.565315] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
      [    1.571893] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
      [    1.578415] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
      [    1.584855] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
      [    1.591433] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
      [    1.598025] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
      [    1.604560] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
      [    1.612416] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.623603] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
      [    1.637368] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
      [    1.644958] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.669352] sunxi-mmc 4020000.sdmmc: detmode:gpio polling
      [    1.675478] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.688044] sun8iw20-pinctrl 2000000.pinctrl: pin PG0 already requested by 4500000.eth; cannot claim for 4021000.sdmmc
      [    1.700126] sun8iw20-pinctrl 2000000.pinctrl: pin-192 (4021000.sdmmc) status -22
      [    1.708668] sun8iw20-pinctrl 2000000.pinctrl: could not request pin 192 (PG0) from group PG0  on device 2000000.pinctrl
      [    1.720805] sunxi-mmc 4021000.sdmmc: Error applying setting, reverse things back
      [    1.729419] sunxi-mmc: probe of 4021000.sdmmc failed with error -22
      [    1.736513] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.748868] ledtrig-cpu: registered to indicate activity on CPUs
      [    1.755624] exFAT: Version 1.3.0
      [    1.761864] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.776519] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
      [    1.788370] sunxi-daudio 2034000.daudio: regulator missing or invalid
      [    1.796564] [AUDIOCODEC][sunxi_codec_parse_params][2437]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
      [    1.796564] 
      [    1.813882] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.825674] [AUDIOCODEC][sunxi_codec_parse_params][2473]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
      [    1.837623] [AUDIOCODEC][sunxi_internal_codec_probe][2634]:codec probe finished
      [    1.848016] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
      [    1.858034] [SNDCODEC][sunxi_card_init][583]:card init finished
      [    1.868287] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
      [    1.880601] hub 1-1:1.0: USB hub found
      [    1.887054] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input1
      [    1.899039] hub 1-1:1.0: 4 ports detected
      [    1.904396] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
      [    1.912042] mmc0: host does not support reading read-only switch, assuming write-enable
      [    1.921586] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
      [    1.929966] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      [    1.942323] random: fast init done
      [    1.949073] NET: Registered protocol family 10
      [    1.956438] Segment Routing with IPv6
      [    1.960812] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      [    1.972957] NET: Registered protocol family 17
      [    1.978300] Bluetooth: RFCOMM TTY layer initialized
      [    1.983814] Bluetooth: RFCOMM socket layer initialized
      [    1.990069] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
      [    2.001930] Bluetooth: RFCOMM ver 1.11
      [    2.017539] mmc0: new high speed SDHC card at address aaaa
      [    2.028797] mmcblk0: mmc0:aaaa SC32G 29.7 GiB 
      [    2.053171]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
      [    2.059597] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
      [    2.074797] sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator
      [    2.085004] sunxi-i2c sunxi-i2c2: probe success
      [    2.090832] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
      [    2.102528] sunxi-i2c sunxi-i2c3: sunxi-i2c3 supply twi not found, using dummy regulator
      [    2.130563] sunxi-i2c sunxi-i2c3: probe success
      [    2.137417] sun8iw20-pinctrl 2000000.pinctrl: pin PG0 already requested by 4500000.eth; cannot claim for 4021000.sdmmc
      [    2.149518] sun8iw20-pinctrl 2000000.pinctrl: pin-192 (4021000.sdmmc) status -22
      [    2.157872] sun8iw20-pinctrl 2000000.pinctrl: could not request pin 192 (PG0) from group PG0  on device 2000000.pinctrl
      [    2.170040] sunxi-mmc 4021000.sdmmc: Error applying setting, reverse things back
      [    2.178446] sunxi-mmc: probe of 4021000.sdmmc failed with error -22
      [    2.187012] sun8iw20-pinctrl 2000000.pinctrl: pin PB3 already requested by 2034000.daudio; cannot claim for 2000000.pinctrl:35
      [    2.199934] sun8iw20-pinctrl 2000000.pinctrl: pin-35 (2000000.pinctrl:35) status -22
      [    2.208705] reg-fixed-voltage: probe of usb1-vbus failed with error -22
      [    2.218862] debugfs: Directory '2034000.daudio' with parent 'wlf,wm8960' already present!
      [    2.231023] sunxi-audio-card 20340a0.sounddaudio2: wm8960-hifi <-> 2034000.daudio mapping ok
      [    2.327385] usb 1-1.2: new high-speed USB device number 3 using sunxi-ehci
      [    2.361938] otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator
      [    2.377239] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
      [    2.386978] clk: Not disabling unused clocks
      [    2.391972] ALSA device list:
      [    2.395293]   #0: audiocodec
      [    2.398622] cfg80211: failed to load regulatory.db
      [    2.404096]   #1: wlf,wm8960
      [    2.416171] VFS: Mounted root (squashfs filesystem) readonly on device 179:5.
      [    2.431123] devtmpfs: mounted
      [    2.434793] Freeing unused kernel memory: 168K
      [    2.439978] This architecture does not have kernel memory protection.
      [    2.447249] Run /pseudo_init as init process
      mount: mounting none on /dev failed: Device or resource busy
      [    3.184564] EXT4-fs: Warning: mounting with data=journal disables delayed allocation and O_DIRECT support!
      [    3.204786] EXT4-fs (mmcblk0p7): mounted filesystem with journalled data mode. Opts: data=journal
      Didn't found ubi volume "env"
      Cannot open /dev/ubi0: No such file or directory
      Didn't found ubi volume "env-redund"
      Cannot open /dev/ubi0: No such file or directory
      [    3.449277] 
      [    3.449277] insmod_device_driver
      [    3.449277] 
      [    3.456628] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator
      can't run '/etc/preinit': No such file or directory
      mount: mounting proc on /proc failed: Device or resource busy
      [    3.487917] device_chose finished 142!
      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-----
      [    3.833146] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
      ------run rc.modules file-----
      ------run rc.final file-----
      numid=30,iface=MIXER,name='Headphone Switch'
        ; type=BOOLEAN,access=rw------,values=1
        : values=on
      

      但是在 cat /proc/asound/cards没有相应目录

      root@TinaLinux:/# cd /proc/
      1/            16/           53/           65/           fs/
      10/           2/            54/           67/           irq/
      11/           3/            57/           68/           net/
      12/           4/            58/           7/            self/
      123/          46/           59/           8/            sys/
      124/          47/           6/            9/            sysvipc/
      13/           48/           60/           91/           thread-self/
      136/          49/           61/           92/           tty/
      14/           5/            62/           bus/
      142/          51/           63/           device-tree/
      15/           52/           64/           driver/
      

      aplay 播放报错

      root@TinaLinux:/# aplay -D hw:1,0 -vvv /mnt/UDISK/voyager.wav 
      Playing WAVE '/mnt/UDISK/voyager.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
      Hardware PCM card 1 'wlf,wm8960' device 0 subdevice 0
      Its setup is:
        stream       : PLAYBACK
        access       : RW_INTERLEAVED
        format       : S16_LE
        subformat    : STD
        channels     : 2
        rate         : 44100
        exact rate   : 44100 (44100/1)
        msbits       : 16
        buffer_size  : 22052
        period_size  : 5513
        period_time  : 125011
        tstamp_mode  : NONE
        tstamp_type  : MONOTONIC
        period_step  : 1
        avail_min    : 5513
        period_event : 0
        start_threshold  : 22052
        stop_threshold   : 22052
        silence_threshold: 0
        silence_size : 0
        boundary     : 6207086186423386112
        appl_ptr     : 0
        hw_ptr       : 0
      Max peak (11026 samples): 0x00000001 #                    0%
      Max peak (11026 samples): 0x00000001 #                    0%
      Max peak (11026 samples): 0x00000001 #                    0%
      Max peak (11026 samples): 0x00000002 #                    0%
      Max peak (64 samples): 0x00000001 #                    0%
      aplay: pcm_write:1980: write error: Input/output error
      

      使用其他人编写的alsa程序会在snd_pcm_writei出错

      
      		// 向PCM设备写入数据 snd_pcm_writei()函数第三个是帧单位,意思是这些个(buffer_size)大小缓存中有多少个frames(左右声道 * 一个采样位数)
      		while((ret = snd_pcm_writei(pcm_handle, buff, frames)) < 0){
      			if (ret == -EPIPE){
      				
                        /* EPIPE means underrun 基本上-32  的错误就是缓存中的数据不够 */
                        printf("underrun occurred -32, err_info = %s \n", snd_strerror(ret));
      				  //完成硬件参数设置,使设备准备好
                        snd_pcm_prepare(pcm_handle);
      			
                  } else if(ret < 0){
      				printf("ret value is : %d \n", ret);
      				debug_msg(-1, "write to audio interface failed");
      			}
      		}
      
      root@TinaLinux:~/userapp# ./alsexxx -m /mnt/UDISK/voyager.wav -f 161 -r 44
      打开文件 
      wav文件头结��体大小:   44 
      RIFF标志:                                      RIFF 
      文件大小:                                      59684706
      文件格式:                                      WAVE 
      格式块标��:                                    fmt 
      格式块长度:                                    16 
      编码格式代码:                                   1 
      声道数:                                         2
      采样频率:                                       44100
      传输速率:                                      176400 
      数据块对齐单位:                                 4
      采样位数(长度):                                 16
      format_arg value is : S16LE 
      rate_arg value is : 44.1HZ 
      rate value is : 44100 
      ret value is : -5 
      err: write to audio interface failed 失败!, result = -1, err_info = Operation not permitted 
      
      发布在 MR Series
      C
      cjia3254
    • 回复: t113-s tina如何使用uart1 PD21,PD22

      把t113换成d1s,能启动了、

      发布在 Linux
      C
      cjia3254
    • t113-s3因为硬件原因导致内核无法启动

      现尝试自编译的tina,在boot0和uboot阶段都有输出,内核没有。
      采用awboot的方式引导主线内核的方式,在boot阶段也有输出,内核没有。
      尝试使用芒果派的mq-r-t113-rtl8189fs-5113-dns-uart0.img,在boot0和uboot阶段也都有输出。
      所以我判断是因为硬件问题导致内核无法启动。
      VCC-PLL=1.8v
      RESET=3.3v
      LDOA-OUT=1.8v
      LDOB-OUT boot0未启动时1.35v,启动时1.5v
      vcc-pe=1.8v
      VDD_SYS0=0.9v
      VCC-DRAM0=1.5v
      VDD18-DRAM=1.8v
      VDD-SYS1=0.9v
      LVDS18=1.8v
      VCC-PD=3.3v
      VCC-TVOUT=3.3v
      VDD-SYS2=0.9v
      VCC-IO=3.3v
      AVCC=1.8v
      HPVCC=1.8v
      VCC-TVIN=1.8v
      VDD-CORE1=0.9v
      VCC-PG=3.3v
      望大佬解惑

      发布在 Linux
      C
      cjia3254
    • 回复: T113 Tina SDK、Longan SDK、开发资料下载

      @nezhastu 大佬你好,请问这个问题解决了吗

      发布在 其它全志芯片讨论区
      C
      cjia3254
    • t113-s tina如何使用uart1 PD21,PD22

      自制的t113开发板,使用的是百问网的sdk,现在是boot0和uboot都有输出,但是在内核阶段没有输出,不知道是内核没有启动,还是使用的串口错误。
      求大佬解惑,这个问题已经找了好几天了。

      sys_config.fex

      ;uart configuration
      ;uart_debug_port  |Boot串口控制器编号        |
      ;uart_debug_tx       |Boot串口发送的GPIO配置|
      ;uart_debug_rx  |Boot串口接收的GPIO配置     |
      ;----------------------------------------------------------------------------------
      [uart_para]
      uart_debug_port = 1
      uart_debug_tx   = port:PD21<4><1><default><default>
      uart_debug_rx   = port:PD22<4><1><default><default>
      

      board.dts

      &uart0 {
      	pinctrl-names = "default", "sleep";
      	pinctrl-0 = <&uart0_pins_a>;
      	pinctrl-1 = <&uart0_pins_b>;
      	status = "disabled";
      };
      
      &uart1 {
      	pinctrl-names = "default", "sleep";
      	pinctrl-0 = <&uart1_pins_a>;
      	pinctrl-1 = <&uart1_pins_b>;
      	status = "okay";
      };
      
      &uart2 {
              pinctrl-names = "default", "sleep";
              pinctrl-0 = <&uart2_pins_a>;
              pinctrl-1 = <&uart2_pins_b>;
              status = "disabled";
      };
      
      &uart3 {
      	pinctrl-names = "default", "sleep";
      	pinctrl-0 = <&uart3_pins_a>;
      	pinctrl-1 = <&uart3_pins_b>;
      	status = "disabled";
      };
      
      	uart1_pins_a: uart1_pins@0 {  /* For EVB1 board */
      		pins = "PD21", "PD22";
      		function = "uart1";
      		drive-strength = <10>;
      		muxsel = <4>;
      		bias-pull-up;
      	};
      
      	uart1_pins_b: uart1_pins@1 {  /* For EVB1 board */
      		pins = "PD21", "PD22";
      		function = "gpio_in";
      	};
      
      

      env.cfg

      earlyprintk=sunxi-uart,0x02500400
      initcall_debug=1
      console=ttyS1,115200
      

      config-5.4

      # CONFIG_DEBUG_USER is not set
      CONFIG_DEBUG_LL=y
      # CONFIG_DEBUG_SUNXI_UART0 is not set
      CONFIG_DEBUG_SUNXI_UART1=y
      # CONFIG_DEBUG_SUNXI_UART2 is not set
      # CONFIG_DEBUG_ICEDCC is not set
      # CONFIG_DEBUG_SEMIHOSTING is not set
      # CONFIG_DEBUG_LL_UART_8250 is not set
      # CONFIG_DEBUG_LL_UART_PL01X is not set
      CONFIG_DEBUG_LL_INCLUDE="debug/8250.S"
      CONFIG_DEBUG_UART_8250=y
      CONFIG_DEBUG_UART_PHYS=0x02500400
      CONFIG_DEBUG_UART_VIRT=0xf2500400
      CONFIG_DEBUG_UART_8250_SHIFT=2
      

      日志输出

      [20]HELLO! BOOT0 is starting!
      [22]BOOT0 commit : 88480af-dirty
      [25]set pll start
      [31]periph0 has been enabled
      [34]set pll end
      [36][pmu]: bus read error
      [38]board init ok
      [40]ZQ value = 0x30
      [42]get_pmu_exist() = -1
      [45]ddr_efuse_type: 0xa
      [47]trefi:7.8ms
      [49][AUTO DEBUG] single rank and full DQ!
      [53]ddr_efuse_type: 0xa
      [55]trefi:7.8ms
      [58][AUTO DEBUG] rank 0 row = 13 
      [61][AUTO DEBUG] rank 0 bank = 8 
      [64][AUTO DEBUG] rank 0 page size = 2 KB 
      [68]DRAM BOOT DRIVE INFO: V0.33
      [71]DRAM CLK = 936 MHz
      [73]DRAM Type = 3 (2:DDR2,3:DDR3)
      [76]DRAMC read ODT  off.
      [79]DRAM ODT value: 0x42.
      [81]ddr_efuse_type: 0xa
      [84]DRAM SIZE =128 M
      [86]dram_tpr4:0x0
      [88]PLL_DDR_CTRL_REG:0xf8004d00
      [91]DRAM_CLK_REG:0xc0000000
      [94][TIMING DEBUG] MR2= 0x20
      [101]DRAM simple test OK.
      [104]rtc standby flag is 0x0, super standby flag is 0x0
      [109]dram size =128
      [111]card no is 0
      [113]sdcard 0 line count 4
      [116][mmc]: mmc driver ver 2021-05-21 14:47
      [125][mmc]: Wrong media type 0x0
      [128][mmc]: ***Try SD card 0***
      [138][mmc]: HSSDR52/SDR25 4 bit
      [141][mmc]: 50000000 Hz
      [143][mmc]: 29664 MB
      [145][mmc]: ***SD/MMC 0 init OK!!!***
      [217]Loading boot-pkg Succeed(index=0).
      [221]Entry_name        = u-boot
      [227]Entry_name        = optee
      [231]Entry_name        = dtb
      [233]mmc not para
      [235]Jump to second Boot.
      M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm
      
      
      U-Boot 2018.05-g24521d6-dirty (Feb 28 2024 - 10:13:08 +0800) Allwinner Technology
      
      [00.288]CPU:   Allwinner Family
      [00.291]Model: sun8iw20
      I2C:   FDT ERROR:fdt_set_all_pin:[twi0]-->FDT_ERR_BADPATH
      FDT ERROR:fdt_set_all_pin:[twi1]-->FDT_ERR_BADPATH
      ready
      [00.313]DRAM:  128 MiB
      [00.316]Relocation Offset is: 04f01000
      [00.335]secure enable bit: 0
      [00.338]smc_tee_inform_fdt failed with: -65526[00.343]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [00.349]gic: sec monitor mode
      [00.352]flash init start
      [00.354]workmode = 0,storage type = 1
      [00.357][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00
      [00.363][mmc]: get sdc_type fail and use default host:tm1.
      [00.369][mmc]: can't find node "mmc0",will add new node
      [00.373][mmc]: fdt err returned <no error>
      [00.377][mmc]: Using default timing para
      [00.381][mmc]: SUNXI SDMMC Controller Version:0x50310
      [00.399][mmc]: card_caps:0x3000000a
      [00.402][mmc]: host_caps:0x3000003f
      [00.406]sunxi flash init ok
      [00.419]Loading Environment from SUNXI_FLASH... OK
      [00.450]Item0 (Map) magic is bad
      [00.453]the secure storage item0 copy0 magic is bad
      [00.469]Item0 (Map) magic is bad
      [00.472]the secure storage item0 copy1 magic is bad
      [00.476]Item0 (Map) magic is bad
      secure storage read widevine fail
      [00.482]secure storage read widevine fail with:-1
      secure storage read ec_key fail
      [00.490]secure storage read ec_key fail with:-1
      secure storage read ec_cert1 fail
      [00.497]secure storage read ec_cert1 fail with:-1
      secure storage read ec_cert2 fail
      [00.504]secure storage read ec_cert2 fail with:-1
      secure storage read ec_cert3 fail
      [00.512]secure storage read ec_cert3 fail with:-1
      secure storage read rsa_key fail
      [00.519]secure storage read rsa_key fail with:-1
      secure storage read rsa_cert1 fail
      [00.527]secure storage read rsa_cert1 fail with:-1
      secure storage read rsa_cert2 fail
      [00.534]secure storage read rsa_cert2 fail with:-1
      secure storage read rsa_cert3 fail
      [00.542]secure storage read rsa_cert3 fail with:-1
      [00.546]usb burn from boot
      delay time 0
      weak:otg_phy_config
      [00.558]usb prepare ok
      [00.727]usb sof ok
      [00.729]usb probe ok
      [00.731]usb setup ok
      set address 0xc
      set address 0xc ok
      [03.736]do_burn_from_boot usb : have no handshake
      root_partition is rootfs
      set root to /dev/mmcblk0p5
      [03.746]update part info
      [03.749]update bootcmd
      [03.753]change working_fdt 0x43ec0e70 to 0x43ea0e70
      disable nand error: FDT_ERR_BADPATH
      [03.774]update dts
      Hit any key to stop autoboot:  0 
      [06.946]no vendor_boot partition is found
      Android's image name: t113-100ask
      [06.956]Starting kernel ...
      
      [06.959][mmc]: MMC Device 2 not found
      [06.962][mmc]: mmc 2 not find, so not exit
      
      发布在 Linux
      C
      cjia3254
    • 1 / 1