所以参考mx6sabresd来移植了,经验证也可以开机。
以下是移植步骤:
1.
#cp -rf board/freescale/mx6sabresd board/freescale/mx6qecovacs
#cp include/configs/mx6sabresd.h include/configs/mx6qecovacs.h
#cp configs/mx6sabresdandroid_defconfig configs/mx6qecovacsandroid_defconfig修改内容为
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6qecovacs/mx6qecovacs.cfg,MX6Q,ANDROID_SUPPORT" CONFIG_ARM=y CONFIG_TARGET_MX6QECOVACS=y CONFIG_SYS_MALLOC_F=y CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_DM=y CONFIG_DM_THERMAL=y
#mv board/freescale/mx6qecovacs/mx6sabresd.c board/freescale/mx6qecovacs/mx6qecovacs.c
修改board/freescale/mx6qecovacs/Makefile
obj-y := mx6sabresd.o为
obj-y := mx6qecovacs.o
if TARGET_MX6QECOVACS config SYS_BOARD default "mx6qecovacs" config SYS_VENDOR default "freescale" config SYS_SOC default "mx6" config SYS_CONFIG_NAME default "mx6qecovacs" endif
config TARGET_MX6QECOVACS bool "Support mx6qecovacs" select CPU_V7 select SUPPORT_SPL以及
source "board/freescale/mx6qecovacs/Kconfig"
板子使用uart2,所以修改include/configs/mx6qecovacs.h
#define CONFIG_MXC_UART_BASE UART4_BASE为
#define CONFIG_MXC_UART_BASE UART2_BASE修改board/freescale/mx6qecovacs/mx6qecovacs.c
static void setup_iomux_uart(void) { //imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads)); imx_iomux_v3_setup_multiple_pads(uart2_pads, ARRAY_SIZE(uart2_pads)); } static iomux_v3_cfg_t const uart2_pads[] = { MX6_PAD_GPIO_7__UART2_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL), MX6_PAD_GPIO_8__UART2_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL), };
#cp board/freescale/mx6qecovacs/mx6dl.cfg board/freescale/mx6qecovacs/mx6qecovacs.cfg
#!/bin/bash export ARCH=arm export CROSS_COMPILE=~/daogou/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- make distclean make mx6qecovacsandroid_config make
download u-boot到SD card.
# sudo dd if=u-boot.imx of=/dev/sdx bs=1K seek=1; sync
开机: