禁用spi0就进不了系统了 这个要怎么设置? 求帮忙
-
禁用spi0就进不了系统了 这个要怎么设置? 求帮忙
sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B NET: Registered protocol family 17 Bluetooth: RFCOMM TTY layer initialized Bluetooth: RFCOMM socket layer initialized Bluetooth: RFCOMM ver 1.11 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: 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 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 platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 random: fast init done clk: Not disabling unused clocks mmc1: host does not support reading read-only switch, assuming write-enable alloc_fd: slot 0 not NULL! VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6 cfg80211: failed to load regulatory.db Please append a correct "root=" boot option; here are the available partitions: sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B 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 #197 Call Trace: [<ffffffe000026130>] walk_stackframe+0x0/0x98 [<ffffffe0000262e8>] show_stack+0x2a/0x34 [<ffffffe00049fab4>] 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 [<ffffffe0004b0684>] 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) ]---
&spi0 { clock-frequency = <100000000>; // pinctrl-0 = <&spi0_pins_a &spi0_pins_b>; // pinctrl-1 = <&spi0_pins_c>; pinctrl-0 = <&spi0_pins_a &spi0_pins_b>; pinctrl-1 = <&spi0_pins_c>; pinctrl-names = "default", "sleep"; /*spi-supply = <®_dcdc1>;*/ spi_slave_mode = <0>; spi0_cs_number = <1>; spi0_cs_bitmap = <1>; status = "disabled"; spi-nand@0 { compatible = "spi-nand"; // spi-max-frequency=<100000000>; // reg = <0x0>; // spi-rx-bus-width=<0x01>; // spi-tx-bus-width=<0x01>; // status="okay"; spi-max-frequency=<0x5F5E100>; reg = <0x0>; spi-rx-bus-width=<0x04>; spi-tx-bus-width=<0x04>; status="disabled"; }; };
-
@zcxhappy 你的板子上flash是spi nand?
-
@chengwei_peng 用的是sdc0的sd卡启动,没有用到spi;因为wifi用的是sdc2跟spi0有冲突所以想把spi0给禁用,结果进不了系统。
-
配置mmcblk0为mmcblk1,在env.cfg里修改
-
@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) ]---
是不是哪里配置错了 或许还需要修改其他的配置?
-
@zcxhappy 看到了,不是这个问题,是sd卡的驱动没有挂上,看上去没有找到卡
-
@whycanservice
spi0的status = "okay";就可以进入系统其他没改动,请问要修改哪个驱动? -
是不是分区号不对?
-
@lyscut 要在哪里设置呢?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号