Versions Compared

Key

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

...

               i.mx6q emmc

1、barebox

Android BSP包关于i.MX6DL emmc板的barebox镜像仍有些问题,用linux上的barebox替换。

...

i.mx6q emmc barebox镜像:ftp://ftp.phytec.cn/i.MX6/BSP-Yocto-i.MX6-PD16.1.0/images/phyboard-mira-imx6-5/barebox.bin

2、oftree

i.mx6dl emmc :

设备树文件:imx6dl-phytec-mira-rdk-emmc.dts

...

Code Block
languagebash
themeMidnight
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 7ab93c0..3936768 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -114,6 +114,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
        imx53-qsb.dtb \
        imx53-smd.dtb \
        imx6dl-phytec-mira-rdk-nand.dtb \
+       imx6dl-phytec-mira-rdk-emmc.dtb \                                                     ##增加这一行
        imx6dl-sabreauto.dtb \
        imx6dl-sabreauto-ecspi.dtb \
        imx6dl-sabreauto-flexcan1.dtb \

修改后需要重新编译内核即可。

i.mx6q emmc : 

设备树文件:imx6q-phytec-mira-rdk-emmc.dts  修改如下:

Code Block
languagebash
themeMidnight
diff --git a/arch/arm/boot/dts/imx6q-phytec-mira-rdk-emmc.dts b/arch/arm/boot/dts/imx6q-phytec-mira-rdk-emmc.dts
index 8abfbed..d6c21fe 100644
--- a/arch/arm/boot/dts/imx6q-phytec-mira-rdk-emmc.dts
+++ b/arch/arm/boot/dts/imx6q-phytec-mira-rdk-emmc.dts
@@ -19,6 +19,7 @@

 / {
        model = "Phytec phyBOARD-MIRA Quad Carrier-Board";
+       model-short = "miraq";
        compatible = "phytec,imx6q-pbac06", "phytec,imx6qdl-pcm058", "fsl,imx6q";

        chosen {

修改后重新编译内核即可。

3、kernel

kernel image位置:kernel/arch/arm/boot/zImage

对于imx6q emmc核心板,内核需要打这个补丁:0001-mmc-core-Update-the-ext-csd.rev-check-for-eMMC5.1.patch

4、android system

修改BSP包的vendor/SIGMA/miraq/BoardConfig.mk文件,将系统镜像匹配为ext4格式,系统镜像默认为nand的ubifs格式

...

android 系统镜像的位置:bdir/android_imx/target/product/miraq/system.img

5、制作emmc镜像

android BSP包有一个可以生成SD卡镜像的工具:vendor/SIGMA/miraq/tools/gen_sd_img.sh,使用该工具来生成emmc的镜像。

...

在当前目录下生成sd.img, 该镜像就是emmc的镜像,将该镜像复制到sd卡上。

6、烧写android镜像。

开发板开机进入到barebox, 插入有emmc镜像的SD卡,

...