@whycanservice 我修改了device/config/chips/d1s/configs/default/env.cfg中的mmc_root=/dev/mmcblk1p5 重新编译发现Kernel command line没有变化依旧是
VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6
然后我在make kernel_menuconfig
Boot options --->
Built-in command line usage (Always use the default kernel command string)
填上env.cfg 的参数
earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk1p5 init=/pseudo_init partitions=boot-resource@mmcblk1p1:env@mmcblk1p2:env-redund@mmcblk1p3:boot@mmcblk1p4:rootfs@mmcblk1p5:dsp0@mmcblk1p6:recovery@mmcblk1p7:rootfs_data@mmcblk1p8:UDISK@mmcblk1p9 cma= 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
重新编译
还是进不了系统
以下是打印日志:
sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-11-18 10:02)
sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
sunxi-mmc 4020000.sdmmc: No vmmc regulator found
sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
sunxi-mmc 4022000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
sunxi-mmc 4022000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
sunxi-mmc 4020000.sdmmc: Got CD GPIO
sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
sunxi-mmc 4020000.sdmmc: detmode:gpio irq
sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
ashmem: initialized
exFAT: Version 1.3.0
NET: Registered protocol family 10
Segment Routing with IPv6
NET: Registered protocol family 17
sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator
sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
sunxi-i2c sunxi-i2c2: probe success
sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
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: 0xffffffe0006f1fa8, 0x:ffffffd0040f1000, 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: 0xffffffe0006f2370
[sunxi-ohci0]: Not init ohci0
OF: fdt: not creating '/sys/firmware/fdt': CRC check failed
clk: Not disabling unused clocks
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
cfg80211: failed to load regulatory.db
alloc_fd: slot 0 not NULL!
VFS: Cannot open root device "mmcblk1p5" or unknown-block(0,0): error -6
random: fast init done
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 #202
Call Trace:
[<ffffffe000026130>] walk_stackframe+0x0/0x98
[<ffffffe0000262e8>] show_stack+0x2a/0x34
[<ffffffe0004a081c>] dump_stack+0x20/0x28
[<ffffffe00002a6f0>] panic+0xec/0x272
[<ffffffe000000ef6>] mount_block_root+0x214/0x27a
[<ffffffe000000fe2>] mount_root+0x86/0x90
[<ffffffe000001134>] prepare_namespace+0x148/0x152
[<ffffffe000000b58>] kernel_init_freeable+0x166/0x198
[<ffffffe0004b13ec>] kernel_init+0x12/0xee
[<ffffffe000024e9c>] ret_from_exception+0x0/0xc
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
是不是哪里配置错了 或许还需要修改其他的配置?