1、添加自己的开发板
cd arch/arm/configs
cp imx_v7_mfg_defconfig my_emmc_config
cd arch/arm/boot/dts
cp imx6ull-14x14-evk.dts my_emmc.dts
将usdhc2 节点改为以下内容
&usdhc2 {
pinctrl-names = "default", "state_100mhz", "state_200mhz";
pinctrl-0 = <&pinctrl_usdhc2_8bit>;
pinctrl-1 = <&pinctrl_usdhc2_8bit_100mhz>;
pinctrl-2 = <&pinctrl_usdhc2_8bit_200mhz>;
bus-width = <8>;
non-removable;
status = "okay";
};
vi Makefile #arch/arm/boot/dts目录下的Makefile
添加my_emmc.dtb \
2、主频修改
make menuconfig,进入如下目录,选择ondemand
CPU Power Management
-> CPU Frequency scaling
-> CPU Frequency scaling
-> Default CPUFreq governor
3、网络驱动修改
vi arch/arm/boot/dts/my_emmc.dts,搜索pinctrl_spi4节点(588行),注释掉如下内容
MX6ULL_PAD_SNVS_TAMPER7__GPIO5_IO07 0x70a1
MX6ULL_PAD_SNVS_TAMPER8__GPIO5_IO08 0x80000000
搜索spi4节点,注释掉以下内容(129行,133行)
pinctrl-assert-gpios = <&gpio5 8 GPIO_ACTIVE_LOW>;
cs-gpios = <&gpio5 7 0>;
将pinctrl_enet1节点MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1的值改成0x4001b009,将MX6UL_PAD_ENET2_TX_CLK__ENET2_REF_CLK2的值改成0x4001b009