mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 02:29:01 +00:00
3314bcf715
The Gateworks Ventana GW553x is a single-board computer based on the NXP IMX6 SoC with the following features: * IMX6 DualLite Soc (supports IMX6S,IMX6DL,IMX6Q) * small form factor (35x70mm) * 512MB DDR3 DRAM (2x32bit) (options up to 2GB) * 256MB NAND flash (4GB option) * Gateworks System Controller: - hardware watchdog - hardware monitor - pushbutton controller - EEPROM storage - power control * JTAG programmable * 1x miniPCI socket (with PCIe, USB, SIM) * 1x microSD socket * 1x SIM socket * Inertial Module (LSM9DS1 9DOF: 3x acc, 3x rate, 3x mag) * analog CVBS video in * GPS (optional uBlox EVA-M8M) * Application headers: - 2x TTL UART (TX/RX) - 4x TTL GPIO (3x configurable as PWM) - 3x CVBS Analog video input (1x decoder with 3x selectable inputs) * Front panel connectors: * micro-HDMI audio/video out - 1x user programmable LED - 1x configurable user pushbutton - 1x USB OTG See http://www.gateworks.com for more info Signed-off-by: Tim Harvey <tharvey@gateworks.com>
128 lines
3.1 KiB
Makefile
128 lines
3.1 KiB
Makefile
#
|
|
# Copyright (C) 2013 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
#################################################
|
|
# Images
|
|
#################################################
|
|
|
|
DEVICE_VARS += MKUBIFS_OPTS
|
|
|
|
define Build/boot-overlay
|
|
rm -rf $@.boot
|
|
mkdir -p $@.boot
|
|
|
|
$(CP) $@ $@.boot/$(IMG_PREFIX)-uImage
|
|
ln -sf $(IMG_PREFIX)-uImage $@.boot/uImage
|
|
|
|
$(foreach dts,$(DEVICE_DTS), \
|
|
$(CP) \
|
|
$(LINUX_DIR)/arch/$(ARCH)/boot/dts/$(dts).dtb \
|
|
$@.boot/$(IMG_PREFIX)-$(dts).dtb; \
|
|
ln -sf \
|
|
$(IMG_PREFIX)-$(dts).dtb \
|
|
$@.boot/$(dts).dtb; \
|
|
)
|
|
mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
|
-n '$(DEVICE_ID) OpenWrt bootscript' \
|
|
-d ./bootscript-$(DEVICE_NAME) \
|
|
$@.boot/6x_bootscript-$(DEVICE_NAME)
|
|
|
|
$(STAGING_DIR_HOST)/bin/mkfs.ubifs \
|
|
--space-fixup --force-compr=zlib --squash-uids \
|
|
$(MKUBIFS_OPTS) -c 8124 \
|
|
-o $@.boot.ubifs -d $@.boot
|
|
|
|
$(TAR) -C $@.boot -cf $@.boot.tar .
|
|
endef
|
|
|
|
define Build/bootfs.tar.gz
|
|
rm -rf $@.boot
|
|
mkdir -p $@.boot
|
|
|
|
$(TAR) -C $@.boot -xf $(IMAGE_KERNEL).boot.tar
|
|
$(TAR) -C $@.boot \
|
|
--numeric-owner --owner=0 --group=0 --transform "s,./,./boot/," \
|
|
-czvf $@ .
|
|
endef
|
|
|
|
#################################################
|
|
# Devices
|
|
#################################################
|
|
|
|
KERNEL_LOADADDR=0x10008000
|
|
|
|
define Device/Default
|
|
PROFILES := Generic
|
|
FILESYSTEMS := squashfs ext4
|
|
KERNEL_INSTALL := 1
|
|
KERNEL_SUFFIX := -uImage
|
|
KERNEL_NAME := zImage
|
|
KERNEL_PREFIX := $$(IMAGE_PREFIX)
|
|
KERNEL := kernel-bin | uImage none
|
|
IMAGE_NAME = $$(IMAGE_PREFIX)-$$(1).$$(2)
|
|
IMAGES :=
|
|
endef
|
|
|
|
define Device/ventana
|
|
DEVICE_TITLE := Gateworks Ventana family (normal NAND flash)
|
|
DEVICE_DTS:= \
|
|
imx6dl-gw51xx \
|
|
imx6dl-gw52xx \
|
|
imx6dl-gw53xx \
|
|
imx6dl-gw54xx \
|
|
imx6dl-gw551x \
|
|
imx6dl-gw552x \
|
|
imx6q-gw51xx \
|
|
imx6q-gw52xx \
|
|
imx6q-gw53xx \
|
|
imx6q-gw54xx \
|
|
imx6q-gw5400-a \
|
|
imx6q-gw551x \
|
|
imx6q-gw552x \
|
|
imx6q-gw553x
|
|
DEVICE_PACKAGES := kmod-thermal-imx kmod-sky2 kmod-usb-chipidea-imx kmod-usb-mxs-phy \
|
|
kmod-sound-core kmod-sound-soc-imx kmod-sound-soc-imx-sgtl5000 \
|
|
kmod-can kmod-can-flexcan kmod-can-raw \
|
|
kmod-rtc-ds1672 kmod-gpio-pca953x kmod-hwmon-gsc kmod-eeprom-at24 \
|
|
kmod-leds-gpio kmod-pps-gpio kmod-gw16083 \
|
|
kobs-ng
|
|
KERNEL += | boot-overlay
|
|
IMAGES := nand.ubi bootfs.tar.gz
|
|
UBINIZE_OPTS :=
|
|
UBINIZE_PARTS = boot=$$(KDIR_KERNEL_IMAGE).boot.ubifs=15
|
|
IMAGE/nand.ubi := append-ubi
|
|
IMAGE/bootfs.tar.gz := bootfs.tar.gz | install-dtb
|
|
IMAGE_NAME = $$(IMAGE_PREFIX)-$$(1)-$$(2)
|
|
PAGESIZE := 2048
|
|
BLOCKSIZE := 128KiB
|
|
MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB
|
|
endef
|
|
|
|
define Device/ventana-large
|
|
$(Device/ventana)
|
|
DEVICE_NAME := ventana
|
|
DEVICE_TITLE := Gateworks Ventana family (large NAND flash)
|
|
IMAGES := nand.ubi
|
|
PAGESIZE := 4096
|
|
BLOCKSIZE := 256KiB
|
|
MKUBIFS_OPTS := -m $$(PAGESIZE) -e 248KiB
|
|
endef
|
|
|
|
define Device/wandboard
|
|
DEVICE_TITLE := Wandboard Dual
|
|
DEVICE_DTS := imx6dl-wandboard
|
|
DEVICE_PACKAGES := kmod-thermal-imx kmod-usb-chipidea-imx kmod-usb-mxs-phy
|
|
endef
|
|
|
|
TARGET_DEVICES += \
|
|
ventana ventana-large \
|
|
wandboard
|
|
|
|
$(eval $(call BuildImage))
|