2.1、修改tina-d1-h/device/config/chips/d1s/configs/nezha/sys_config.fex
修改前:
[target]
boot_clock = 720
storage_type = 4
nand_use_ubi = 1
修改后:
[target]
boot_clock = 720
storage_type = 0 //这里改成1和改成0好像都可以,暂不清楚具体区别
nand_use_ubi = 1
2.2、修改/tina-d1-h/device/config/chips/d1s/configs/nezha/uboot-board.dts
修改前:
&card0_boot_para { /* Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value */
/* reg = <0x0 0x2 0x0 0x0>; [> Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value <] */
device_type = "card0_boot_para";
card_ctrl = <0x0>;
card_high_speed = <0x1>;
card_line = <0x4>;
/*
pinctrl-0 = <&sdc0_pins_a>;
*/
};
修改后
&card0_boot_para { /* Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value */
/* reg = <0x0 0x2 0x0 0x0>; [> Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value <] */
device_type = "card0_boot_para";
card_ctrl = <0x0>;
card_high_speed = <0x1>;
card_line = <0x4>;
pinctrl-0 = <&sdc0_pins_a>; //取消这段代码的注释
};
2.3、修改tina-d1-h/device/config/chips/d1s/configs/nezha/linux-5.4/board.dts
修改前:
&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-gp