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

require conf/machine/include/ti33x.inc

#CREATE_SRCIPK_pn-linux-smarct335x-staging = "1"
#SRCIPK_INSTALL_DIR_pn-linux-smarct335x-staging = "board-support/linux-${PV}${KERNEL_LOCALVERSION}"
#SRCIPK_PACKAGE_ARCH_pn-linux-smarct335x-staging = "${MACHINE_ARCH}"
#SRCIPK_PRESERVE_GIT_pn-linux-smarct335x-staging = "true"

# Specify kernel recipe
PREFERRED_PROVIDER_virtual/kernel_smarct335x = "linux-smarct335x-staging"
PREFERRED_VERSION_linux_smarct335x = "3.12"
#PREFERRED_VERSION_linux-libc-headers_smarct335x = "3.8"

# 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"
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"

# Use built-in LCD by default
XSERVER += "xf86-input-tslib"
GUI_MACHINE_CLASS = "smallscreen"

IMAGE_FSTYPES += "ubi tar.gz"

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"

# Ship all kernel modules by default
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
# List common SoC features, may need to add touchscreen for specific machines
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet touchscreen"