smarct335x.conf 2.42 KB
#TYPE: Machine
#NAME: smarct335x
#DESCRIPTION: Machine configuration for the Embedian's SMARC T335X Computer on Module product.

TARGET_ARCH = "arm"
# DEFAULTTUNE makes it possible to build for the ARM hardfloat ABI.
#DEFAULTTUNE ?= "cortexa8hf-neon"

require conf/machine/include/ti33x.inc

#Specify gcc recipe version
PREFERRED_VERSION_gcc = "linaro-4.7"
PREFERRED_VERSION_gcc-cross = "linaro-4.7"
PREFERRED_VERSION_gcc-cross-canadian = "linaro-4.7"
PREFERRED_VERSION_gcc-cross-initial = "linaro-4.7"
PREFERRED_VERSION_gcc-crosssdk = "linaro-4.7"
PREFERRED_VERSION_gcc-crosssdk-initial = "linaro-4.7"
PREFERRED_VERSION_gcc-runtime = "linaro-4.7"
PREFERRED_VERSION_libgcc = "linaro-4.7"

# Specify kernel recipe
PREFERRED_PROVIDER_virtual/kernel_smarct335x = "linux-smarct335x"
PREFERRED_VERSION_linux-libc-headers_smarct335x = "3.2"
# Increase this everytime you change something in the kernel
MACHINE_KERNEL_PR = "r0"
KERNEL_IMAGETYPE = "zImage"

# Override several Arago distro package version selections.
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
PREFERRED_PROVIDER_u-boot = "u-boot"
PREFERRED_VERSION_u-boot = "2014.04-smarct335x"

PREFERRED_VERSION_ti-wifi-utils_smarct335x = "RLS.R4.12"

UBOOT_ARCH = "arm"
UBOOT_MACHINE = "smarct335x_evm_uart3_config"

# Specify Nodejs version if you would like Cloud9 to be build
PREFERRED_VERSION_nodejs-native_smarct335x = "0.8.21"

# For built-in LCD by default
XSERVER += "xf86-input-tslib"

SERIAL_CONSOLE = "115200 ttyO3"

# UBI information.  Note that this is board and kernel specific.  Changes
# in your kernel port may require changes in these variables.  For more
# details about this board please see
# http://processors.wiki.ti.com/index.php/UBIFS_Support

# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
# From dmesg:
# UBI: smallest flash I/O unit:    2048
# UBI: logical eraseblock size:    126976 bytes
# from ubiattach stdout:
# UBI device number 0, total 1988 LEBs
MKUBIFS_ARGS = "-m 4096 -e 253952 -c 1580"

# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
# from dmesg:
# UBI: smallest flash I/O unit:    2048
# UBI: physical eraseblock size:   131072 bytes (128 KiB)
# UBI: sub-page size:              512
# UBI: VID header offset:          2048 (aligned 2048)
UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096"

IMAGE_FSTYPES += "ubi tar.gz"

# Ship all kernel modules by default
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
MACHINE_FEATURES = "kernel26 alsa usbgadget usbhost apm vfat ext2 screen touchscreen ethernet"