Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1、修改machine的配置文件

machine配置文件的位置是sources/meta-phytec/conf/machine,

i.MX6 Solo对应的conf文件是phyboard-mira-imx6-4.conf,

Code Block
languagebash
themeMidnight
 #@TYPE: Machine
 #@NAME: phyboard-mira-imx6-4
 #@DESCRIPTION: i.MX6 Solo, 256MB RAM, NAND
 #@ARTICLENUMBERS: PB-01501-001.A2, PBA-C-06-001.A2, PCM-058-12000D0C.A3
 #@SUPPORTEDIMAGE: phytec-qt5demo-image
 #from http://www.phytec.de
 
 require conf/machine/include/phyimx6qdl.inc
 
 SOC_FAMILY .= ":mx6dl"
 SOC_FAMILY .= ":phyboard-mira-imx6"
 
 # Kernel
 KERNEL_DEVICETREE = "imx6dl-phytec-mira-rdk-nand.dtb"
 
 # Barebox Config
 BAREBOX_BIN = "images/barebox-phytec-phycore-imx6dl-som-nand-256mb.img"
 
 MACHINE_FEATURES += "wifi can"                                        														#这里增加can选项
 
 SERIAL_CONSOLES = "115200;ttymxc1"

即在MACHINE_FEATURES增加can接口。


2、修改设备树文件 imx6dl-phytec-mira-rdk-nand.dts

设备树文件的路径是build/tmp/work-shared/phyboard-mira-imx6-4/kernel-source/arch/arm/boot/dts,

在 imx6dl-phytec-mira-rdk-nand.dts文件中增加以下内容

Code Block
languagebash
themeMidnight
&can1 {
        status = "okay";
};


经过以上修改之后,重新编译烧写即可。