NAME:=Nitrogen6x i.MX6Solo 1GB board
endef
+define U-Boot/udoo
+ NAME:=UDOO Dual/Quad
+ BUILD_DEVICES:=udoo
+ UBOOT_IMAGE:=SPL u-boot.img
+ UBOOT_MAKE_FLAGS:=SPL u-boot.img
+endef
+
define U-Boot/wandboard
NAME:=Wandboard Dual Lite/Quad/Solo
BUILD_DEVICES:=wandboard
nitrogen6q2g \
nitrogen6s \
nitrogen6s1g \
+ udoo \
wandboard
UBOOT_MAKE_FLAGS += u-boot.imx
$(eval $(call KernelPackage,drm-amdgpu))
+define KernelPackage/drm-etnaviv
+ SUBMENU:=$(VIDEO_MENU)
+ TITLE:=Vivante DRM support
+ DEPENDS:=@TARGET_imx6 +kmod-drm +kmod-thermal
+ KCONFIG:= \
+ CONFIG_CMA=y \
+ CONFIG_DRM_ETNAVIV \
+ CONFIG_DRM_ETNAVIV_THERMAL=y
+ FILES:=$(LINUX_DIR)/drivers/gpu/drm/etnaviv/etnaviv.ko
+AUTOLOAD:=$(call AutoProbe,etnaviv)
+endef
+
+define KernelPackage/drm-etnaviv/description
+ DRM Driver for Vivante GPUs
+endef
+
+$(eval $(call KernelPackage,drm-etnaviv))
define KernelPackage/drm-imx
SUBMENU:=$(VIDEO_MENU)
CONFIG_DRM_IMX_PARALLEL_DISPLAY=n \
CONFIG_DRM_IMX_TVE=n \
CONFIG_DRM_IMX_LDB=n \
- CONFIG_DRM_IMX_HDMI=n
+ CONFIG_DRM_IMX_HDMI=n \
+ CONFIG_VIDEOMODE_HELPERS
FILES:= \
$(LINUX_DIR)/drivers/gpu/drm/imx/imxdrm.ko \
$(LINUX_DIR)/drivers/gpu/ipu-v3/imx-ipu-v3.ko
cubox-i |\
*gw51xx |\
*gw52xx |\
-*gw5904)
+*gw5904 |\
+udoo)
ucidef_set_interface_lan 'eth0'
;;
*gw53xx |\
name="apalis,eval"
;;
+ "Udoo i.MX6 Dual Board" |\
+ "Udoo i.MX6 Quad Board")
+ name="udoo"
+ ;;
+
"Wandboard i.MX6 Dual Lite Board")
name="wandboard"
;;
nand_do_platform_check $board $1
return $?;
;;
+ udoo)
+ blkdev_check_image "$1"
+ return $?;
+ ;;
esac
echo "Sysupgrade is not yet supported on $board."
*gw5*)
nand_do_upgrade "$1"
;;
+ udoo)
+ blkdev_do_upgrade "$1"
+ ;;
esac
}
endef
TARGET_DEVICES += apalis
+define Device/udoo
+ BOOT_SCRIPT = bootscript-udoo
+ DEVICE_DTS := imx6dl-udoo imx6q-udoo
+ DEVICE_TITLE := UDOO Dual/Quad
+ DEVICE_PACKAGES := \
+ kmod-drm-imx kmod-drm-imx-hdmi kmod-rt2800-usb kmod-sound-soc-imx \
+ kmod-usb-hid wpad
+ IMAGES := combined.bin
+ IMAGE/combined.bin := append-rootfs | pad-extra 128k | imx6-sdcard
+ KERNEL := kernel-bin | install-dtb
+ KERNEL_LOADADDR := 0x12000000
+ UBOOT := udoo
+endef
+TARGET_DEVICES += udoo
+
$(eval $(call BuildImage))
--- /dev/null
+echo "UDOO OpenWrt Boot script"
+
+# Set console variable for both UART and HDMI
+setenv console console=ttymxc1,115200 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32
+
+# Find correct dtb
+if test ${board_rev} = MX6DL; then
+ setenv fdt_soc_type imx6dl;
+elif test ${board_rev} = MX6Q; then
+ setenv fdt_soc_type imx6q;
+fi
+
+setenv fdt_name ${fdt_soc_type}-udoo.dtb;
+
+# Set correct devtype and partition
+if test ${devtype} != mmc; then setenv devtype mmc; fi
+if mmc dev 0; then
+ setenv mmcdev 0
+elif mmc dev 1; then
+ setenv mmcdev 1
+fi
+
+# Boot from the SD card is supported at the moment
+setenv bootargs "${console} root=/dev/mmcblk0p2 rw rootwait"
+mmc dev ${mmcdev}
+load ${devtype} ${mmcdev}:${devplist} ${loadaddr} /uImage
+load ${devtype} ${mmcdev}:${devplist} ${fdt_addr} /${fdt_name}
+bootz ${loadaddr} - ${fdt_addr}