使用SD卡启动,出现内核中不识别SD卡,直接从emmc启动

使用SD卡启动,出现内核中不识别SD卡,直接从emmc启动

打印信息:

[ 2.111159] Waiting for root device /dev/mmcblk0p2...

[ 3.608589] mmc0: error -110 whilst initialising SD card //SD卡初始化失败

[ 3.623095] omap_hsmmc 481d8000.mmc: exceeding card's volts

[ 3.681438] mmc1: BKOPS_EN bit is not set

[ 3.687458] mmc1: Voltage range not supported for power class.

[ 3.693368] mmc1: power class selection to bus width 8 failed

[ 3.699685] mmc1: new high speed MMC card at address 0001

[ 3.706729] mmcblk0: mmc1:0001 004G60 3.68 GiB //识别出EMMC

[ 3.711798] mmcblk0boot0: mmc1:0001 004G60 partition 1 2.00 MiB

[ 3.718076] mmcblk0boot1: mmc1:0001 004G60 partition 2 2.00 MiB

[ 3.726489] mmcblk0: p1 p2

[ 3.734369] mmcblk0boot1: unknown partition table

[ 3.742552] mmcblk0boot0: unknown partition table

[ 3.771168] EXT4-fs (mmcblk0p2): recovery complete

[ 3.776042] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)

 

打印信息如上,sd初始化出错,识别出emmc,并挂载了emmc中的文件系统

使用2G、4G的卡都可以,16G的就会出问题。没有调节器,需要添加vmmc-supply = <&vmmcsd_fixed>; 原本有,无意注释掉了,埋了个坑。

arch/arm/boot/dts/am335x-evm.dts

/ {

vmmcsd_fixed: fixedregulator@0 {

compatible = "regulator-fixed";

regulator-name = "vmmcsd_fixed";

regulator-min-microvolt = <3300000>;

regulator-max-microvolt = <3300000>;

};

};

 

&mmc1 {

status = "okay";

vmmc-supply = <&vmmcsd_fixed>;

bus-width = <4>;

pinctrl-names = "default", "sleep";

pinctrl-0 = <&mmc1_pins_default>;

pinctrl-1 = <&mmc1_pins_sleep>;

cd-gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;

//wp-gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>;

};

你可能感兴趣的:(am335x)