Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    T113 emmc启动,挂载rootfs失败

    D1系列-RISC-V
    2
    3
    155
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xuxxxxx LV 3 last edited by

      前提:

      1. 自己画的板子
      2. 4bits emmc
      3. 量产TF卡烧录emmc成功

      问题:
      运行时挂载rootfs失败,log:

      [98]HELLO! BOOT0 is starting!
      [101]BOOT0 commit : 88480af-dirty
      [104]set pll start
      [106]fix vccio detect value:0xc0
      [113]periph0 has been enabled
      [116]set pll end
      [118][pmu]: bus read error
      [121]board init ok
      [123]ZQ value = 0x2e
      [124]get_pmu_exist() = -1
      [127]DRAM BOOT DRIVE INFO: V0.33
      [130]DRAM CLK = 936 MHz
      [132]DRAM Type = 3 (2:DDR2,3:DDR3)
      [135]DRAMC read ODT  off.
      [138]DRAM ODT value: 0x42.
      [141]ddr_efuse_type: 0xa
      [144]DRAM SIZE =128 M
      [146]dram_tpr4:0x0
      [148]PLL_DDR_CTRL_REG:0xf8004d00
      [151]DRAM_CLK_REG:0xc0000000
      [153][TIMING DEBUG] MR2= 0x20
      [161]DRAM simple test OK.
      [163]rtc standby flag is 0x0, super standby flag is 0x0
      [169]dram size =128
      [171]card no is 2
      [173]sdcard 2 line count 4
      [175][mmc]: mmc driver ver 2021-05-21 14:47
      [185][mmc]: Wrong media type 0x0, but host sdc2, try mmc first
      [190][mmc]: ***Try MMC card 2***
      [215][mmc]: RMCA OK!
      [217][mmc]: mmc 2 bias 0
      [220][mmc]: MMC 5.1
      [221][mmc]: HSSDR52/SDR25 4 bit
      [224][mmc]: 50000000 Hz
      [227][mmc]: 3728 MB
      [228][mmc]: ***SD/MMC 2 init OK!!!***
      [311]Loading boot-pkg Succeed(index=0).
      [315]Entry_name        = u-boot
      [321]Entry_name        = optee
      [325]Entry_name        = dtb
      [328]tunning data addr:0x430003e8
      [331]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.07-ge987def5-dirty (Jan 12 2023 - 18:10:34 +0800) Allwinner Technology
      
      [00.385]CPU:   Allwinner Family
      [00.387]Model: sun8iw20
      [00.390]DRAM:  128 MiB
      [00.393]Relocation Offset is: 04ed5000
      [00.416]secure enable bit: 0
      [00.419]smc_tee_inform_fdt failed with: ffff000a
      [00.424]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [00.430]gic: sec monitor mode
      sunxi flash map init
      [00.435]flash init start
      [00.437]workmode = 0,storage type = 2
      Xucw: set board mmc num=2
      [00.443][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00
      [00.449][mmc]: SUNXI SDMMC Controller Version:0x50310
      [00.474][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 4
      [00.481]sunxi flash init ok
      [00.483]line:703 init_clocks
      [00.486]drv_disp_init
      request pwm success, pwm7:pwm7:0x2000c00.
      fdt get node offset faill: hdmi
      [00.503]drv_disp_init finish
      [00.508]Loading Environment from SUNXI_FLASH... OK
      [00.521]boot_gui_init:start
      [00.524]set disp.dev2_output_type fail. using defval=0
      FDT ERROR:get muxsel err returned FDT_ERR_INTERNAL
      disp_sys_pin_set_state, fdt_set_all_pin, ret=-1
      [00.699]set disp.fb0_rot_used fail. using defval=0
      [00.703]set disp.fb0_rot_degree fail. using defval=0
      [00.708]boot_gui_init:finish
      partno erro : can't find partition bootloader
      [00.988]bmp_name=bootlogo.bmp size 38454
      [00.995]Item0 (Map) magic is bad
      [00.997]the secure storage item0 copy0 magic is bad
      [01.002]Item0 (Map) magic is bad
      [01.005]the secure storage item0 copy1 magic is bad
      [01.010]Item0 (Map) magic is bad
      secure storage read widevine fail
      [01.016]secure storage read widevine fail with:-1
      secure storage read ec_key fail
      [01.023]secure storage read ec_key fail with:-1
      secure storage read ec_cert1 fail
      [01.030]secure storage read ec_cert1 fail with:-1
      secure storage read ec_cert2 fail
      [01.038]secure storage read ec_cert2 fail w[01.042]LCD open finish
      ith:-1
      secure storage read ec_cert3 fail
      [01.048]secure storage read ec_cert3 fail with:-1
      secure storage read rsa_key fail
      [01.055]secure storage read rsa_key fail with:-1
      secure storage read rsa_cert1 fail
      [01.063]secure storage read rsa_cert1 fail with:-1
      secure storage read rsa_cert2 fail
      [01.070]secure storage read rsa_cert2 fail with:-1
      secure storage read rsa_cert3 fail
      [01.078]secure storage read rsa_cert3 fail with:-1
      [01.083]out of usb burn from boot: not need burn key
      root_partition is rootfs
      set root to /dev/mmcblk0p5
      [01.092]update part info
      [01.095]update bootcmd
      [01.097]change working_fdt 0x43e94e70 to 0x43e74e70
      [01.103][mmc]: no mmc-hs400-1_8v!
      [01.105][mmc]: delete mmc-hs200-1_8v from dtb
      [01.110][mmc]: get max-frequency ok 50000000 Hz
      disable nand error: FDT_ERR_BADPATH
      [01.129]update dts
      Hit any key to stop autoboot:  0
      [01.234]no vendor_boot partition is found
      Android's image name: t113-T3No132
      ERROR: reserving fdt memory region failed (addr=43f1f000 size=9c400)
      [01.253]Starting kernel ...
      
      [01.255][mmc]: mmc exit start
      [01.274][mmc]: mmc 2 exit ok
      [    0.000000] Booting Linux on physical CPU 0x0
      [    0.000000] Linux version 5.4.61 (xucw@pjr-by) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #66 SMP PREEMPT Thu Jan 12 10:34:19 UTC 2023
      [    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,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p5 init=/pseudo_init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:private@mmcblk0p6:UDISK@mmcblk0p7 cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun8iw20p1 boot_type=2 androidboot.boot_type=2 gpt=1 uboot_message=2018.07-ge987def5-dirty(01/12/2023-18:10:34) disp_reserve=640000,0x43f1f000 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: 107908K/131072K available (7168K kernel code, 314K rwdata, 1800K rodata, 1024K init, 1190K bss, 14972K 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.008033] Switching to timer-based delay loop, resolution 41ns
      [    0.014210] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
      [    0.023961] Console: colour dummy device 80x30
      [    0.028438] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
      [    0.038797] pid_max: default: 32768 minimum: 301
      [    0.043538] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.050853] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.059195] CPU: Testing write buffer coherency: ok
      [    0.064413] /cpus/cpu@0 missing clock-frequency property
      [    0.069739] /cpus/cpu@1 missing clock-frequency property
      [    0.075078] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
      [    0.081256] Setting up static identity map for 0x40100000 - 0x40100060
      [    0.087906] rcu: Hierarchical SRCU implementation.
      [    0.093104] smp: Bringing up secondary CPUs ...
      [    0.098729] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
      [    0.098848] smp: Brought up 1 node, 2 CPUs
      [    0.108661] SMP: Total of 2 processors activated (96.00 BogoMIPS).
      [    0.114830] CPU: All CPU(s) started in SVC mode.
      [    0.119910] devtmpfs: initialized
      [    0.134892] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
      [    0.143016] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      [    0.152893] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
      [    0.160149] pinctrl core: initialized pinctrl subsystem
      [    0.166568] NET: Registered protocol family 16
      [    0.172658] DMA: preallocated 256 KiB pool for atomic coherent allocations
      [    0.213666] rtc_ccu: sunxi ccu init OK
      [    0.219855] ccu: sunxi ccu init OK
      [    0.223738] r_ccu: sunxi ccu init OK
      [    0.267937] sun6i-dma 3002000.dma-controller: sunxi dma probed
      [    0.276507] iommu: Default domain type: Translated
      [    0.281600] sunxi iommu: irq = 24
      [    0.286632] SCSI subsystem initialized
      [    0.290738] usbcore: registered new interface driver usbfs
      [    0.296431] usbcore: registered new interface driver hub
      [    0.301865] usbcore: registered new device driver usb
      [    0.307122] mc: Linux media interface: v0.10
      [    0.311476] videodev: Linux video capture interface: v2.00
      [    0.318111] Advanced Linux Sound Architecture Driver Initialized.
      [    0.324860] Bluetooth: Core ver 2.22
      [    0.328552] NET: Registered protocol family 31
      [    0.333002] Bluetooth: HCI device and connection manager initialized
      [    0.339674] Bluetooth: HCI socket layer initialized
      [    0.344577] Bluetooth: L2CAP socket layer initialized
      [    0.349673] Bluetooth: SCO socket layer initialized
      [    0.354837] pwm module init!
      [    0.359055] g2d 5410000.g2d: Adding to iommu group 0
      [    0.364441] G2D: rcq version initialized.major:251
      [    0.370281] clocksource: Switched to clocksource arch_sys_counter
      [    0.385002] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
      [    0.405274] NET: Registered protocol family 2
      [    0.410194] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
      [    0.418783] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.426506] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
      [    0.433647] TCP: Hash tables configured (established 1024 bind 1024)
      [    0.440117] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.446725] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.453917] NET: Registered protocol family 1
      [    0.458768] RPC: Registered named UNIX socket transport module.
      [    0.465011] RPC: Registered udp transport module.
      [    0.469726] RPC: Registered tcp transport module.
      [    0.474437] RPC: Registered tcp NFSv4.1 backchannel transport module.
      [    0.481880] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
      [    0.492195] spi spi0: spi0 supply spi not found, using dummy regulator
      [    0.498934] sunxi_spi_resource_get()2438 - [spi0] SPI MASTER MODE
      [    0.505101] sunxi_spi_resource_get()2476 - Failed to get sample mode
      [    0.511493] sunxi_spi_resource_get()2481 - Failed to get sample delay
      [    0.517943] sunxi_spi_resource_get()2485 - sample_mode:-1431633921 sample_delay:-1431633921
      [    0.526382] sunxi_spi_clk_init()2527 - [spi0] mclk 100000000
      [    0.532557] sunxi_spi_probe()2978 - [spi0]: driver probe succeed, base c881f000, irq 41
      [    0.542628] workingset: timestamp_bits=30 max_order=15 bucket_order=0
      [    0.555791] squashfs: version 4.0 (2009/01/31) Phillip Lougher
      [    0.562744] NFS: Registering the id_resolver key type
      [    0.567841] Key type id_resolver registered
      [    0.572070] Key type id_legacy registered
      [    0.576140] ntfs: driver 2.1.32 [Flags: R/W].
      [    0.609471] io scheduler mq-deadline registered
      [    0.614081] io scheduler kyber registered
      [    0.619220] [DISP]disp_module_init
      [    0.623241] disp 5000000.disp: Adding to iommu group 0
      [    0.628893] [DISP] disp_init,line:2387:
      [    0.628898] smooth display screen:0 type:1 mode:4
      [    0.653328] [DISP] disp_lcd_enable,line:2111:
      [    0.653333] mgr is NULL!
      [    0.660354] [DISP] disp_init_hdmi,line:1047:
      [    0.660356] dont support hdmi
      [    0.667883] display_fb_request,fb_id:0
      [    0.673596] disp_al_manager_apply ouput_type:1
      [    0.678196] [DISP] lcd_clk_config,line:774:
      [    0.678207] disp 0, clk: pll(312000000),clk(312000000),dclk(13000000) dsi_rate(13000000)
      [    0.678207]      clk real:pll(312000000),clk(312000000),dclk(78000000) dsi_rate(150000000)
      [    0.680840] [DISP]disp_module_init finish
      [    0.682756] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
      [    0.700548] sunxi_sid_init()783 - insmod ok
      [    0.706287] Freeing logo buffer memory: 628K
      [    0.714244] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
      [    0.731553] uart uart0: uart0 supply uart not found, using dummy regulator
      [    0.738720] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
      [    0.746618] sw_console_setup()1807 - console setup baud 115200 parity n bits 8, flow n
      [    0.754602] printk: console [ttyS0] enabled
      [    0.754602] printk: console [ttyS0] enabled
      [    0.763482] printk: bootconsole [earlycon0] disabled
      [    0.763482] printk: bootconsole [earlycon0] disabled
      [    0.774718] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
      [    0.786046] uart uart1: uart1 supply uart not found, using dummy regulator
      [    0.794023] uart1: ttyS1 at MMIO 0x2500400 (irq = 35, base_baud = 1500000) is a SUNXI
      [    0.803708] misc dump reg init
      [    0.808239] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
      [    0.815483] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
      [    0.822791] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
      [    0.830174] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
      [    0.836688] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
      [    0.843610] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
      [    0.851307] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=111 assert=1
      [    0.859130] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
      [    0.867213] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
      [    0.874824] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
      [    0.881569] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
      [    0.889062] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=110 assert=0
      [    0.897215] [ADDR_MGT] addr_mgt_probe: module version: v1.0.11
      [    0.904413] [ADDR_MGT] addr_mgt_probe: success.
      [    0.909807] dma-buf: Running sanitycheck
      [    0.914232] dma-buf: Running dma_fence
      [    0.918408] sizeof(dma_fence)=48
      [    0.922149] dma-buf: Running dma_fence/sanitycheck
      [    0.927502] dma-buf: Running dma_fence/test_signaling
      [    0.933180] dma-buf: Running dma_fence/test_add_callback
      [    0.939102] dma-buf: Running dma_fence/test_late_add_callback
      [    0.945537] dma-buf: Running dma_fence/test_rm_callback
      [    0.951380] dma-buf: Running dma_fence/test_late_rm_callback
      [    0.957689] dma-buf: Running dma_fence/test_status
      [    0.963038] dma-buf: Running dma_fence/test_error
      [    0.968281] dma-buf: Running dma_fence/test_wait
      [    0.973437] dma-buf: Running dma_fence/test_wait_timeout
      [    1.010291] dma-buf: Running dma_fence/test_stub
      [    1.015456] dma-buf: Running dma_fence/race_signal_callback
      [    1.090293] thread_signal_callback[0] completed 36281 passes, 23 misses
      [    1.097697] thread_signal_callback[1] completed 36304 passes, 46 misses
      [    1.170289] thread_signal_callback[0] completed 40629 passes, 40629 misses
      [    1.177979] thread_signal_callback[1] completed 40667 passes, 40667 misses
      [    1.186360] libphy: Fixed MDIO Bus: probed
      [    1.191713] usbcore: registered new interface driver asix
      [    1.197745] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      [    1.205142] sunxi-ehci: EHCI SUNXI driver
      [    1.210084] get ehci1-controller wakeup-source is fail.
      [    1.216056] sunxi ehci1-controller don't init wakeup source
      [    1.222321] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0c6b3a8, 0x:c8837000, irq_no:3b
      [    1.234287] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply drvvbus not found, using dummy regulator
      [    1.246758] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
      [    1.258930] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
      [    1.266170] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
      [    1.276086] sunxi-ehci 4200000.ehci1-controller: irq 59, io mem 0x04200000
      [    1.310308] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
      [    1.318071] sunxi-ehci 4200000.ehci1-controller: ehci_irq: highspeed device connect
      [    1.327498] hub 1-0:1.0: USB hub found
      [    1.331747] hub 1-0:1.0: 1 port detected
      [    1.336778] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      [    1.343722] sunxi-ohci: OHCI SUNXI driver
      [    1.348691] get ohci1-controller wakeup-source is fail.
      [    1.354668] sunxi ohci1-controller don't init wakeup source
      [    1.360901] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0c6b638
      [    1.370546] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply drvvbus not found, using dummy regulator
      [    1.382996] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
      [    1.395142] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
      [    1.402393] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
      [    1.412242] sunxi-ohci 4200400.ohci1-controller: irq 60, io mem 0x04200400
      [    1.485147] hub 2-0:1.0: USB hub found
      [    1.489369] hub 2-0:1.0: 1 port detected
      [    1.494676] usbcore: registered new interface driver uas
      [    1.500742] usbcore: registered new interface driver usb-storage
      [    1.507527] usbcore: registered new interface driver ums-alauda
      [    1.514198] usbcore: registered new interface driver ums-cypress
      [    1.520976] usbcore: registered new interface driver ums-datafab
      [    1.527722] usbcore: registered new interface driver ums_eneub6250
      [    1.534691] usbcore: registered new interface driver ums-freecom
      [    1.541453] usbcore: registered new interface driver ums-isd200
      [    1.548104] usbcore: registered new interface driver ums-jumpshot
      [    1.554994] usbcore: registered new interface driver ums-karma
      [    1.561590] usbcore: registered new interface driver ums-onetouch
      [    1.568483] usbcore: registered new interface driver ums-realtek
      [    1.575254] usbcore: registered new interface driver ums-sddr09
      [    1.581923] usbcore: registered new interface driver ums-sddr55
      [    1.588593] usbcore: registered new interface driver ums-usbat
      [    1.595166] usbcore: registered new interface driver idmouse
      [    1.601738] i2c /dev entries driver
      [    1.606113] usbcore: registered new interface driver uvcvideo
      [    1.612545] USB Video Class driver (1.1.1)
      [    1.617149] sunxi cedar version 1.1
      [    1.621263] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
      [    1.627546] VE: sunxi_cedar_probe power-domain init!!!
      [    1.633300] VE: install start!!!
      [    1.633300]
      [    1.638850] VE: cedar-ve the get irq is 42
      [    1.638850]
      [    1.645277] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
      [    1.645277]
      [    1.654553] VE: install end!!!
      [    1.654553]
      [    1.659602] VE: sunxi_cedar_probe
      [    1.663586] Bluetooth: HCI UART driver ver 2.3
      [    1.668563] Bluetooth: HCI UART protocol H4 registered
      [    1.674318] Bluetooth: HCI UART protocol BCSP registered
      [    1.680509] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
      [    1.687698] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1
      [    1.694082] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1
      [    1.700328] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
      [    1.700631] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled!
      [    1.700631]
      [    1.716731] [XR_BT_LPM] bluesleep_probe: uart_index(1)
      [    1.723834] sun8iw20-pinctrl 2000000.pinctrl: pin PC2 already requested by 4025000.spi; cannot claim for 4022000.sdmmc
      [    1.735812] sun8iw20-pinctrl 2000000.pinctrl: pin-66 (4022000.sdmmc) status -22
      [    1.743978] sun8iw20-pinctrl 2000000.pinctrl: could not request pin 66 (PC2) from group PC2  on device 2000000.pinctrl
      [    1.755926] sunxi-mmc 4022000.sdmmc: Error applying setting, reverse things back
      [    1.764217] sunxi-mmc: probe of 4022000.sdmmc failed with error -22
      [    1.772246] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
      [    1.782068] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
      [    1.788246] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
      [    1.794576] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
      [    1.801001] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
      [    1.807407] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
      [    1.813924] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
      [    1.820460] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
      [    1.826964] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
      [    1.834260] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.845383] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
      [    1.865511] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.889695] sunxi-mmc 4020000.sdmmc: detmode:manually by software
      [    1.896534] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.900854] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
      [    1.911239] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.917958] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
      [    1.931471] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 8, RTO !!
      [    1.935470] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
      [    1.942951] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
      [    1.948402] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
      [    1.956035] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
      [    1.961630] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
      [    1.969253] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
      [    1.974817] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
      [    1.982456] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
      [    1.988266] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
      [    1.994975] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
      [    2.001639] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
      [    2.019210] hub 1-1:1.0: USB hub found
      [    2.019323] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
      [    2.029971] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
      [    2.038700] hub 1-1:1.0: 4 ports detected
      [    2.043541] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.054711] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
      [    2.074887] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.097583] sunxi-mmc 4021000.sdmmc: detmode:manually by software
      [    2.105265] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
      [    2.112931] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
      [    2.119786] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.131669] usbcore: registered new interface driver usbhid
      [    2.134396] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.137885] usbhid: USB HID core driver
      [    2.151615] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    2.153826] exFAT: Version 1.3.0
      [    2.161293] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    2.168308] NET: Registered protocol family 10
      [    2.171662] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    2.176990] Segment Routing with IPv6
      [    2.183341] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    2.186631] NET: Registered protocol family 17
      [    2.193316] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
      [    2.198465] Bluetooth: RFCOMM TTY layer initialized
      [    2.214867] Bluetooth: RFCOMM socket layer initialized
      [    2.220637] Bluetooth: RFCOMM ver 1.11
      [    2.225079] Key type dns_resolver registered
      [    2.230521] Registering SWP/SWPB emulation handler
      [    2.249963] sun8iw20-pinctrl 2000000.pinctrl: pin PC2 already requested by 4025000.spi; cannot claim for 4022000.sdmmc
      [    2.261942] sun8iw20-pinctrl 2000000.pinctrl: pin-66 (4022000.sdmmc) status -22
      [    2.270096] sun8iw20-pinctrl 2000000.pinctrl: could not request pin 66 (PC2) from group PC2  on device 2000000.pinctrl
      [    2.282043] sunxi-mmc 4022000.sdmmc: Error applying setting, reverse things back
      [    2.290332] sunxi-mmc: probe of 4022000.sdmmc failed with error -22
      [    2.297733] sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator
      [    2.307774] sunxi-i2c sunxi-i2c2: probe success
      [    2.314185] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
      [    2.326701] get ehci0-controller wakeup-source is fail.
      [    2.332665] sunxi ehci0-controller don't init wakeup source
      [    2.338885] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0c6ae88, 0x:c8893000, irq_no:39
      [    2.350829] [sunxi-ehci0]: Not init ehci0
      [    2.355674] get ohci0-controller wakeup-source is fail.
      [    2.361625] sunxi ohci0-controller don't init wakeup source
      [    2.367842] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0c6b118
      [    2.377461] [sunxi-ohci0]: Not init ohci0
      [    2.382705] otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator
      [    2.396316] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
      [    2.400426] clk: Not disabling unused clocks
      [    2.405956] cfg80211: failed to load regulatory.db
      [    2.410737] usb 1-1.1: new high-speed USB device number 3 using sunxi-ehci
      [    2.416118] ALSA device list:
      [    2.424073] input: Hynitron cst8xx Touchscreen as /devices/platform/soc@3000000/sunxi-i2c2/i2c-2/2-0015/input/input0
      [    2.427030]   No soundcards found.
      [    2.442578] alloc_fd: slot 0 not NULL!
      [    2.447137] VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6
      [    2.455800] Please append a correct "root=" boot option; here are the available partitions:
      [    2.465137] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
      [    2.474359] CPU0: stopping
      [    2.477378] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.61 #66
      [    2.484069] Hardware name: Generic DT based system
      [    2.489429] [<c010df08>] (unwind_backtrace) from [<c010a698>] (show_stack+0x10/0x14)
      [    2.498067] [<c010a698>] (show_stack) from [<c070a370>] (dump_stack+0x88/0xa4)
      [    2.506121] [<c070a370>] (dump_stack) from [<c010c2d4>] (handle_IPI+0xe4/0x180)
      [    2.514276] [<c010c2d4>] (handle_IPI) from [<c034ad38>] (gic_handle_irq+0x70/0x78)
      [    2.522721] [<c034ad38>] (gic_handle_irq) from [<c01021cc>] (__irq_svc+0x6c/0xa8)
      [    2.531058] Exception stack(0xc0b01f40 to 0xc0b01f88)
      [    2.536691] 1f40: 000009dc c76b8334 00000000 c0114860 00000001 c0b00000 c0b03de4 c0b03e20
      [    2.545810] 1f60: c0b4f000 c77ff600 c0a290c0 00000000 c0c55748 c0b01f90 c0107fd0 c0107fc0
      [    2.554923] 1f80: 60000113 ffffffff
      [    2.558814] [<c01021cc>] (__irq_svc) from [<c0107fc0>] (arch_cpu_idle+0x1c/0x38)
      [    2.567063] [<c0107fc0>] (arch_cpu_idle) from [<c013d714>] (do_idle+0xd4/0x128)
      [    2.575214] [<c013d714>] (do_idle) from [<c013d9f8>] (cpu_startup_entry+0x18/0x20)
      [    2.583656] [<c013d9f8>] (cpu_startup_entry) from [<c0a00c80>] (start_kernel+0x360/0x3ec)
      [    2.592774] [<c0a00c80>] (start_kernel) from [<00000000>] (0x0)
      [    2.599379] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
      

      看提示应该是mmcblk0p5没有找到。

      当前配置:

      1. sys_config.fex:
      ;----------------------------------------------------------------------------------
      ;storage_type   = boot medium, 0-nand, 1-sd, 2-emmc, 3-nor, 4-emmc3, 5-spinand -1(defualt)auto scan
      ;----------------------------------------------------------------------------------
      [target]
      boot_clock   	= 1008
      storage_type    = 2
      nand_use_ubi	= 1
      
      1. env.cfg:
      #kernel command arguments
      earlyprintk=sunxi-uart,0x02500000
      initcall_debug=0
      console=ttyS0,115200
      nand_root=/dev/ubiblock0_5
      mmc_root=/dev/mmcblk0p5
      mtd_name=sys
      rootfstype=squashfs
      root_partition=rootfs
      boot_partition=boot
      init=/sbin/init
      loglevel=8
      cma=8M
      mac=
      wifi_mac=
      bt_mac=
      specialstr=
      keybox_list=widevine,ec_key,ec_cert1,ec_cert2,ec_cert3,rsa_key,rsa_cert1,rsa_cert2,rsa_cert3
      dsp0_partition=dsp0
      #set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
      setargs_nand=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
      setargs_nand_ubi=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
      setargs_mmc=setenv  bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root}  init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
      #nand command syntax: sunxi_flash read address partition_name read_bytes
      #0x4007f800 = 0x40080000(kernel entry) - 0x800(boot.img header 2k)
      boot_dsp0=sunxi_flash read 45000000 ${dsp0_partition};bootr 45000000 0 0
      boot_normal=sunxi_flash read 45000000 ${boot_partition};bootm 45000000
      boot_recovery=sunxi_flash read 45000000 recovery;bootm 45000000
      boot_fastboot=fastboot
      
      #uboot system env config
      bootdelay=0
      #default bootcmd, will change at runtime according to key press
      #default nand boot
      bootcmd=run setargs_mmc boot_normal
      
      1. board.dts:
            card0_boot_para@2 {
      		/*
      		 * Avoid dtc compiling warnings.
      		 * @TODO: Developer should modify this to the actual value
      		 */
      		reg = <0x0 0x2 0x0 0x0>;
      		device_type = "card0_boot_para";
      		card_ctrl = <0x0>;
      		card_high_speed = <0x1>;
      		card_line = <0x4>;
      		pinctrl-0 = <&sdc0_pins_a>;
      	};
      
      	card2_boot_para@3 {
      		/*
      		 * Avoid dtc compiling warnings.
      		 * @TODO: Developer should modify this to the actual value
      		 */
      		reg = <0x0 0x3 0x0 0x0>;
      		device_type = "card2_boot_para";
      		card_ctrl = <0x2>;
      		card_high_speed = <0x1>;
      		card_line = <0x4>;
      		pinctrl-0 = <&sdc2_pins_a>;
      		/*pinctrl-0 = <&sdc0_pins_a>;*/
      		/*sdc_ex_dly_used = <0x2>;*/
      		sdc_io_1v8 = <0x1>;
      		/*sdc_type = "tm4";*/
      		sdc_tm4_hs200_max_freq = <150>;
      		sdc_tm4_hs400_max_freq = <100>;
      		sdc_ex_dly_used = <2>;
      		/*sdc_tm4_win_th = <8>;*/
      		/*sdc_dis_host_caps = <0x180>;*/
      	};
      
            &sdc2 {
            	non-removable;
            	bus-width = <4>;
            	mmc-ddr-1_8v;
            	mmc-hs200-1_8v;
            	no-sdio;
            	/* no-sd; */
            	ctl-spec-caps = <0x308>;
            	cap-mmc-highspeed;
            	sunxi-power-save-mode;
            	sunxi-dis-signal-vol-sw;
            	mmc-bootpart-noacc;
            	max-frequency = <150000000>;
            	/*vmmc-supply = <&reg_dcdc1>;*/
            	/*emmc io vol 3.3v*/
            	/*vqmmc-supply = <&reg_aldo1>;*/
            	/*emmc io vol 1.8v*/
            	/*vqmmc-supply = <&reg_eldo1>;*/
            	status = "okay";
            };
            
            &sdc0 {
            	bus-width = <4>;
            	/* cd-gpios = <&pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; */
            	/*non-removable;*/
            	/*broken-cd;*/
            	/*cd-inverted;*/
            	/*data3-detect;*/
            	/*card-pwr-gpios = <&pio PH 14 1 1 2 0xffffffff>;*/
            	cd-used-24M;
            	cap-sd-highspeed;
            	/*sd-uhs-sdr50;*/
            	/*sd-uhs-ddr50;*/
            	/*sd-uhs-sdr104;*/
            	no-sdio;
            	no-mmc;
            	sunxi-power-save-mode;
            	/*sunxi-dis-signal-vol-sw;*/
            	max-frequency = <150000000>;
            	ctl-spec-caps = <0x8>;
            	/*vmmc-supply = <&reg_dcdc1>;*/
            	/*vqmmc33sw-supply = <&reg_dcdc1>;*/
            	/*vdmmc33sw-supply = <&reg_dcdc1>;*/
            	/*vqmmc18sw-supply = <&reg_eldo1>;*/
            	/*vdmmc18sw-supply = <&reg_eldo1>;*/
            	status = "okay";
            };
      

      自己尝试了一天,没有思路了,请大佬帮忙看看

      1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 last edited by

        @xucw15990192241 在 T113 emmc启动,挂载rootfs失败 中说:

        [ 2.249963] sun8iw20-pinctrl 2000000.pinctrl: pin PC2 already requested by 4025000.spi; cannot claim for 4022000.sdmmc
        [ 2.261942] sun8iw20-pinctrl 2000000.pinctrl: pin-66 (4022000.sdmmc) status -22
        [ 2.270096] sun8iw20-pinctrl 2000000.pinctrl: could not request pin 66 (PC2) from group PC2 on device 2000000.pinctrl
        [ 2.282043] sunxi-mmc 4022000.sdmmc: Error applying setting, reverse things back
        [ 2.290332] sunxi-mmc: probe of 4022000.sdmmc failed with error -22

        需要先解决这个问题.

        X 1 Reply Last reply Reply Quote Share 0
        • X
          xuxxxxx LV 3 @whycan last edited by

          @whycan 妥了,多谢大佬,自己疏忽了

          1 Reply Last reply Reply Quote Share 0
          • 1 / 1
          • First post
            Last post

          Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策