Navigation

    全志在线开发者论坛

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

    F133挂载点错误

    MR Series
    2
    9
    3315
    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.
    • Z
      ZM12138 LV 5 last edited by xiaowenge

      小白,问一下挂载点错误,应该修改哪里啊😊 如下面log错误

      alloc_fd: slot 0 not NULL!
      cfg80211: failed to load regulatory.db
      /dev/root: Can't open blockdev
      VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6
      Please append a correct "root=" boot option; here are the available partitions:
      Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
      CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.61 #6
      Call Trace:
      [<ffffffe000022cde>] 0xffffffe000022cde
      [<ffffffe000026c1e>] 0xffffffe000026c1e
      [<ffffffe000000d10>] 0xffffffe000000d10
      [<ffffffe000000f36>] 0xffffffe000000f36
      [<ffffffe0003d08c6>] 0xffffffe0003d08c6
      [<ffffffe0003d08d4>] 0xffffffe0003d08d4
      [<ffffffe0003d08c6>] 0xffffffe0003d08c6
      [<ffffffe000021ce4>] 0xffffffe000021ce4
      ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
      
      whycan 1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 @ZM12138 last edited by

        @ZM12138

        看起来是某些原因,没有生成mmcblk0pX分区。

        请贴出完整日志。

        Z 1 Reply Last reply Reply Quote Share 0
        • Z
          ZM12138 LV 5 @whycan last edited by xiaowenge

          @whycan 感谢,以下是完整Logo日志,帮忙看一下

          Platform Name          : T-HEAD Xuantie Platform
          Platform HART Features : RV64ACDFIMSUVX
          Platform Max HARTs     : 1
          Current Hart           : 0
          Firmware Base          : 0x41fc0400
          Firmware Size          : 75 KB
          Runtime SBI Version    : 0.2
          
          MIDELEG : 0x0000000000000222
          MEDELEG : 0x000000000000b1ff
          PMP0    : 0x0000000041fc0000-0x0000000041fdffff (A)
          PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
          PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
          PMP3    : 0x0000000000020000-0x0000000000027fff (A,ÿ
          
          U-Boot 2018.05 (Jan 30 2023 - 17:43:21 +0800) Allwinner Technology
          
          [00.313]DRAM:  64 MiB
          [00.315]Relocation Offset is: 01ed9000
          [00.320]secure enable bit: 0
          [00.322]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
          [00.329]flash init start
          [00.331]workmode = 0,storage type = 1
          [00.334][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00
          [00.340][mmc]: get sdc_type fail and use default host:tm1.
          [00.346][mmc]: can't find node "mmc0",will add new node
          [00.351][mmc]: fdt err returned <no error>
          [00.355][mmc]: Using default timing para
          [00.358][mmc]: SUNXI SDMMC Controller Version:0x50310
          [00.385][mmc]: card_caps:0x3000000a
          [00.388][mmc]: host_caps:0x3000003f
          [00.392]sunxi flash init ok
          [00.395]line:703 init_clocks
          [00.398]drv_disp_init
          request pwm success, pwm7:pwm7:0x2000c00.
          fdt get node offset faill: hdmi
          [00.416]unable to map hdmi registers
          [00.419]drv_disp_init finish
          [00.432]Loading Environment from SUNXI_FLASH... OK
          [00.452]boot_gui_init:start
          [00.455]set disp.dev2_output_type fail. using defval=0
          [00.462]boot_gui_init:finish
          partno erro : can't find partition bootloader
          54 bytes read in 1 ms (52.7 KiB/s)
          [00.476]bmp_name=bootlogo.bmp size 38454
          38454 bytes read in 4 ms (9.2 MiB/s)
          [00.488]out of usb burn from boot: not need burn key
          [00.495]Item0 (Map) magic is bad
          [00.498]the secure storage item0 copy0 magic is bad
          [00.506]Item0 (Map) magic is bad
          [00.508]the secure storage item0 copy1 magic is bad
          [00.513]Item0 (Map) magic is bad
          partno erro : can't find partition private
          root_partition is rootfs
          set root to /dev/mmcblk0p5
          [00.528]update part info
          [00.531]update bootcmd
          [00.534]change working_fdt 0x42a98da0 to 0x42a78da0
          disable nand error: FDT_ERR_BADPATH
          [00.543]The storage not support sample function
          No reserved memory region found in source FDT
          [00.568]update dts
          noncached_alloc(): addr = 0x42b02a40
          noncached_alloc(): addr = 0x42b02a80
          noncached_alloc(): addr = 0x42b02ac0
          noncached_alloc(): addr = 0x42b03300
          geth_sys_init:639: get node 'gmac0' error
          geth_sys_init fail!
          [00.589]Board Net Initialization Failed
          [00.592]No ethernet found.
          Hit any key to stop autoboot:  1 FDT ERROR:get muxsel err returned FDT_ERR_INTERNAL
          sunxi_pwm_pin_set_state, fdt_set_all_pin, ret=-1
          [00.652]LCD open finish                                                                                                        0 
          [01.850]no vendor_boot partition is found
          Android's image name: f133-evb1
          Detect comp none
          [01.866]
          Starting kernel ...
          
          [01.868][mmc]: MMC Device 2 not found
          [01.872][mmc]: mmc 2 not find, so not exit
          Linux version 5.4.61 (root@zm-virtual-machine) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #6 PREEMPT Mon Jan 30 08:49:51 UTC 2023
          Zone ranges:
            DMA32    [mem 0x0000000040000000-0x0000000043ffffff]
            Normal   empty
          Movable zone start for each node
          Early memory node ranges
            node   0: [mem 0x0000000040000000-0x0000000043ffffff]
          Initmem setup node 0 [mem 0x0000000040000000-0x0000000043ffffff]
          On node 0 totalpages: 16384
            DMA32 zone: 224 pages used for memmap
            DMA32 zone: 0 pages reserved
            DMA32 zone: 16384 pages, LIFO batch:3
          elf_hwcap is 0x20112d
          pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
          pcpu-alloc: [0] 0 
          Built 1 zonelists, mobility grouping on.  Total pages: 16160
          Kernel command line: 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:recovery@mmcblk0p6:rootfs_data@mmcblk0p7:UDISK@mmcblk0p8 cma=0M 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.05(01/30/2023-17:43:21) mbr_offset=15
          Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
          Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
          Sorting __ex_table...
          mem auto-init: stack:off, heap alloc:off, heap free:off
          Memory: 56828K/65536K available (3792K kernel code, 382K rwdata, 1130K rodata, 132K init, 224K bss, 8708K reserved, 0K cma-reserved)
          SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
          rcu: Preemptible hierarchical RCU implementation.
          	Tasks RCU enabled.
          rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
          NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
          plic: mapped 200 interrupts with 1 handlers for 2 contexts.
          riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
          clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
          sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
          riscv_timer_clockevent depends on broadcast, but no broadcast function available
          clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
          Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
          pid_max: default: 32768 minimum: 301
          Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
          Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
          ASID allocator initialised with 65536 entries
          rcu: Hierarchical SRCU implementation.
          devtmpfs: initialized
          random: get_random_u32 called from 0xffffffe00016a9ea with crng_init=0
          clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
          futex hash table entries: 256 (order: 0, 6144 bytes, linear)
          pinctrl core: initialized pinctrl subsystem
          NET: Registered protocol family 16
          DMA: preallocated 256 KiB pool for atomic allocations
          cpuidle: using governor menu
          rtc_ccu: sunxi ccu init OK
          clock: sunxi ccu init OK
          clock: sunxi ccu init OK
          iommu: Default domain type: Translated 
          sunxi iommu: irq = 4
          SCSI subsystem initialized
          usbcore: registered new interface driver usbfs
          usbcore: registered new interface driver hub
          usbcore: registered new device driver usb
          Advanced Linux Sound Architecture Driver Initialized.
          pwm module init!
          g2d 5410000.g2d: Adding to iommu group 0
          G2D: rcq version initialized.major:252
          clocksource: Switched to clocksource riscv_clocksource
          sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
          NET: Registered protocol family 2
          tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
          TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
          TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
          TCP: Hash tables configured (established 512 bind 512)
          UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
          UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
          NET: Registered protocol family 1
          sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
          spi spi0: spi0 supply spi not found, using dummy regulator
          sunxi_spi_resource_get()2116 - [spi0] SPI MASTER MODE
          sunxi_spi_resource_get()2154 - Failed to get sample mode
          sunxi_spi_resource_get()2159 - Failed to get sample delay
          sunxi_spi_resource_get()2163 - sample_mode:-1431633921 sample_delay:-1431633921
          sunxi_spi_clk_init()2205 - [spi0] mclk 100000000
          sunxi_spi_probe()2623 - [spi0]: driver probe succeed, base ffffffd004058000, irq 31
          Initialise system trusted keyrings
          workingset: timestamp_bits=62 max_order=14 bucket_order=0
          squashfs: version 4.0 (2009/01/31) Phillip Lougher
          ntfs: driver 2.1.32 [Flags: R/W].
          fuse: init (API version 7.31)
          Key type asymmetric registered
          Asymmetric key parser 'x509' registered
          io scheduler mq-deadline registered
          io scheduler kyber registered
          [DISP]disp_module_init
          disp 5000000.disp: Adding to iommu group 0
          [DISP] parser_disp_init_para,line:1430:
          of_property_read fb0_width fail
          [DISP] disp_init,line:2386:
          smooth display screen:0 type:1 mode:4
          display_fb_request,fb_id:0
          Freeing logo buffer memory: 1500K
          disp_al_manager_apply ouput_type:1
          sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
          [DISP]disp_module_init finish
          sunxi_sid_init()551 - insmod ok
          pwm-regulator: supplied by regulator-dummy
          uart uart0: uart0 supply uart not found, using dummy regulator
          uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
          sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
          printk: console [ttyS0] enabled
          misc dump reg init
          sunxi-spinand: AW SPINand MTD Layer Version: 2.3 20211223
          sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.10 20200306
          random: fast init done
          random: crng init done
          sunxi-spinand-phy: read id failed : -110
          spi-nand: probe of spi0.0 failed with error -110
          ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
          sunxi-ehci: EHCI SUNXI driver
          ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
          sunxi-ohci: OHCI SUNXI driver
          sunxi-rtc 7090000.rtc: Warning: Using internal RC 16M clock source. Time may be inaccurate!
          sunxi-rtc 7090000.rtc: Warning: Using internal RC 16M clock source. Time may be inaccurate!
          sunxi-rtc 7090000.rtc: Warning: Using internal RC 16M clock source. Time may be inaccurate!
          sunxi-rtc 7090000.rtc: registered as rtc0
          sunxi-rtc 7090000.rtc: Warning: Using internal RC 16M clock source. Time may be inaccurate!
          sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:23 UTC (23)
          sunxi-rtc 7090000.rtc: sunxi rtc probed
          i2c /dev entries driver
          sunxi cedar version 1.1
          sunxi-cedar 1c0e000.ve: Adding to iommu group 0
          VE: install start!!!
          
          VE: cedar-ve the get irq is 6
          
          VE: install end!!!
          
          VE: sunxi_cedar_probe
          sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
          sun8iw20-pinctrl 2000000.pinctrl: pin PF2 already requested by 2500000.uart; cannot claim for 4020000.sdmmc
          sun8iw20-pinctrl 2000000.pinctrl: pin-162 (4020000.sdmmc) status -22
          sun8iw20-pinctrl 2000000.pinctrl: could not request pin 162 (PF2) from group PF2  on device 2000000.pinctrl
          sunxi-mmc 4020000.sdmmc: Error applying setting, reverse things back
          sunxi-mmc: probe of 4020000.sdmmc failed with error -22
          sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
          sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.22 2021-12-20 15:40)
          sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
          sunxi-mmc 4021000.sdmmc: No vmmc regulator found
          sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
          sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
          sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
          sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
          sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
          sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
          sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
          sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
          sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
          sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
          sunxi-mmc 4021000.sdmmc: detmode:manually by software
          ashmem: initialized
          exFAT: Version 1.3.0
          sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
          [AUDIOCODEC][sunxi_codec_parse_params][2412]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
          
          [AUDIOCODEC][sunxi_codec_parse_params][2448]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
          [AUDIOCODEC][sunxi_internal_codec_probe][2609]:codec probe finished
          sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
          sid_rd_ver_reg()254 - ver >= 4, soc ver:5
          [SNDCODEC][sunxi_card_init][583]:card init finished
          sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
          sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
          input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
          [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
          NET: Registered protocol family 10
          Segment Routing with IPv6
          NET: Registered protocol family 17
          [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
          Loading compiled-in X.509 certificates
          sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
          sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator
          sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
          sunxi-i2c sunxi-i2c2: probe success
          sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
          sun8iw20-pinctrl 2000000.pinctrl: pin PF2 already requested by 2500000.uart; cannot claim for 4020000.sdmmc
          sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
          sun8iw20-pinctrl 2000000.pinctrl: pin-162 (4020000.sdmmc) status -22
          sun8iw20-pinctrl 2000000.pinctrl: could not request pin 162 (PF2) from group PF2  on device 2000000.pinctrl
          mmc0: new high speed SDIO card at address 0001
          sunxi-mmc 4020000.sdmmc: Error applying setting, reverse things back
          sunxi-mmc: probe of 4020000.sdmmc failed with error -22
          sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
          get ehci0-controller wakeup-source is fail.
          sunxi ehci0-controller don't init wakeup source
          [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe000579370, 0x:ffffffd0040e6000, irq_no:2e
          [sunxi-ehci0]: Not init ehci0
          get ohci0-controller wakeup-source is fail.
          sunxi ohci0-controller don't init wakeup source
          [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe000579738
          [sunxi-ohci0]: Not init ohci0
          get ehci1-controller wakeup-source is fail.
          sunxi ehci1-controller don't init wakeup source
          [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xffffffe000579b00, 0x:ffffffd0040ef000, irq_no:31
          sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
          sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
          sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
          sunxi-ehci 4200000.ehci1-controller: irq 49, io mem 0x04200000
          sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
          hub 1-0:1.0: USB hub found
          hub 1-0:1.0: 1 port detected
          get ohci1-controller wakeup-source is fail.
          sunxi ohci1-controller don't init wakeup source
          [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xffffffe000579ec8
          sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
          sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
          sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
          sunxi-ohci 4200400.ohci1-controller: irq 50, io mem 0x04200400
          hub 2-0:1.0: USB hub found
          hub 2-0:1.0: 1 port detected
          cfg80211: Loading compiled-in X.509 certificates for regulatory database
          cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
          platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
          clk: Not disabling unused clocks
          ALSA device list:
            #0: audiocodec
          alloc_fd: slot 0 not NULL!
          cfg80211: failed to load regulatory.db
          /dev/root: Can't open blockdev
          VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6
          Please append a correct "root=" boot option; here are the available partitions:
          Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
          CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.61 #6
          Call Trace:
          [<ffffffe000022cde>] 0xffffffe000022cde
          [<ffffffe000026c1e>] 0xffffffe000026c1e
          [<ffffffe000000d10>] 0xffffffe000000d10
          [<ffffffe000000f36>] 0xffffffe000000f36
          [<ffffffe0003d08c6>] 0xffffffe0003d08c6
          [<ffffffe0003d08d4>] 0xffffffe0003d08d4
          [<ffffffe0003d08c6>] 0xffffffe0003d08c6
          [<ffffffe000021ce4>] 0xffffffe000021ce4
          ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
          
          whycan 1 Reply Last reply Reply Quote Share 0
          • whycan
            whycan晕哥 LV 9 @ZM12138 last edited by whycan

            @zm12138 在 F133挂载点错误 中说:

            sun8iw20-pinctrl 2000000.pinctrl: pin PF2 already requested by 2500000.uart; cannot claim for 4020000.sdmmc
            sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
            sun8iw20-pinctrl 2000000.pinctrl: pin-162 (4020000.sdmmc) status -22
            sun8iw20-pinctrl 2000000.pinctrl: could not request pin 162 (PF2) from group PF2 on device 2000000.pinctrl

            Linux的board.dts 里面看下是不是PF2被别的外设占用了,如果是 uart0,那把 status属性改为disabled

            Z 1 Reply Last reply Reply Quote Share 0
            • Z
              ZM12138 LV 5 @whycan last edited by whycan

              @whycan
              感谢,已解决,但是碰到到MMC2 not found的问题,我用的是芒果派,TF是sdc0

              Platform Name          : T-HEAD Xuantie Platform
              Platform HART Features : RV64ACDFIMSUVX
              Platform Max HARTs     : 1
              Current Hart           : 0
              Firmware Base          : 0x41fc0400
              Firmware Size          : 75 KB
              Runtime SBI Version    : 0.2
              
              MIDELEG : 0x0000000000000222
              MEDELEG : 0x000000000000b1ff
              PMP0    : 0x0000000041fc0000-0x0000000041fdffff (A)
              PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
              PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
              PMP3    : 0x0000000000020000-0x0000000000027fff (A,ÿ
              
              U-Boot 2018.05 (Jan 31 2023 - 18:22:47 +0800) Allwinner Technology
              
              [00.445]DRAM:  64 MiB
              [00.447]Relocation Offset is: 01ed9000
              [00.452]secure enable bit: 0
              [00.454]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
              [00.460]flash init start
              [00.463]workmode = 0,storage type = 1
              [00.466][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00
              [00.471][mmc]: get sdc_type fail and use default host:tm1.
              [00.478][mmc]: can't find node "mmc0",will add new node
              [00.483][mmc]: fdt err returned <no error>
              [00.486][mmc]: Using default timing para
              [00.490][mmc]: SUNXI SDMMC Controller Version:0x50310
              [00.516][mmc]: card_caps:0x3000000a
              [00.519][mmc]: host_caps:0x3000003f
              [00.524]sunxi flash init ok
              [00.526]line:703 init_clocks
              [00.530]drv_disp_init
              request pwm success, pwm7:pwm7:0x2000c00.
              fdt get node offset faill: hdmi
              [00.547]unable to map hdmi registers
              [00.550]drv_disp_init finish
              [00.564]Loading Environment from SUNXI_FLASH... OK
              [00.584]boot_gui_init:start
              [00.587]set disp.dev2_output_type fail. using defval=0
              [00.594]boot_gui_init:finish
              partno erro : can't find partition bootloader
              54 bytes read in 1 ms (52.7 KiB/s)
              [00.607]bmp_name=bootlogo.bmp size 38454
              38454 bytes read in 3 ms (12.2 MiB/s)
              [00.620]out of usb burn from boot: not need burn key
              [00.627]Item0 (Map) magic is bad
              [00.630]the secure storage item0 copy0 magic is bad
              [00.637]Item0 (Map) magic is bad
              [00.640]the secure storage item0 copy1 magic is bad
              [00.645]Item0 (Map) magic is bad
              partno erro : can't find partition private
              root_partition is rootfs
              set root to /dev/mmcblk0p5
              [00.659]update part info
              [00.662]update bootcmd
              [00.666]change working_fdt 0x42a98da0 to 0x42a78da0
              disable nand error: FDT_ERR_BADPATH
              [00.675]The storage not support sample function
              No reserved memory region found in source FDT
              [00.700]update dts
              noncached_alloc(): addr = 0x42b02a40
              noncached_alloc(): addr = 0x42b02a80
              noncached_alloc(): addr = 0x42b02ac0
              noncached_alloc(): addr = 0x42b03300
              geth_sys_init:639: get node 'gmac0' error
              geth_sys_init fail!
              [00.720]Board Net Initialization Failed
              [00.724]No ethernet found.
              Hit any key to stop autoboot:  1 FDT ERROR:get muxsel err returned FDT_ERR_INTERNAL
              sunxi_pwm_pin_set_state, fdt_set_all_pin, ret=-1
              [00.784]LCD open finish                                                                                                        0 
              [01.972]no vendor_boot partition is found
              Android's image name: f133-evb1
              Detect comp none
              [01.987]
              Starting kernel ...
              
              [01.989][mmc]: MMC Device 2 not found
              [01.993][mmc]: mmc 2 not find, so not exit
              
              whycan 1 Reply Last reply Reply Quote Share 0
              • whycan
                whycan晕哥 LV 9 @ZM12138 last edited by

                @zm12138
                有个换串口的帖子,一下子没有找到。

                Z 1 Reply Last reply Reply Quote Share 0
                • Z
                  ZM12138 LV 5 @whycan last edited by

                  @whycan 您的意思是我的DTS还是有问题,导致MMC2 not found,对吗

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

                    @zm12138

                    参考: 全志芯片Tina Linux 修改 UART 引脚、UART端口

                    Z 1 Reply Last reply Reply Quote Share 0
                    • Z
                      ZM12138 LV 5 @whycan last edited by

                      @whycan 这些我真的改了,现在搞不明白,目前mmc2和uart0不冲突,为什么mmc2 not
                      found ,另外内核启动介质是在sys_config.fex里面配的吗?

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

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

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