mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-01-12 09:30:21 +00:00
Compare commits
2 Commits
07.03.00.0
...
split
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88867c1d96 | ||
|
|
a1e2573369 |
21
README
21
README
@@ -8,11 +8,13 @@ This layer depends on:
|
||||
|
||||
URI: git://git.openembedded.org/openembedded-core
|
||||
layers: meta
|
||||
branch: dunfell
|
||||
branch: master
|
||||
|
||||
URI: git://git.yoctoproject.org/meta-arm
|
||||
layers: meta-arm
|
||||
branch: dunfell
|
||||
|
||||
When not depending on meta-openembedded and not using systemd, you may need to
|
||||
mask few miscellaneous recipes requiring systemd, by adding this to local.conf:
|
||||
|
||||
BBMASK = "meta-ti/recipes-misc"
|
||||
|
||||
|
||||
The base BSP part of meta-ti should work with different OpenEmbedded/Yocto
|
||||
@@ -22,12 +24,7 @@ distro-less (only with OE-Core), with Yocto/Poky, with Angstrom or Arago.
|
||||
Please follow the recommended setup procedures of your OE distribution.
|
||||
|
||||
|
||||
Send pull requests, patches, comments or questions to:
|
||||
meta-ti@lists.yoctoproject.org
|
||||
Send pull requests, patches, comments or questions to meta-ti@yoctoproject.org
|
||||
|
||||
Please note - meta-ti mailing list requires subscription for posting:
|
||||
https://lists.yoctoproject.org/g/meta-ti
|
||||
|
||||
Maintainers:
|
||||
Dan Murphy <dmurphy@ti.com>
|
||||
Denys Dmytriyenko <denys@ti.com>
|
||||
Maintainers: Denys Dmytriyenko <denys@ti.com>
|
||||
Koen Kooi <koen@dominion.thruhere.net>
|
||||
|
||||
156
classes/sdcard_image.bbclass
Normal file
156
classes/sdcard_image.bbclass
Normal file
@@ -0,0 +1,156 @@
|
||||
inherit image
|
||||
|
||||
# Add the fstypes we need
|
||||
IMAGE_FSTYPES_append = " tar.bz2 sdimg"
|
||||
|
||||
# Ensure required utilities are present
|
||||
IMAGE_DEPENDS_sdimg = "genext2fs-native e2fsprogs-native"
|
||||
|
||||
# Change this to match your host distro
|
||||
LOSETUP ?= "/sbin/losetup"
|
||||
|
||||
# Since these need to go in /etc/fstab we can hardcode them
|
||||
# Since the vars are weakly assigned, you can override them from your local.conf
|
||||
LOOPDEV ?= "/dev/loop1"
|
||||
LOOPDEV_BOOT ?= "/dev/loop2"
|
||||
LOOPDEV_FS ?= "/dev/loop3"
|
||||
|
||||
# Default to 4GiB images
|
||||
SDIMG_SIZE ?= "444"
|
||||
|
||||
# FS type for rootfs
|
||||
ROOTFSTYPE ?= "ext4"
|
||||
|
||||
BOOTPARTNAME_beaglebone = "BEAGLE_BONE"
|
||||
BOOTPARTNAME ?= "${MACHINE}"
|
||||
|
||||
IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}"
|
||||
|
||||
# Files and/or directories to be copied into the vfat partition
|
||||
FATPAYLOAD ?= ""
|
||||
|
||||
IMAGE_CMD_sdimg () {
|
||||
SDIMG=${WORKDIR}/sd.img
|
||||
|
||||
# sanity check fstab entry for boot partition mounting
|
||||
if [ "x$(cat /etc/fstab | grep ${LOOPDEV_BOOT} | grep ${WORKDIR}/tmp-mnt-boot | grep user || true)" = "x" ]; then
|
||||
echo "/etc/fstab entries need to be created with the user flag for the loop devices like:"
|
||||
echo "${LOOPDEV_BOOT} ${WORKDIR}/tmp-mnt-boot vfat user 0 0"
|
||||
false
|
||||
fi
|
||||
|
||||
# cleanup loops
|
||||
for loop in ${LOOPDEV} ${LOOPDEV_BOOT} ${LOOPDEV_FS} ; do
|
||||
${LOSETUP} -d $loop || true
|
||||
done
|
||||
|
||||
# If an SD image is already present, reuse and reformat it
|
||||
if [ ! -e ${SDIMG} ] ; then
|
||||
dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=${SDIMG_SIZE}
|
||||
fi
|
||||
|
||||
${LOSETUP} ${LOOPDEV} ${SDIMG}
|
||||
|
||||
# Create partition table
|
||||
dd if=/dev/zero of=${LOOPDEV} bs=1024 count=1024
|
||||
SIZE=$(/sbin/fdisk -l ${LOOPDEV} | grep Disk | grep bytes | awk '{print $5}')
|
||||
CYLINDERS=$(echo $SIZE/255/63/512 | bc)
|
||||
{
|
||||
echo ,9,0x0C,*
|
||||
echo ,,,-
|
||||
} | /sbin/sfdisk -D -H 255 -S 63 -C ${CYLINDERS} ${LOOPDEV}
|
||||
|
||||
# Prepare loop devices for boot and filesystem partitions
|
||||
BOOT_OFFSET=32256
|
||||
FS_OFFSET_SECT=$(/sbin/fdisk -l -u ${LOOPDEV} 2>&1 | grep Linux | perl -p -i -e "s/\s+/ /"|cut -d " " -f 2)
|
||||
FS_OFFSET=$(echo "$FS_OFFSET_SECT * 512" | bc)
|
||||
FS_SIZE_BLOCKS=$(/sbin/fdisk -l -u ${LOOPDEV} 2>&1 | grep Linux | perl -p -i -e "s/\s+/ /g" \
|
||||
|cut -d " " -f 4 | cut -d "+" -f 1)
|
||||
|
||||
LOOPDEV_BLOCKS=$(/sbin/fdisk -l -u ${LOOPDEV} 2>&1 | grep FAT | perl -p -i -e "s/\s+/ /g"|cut -d " " -f 5)
|
||||
LOOPDEV_BYTES=$(echo "$LOOPDEV_BLOCKS * 1024" | bc)
|
||||
|
||||
${LOSETUP} -d ${LOOPDEV}
|
||||
|
||||
${LOSETUP} ${LOOPDEV_BOOT} ${SDIMG} -o ${BOOT_OFFSET}
|
||||
|
||||
/sbin/mkfs.vfat ${LOOPDEV_BOOT} -n ${BOOTPARTNAME} $LOOPDEV_BLOCKS
|
||||
|
||||
# Prepare filesystem partition
|
||||
# Copy ubi used by flashing scripts
|
||||
if [ -e ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ] ; then
|
||||
echo "Copying UBIFS image to file system"
|
||||
cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${IMAGE_ROOTFS}/boot/fs.ubi
|
||||
fi
|
||||
|
||||
# Prepare boot partion. First mount the boot partition, and copy the boot loader and supporting files
|
||||
# from the root filesystem
|
||||
|
||||
mkdir -p ${WORKDIR}/tmp-mnt-boot
|
||||
mount $LOOPDEV_BOOT ${WORKDIR}/tmp-mnt-boot
|
||||
|
||||
echo "Copying bootloaders into the boot partition"
|
||||
if [ -e ${IMAGE_ROOTFS}/boot/MLO ] ; then
|
||||
cp -v ${IMAGE_ROOTFS}/boot/MLO ${WORKDIR}/tmp-mnt-boot
|
||||
else
|
||||
cp -v ${DEPLOY_DIR_IMAGE}/MLO ${WORKDIR}/tmp-mnt-boot
|
||||
fi
|
||||
|
||||
# Check for u-boot SPL
|
||||
if [ -e ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.img ] ; then
|
||||
suffix=img
|
||||
else
|
||||
suffix=bin
|
||||
fi
|
||||
|
||||
cp -v ${IMAGE_ROOTFS}/boot/uEnv.txt ${WORKDIR}/tmp-mnt-boot || true
|
||||
cp -v ${IMAGE_ROOTFS}/boot/user.txt ${WORKDIR}/tmp-mnt-boot || true
|
||||
cp -v ${IMAGE_ROOTFS}/boot/uImage ${WORKDIR}/tmp-mnt-boot || true
|
||||
|
||||
if [ -e ${IMAGE_ROOTFS}/boot/u-boot.$suffix ] ; then
|
||||
cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix} ${WORKDIR}/tmp-mnt-boot || true
|
||||
else
|
||||
cp -v ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.$suffix ${WORKDIR}/tmp-mnt-boot/u-boot.$suffix
|
||||
fi
|
||||
|
||||
if [ -n ${FATPAYLOAD} ] ; then
|
||||
echo "Copying payload into VFAT"
|
||||
for entry in ${FATPAYLOAD} ; do
|
||||
# add the || true to stop aborting on vfat issues like not supporting .~lock files
|
||||
cp -av ${IMAGE_ROOTFS}$entry ${WORKDIR}/tmp-mnt-boot || true
|
||||
done
|
||||
fi
|
||||
|
||||
echo "${IMAGE_NAME}-${IMAGEDATESTAMP}" > ${IMAGE_ROOTFS}/etc/image-version-info
|
||||
|
||||
# Cleanup VFAT mount
|
||||
echo "Cleaning up VFAT mount"
|
||||
umount ${WORKDIR}/tmp-mnt-boot
|
||||
${LOSETUP} -d ${LOOPDEV_BOOT} || true
|
||||
|
||||
# Prepare rootfs parition
|
||||
echo "Creating rootfs loopback"
|
||||
${LOSETUP} ${LOOPDEV_FS} ${SDIMG} -o ${FS_OFFSET}
|
||||
|
||||
FS_NUM_INODES=$(echo $FS_SIZE_BLOCKS / 4 | bc)
|
||||
|
||||
case "${ROOTFSTYPE}" in
|
||||
ext3)
|
||||
genext2fs -z -N $FS_NUM_INODES -b $FS_SIZE_BLOCKS -d ${IMAGE_ROOTFS} ${LOOPDEV_FS}
|
||||
tune2fs -L ${IMAGE_NAME} -j ${LOOPDEV_FS}
|
||||
;;
|
||||
ext4)
|
||||
genext2fs -z -N $FS_NUM_INODES -b $FS_SIZE_BLOCKS -d ${IMAGE_ROOTFS} ${LOOPDEV_FS}
|
||||
tune2fs -L ${IMAGE_NAME} -j -O extents,uninit_bg,dir_index ${LOOPDEV_FS}
|
||||
;;
|
||||
*)
|
||||
echo "Please set ROOTFSTYPE to something supported"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
${LOSETUP} -d ${LOOPDEV_FS} || true
|
||||
|
||||
gzip -c ${WORKDIR}/sd.img > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-${IMAGEDATESTAMP}.img.gz
|
||||
rm -f ${WORKDIR}/sd.img
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
TI_PDK_GIT_URI ?= "git://git.ti.com/processor-sdk/pdk.git"
|
||||
TI_PDK_GIT_BRANCH ?= "master"
|
||||
TI_PDK_GIT_PROTOCOL ?= "git"
|
||||
TI_PDK_SRCREV ?= "a1ace885998e9adbcbbd0abf8b9ded6ba9ec54ff"
|
||||
|
||||
TI_PDK_VERSION ?= "2020.5.6"
|
||||
|
||||
PV = "${TI_PDK_VERSION}"
|
||||
PE = "2"
|
||||
|
||||
TI_PDK_COMP ?= ""
|
||||
TI_PDK_COMP_PATH = "${@'${TI_PDK_COMP}'.replace('.','/')}"
|
||||
|
||||
TI_PDK_SOURCE_PN = "ti-pdk-source"
|
||||
TI_PDK_SOURCE_WORKDIR = "${TMPDIR}/work-shared/ti-pdk-${PV}"
|
||||
TI_PDK_SOURCE = "${TI_PDK_SOURCE_WORKDIR}/git"
|
||||
|
||||
S = "${@'${WORKDIR}/git/${TI_PDK_COMP_PATH}'.rstrip('/')}"
|
||||
|
||||
# Hard-link only required sources from PDK
|
||||
python do_unpack_append() {
|
||||
if len(d.getVar('TI_PDK_COMP') or '') > 0:
|
||||
import shutil
|
||||
|
||||
# Get src/dst paths
|
||||
src = os.path.join(d.getVar('TI_PDK_SOURCE'),'packages',d.getVar('TI_PDK_COMP_PATH'))
|
||||
s = d.getVar('S')
|
||||
|
||||
# Set up the directory structure, except for the root of the sources
|
||||
# hard-linked.
|
||||
bb.utils.mkdirhier(s)
|
||||
os.rmdir(s)
|
||||
|
||||
# Recursively hard-link the sources
|
||||
shutil.copytree(src, s, copy_function=os.link)
|
||||
|
||||
# Recursively hard-link the git directory
|
||||
shutil.copytree(os.path.join(d.getVar('TI_PDK_SOURCE'),'.git'), os.path.join(s,'.git'), copy_function=os.link)
|
||||
}
|
||||
|
||||
# Make sure that ti-pdk-source is unpacked before we set up the hardlinks.
|
||||
python __anonymous () {
|
||||
pn = d.getVar('PN')
|
||||
pdk_src_pn = d.getVar('TI_PDK_SOURCE_PN')
|
||||
if pn != pdk_src_pn:
|
||||
d.appendVarFlag('do_unpack', 'depends', ' ${TI_PDK_SOURCE_PN}:do_unpack')
|
||||
}
|
||||
@@ -1,144 +0,0 @@
|
||||
require recipes-ti/includes/ti-paths.inc
|
||||
require recipes-ti/includes/ti-staging.inc
|
||||
|
||||
inherit perlnative
|
||||
|
||||
DEPENDS = "ti-xdctools-native ti-cg-xml-native ti-sysbios common-csl-ip-rtos libxml-simple-perl-native gcc-arm-baremetal-native ti-cgt6x-native ti-cgt-pru-native ti-pdk-build-rtos doxygen-native"
|
||||
|
||||
DEPENDS_append_omap-a15 = " ti-cgt-arm-native"
|
||||
DEPENDS_remove_ti33x = "ti-cgt6x-native"
|
||||
DEPENDS_remove_ti43x = "ti-cgt6x-native"
|
||||
DEPENDS_append_omapl1 = " ti-cgt-arm-native"
|
||||
DEPENDS_remove_am65xx = "gcc-arm-baremetal-native ti-cgt6x-native"
|
||||
DEPENDS_append_am65xx = " ti-cgt-arm-native gcc-linaro-baremetal-aarch64-native"
|
||||
DEPENDS_remove_j7 = "gcc-arm-baremetal-native"
|
||||
DEPENDS_append_j7 = " ti-cgt-arm-native gcc-linaro-baremetal-aarch64-native ti-cgt7x-native"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
B = "${WORKDIR}/build"
|
||||
|
||||
# HTML hyperlink text
|
||||
PDK_COMP_LINK_TEXT ?= ""
|
||||
|
||||
DOC_FILE = "API_Documentation_${PN}.html"
|
||||
|
||||
create_doc_link () {
|
||||
PDK_COMP_DIR=`get_build_dir_bash`
|
||||
|
||||
echo "<a href=\"${PDK_COMP_DIR}/docs/doxygen/html/index.html\">${PDK_COMP_LINK_TEXT}</a>" >> ${D}${PDK_INSTALL_DIR_RECIPE}/packages/.extras/doc/${DOC_FILE}
|
||||
}
|
||||
|
||||
get_build_dir_bash() {
|
||||
if [ -f ${S}/package.xdc ]
|
||||
then
|
||||
grep '^package' ${S}/package.xdc | sed -e 's|\[.*$||' | awk '{ print $2 }' | sed -e 's|\.|/|g'
|
||||
else
|
||||
echo ${S}
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
export CROSS_TOOL_PRFX="arm-none-eabi-"
|
||||
export TOOLCHAIN_PATH_A8 = "${GCC_ARM_NONE_TOOLCHAIN}"
|
||||
export TOOLCHAIN_PATH_A9 = "${GCC_ARM_NONE_TOOLCHAIN}"
|
||||
export TOOLCHAIN_PATH_A15 = "${GCC_ARM_NONE_TOOLCHAIN}"
|
||||
export TOOLCHAIN_PATH_M4 = "${M4_TOOLCHAIN_INSTALL_DIR}"
|
||||
export TOOLCHAIN_PATH_Arm9 = "${M4_TOOLCHAIN_INSTALL_DIR}"
|
||||
export C6X_GEN_INSTALL_PATH = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
|
||||
export C7X_GEN_INSTALL_PATH = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c7x"
|
||||
export TOOLCHAIN_PATH_EVE = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-arp32"
|
||||
export CL_PRU_INSTALL_PATH = "${TI_CGT_PRU_INSTALL_DIR}"
|
||||
export TOOLCHAIN_PATH_GCC_ARCH64 = "${GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN}"
|
||||
export TOOLCHAIN_PATH_R5 = "${M4_TOOLCHAIN_INSTALL_DIR}"
|
||||
|
||||
export ROOTDIR = "${B}"
|
||||
export BIOS_INSTALL_PATH = "${SYSBIOS_INSTALL_DIR}"
|
||||
export XDC_INSTALL_PATH = "${XDC_INSTALL_DIR}"
|
||||
export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
|
||||
|
||||
export XDCPATH = "${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_INSTALL_DIR}/packages"
|
||||
export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl"
|
||||
|
||||
TI_PDK_XDCMAKE ?= "1"
|
||||
|
||||
# By default, only build the cores with available toolchains
|
||||
TI_PDK_LIMIT_CORES ?= "a15_0 ipu1_0 ipu1_1 ipu2_0 ipu2_1 mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1 c66x c66xdsp_1 c66xdsp_2 c7x_1 arm9_0 c674x a9host a8host pru_0 pru_1"
|
||||
TI_PDK_LIMIT_SOCS ?= ""
|
||||
TI_PDK_LIMIT_BOARDS ?= ""
|
||||
TI_PDK_MAKE_TARGET ?= "release"
|
||||
TI_PDK_EXTRA_MAKE ?= ""
|
||||
TI_PDK_DOXYGEN_SUPPORT ?= "1"
|
||||
|
||||
TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}"
|
||||
|
||||
PARALLEL_XDC = "${@oe.utils.parallel_make_argument(d, '--jobs=%d')}"
|
||||
PARALLEL_MAKE = ""
|
||||
|
||||
def get_doxygen_support(d):
|
||||
if d.getVar('TI_PDK_DOXYGEN_SUPPORT') == '1':
|
||||
return ''
|
||||
return 'DOXYGEN_SUPPORT=no'
|
||||
|
||||
EXTRA_OEMAKE = " \
|
||||
LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \
|
||||
LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \
|
||||
LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \
|
||||
${TI_PDK_EXTRA_MAKE} \
|
||||
${@get_doxygen_support(d)} \
|
||||
"
|
||||
|
||||
do_configure() {
|
||||
BUILD_DIR=${B}/`get_build_dir_bash`
|
||||
|
||||
mkdir -p ${BUILD_DIR}
|
||||
cp -r ${S}/* ${BUILD_DIR}
|
||||
|
||||
if [ "${TI_PDK_XDCMAKE}" == "1" ]
|
||||
then
|
||||
cd ${BUILD_DIR}
|
||||
|
||||
sed -i "s/\ \"\.\\\\\\\\\"\ +//" src/Module.xs
|
||||
find -name "*.xs" -exec sed -i "s/ofd6x\.exe/ofd6x/" {} \;
|
||||
find -name "*.xs" -exec sed -i "s/sectti\.exe/sectti/" {} \;
|
||||
find -name "*.xs" -exec sed -i "/\.chm/d" {} \;
|
||||
find -name "*.xs" -exec sed -i "s/pasm\_dos/pasm\_linux/" {} \;
|
||||
|
||||
cd ${B}
|
||||
${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR .
|
||||
else
|
||||
if [ "${CLEANBROKEN}" != "1" ]
|
||||
then
|
||||
cd ${BUILD_DIR}
|
||||
oe_runmake clean
|
||||
cd "${B}"
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
|
||||
if [ "${TI_PDK_XDCMAKE}" == "1" ]
|
||||
then
|
||||
${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC} XDCARGS="${TI_PDK_XDC_ARGS}" ROOTDIR="${ROOTDIR}" -PR .
|
||||
${XDC_INSTALL_DIR}/xdc release XDCARGS="${TI_PDK_XDC_ARGS}" -PR .
|
||||
else
|
||||
BUILD_DIR=${B}/`get_build_dir_bash`
|
||||
cd ${BUILD_DIR}
|
||||
|
||||
oe_runmake ${TI_PDK_MAKE_TARGET}
|
||||
fi
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages
|
||||
find -name "*.tar" -exec tar xf {} --no-same-owner -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages \;
|
||||
|
||||
if [ "${PDK_COMP_LINK_TEXT}" != "" ]
|
||||
then
|
||||
install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/.extras/doc
|
||||
create_doc_link
|
||||
fi
|
||||
}
|
||||
|
||||
FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
|
||||
@@ -6,29 +6,4 @@ BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "meta-ti"
|
||||
BBFILE_PATTERN_meta-ti := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_meta-ti = "6"
|
||||
|
||||
LAYERSERIES_COMPAT_meta-ti = "dunfell"
|
||||
|
||||
LICENSE_PATH += "${LAYERDIR}/licenses"
|
||||
|
||||
LAYERDEPENDS_meta-ti = " \
|
||||
core \
|
||||
meta-arm \
|
||||
"
|
||||
|
||||
SIGGEN_EXCLUDERECIPES_ABISAFE += " \
|
||||
ti-sgx-ddk-km \
|
||||
ti-sgx-ddk-um \
|
||||
cmem-mod \
|
||||
hplib-mod \
|
||||
gdbserverproxy-module-drv \
|
||||
debugss-module-drv \
|
||||
uio-module-drv \
|
||||
mpm-transport \
|
||||
cppi-lld \
|
||||
qmss-lld \
|
||||
multiprocmgr \
|
||||
"
|
||||
|
||||
HOSTTOOLS_NONFATAL += "truncate xxd comm"
|
||||
BBFILE_PRIORITY_meta-ti = "10"
|
||||
|
||||
17
conf/machine/am180x-evm.conf
Normal file
17
conf/machine/am180x-evm.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM180x CPUs on an AM180x EVM board
|
||||
#@DESCRIPTION: Machine configuration for the TI AM180x EVM board
|
||||
|
||||
require conf/machine/include/davinci.inc
|
||||
require conf/machine/include/omapl138.inc
|
||||
|
||||
UBOOT_MACHINE = "da850evm_config"
|
||||
UBOOT_ENTRYPOINT = "0xc0008000"
|
||||
UBOOT_LOADADDRESS = "0xc0008000"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 serial ethernet"
|
||||
|
||||
SERIAL_CONSOLE = "115200 ttyS2"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-omapl138-psp"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
@@ -1,17 +1,22 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM335x EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM335x EVM
|
||||
TARGET_ARCH = "arm"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-video-fbdev"
|
||||
|
||||
GUI_MACHINE_CLASS = "smallscreen"
|
||||
|
||||
require conf/machine/include/ti33x.inc
|
||||
|
||||
MACHINE_GUI_CLASS = "smallscreen"
|
||||
MACHINE_FEATURES += "touchscreen"
|
||||
IMAGE_FSTYPES += "ubi tar.bz2"
|
||||
|
||||
IMAGE_FSTYPES += "ubifs ubi"
|
||||
SERIAL_CONSOLE = "115200 ttyO0"
|
||||
|
||||
# Normally AM335 boards use ttyS0, but ICE uses ttyS3, so try both
|
||||
SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS3"
|
||||
SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp"
|
||||
|
||||
# UBI information. Note that this is board and kernel specific. Changes
|
||||
# in your kernel port may require changes in these variables. For more
|
||||
@@ -24,7 +29,7 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
||||
# UBI: logical eraseblock size: 126976 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 1988 LEBs
|
||||
MKUBIFS_ARGS ?= "-F -m 2048 -e 126976 -c 9900"
|
||||
MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 1988"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
|
||||
# from dmesg:
|
||||
@@ -32,4 +37,11 @@ MKUBIFS_ARGS ?= "-F -m 2048 -e 126976 -c 9900"
|
||||
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
|
||||
# UBI: sub-page size: 512
|
||||
# UBI: VID header offset: 2048 (aligned 2048)
|
||||
UBINIZE_ARGS ?= "-m 2048 -p 128KiB -s 512 -O 2048"
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_MACHINE = "am335x_evm_config"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen"
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM335x HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM335x HS EVM
|
||||
|
||||
require conf/machine/am335x-evm.conf
|
||||
|
||||
UBOOT_MACHINE = ""
|
||||
# Last config in the list is default
|
||||
UBOOT_CONFIG ??= "uart mmc"
|
||||
UBOOT_CONFIG[uart] = "am335x_hs_evm_uart_config"
|
||||
UBOOT_CONFIG[mmc] = "am335x_hs_evm_config"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x82000000"
|
||||
UBOOT_LOADADDRESS = "0x82000000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_CAT}/am3x"
|
||||
@@ -1,35 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM3517 EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI Sitara AM3517 EVM
|
||||
|
||||
require conf/machine/include/omap3.inc
|
||||
|
||||
MACHINE_GUI_CLASS = "smallscreen"
|
||||
MACHINE_FEATURES += "touchscreen ethernet"
|
||||
|
||||
IMAGE_FSTYPES += "ubi tar.xz"
|
||||
EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2"
|
||||
USE_VT = "2"
|
||||
|
||||
KERNEL_DEVICETREE = "am3517-evm.dtb"
|
||||
|
||||
UBOOT_MACHINE = "am3517_evm_config"
|
||||
XLOAD_MACHINE = "am3517evm_config"
|
||||
|
||||
# NOTE: there are NAND and OneNAND versions of this board...
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: logical eraseblock size: 129024 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 1996 LEBs
|
||||
MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
|
||||
# UBI: sub-page size: 512
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
|
||||
@@ -2,19 +2,37 @@
|
||||
#@NAME: AM37x EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM37x EVM
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-input-tslib \
|
||||
xf86-video-omapfb \
|
||||
xf86-input-keyboard"
|
||||
|
||||
GUI_MACHINE_CLASS = "smallscreen"
|
||||
|
||||
require conf/machine/include/omap3.inc
|
||||
|
||||
MACHINE_GUI_CLASS = "smallscreen"
|
||||
MACHINE_FEATURES += "touchscreen ethernet"
|
||||
# Ship all kernel modules
|
||||
|
||||
IMAGE_FSTYPES += "ubi tar.xz"
|
||||
IMAGE_FSTYPES += "jffs2 tar.bz2"
|
||||
EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"
|
||||
|
||||
KERNEL_DEVICETREE = "omap3-evm-37xx.dtb"
|
||||
SERIAL_CONSOLE = "115200 ttyS0"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS0"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_MACHINE = "omap3_evm_config"
|
||||
XLOAD_MACHINE = "omap3evm_config"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen"
|
||||
|
||||
# NOTE: there are NAND and OneNAND versions of this board...
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
@@ -29,3 +47,4 @@ MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996"
|
||||
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
|
||||
# UBI: sub-page size: 512
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
|
||||
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM437x EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM437x EVM
|
||||
|
||||
require conf/machine/include/ti43x.inc
|
||||
|
||||
MACHINE_GUI_CLASS = "smallscreen"
|
||||
MACHINE_FEATURES += "touchscreen"
|
||||
|
||||
IMAGE_FSTYPES += "ubifs ubi"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS0"
|
||||
|
||||
# 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 11 -O 4096
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 4096
|
||||
# UBI: logical eraseblock size: 253952 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 994 LEBs
|
||||
MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 4800"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 11 -O 4096
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 4096
|
||||
# UBI: physical eraseblock size: 262144 bytes (256 KiB)
|
||||
# UBI: sub-page size: 4096
|
||||
# UBI: VID header offset: 4096 (aligned 4096)
|
||||
UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096"
|
||||
@@ -1,18 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM437x HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM437x HS EVM
|
||||
|
||||
require conf/machine/am437x-evm.conf
|
||||
|
||||
UBOOT_MACHINE = "am43xx_hs_evm_config"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x82000000"
|
||||
UBOOT_LOADADDRESS = "0x82000000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_CAT}/am4x"
|
||||
|
||||
OPTEEMACHINE = "ti-am43xx"
|
||||
OPTEEFLAVOR = "am43xx"
|
||||
OPTEEOUTPUTMACHINE = "ti"
|
||||
@@ -1,57 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM57xx EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM57xx EVM
|
||||
|
||||
require conf/machine/include/dra7xx.inc
|
||||
|
||||
MACHINE_FEATURES += "touchscreen"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
am57xx-beagle-x15.dtb \
|
||||
am57xx-beagle-x15-revb1.dtb \
|
||||
am57xx-beagle-x15-revc.dtb \
|
||||
am5729-beagleboneai.dtb \
|
||||
am57xx-evm.dtb \
|
||||
am57xx-evm-cam-ov10635.dtb \
|
||||
am57xx-evm-reva3.dtb \
|
||||
am57xx-evm-reva3-cam-ov10635.dtb \
|
||||
am571x-idk.dtb \
|
||||
am571x-idk-lcd-osd101t2045.dtb \
|
||||
am571x-idk-lcd-osd101t2587.dtb \
|
||||
am572x-idk.dtb \
|
||||
am572x-idk-lcd-osd101t2045.dtb \
|
||||
am572x-idk-lcd-osd101t2587.dtb \
|
||||
am574x-idk.dtb \
|
||||
am574x-idk-lcd-osd101t2587.dtb \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am574x-idk-pru-excl-uio.dtb am572x-idk-pru-excl-uio.dtb am571x-idk-pru-excl-uio.dtb', '', d)}"
|
||||
|
||||
UBOOT_MACHINE = "am57xx_evm_config"
|
||||
|
||||
# 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 = "-F -m 2048 -e 126976 -c 8192"
|
||||
|
||||
# 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 2048 -p 128KiB -s 512 -O 2048"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "am571x am572x am574x"
|
||||
TI_PDK_LIMIT_BOARDS = "evmAM571x evmAM572x idkAM571x idkAM572x idkAM574x"
|
||||
@@ -1,19 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM57xx HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM57xx HS EVM
|
||||
|
||||
require conf/machine/am57xx-evm.conf
|
||||
|
||||
UBOOT_MACHINE = "am57xx_hs_evm_config"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x82000000"
|
||||
UBOOT_LOADADDRESS = "0x82000000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_AUTO}/am5x"
|
||||
|
||||
OPTEEMACHINE = "ti-am57xx"
|
||||
OPTEEFLAVOR = "am57xx"
|
||||
OPTEEOUTPUTMACHINE = "ti"
|
||||
OPTEEPAGER = "y"
|
||||
@@ -1,11 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM64xx EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "am64x"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "gp"
|
||||
|
||||
UBOOT_MACHINE = "am64x_evm_r5_defconfig"
|
||||
@@ -1,7 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM64xx EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM64xx EVM
|
||||
|
||||
require conf/machine/include/am64xx.inc
|
||||
|
||||
UBOOT_MACHINE = "am64x_evm_a53_defconfig"
|
||||
@@ -1,11 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM64xx SK (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI AM64xx SK (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "am64x"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "gp"
|
||||
|
||||
UBOOT_MACHINE = "am64x_sk_r5_defconfig"
|
||||
@@ -1,11 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM64xx SK
|
||||
#@DESCRIPTION: Machine configuration for the TI AM64xx SK board
|
||||
|
||||
require conf/machine/include/am64xx.inc
|
||||
|
||||
UBOOT_MACHINE = "am64x_sk_a53_defconfig"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am642-sk.dtb \
|
||||
"
|
||||
@@ -1,11 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM65xx SR2.0 EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI AM65xx SR2.0 EVM (R5F core)
|
||||
|
||||
# Booting SR2 requires different SYSFW, the rest is handled at runtime
|
||||
|
||||
require conf/machine/am65xx-evm-k3r5.conf
|
||||
SOC_FAMILY_append = ":k3r5-sr2"
|
||||
|
||||
SYSFW_SOC = "am65x_sr2"
|
||||
SYSFW_SYMLINK = "sysfw.itb"
|
||||
@@ -1,12 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM65xx EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "am65x"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "gp"
|
||||
SYSFW_SYMLINK = ""
|
||||
|
||||
UBOOT_MACHINE = "am65x_evm_r5_defconfig"
|
||||
@@ -1,7 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM65xx EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM65xx EVM
|
||||
|
||||
require conf/machine/include/am65xx.inc
|
||||
|
||||
UBOOT_MACHINE = "am65x_evm_a53_defconfig"
|
||||
@@ -1,11 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM65xx SR2.0 HS EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI AM65xx SR2.0 HS EVM (R5F core)
|
||||
|
||||
# Booting SR2 requires different SYSFW, the rest is handled at runtime
|
||||
|
||||
require conf/machine/am65xx-hs-evm-k3r5.conf
|
||||
SOC_FAMILY_append = ":k3r5-sr2"
|
||||
|
||||
SYSFW_SOC = "am65x_sr2"
|
||||
SYSFW_SYMLINK = "sysfw.itb"
|
||||
@@ -1,14 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM65xx HS EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "am65x"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "hs"
|
||||
SYSFW_SYMLINK = ""
|
||||
|
||||
UBOOT_MACHINE = "am65x_hs_evm_r5_defconfig"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
|
||||
@@ -1,22 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM65xx HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM
|
||||
|
||||
require conf/machine/include/am65xx.inc
|
||||
|
||||
UBOOT_MACHINE = "am65x_hs_evm_a53_defconfig"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80080000"
|
||||
UBOOT_LOADADDRESS = "0x80080000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
UBOOT_DTB_LOADADDRESS = "0x83000000"
|
||||
UBOOT_DTBO_LOADADDRESS = "0x83080000"
|
||||
UBOOT_DTBO_OFFSET = "0x00010000"
|
||||
|
||||
SPL_BINARY = "tispl.bin_HS"
|
||||
SPL_BINARYNAME = "tispl.bin"
|
||||
UBOOT_BINARY = "u-boot.img_HS"
|
||||
IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
|
||||
@@ -1,13 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: BeagleBoard X15
|
||||
#@DESCRIPTION: Machine configuration for the BeagleBoard X15
|
||||
|
||||
require conf/machine/include/dra7xx.inc
|
||||
|
||||
KERNEL_DEVICETREE = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-beagle-x15-revc.dtb"
|
||||
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2"
|
||||
|
||||
UBOOT_MACHINE = "am57xx_evm_config"
|
||||
@@ -2,17 +2,28 @@
|
||||
#@NAME: Beagleboard machine
|
||||
#@DESCRIPTION: Machine configuration for the http://beagleboard.org/ board
|
||||
|
||||
require conf/machine/include/omap3.inc
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-video-omapfb \
|
||||
xf86-input-keyboard"
|
||||
|
||||
# Only has DVI connector for external screen
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
GUI_MACHINE_CLASS = "bigscreen"
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz ubi"
|
||||
EXTRA_IMAGECMD_jffs2 = "-lnp"
|
||||
require conf/machine/include/omap3.inc
|
||||
|
||||
KERNEL_DEVICETREE = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-beagle-xm-ab.dtb"
|
||||
# SPL build
|
||||
EXTRA_IMAGEDEPENDS = "u-boot"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-mainline"
|
||||
|
||||
IMAGE_FSTYPES += "tar.bz2 ubi"
|
||||
EXTRA_IMAGECMD_jffs2 = "-lnp "
|
||||
|
||||
# Guesswork
|
||||
SERIAL_CONSOLE = "115200 ttyO2"
|
||||
|
||||
UBOOT_MACHINE = "omap3_beagle_config"
|
||||
|
||||
@@ -33,6 +44,8 @@ MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996"
|
||||
# UBI: sub-page size: 512
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
|
||||
|
||||
# and sdio
|
||||
MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa"
|
||||
|
||||
# For a modularized kernel we want to drag in networking, sound, rtc etc."
|
||||
MACHINE_EXTRA_RRECOMMENDS = "kernel-module-smsc95xx kernel-module-snd-soc-twl4030 kernel-module-rtc-twl \
|
||||
kernel-module-snd-soc-omap kernel-module-snd-soc-omap-mcbsp kernel-module-snd-soc-omap3beagle"
|
||||
MACHINE_EXTRA_RRECOMMENDS = "kernel-module-smsc95xx kernel-module-snd-soc-twl4030 kernel-module-rtc-twl"
|
||||
|
||||
@@ -1,19 +1,26 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: BeagleBone machine
|
||||
#@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board
|
||||
#@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board
|
||||
|
||||
require conf/machine/include/ti33x.inc
|
||||
|
||||
KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblue.dtb \
|
||||
am335x-boneblack.dtb am335x-boneblack-wireless.dtb \
|
||||
am335x-bonegreen.dtb am335x-bonegreen-wireless.dtb"
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-video-fbdev"
|
||||
|
||||
# Only has DVI connector for external screen
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
GUI_MACHINE_CLASS = "bigscreen"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS0"
|
||||
require conf/machine/include/ti33x.inc
|
||||
EXTRA_IMAGEDEPENDS = "u-boot"
|
||||
|
||||
IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp"
|
||||
|
||||
# Refine the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_BOARDS = "bbbAM335x"
|
||||
IMAGE_FSTYPES += "tar.bz2 "
|
||||
|
||||
# Guesswork
|
||||
SERIAL_CONSOLE = "115200 ttyO0"
|
||||
|
||||
UBOOT_MACHINE = "am335x_evm_config"
|
||||
|
||||
# and sdio
|
||||
MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 1 c665x machine
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 1 c665x EVM
|
||||
|
||||
require conf/machine/include/c66x.inc
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "c6657"
|
||||
TI_PDK_LIMIT_BOARDS = "evmC6657"
|
||||
@@ -1,9 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 1 c667x machine
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 1 c667x EVM
|
||||
|
||||
require conf/machine/include/c66x.inc
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "c6678"
|
||||
TI_PDK_LIMIT_BOARDS = "evmC6678"
|
||||
@@ -1,53 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: DRA7xx EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI DRA7xx EVM
|
||||
|
||||
require conf/machine/include/dra7xx.inc
|
||||
|
||||
MACHINE_FEATURES += "touchscreen"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS0"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
dra7-evm.dtb \
|
||||
dra7-evm-lcd-osd101t2045.dtb \
|
||||
dra7-evm-lcd-osd101t2587.dtb \
|
||||
dra71-evm.dtb \
|
||||
dra71-evm-nand.dtb \
|
||||
dra71-evm-lcd-auo-g101evn01.0.dtb \
|
||||
dra72-evm.dtb \
|
||||
dra72-evm-lcd-osd101t2045.dtb \
|
||||
dra72-evm-lcd-osd101t2587.dtb \
|
||||
dra72-evm-revc.dtb \
|
||||
dra72-evm-revc-lcd-osd101t2045.dtb \
|
||||
dra72-evm-revc-lcd-osd101t2587.dtb \
|
||||
dra76-evm.dtb \
|
||||
dra76-evm-tfp410.dtb \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "dra7xx_evm_config"
|
||||
|
||||
# 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 = "-F -m 2048 -e 126976 -c 8192"
|
||||
|
||||
# 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 2048 -p 128KiB -s 512 -O 2048"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_BOARDS = "evmDRA72x evmDRA75x evmDRA78x"
|
||||
TI_PDK_LIMIT_SOCS = "dra72x dra75x dra78x"
|
||||
@@ -1,19 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: DRA7xx HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI DRA7xx HS EVM
|
||||
|
||||
require conf/machine/dra7xx-evm.conf
|
||||
|
||||
UBOOT_MACHINE = "dra7xx_hs_evm_config"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x82000000"
|
||||
UBOOT_LOADADDRESS = "0x82000000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_AUTO}/dra7"
|
||||
|
||||
OPTEEMACHINE = "ti-dra7xx"
|
||||
OPTEEFLAVOR = "dra7xx"
|
||||
OPTEEOUTPUTMACHINE = "ti"
|
||||
OPTEEPAGER = "y"
|
||||
@@ -1,26 +0,0 @@
|
||||
require conf/machine/include/k3.inc
|
||||
SOC_FAMILY_append = ":am64xx"
|
||||
|
||||
MACHINE_FEATURES += "screen touchscreen"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1"
|
||||
SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am642-evm.dtb \
|
||||
"
|
||||
|
||||
# AM64 supports multi-certificate images, use the same
|
||||
IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
|
||||
|
||||
do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
|
||||
do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
|
||||
|
||||
TFA_BOARD = "lite"
|
||||
OPTEEMACHINE = "k3-am65x"
|
||||
OPTEEOUTPUTMACHINE = "k3"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "am64x"
|
||||
TI_PDK_LIMIT_BOARDS = "am64x_evm"
|
||||
TI_PDK_LIMIT_CORES = "mcu1_0 mpu1_0 mcu1_1 mcu2_0 mcu2_1"
|
||||
@@ -1,38 +0,0 @@
|
||||
require conf/machine/include/k3.inc
|
||||
SOC_FAMILY_append = ":am65xx"
|
||||
|
||||
MACHINE_FEATURES += "screen touchscreen gpu"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1"
|
||||
SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am654-base-board.dtb \
|
||||
ti/k3-am654-base-board-sr1.dtb \
|
||||
ti/k3-am654-gp.dtbo \
|
||||
ti/k3-am654-idk.dtbo \
|
||||
ti/k3-am654-idk-sr1.dtbo \
|
||||
ti/k3-am654-evm-hdmi.dtbo \
|
||||
ti/k3-am654-evm-oldi-lcd1evm.dtbo \
|
||||
ti/k3-am654-evm-tc358876.dtbo \
|
||||
ti/k3-am654-pcie-usb2.dtbo \
|
||||
ti/k3-am654-pcie-usb3.dtbo \
|
||||
ti/k3-am654-base-board-jailhouse.dtbo \
|
||||
ti/k3-am654-evm-prupwm.dtbo \
|
||||
"
|
||||
|
||||
BBMULTICONFIG += "k3r5-sr2"
|
||||
|
||||
# Use default IMAGE_BOOT_FILES_LEGACY files
|
||||
# Since default sysfw.itb on AM65x is for SR2.0, add a version for SR1.0
|
||||
IMAGE_BOOT_FILES += "sysfw-am65x-evm.itb"
|
||||
do_image_wic[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy"
|
||||
do_image_tar[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy"
|
||||
|
||||
OPTEEMACHINE = "k3-am65x"
|
||||
OPTEEOUTPUTMACHINE = "k3"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "am65xx"
|
||||
TI_PDK_LIMIT_BOARDS = "am65xx_evm am65xx_idk"
|
||||
TI_PDK_LIMIT_CORES = "mcu1_0 mpu1_0"
|
||||
@@ -1,9 +0,0 @@
|
||||
require conf/machine/include/keystone.inc
|
||||
SOC_FAMILY_append = ":c66x"
|
||||
|
||||
# HACK: The c66x family is composed of devices with only DSP cores, and no ARM
|
||||
# cores. The Linux kernel is not supported on these machines.
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-dummy"
|
||||
EXTRA_IMAGEDEPENDS = ""
|
||||
|
||||
IMAGE_FSTYPES = "tar.xz"
|
||||
@@ -1,22 +0,0 @@
|
||||
require conf/machine/include/tune-arm926ejs.inc
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r54"
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
|
||||
UBOOT_MACHINE = "davinci_dvevm_config"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
|
||||
SERIAL_CONSOLES ?= "115200;ttyS0"
|
||||
EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 serial ethernet usbhost usbgadget mmc alsa"
|
||||
@@ -1,4 +0,0 @@
|
||||
require conf/machine/include/omap-a15.inc
|
||||
SOC_FAMILY_append = ":dra7xx"
|
||||
|
||||
MACHINE_FEATURES += "pci"
|
||||
@@ -1,12 +0,0 @@
|
||||
require conf/machine/include/k3.inc
|
||||
SOC_FAMILY_append = ":j7"
|
||||
|
||||
OPTEEMACHINE = "k3-j721e"
|
||||
OPTEEOUTPUTMACHINE = "k3"
|
||||
|
||||
# Use default IMAGE_BOOT_FILES_LEGACY files
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "j721e j7200"
|
||||
TI_PDK_LIMIT_BOARDS = "j721e_evm j7200_evm"
|
||||
TI_PDK_LIMIT_CORES = "mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1 c66xdsp_1 c66xdsp_2 c7x_1"
|
||||
@@ -1,6 +0,0 @@
|
||||
require conf/machine/include/keystone.inc
|
||||
SOC_FAMILY_append = ":k2e"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "k2e"
|
||||
TI_PDK_LIMIT_BOARDS = "evmK2E"
|
||||
@@ -1,6 +0,0 @@
|
||||
require conf/machine/include/keystone.inc
|
||||
SOC_FAMILY_append = ":k2g"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "k2g"
|
||||
TI_PDK_LIMIT_BOARDS = "evmK2G iceK2G"
|
||||
@@ -1,6 +0,0 @@
|
||||
require conf/machine/include/keystone.inc
|
||||
SOC_FAMILY_append = ":k2hk"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "k2h k2k"
|
||||
TI_PDK_LIMIT_BOARDS = "evmK2H evmK2K"
|
||||
@@ -1,6 +0,0 @@
|
||||
require conf/machine/include/keystone.inc
|
||||
SOC_FAMILY_append = ":k2l"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "k2l"
|
||||
TI_PDK_LIMIT_BOARDS = "evmK2L"
|
||||
@@ -1,51 +0,0 @@
|
||||
# TI K3 Aarch64 profile for Cortex-A53/A72 cores
|
||||
|
||||
require conf/machine/include/ti-soc.inc
|
||||
SOC_FAMILY_append = ":k3"
|
||||
|
||||
require conf/machine/include/arm/arch-arm64.inc
|
||||
|
||||
BBMULTICONFIG += "k3r5"
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r0"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
|
||||
KERNEL_IMAGETYPE = "Image"
|
||||
KERNEL_IMAGETYPES = "Image vmlinux.gz"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
SPL_BINARY = "tispl.bin"
|
||||
UBOOT_SUFFIX = "img"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "virtual/bootloader"
|
||||
|
||||
TFA_PLATFORM = "k3"
|
||||
TFA_BOARD = "generic"
|
||||
|
||||
MACHINE_GUI_CLASS = "smallscreen"
|
||||
|
||||
# Use the expected value of the ubifs filesystem's volume name in the kernel
|
||||
# and u-boot.
|
||||
UBI_VOLNAME = "rootfs"
|
||||
|
||||
# List common SoC features, may need to add touchscreen for specific machines
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 alsa ethernet pci"
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap"
|
||||
|
||||
IMAGE_BOOT_FILES_LEGACY = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin sysfw.itb"
|
||||
IMAGE_BOOT_FILES_MULTI_CERT = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin"
|
||||
|
||||
IMAGE_BOOT_FILES ?= "${IMAGE_BOOT_FILES_LEGACY}"
|
||||
|
||||
WKS_FILE ?= "sdimage-2part.wks"
|
||||
do_image_wic[depends] += "virtual/bootloader:do_deploy"
|
||||
do_image_wic[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
|
||||
do_image_tar[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
|
||||
@@ -1,24 +0,0 @@
|
||||
# TI K3 Armv7 profile for Cortex-R5F cores
|
||||
|
||||
require conf/machine/include/ti-soc.inc
|
||||
SOC_FAMILY_append = ":k3r5"
|
||||
|
||||
# The closest of existing tunes for Cortex-R5F
|
||||
DEFAULTTUNE = "armv7athf"
|
||||
require conf/machine/include/tune-cortexa8.inc
|
||||
|
||||
# R5 runs early bootloader and loads SYSFW
|
||||
# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/am65x/README
|
||||
# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/j721e/README
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
|
||||
SPL_BINARY = ""
|
||||
UBOOT_SUFFIX = "bin"
|
||||
UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
|
||||
UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
|
||||
UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
|
||||
|
||||
PACKAGECONFIG_pn-u-boot-ti-staging = ""
|
||||
PACKAGECONFIG_pn-u-boot-ti-mainline = ""
|
||||
@@ -1,30 +0,0 @@
|
||||
require conf/machine/include/ti-soc.inc
|
||||
SOC_FAMILY_append = ":keystone"
|
||||
|
||||
DEFAULTTUNE ?= "armv7athf-neon"
|
||||
require conf/machine/include/tune-cortexa15.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r10"
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
SPL_BINARY = "MLO"
|
||||
UBOOT_SUFFIX = "bin"
|
||||
|
||||
# Use the expected value of the ubifs filesystem's volume name in the kernel
|
||||
# and u-boot.
|
||||
UBI_VOLNAME = "rootfs"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
EXTRA_IMAGEDEPENDS += "boot-monitor"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat pci dsp"
|
||||
MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
|
||||
@@ -1,44 +0,0 @@
|
||||
require conf/machine/include/ti-soc.inc
|
||||
SOC_FAMILY_append = ":omap-a15"
|
||||
|
||||
DEFAULTTUNE ?= "armv7athf-neon"
|
||||
require conf/machine/include/tune-cortexa15.inc
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r7"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
KERNEL_IMAGETYPES = "zImage uImage"
|
||||
KERNEL_CLASSES += "kernel-uimage"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
SPL_BINARY = "MLO"
|
||||
UBOOT_SUFFIX = "img"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "virtual/bootloader"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-video-fbdev"
|
||||
|
||||
MACHINE_GUI_CLASS = "smallscreen"
|
||||
|
||||
# Use the expected value of the ubifs filesystem's volume name in the kernel
|
||||
# and u-boot.
|
||||
UBI_VOLNAME = "rootfs"
|
||||
|
||||
# List common SoC features, may need to add touchscreen for specific machines
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu mmip dsp gc320"
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz wic.xz"
|
||||
WKS_FILE ?= "sdimage-2part.wks"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}"
|
||||
do_image_wic[depends] += "u-boot:do_deploy"
|
||||
@@ -1,42 +1,15 @@
|
||||
require conf/machine/include/ti-soc.inc
|
||||
SOC_FAMILY_append = ":omap3"
|
||||
SOC_FAMILY = "omap3"
|
||||
require conf/machine/include/soc-family.inc
|
||||
|
||||
DEFAULTTUNE ?= "armv7athf-neon"
|
||||
require conf/machine/include/tune-cortexa8.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
|
||||
# For built-in LCD, add xf86-input-tslib
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-video-fbdev \
|
||||
xf86-input-keyboard"
|
||||
|
||||
# Default to external video, change to smallscreen for built-in LCD
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-omap"
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r127"
|
||||
MACHINE_KERNEL_PR = "r121"
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
|
||||
# Default providers, may need to override for specific machines
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
|
||||
KERNEL_DEVICETREE = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-beagle-xm-ab.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_MACHINE = "omap3_evm_config"
|
||||
XLOAD_MACHINE = "omap3evm_config"
|
||||
KERNEL_IMAGETYPE = "uImage"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
# If SPL is not used, may need to add x-load
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
EXTRA_IMAGEDEPENDS += "u-boot x-load"
|
||||
|
||||
# List common SoC features, may need to add touchscreen/ethernet for specific machines
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa gpu"
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
require conf/machine/include/ti-soc.inc
|
||||
SOC_FAMILY_append = ":omap4"
|
||||
SOC_FAMILY = "omap4"
|
||||
require conf/machine/include/soc-family.inc
|
||||
|
||||
DEFAULTTUNE ?= "armv7athf-neon"
|
||||
require conf/machine/include/tune-cortexa9.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-omap4"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
XSERVER = "xserver-xorg \
|
||||
xserver-xorg-extension-dri \
|
||||
xserver-xorg-extension-dri2 \
|
||||
xserver-xorg-extension-glx \
|
||||
xf86-input-evdev \
|
||||
xf86-video-fbdev"
|
||||
xf86-video-fbdev"
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r4"
|
||||
MACHINE_KERNEL_PR = "r1"
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
|
||||
UBOOT_MACHINE = "omap4_panda_config"
|
||||
KERNEL_IMAGETYPE = "uImage"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
require conf/machine/include/ti-soc.inc
|
||||
SOC_FAMILY_append = ":omapl1"
|
||||
@@ -1,5 +0,0 @@
|
||||
require conf/machine/include/omapl1.inc
|
||||
SOC_FAMILY_append = ":omapl137"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "omapl137"
|
||||
@@ -1,5 +1,2 @@
|
||||
require conf/machine/include/omapl1.inc
|
||||
SOC_FAMILY_append = ":omapl138"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "omapl138"
|
||||
SOC_FAMILY = "omapl138"
|
||||
require conf/machine/include/soc-family.inc
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# This is a generic TI SOC family. It is a superset of all other SOCs
|
||||
# and platforms defined in meta-ti to allow BSP-level overrides.
|
||||
SOC_FAMILY = "ti-soc"
|
||||
require conf/machine/include/soc-family.inc
|
||||
@@ -1,66 +1,14 @@
|
||||
require conf/machine/include/ti-soc.inc
|
||||
SOC_FAMILY_append = ":ti33x"
|
||||
SOC_FAMILY = "ti33x"
|
||||
require conf/machine/include/soc-family.inc
|
||||
|
||||
DEFAULTTUNE ?= "armv7athf-neon"
|
||||
require conf/machine/include/tune-cortexa8.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
|
||||
# For built-in LCD, add xf86-input-tslib
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-video-fbdev \
|
||||
xf86-input-keyboard"
|
||||
|
||||
# Default to external video, change to smallscreen for built-in LCD
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp"
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r22"
|
||||
MACHINE_KERNEL_PR = "r12"
|
||||
|
||||
# Default providers, may need to override for specific machines
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
am335x-evm.dtb am335x-evmsk.dtb \
|
||||
am335x-icev2.dtb \
|
||||
am335x-icev2-prueth.dtb \
|
||||
am335x-pocketbeagle.dtb am335x-bone.dtb am335x-boneblue.dtb \
|
||||
am335x-bonegreen.dtb am335x-bonegreen-wireless.dtb \
|
||||
am335x-boneblack.dtb am335x-boneblack-wireless.dtb \
|
||||
am335x-sancloud-bbe.dtb \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am335x-icev2-pru-excl-uio.dtb', '', d)}"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_MACHINE = "am335x_evm_config"
|
||||
KERNEL_IMAGETYPE = "uImage"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
SPL_BINARY = "MLO"
|
||||
UBOOT_SUFFIX = "img"
|
||||
|
||||
# Use the expected value of the ubifs filesystem's volume name in the kernel
|
||||
# and u-boot.
|
||||
UBI_VOLNAME = "rootfs"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "virtual/bootloader"
|
||||
|
||||
# List common SoC features, may need to add touchscreen for specific machines
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "am335x"
|
||||
TI_PDK_LIMIT_BOARDS = "evmAM335x icev2AM335x iceAMIC110 bbbAM335x skAM335x"
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz wic.xz"
|
||||
WKS_FILE ?= "sdimage-2part.wks"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}"
|
||||
do_image_wic[depends] += "virtual/bootloader:do_deploy"
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
require conf/machine/include/ti-soc.inc
|
||||
SOC_FAMILY_append = ":ti43x"
|
||||
|
||||
DEFAULTTUNE ?= "armv7athf-neon"
|
||||
require conf/machine/include/tune-cortexa9.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
|
||||
# For built-in LCD, add xf86-input-tslib
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-video-fbdev \
|
||||
xf86-input-keyboard"
|
||||
|
||||
# Default to external video, change to smallscreen for built-in LCD
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r3"
|
||||
|
||||
# Default providers, may need to override for specific machines
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb \
|
||||
am437x-sk-evm.dtb am437x-idk-evm.dtb \
|
||||
am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am437x-idk-pru-excl-uio.dtb', '', d)}"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_MACHINE = "am43xx_evm_config"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
SPL_BINARY = "MLO"
|
||||
UBOOT_SUFFIX = "img"
|
||||
|
||||
# Use the expected value of the ubifs filesystem's volume name in the kernel
|
||||
# and u-boot.
|
||||
UBI_VOLNAME = "rootfs"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
|
||||
# List common SoC features, may need to add touchscreen for specific machines
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "am437x"
|
||||
TI_PDK_LIMIT_BOARDS = "evmAM437x idkAM437x skAM437x"
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz wic.xz"
|
||||
WKS_FILE ?= "sdimage-2part.wks"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}"
|
||||
do_image_wic[depends] += "u-boot:do_deploy"
|
||||
@@ -1,11 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J7 EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI J7 EVM (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "j721e"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "gp"
|
||||
|
||||
UBOOT_MACHINE = "j721e_evm_r5_defconfig"
|
||||
@@ -1,20 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J7 EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI J7 EVM
|
||||
|
||||
require conf/machine/include/j7.inc
|
||||
|
||||
MACHINE_FEATURES += "gpu"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS3"
|
||||
SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-j721e-common-proc-board.dtb \
|
||||
ti/k3-j721e-proc-board-tps65917.dtb \
|
||||
ti/k3-j721e-common-proc-board-infotainment.dtbo \
|
||||
ti/k3-j721e-pcie-backplane.dtbo \
|
||||
ti/k3-j721e-common-proc-board-jailhouse.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "j721e_evm_a72_config"
|
||||
@@ -1,13 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J7 HS EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI J7 HS EVM (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "j721e"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "hs"
|
||||
|
||||
UBOOT_MACHINE = "j721e_hs_evm_r5_defconfig"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
|
||||
@@ -1,22 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J7 HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI J7 HS EVM
|
||||
|
||||
require conf/machine/j7-evm.conf
|
||||
|
||||
UBOOT_MACHINE = "j721e_hs_evm_a72_defconfig"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80080000"
|
||||
UBOOT_LOADADDRESS = "0x80080000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
UBOOT_DTB_LOADADDRESS = "0x83000000"
|
||||
UBOOT_DTBO_LOADADDRESS = "0x83080000"
|
||||
UBOOT_DTBO_OFFSET = "0x00010000"
|
||||
|
||||
SPL_BINARY = "tispl.bin_HS"
|
||||
SPL_BINARYNAME = "tispl.bin"
|
||||
UBOOT_BINARY = "u-boot.img_HS"
|
||||
IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
|
||||
@@ -1,11 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J7200 EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "j7200"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "gp"
|
||||
|
||||
UBOOT_MACHINE = "j7200_evm_r5_defconfig"
|
||||
@@ -1,21 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J7200 EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI J7200 EVM
|
||||
|
||||
require conf/machine/include/j7.inc
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS3"
|
||||
SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-j7200-common-proc-board.dtb \
|
||||
ti/k3-j7200-common-proc-board-jailhouse.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "j7200_evm_a72_config"
|
||||
|
||||
# J7200 supports multi-certificate images, use the same
|
||||
IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
|
||||
|
||||
do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
|
||||
do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
|
||||
@@ -1,32 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 K2E machine
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2E EVM
|
||||
|
||||
require conf/machine/include/k2e.inc
|
||||
|
||||
KERNEL_DEVICETREE = "keystone-k2e-evm.dtb"
|
||||
|
||||
UBOOT_MACHINE = "k2e_evm_config"
|
||||
|
||||
BOOT_MONITOR_MAKE_TARGET = "k2e"
|
||||
|
||||
IMAGE_FSTYPES += "ubifs ubi tar.xz"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS0"
|
||||
|
||||
SYSVINIT_ENABLED_GETTYS = ""
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: logical eraseblock size: 126976 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 3856 LEBs
|
||||
MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 3856"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
|
||||
# UBI: sub-page size: 2048
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 2048 -O 2048"
|
||||
@@ -1,15 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 K2E HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2E HS EVM
|
||||
|
||||
require conf/machine/k2e-evm.conf
|
||||
|
||||
UBOOT_MACHINE = "k2e_hs_evm_config"
|
||||
SPL_BINARY = ""
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x82000000"
|
||||
UBOOT_LOADADDRESS = "0x82000000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_CAT}/k2e"
|
||||
@@ -1,35 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 K2G machine
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2G EVM
|
||||
|
||||
require conf/machine/include/k2g.inc
|
||||
|
||||
MACHINE_FEATURES += "alsa"
|
||||
|
||||
KERNEL_DEVICETREE = "keystone-k2g-evm.dtb keystone-k2g-evm-lcd.dtb keystone-k2g-ice.dtb \
|
||||
${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'keystone-k2g-ice-pru-excl-uio.dtb', '', d)}"
|
||||
|
||||
UBOOT_MACHINE = "k2g_evm_config"
|
||||
|
||||
BOOT_MONITOR_MAKE_TARGET = "k2g"
|
||||
|
||||
IMAGE_FSTYPES += "ubifs ubi tar.xz"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS0"
|
||||
|
||||
SYSVINIT_ENABLED_GETTYS = ""
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 4096
|
||||
# UBI: logical eraseblock size: 253952 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 1926 LEBs
|
||||
MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 1926"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 4096
|
||||
# UBI: physical eraseblock size: 256 KiB
|
||||
# UBI: sub-page size: 4096
|
||||
UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096"
|
||||
@@ -1,15 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 K2G HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2G HS EVM
|
||||
|
||||
require conf/machine/k2g-evm.conf
|
||||
|
||||
UBOOT_MACHINE = "k2g_hs_evm_config"
|
||||
SPL_BINARY = ""
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x82000000"
|
||||
UBOOT_LOADADDRESS = "0x82000000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_CAT}/k2g"
|
||||
@@ -1,32 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 K2HK machine
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2HK EVM
|
||||
|
||||
require conf/machine/include/k2hk.inc
|
||||
|
||||
KERNEL_DEVICETREE = "keystone-k2hk-evm.dtb"
|
||||
|
||||
UBOOT_MACHINE = "k2hk_evm_config"
|
||||
|
||||
BOOT_MONITOR_MAKE_TARGET = "k2hk"
|
||||
|
||||
IMAGE_FSTYPES += "ubifs ubi tar.xz"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS0"
|
||||
|
||||
SYSVINIT_ENABLED_GETTYS = ""
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: logical eraseblock size: 126976 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 3856 LEBs
|
||||
MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 3856"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
|
||||
# UBI: sub-page size: 2048
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 2048 -O 2048"
|
||||
@@ -1,15 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 K2HK HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2HK HS EVM
|
||||
|
||||
require conf/machine/k2hk-evm.conf
|
||||
|
||||
UBOOT_MACHINE = "k2hk_hs_evm_config"
|
||||
SPL_BINARY = ""
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x82000000"
|
||||
UBOOT_LOADADDRESS = "0x82000000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_CAT}/k2hk"
|
||||
@@ -1,32 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 K2L machine
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2L EVM
|
||||
|
||||
require conf/machine/include/k2l.inc
|
||||
|
||||
KERNEL_DEVICETREE = "keystone-k2l-evm.dtb"
|
||||
|
||||
UBOOT_MACHINE = "k2l_evm_config"
|
||||
|
||||
BOOT_MONITOR_MAKE_TARGET = "k2l"
|
||||
|
||||
IMAGE_FSTYPES += "ubifs ubi tar.xz"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS0"
|
||||
|
||||
SYSVINIT_ENABLED_GETTYS = ""
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 4096
|
||||
# UBI: logical eraseblock size: 253952 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 1926 LEBs
|
||||
MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 1926"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 4096
|
||||
# UBI: physical eraseblock size: 256 KiB
|
||||
# UBI: sub-page size: 4096
|
||||
UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096"
|
||||
@@ -1,15 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Keystone 2 K2L HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2L HS EVM
|
||||
|
||||
require conf/machine/k2l-evm.conf
|
||||
|
||||
UBOOT_MACHINE = "k2l_hs_evm_config"
|
||||
SPL_BINARY = ""
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x82000000"
|
||||
UBOOT_LOADADDRESS = "0x82000000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_CAT}/k2l"
|
||||
@@ -1,22 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: LEGO Mindstorms EV3
|
||||
#@DESCRIPTION: Machine configuration for the LEGO Mindstorms EV3
|
||||
|
||||
require conf/machine/include/davinci.inc
|
||||
require conf/machine/include/omapl138.inc
|
||||
|
||||
UBOOT_MACHINE = "legoev3_config"
|
||||
UBOOT_SUFFIX = "bin"
|
||||
UBOOT_ENTRYPOINT = "0xC0008000"
|
||||
UBOOT_LOADADDRESS = "0xC0008000"
|
||||
SPL_BINARY = ""
|
||||
|
||||
KERNEL_DEVICETREE = "da850-lego-ev3.dtb"
|
||||
KERNEL_IMAGETYPES = "uImage"
|
||||
KERNEL_DEVICETREE_BUNDLE = "1"
|
||||
SERIAL_CONSOLES = "115200;ttyS1"
|
||||
|
||||
IMAGE_FSTYPES += " wic"
|
||||
WKS_FILE ?= "sdimage-bootpart.wks"
|
||||
WIC_CREATE_EXTRA_ARGS += " --no-fstab-update"
|
||||
IMAGE_BOOT_FILES = "${KERNEL_IMAGETYPES}"
|
||||
@@ -1,21 +1,40 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: OMAP3 EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI OMAP3 EVM
|
||||
TARGET_ARCH = "arm"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-input-tslib \
|
||||
xf86-video-omapfb \
|
||||
xf86-input-keyboard"
|
||||
|
||||
GUI_MACHINE_CLASS = "smallscreen"
|
||||
|
||||
require conf/machine/include/omap3.inc
|
||||
|
||||
MACHINE_GUI_CLASS = "smallscreen"
|
||||
MACHINE_FEATURES += "touchscreen ethernet"
|
||||
# Ship all kernel modules
|
||||
|
||||
IMAGE_FSTYPES += "jffs2 tar.xz"
|
||||
IMAGE_FSTYPES += "jffs2 tar.bz2"
|
||||
EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS0"
|
||||
SERIAL_CONSOLE = "115200 ttyS0"
|
||||
USE_VT = "0"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "x-load"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_MACHINE = "omap3_evm_config"
|
||||
XLOAD_MACHINE = "omap3evm_config"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen"
|
||||
|
||||
# NOTE: there are NAND and OneNAND versions of this board...
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
@@ -30,3 +49,4 @@ MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996"
|
||||
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
|
||||
# UBI: sub-page size: 512
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
|
||||
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: OMAP5 EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI OMAP5 uEVM
|
||||
|
||||
require conf/machine/include/omap-a15.inc
|
||||
|
||||
IMAGE_FSTYPES += "ubi tar.xz"
|
||||
|
||||
KERNEL_DEVICETREE = "omap5-uevm.dtb"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2"
|
||||
|
||||
# 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 = "-F -m 2048 -e 126976 -c 4300"
|
||||
|
||||
# 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 2048 -p 128KiB -s 512 -O 2048"
|
||||
|
||||
UBOOT_MACHINE = "omap5_uevm_config"
|
||||
@@ -1,15 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: OMAP-L137 EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI OMAP-L137 EVM board
|
||||
|
||||
require conf/machine/include/davinci.inc
|
||||
require conf/machine/include/omapl137.inc
|
||||
|
||||
# HACK: The omapl137 family does not have linux kernel support.
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-dummy"
|
||||
EXTRA_IMAGEDEPENDS = ""
|
||||
|
||||
IMAGE_FSTYPES = "tar.xz"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_BOARDS = "evmOMAPL137"
|
||||
@@ -1,22 +0,0 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: OMAP-L138 LCDK
|
||||
#@DESCRIPTION: Machine configuration for the TI OMAP-L138 LCDK board
|
||||
|
||||
require conf/machine/include/davinci.inc
|
||||
require conf/machine/include/omapl138.inc
|
||||
|
||||
UBOOT_MACHINE = "omapl138_lcdk_config"
|
||||
UBOOT_SUFFIX = "ais"
|
||||
SPL_BINARY = ""
|
||||
|
||||
UBOOT_ENTRYPOINT = "0xc0008000"
|
||||
UBOOT_LOADADDRESS = "0xc0008000"
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2"
|
||||
|
||||
KERNEL_DEVICETREE = "da850-evm.dtb da850-lcdk.dtb"
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_BOARDS = "lcdkOMAPL138"
|
||||
@@ -4,13 +4,15 @@
|
||||
|
||||
require conf/machine/include/omap4.inc
|
||||
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
UBOOT_MACHINE = "omap4_panda_config"
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz"
|
||||
GUI_MACHINE_CLASS = "bigscreen"
|
||||
|
||||
KERNEL_DEVICETREE = "omap4-panda.dtb omap4-panda-a4.dtb omap4-panda-es.dtb"
|
||||
IMAGE_FSTYPES += "tar.bz2"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2"
|
||||
SERIAL_CONSOLE = "115200 ttyO2"
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
|
||||
MACHINE_FEATURES = "kernel26 wifi bluetooth alsa apm ext2 screen usbgadget usbhost vfat gpu"
|
||||
MACHINE_FEATURES = "kernel26 wifi bluetooth alsa apm ext2 screen touchscreen usbgadget usbhost vfat"
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
require k3r5.conf
|
||||
|
||||
MACHINE_append = "-sr2"
|
||||
@@ -1,5 +0,0 @@
|
||||
MAINMACHINE := "${MACHINE}"
|
||||
|
||||
DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}"
|
||||
|
||||
MACHINE_append = "-k3r5"
|
||||
17
extras/COPYING.MIT
Normal file
17
extras/COPYING.MIT
Normal file
@@ -0,0 +1,17 @@
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
17
extras/README
Normal file
17
extras/README
Normal file
@@ -0,0 +1,17 @@
|
||||
An "extras" (AKA best-effort) layer for meta-ti
|
||||
|
||||
This layer depends on:
|
||||
|
||||
URI: git://git.openembedded.org/openembedded-core
|
||||
layers: meta
|
||||
branch: master
|
||||
|
||||
URI: git://git.yoctoproject.org/meta-ti
|
||||
layers: meta
|
||||
branch: master
|
||||
|
||||
|
||||
Send pull requests, patches, comments or questions to meta-ti@yoctoproject.org
|
||||
|
||||
Maintainers: Denys Dmytriyenko <denys@ti.com>
|
||||
Koen Kooi <koen@dominion.thruhere.net>
|
||||
9
extras/conf/layer.conf
Normal file
9
extras/conf/layer.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
# We have a conf and classes directory, append to BBPATH
|
||||
BBPATH .= ":${LAYERDIR}"
|
||||
|
||||
# We have a recipes directory, add to BBFILES
|
||||
BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "meta-ti-extras"
|
||||
BBFILE_PATTERN_meta-ti := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_meta-ti = "10"
|
||||
51
extras/conf/machine/am3517-evm.conf
Normal file
51
extras/conf/machine/am3517-evm.conf
Normal file
@@ -0,0 +1,51 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM3517 EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI Sitara AM3517 EVM
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-input-tslib \
|
||||
xf86-video-omapfb \
|
||||
xf86-input-keyboard"
|
||||
|
||||
GUI_MACHINE_CLASS = "smallscreen"
|
||||
|
||||
require conf/machine/include/omap3.inc
|
||||
|
||||
# Ship all kernel modules
|
||||
|
||||
IMAGE_FSTYPES += "ubi tar.bz2"
|
||||
EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"
|
||||
|
||||
SERIAL_CONSOLE = "115200 ttyS2"
|
||||
USE_VT = "2"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_MACHINE = "am3517_evm_config"
|
||||
XLOAD_MACHINE = "am3517evm_config"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen ethernet"
|
||||
|
||||
# NOTE: there are NAND and OneNAND versions of this board...
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: logical eraseblock size: 129024 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 1996 LEBs
|
||||
MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
|
||||
# UBI: sub-page size: 512
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
|
||||
|
||||
5
extras/conf/machine/am387x-evm.conf
Normal file
5
extras/conf/machine/am387x-evm.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM389x evm
|
||||
#@DESCRIPTION: Machine configuration for the AM389x evm
|
||||
|
||||
require conf/machine/include/ti814x.inc
|
||||
5
extras/conf/machine/am389x-evm.conf
Normal file
5
extras/conf/machine/am389x-evm.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: am389x evm
|
||||
#@DESCRIPTION: Machine configuration for the am389x evm
|
||||
|
||||
require conf/machine/include/ti816x.inc
|
||||
5
extras/conf/machine/c6a814x-evm.conf
Normal file
5
extras/conf/machine/c6a814x-evm.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: c6a814x evm
|
||||
#@DESCRIPTION: Machine configuration for the c6a814x evm
|
||||
|
||||
require conf/machine/include/ti814x.inc
|
||||
5
extras/conf/machine/c6a816x-evm.conf
Normal file
5
extras/conf/machine/c6a816x-evm.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: c6a816x evm
|
||||
#@DESCRIPTION: Machine configuration for the c6a816x evm
|
||||
|
||||
require conf/machine/include/ti816x.inc
|
||||
5
extras/conf/machine/dm814x-evm.conf
Normal file
5
extras/conf/machine/dm814x-evm.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: DM814x evm
|
||||
#@DESCRIPTION: Machine configuration for the DM814x evm
|
||||
|
||||
require conf/machine/include/ti814x.inc
|
||||
29
extras/conf/machine/hawkboard.conf
Normal file
29
extras/conf/machine/hawkboard.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: OMAP-L138 based board
|
||||
#@DESCRIPTION: Machine configuration for the TI Hawkboard
|
||||
|
||||
require conf/machine/include/davinci.inc
|
||||
require conf/machine/include/omapl138.inc
|
||||
|
||||
UBOOT_MACHINE = "da850_omapl138_evm_config"
|
||||
UBOOT_ENTRYPOINT = "0xc0008000"
|
||||
UBOOT_LOADADDRESS = "0xc0008000"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 serial ethernet ide screen"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: logical eraseblock size: 126976 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 971 LEBs (123293696 bytes, 117.6 MiB), available 958 LEBs (121643008 bytes, 116.0 MiB), LEB size 126976 bytes (124.0 KiB)
|
||||
MKUBIFS_ARGS = "-m 2048 -e 126976 -c 948"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
|
||||
# UBI: sub-page size: 512
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
|
||||
|
||||
SERIAL_CONSOLE = "115200 ttyS2"
|
||||
24
extras/conf/machine/include/davinci.inc
Normal file
24
extras/conf/machine/include/davinci.inc
Normal file
@@ -0,0 +1,24 @@
|
||||
require conf/machine/include/tune-arm926ejs.inc
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r51"
|
||||
|
||||
|
||||
KERNEL_IMAGETYPE = "uImage"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-davinci"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
UBOOT_MACHINE = "davinci_dvevm_config"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
|
||||
SERIAL_CONSOLE ?= "115200 ttyS0"
|
||||
EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n"
|
||||
|
||||
#ROOT_FLASH_SIZE = "29"
|
||||
|
||||
MACHINE_FEATURES = "kernel26 serial ethernet usbhost usbgadget mmc alsa"
|
||||
26
extras/conf/machine/include/ti814x.inc
Normal file
26
extras/conf/machine/include/ti814x.inc
Normal file
@@ -0,0 +1,26 @@
|
||||
SOC_FAMILY = "ti814x"
|
||||
require conf/machine/include/soc-family.inc
|
||||
|
||||
require conf/machine/include/tune-cortexa8.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-ti81xx-psp"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r2"
|
||||
|
||||
KERNEL_IMAGETYPE = "uImage"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_MACHINE = "ti8148_evm_config_nand"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
# Only build u-boot
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
|
||||
# Ship all kernel modules
|
||||
IMAGE_FSTYPES += "jffs2 tar.bz2"
|
||||
EXTRA_IMAGECMD_jffs2 = "-lqn -e 128"
|
||||
SERIAL_CONSOLE = "115200 ttyO0"
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 ethernet"
|
||||
26
extras/conf/machine/include/ti816x.inc
Normal file
26
extras/conf/machine/include/ti816x.inc
Normal file
@@ -0,0 +1,26 @@
|
||||
SOC_FAMILY = "ti816x"
|
||||
require conf/machine/include/soc-family.inc
|
||||
|
||||
require conf/machine/include/tune-cortexa8.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-ti81xx-psp"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r2"
|
||||
|
||||
KERNEL_IMAGETYPE = "uImage"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
UBOOT_MACHINE = "ti8168_evm_config"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
# Only build u-boot
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
|
||||
# Ship all kernel modules
|
||||
IMAGE_FSTYPES += "jffs2 tar.bz2"
|
||||
EXTRA_IMAGECMD_jffs2 = "-lqn -e 128"
|
||||
SERIAL_CONSOLE = "115200 ttyO2"
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 ethernet"
|
||||
49
extras/conf/machine/omap3-touchbook.conf
Normal file
49
extras/conf/machine/omap3-touchbook.conf
Normal file
@@ -0,0 +1,49 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Always Innovating touchbook
|
||||
#@DESCRIPTION: Machine configuration for the http://www.alwaysinnovating.com/touchbook/
|
||||
TARGET_ARCH = "arm"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||
XSERVER = "xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-input-tslib \
|
||||
xf86-video-fbdev \
|
||||
xf86-video-omapfb \
|
||||
xf86-input-keyboard"
|
||||
|
||||
# Only has DVI connector for external screen
|
||||
GUI_MACHINE_CLASS = "bigscreen"
|
||||
|
||||
require conf/machine/include/omap3.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp"
|
||||
|
||||
IMAGE_FSTYPES += "tar.bz2"
|
||||
EXTRA_IMAGECMD_jffs2 = "-lnp "
|
||||
|
||||
# Guesswork
|
||||
SERIAL_CONSOLE = "115200 ttyS2"
|
||||
|
||||
UBOOT_MACHINE = "omap3_beagle_config"
|
||||
XLOAD_MACHINE = "beagleboard_config"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# From dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: logical eraseblock size: 129024 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 1996 LEBs
|
||||
MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 4
|
||||
# from dmesg:
|
||||
# UBI: smallest flash I/O unit: 2048
|
||||
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
|
||||
# UBI: sub-page size: 512
|
||||
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
|
||||
|
||||
|
||||
|
||||
# and sdio
|
||||
MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa touchscreen"
|
||||
@@ -0,0 +1,51 @@
|
||||
From 1415ec63689ef39bcb24b5095941ec4cc884035c Mon Sep 17 00:00:00 2001
|
||||
From: Mikael Pettersson <mikpe@it.uu.se>
|
||||
Date: Sun, 15 Aug 2010 10:47:23 +0100
|
||||
Subject: [PATCH 1/2] ARM: 6329/1: wire up sys_accept4() on ARM
|
||||
|
||||
sys_accept4() was added in kernel 2.6.28, but ARM was not updated
|
||||
to include it. The number and types of parameters is such that
|
||||
no ARM-specific processing is needed, so wiring up sys_accept4()
|
||||
just requires defining __NR_accept4 and adding a direct call in
|
||||
the syscall entry table.
|
||||
|
||||
Tested with an EABI 2.6.35 kernel and Ulrich Drepper's original
|
||||
accept4() test program, modified to define __NR_accept4 for ARM.
|
||||
|
||||
Using the updated unistd.h also eliminates a warning then building
|
||||
glibc (2.10.2 and newer) about accept4() being unimplemented.
|
||||
|
||||
Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
|
||||
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
|
||||
---
|
||||
arch/arm/include/asm/unistd.h | 1 +
|
||||
arch/arm/kernel/calls.S | 1 +
|
||||
2 files changed, 2 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h
|
||||
index dd2bf53..d02cfb6 100644
|
||||
--- a/arch/arm/include/asm/unistd.h
|
||||
+++ b/arch/arm/include/asm/unistd.h
|
||||
@@ -392,6 +392,7 @@
|
||||
#define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363)
|
||||
#define __NR_perf_event_open (__NR_SYSCALL_BASE+364)
|
||||
#define __NR_recvmmsg (__NR_SYSCALL_BASE+365)
|
||||
+#define __NR_accept4 (__NR_SYSCALL_BASE+366)
|
||||
|
||||
/*
|
||||
* The following SWIs are ARM private.
|
||||
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S
|
||||
index 37ae301..afeb71f 100644
|
||||
--- a/arch/arm/kernel/calls.S
|
||||
+++ b/arch/arm/kernel/calls.S
|
||||
@@ -375,6 +375,7 @@
|
||||
CALL(sys_rt_tgsigqueueinfo)
|
||||
CALL(sys_perf_event_open)
|
||||
/* 365 */ CALL(sys_recvmmsg)
|
||||
+ CALL(sys_accept4)
|
||||
#ifndef syscalls_counted
|
||||
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
|
||||
#define syscalls_counted
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From b0a773f958b03ba77317f8b762d90d3c00269292 Mon Sep 17 00:00:00 2001
|
||||
From: Roger Monk <r-monk@ti.com>
|
||||
Date: Wed, 25 Aug 2010 16:45:46 +0100
|
||||
Subject: [PATCH] ahci-ti: Fix (currently harmless) typo in SATA PHY configuration
|
||||
|
||||
Signed-off-by: Roger Monk <r-monk@ti.com>
|
||||
---
|
||||
drivers/ata/ahci-ti.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/drivers/ata/ahci-ti.c b/drivers/ata/ahci-ti.c
|
||||
index 9e36c9d..674b216 100644
|
||||
--- a/drivers/ata/ahci-ti.c
|
||||
+++ b/drivers/ata/ahci-ti.c
|
||||
@@ -80,7 +80,7 @@ void ata_plat_init (void __iomem *base)
|
||||
phy_val = PHY_MPY << 0 | PHY_LB << 4 | PHY_LOS << 6 |
|
||||
PHY_RXINVPAIR << 7 | PHY_RXTERM << 8 |
|
||||
PHY_RXCDR << 10 | PHY_RXEQ << 13 |
|
||||
- PHY_RXINVPAIR << 17 | PHY_TXCM << 18 |
|
||||
+ PHY_TXINVPAIR << 17 | PHY_TXCM << 18 |
|
||||
PHY_TXSWING << 19 | PHY_TXDE << 22 |
|
||||
PHY_OVERRIDE << 30 | PHY_ENPLL << 31;
|
||||
|
||||
--
|
||||
1.6.0.4
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
From 787c524fc478068d18eef72f43074b47722e50b0 Mon Sep 17 00:00:00 2001
|
||||
From: Greg KH <gregkh@suse.de>
|
||||
Date: Thu, 5 Aug 2010 13:53:35 -0700
|
||||
Subject: [PATCH] cgroupfs: create /sys/fs/cgroup to mount cgroupfs on
|
||||
|
||||
We really shouldn't be asking userspace to create new root filesystems.
|
||||
So follow along with all of the other in-kernel filesystems, and provide
|
||||
a mount point in sysfs.
|
||||
|
||||
For cgroupfs, this should be in /sys/fs/cgroup/ This change provides
|
||||
that mount point when the cgroup filesystem is registered in the kernel.
|
||||
|
||||
Acked-by: Paul Menage <menage@google.com>
|
||||
Acked-by: Dhaval Giani <dhaval.giani@gmail.com>
|
||||
Cc: Li Zefan <lizf@cn.fujitsu.com>
|
||||
Cc: Lennart Poettering <lennart@poettering.net>
|
||||
Cc: Kay Sievers <kay.sievers@vrfy.org>
|
||||
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
||||
---
|
||||
kernel/cgroup.c | 13 ++++++++++++-
|
||||
1 files changed, 12 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
|
||||
index 0249f4b..db21dd8 100644
|
||||
--- a/kernel/cgroup.c
|
||||
+++ b/kernel/cgroup.c
|
||||
@@ -1472,6 +1472,8 @@ static struct file_system_type cgroup_fs_type = {
|
||||
.kill_sb = cgroup_kill_sb,
|
||||
};
|
||||
|
||||
+static struct kobject *cgroup_kobj;
|
||||
+
|
||||
static inline struct cgroup *__d_cgrp(struct dentry *dentry)
|
||||
{
|
||||
return dentry->d_fsdata;
|
||||
@@ -3283,9 +3285,18 @@ int __init cgroup_init(void)
|
||||
hhead = css_set_hash(init_css_set.subsys);
|
||||
hlist_add_head(&init_css_set.hlist, hhead);
|
||||
BUG_ON(!init_root_id(&rootnode));
|
||||
+
|
||||
+ cgroup_kobj = kobject_create_and_add("cgroup", fs_kobj);
|
||||
+ if (!cgroup_kobj) {
|
||||
+ err = -ENOMEM;
|
||||
+ goto out;
|
||||
+ }
|
||||
+
|
||||
err = register_filesystem(&cgroup_fs_type);
|
||||
- if (err < 0)
|
||||
+ if (err < 0) {
|
||||
+ kobject_put(cgroup_kobj);
|
||||
goto out;
|
||||
+ }
|
||||
|
||||
proc_create("cgroups", 0, NULL, &proc_cgroupstats_operations);
|
||||
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
From 37a7868b15be9415abd3f57477afc8be956666e6 Mon Sep 17 00:00:00 2001
|
||||
From: Roger Monk <r-monk@ti.com>
|
||||
Date: Wed, 25 Aug 2010 16:46:28 +0100
|
||||
Subject: [PATCH] ahci-ti: Update SATA PHY configuration - RXCDR --> 4
|
||||
|
||||
* Update SATA PHY configuration for Receiver Clock/Data Recovery
|
||||
* Set to 0x4 = 2nd order, low precision
|
||||
|
||||
Signed-off-by: Roger Monk <r-monk@ti.com>
|
||||
---
|
||||
drivers/ata/ahci-ti.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/drivers/ata/ahci-ti.c b/drivers/ata/ahci-ti.c
|
||||
index 674b216..853d251 100644
|
||||
--- a/drivers/ata/ahci-ti.c
|
||||
+++ b/drivers/ata/ahci-ti.c
|
||||
@@ -55,7 +55,7 @@ void ata_plat_remove(struct ata_host *host);
|
||||
#define PHY_LOS 1 /* bit6 1 */
|
||||
#define PHY_RXINVPAIR 0 /* bit7 1 */
|
||||
#define PHY_RXTERM 0 /* bits9:8 2 */
|
||||
-#define PHY_RXCDR 0 /* bits12:10 3 */
|
||||
+#define PHY_RXCDR 4 /* bits12:10 3 */
|
||||
#define PHY_RXEQ 1 /* bits16:13 4 */
|
||||
#define PHY_TXINVPAIR 0 /* bit17 1 */
|
||||
#define PHY_TXCM 0 /* bit18 1 */
|
||||
--
|
||||
1.6.0.4
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From 69600e5a42512204bc4eb83a3a459496b049107f Mon Sep 17 00:00:00 2001
|
||||
From: Roger Monk <r-monk@ti.com>
|
||||
Date: Wed, 25 Aug 2010 17:47:16 +0100
|
||||
Subject: [PATCH] board-da850-hawk: Disable NAND SUBPAGE
|
||||
|
||||
* This was causing issues with UBI
|
||||
* Solution/Workaround identified by Caglar Akyuz - now applied locally to board file
|
||||
---
|
||||
arch/arm/mach-davinci/board-da850-hawk.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/mach-davinci/board-da850-hawk.c b/arch/arm/mach-davinci/board-da850-hawk.c
|
||||
index 87ed017..bbfe32a 100644
|
||||
--- a/arch/arm/mach-davinci/board-da850-hawk.c
|
||||
+++ b/arch/arm/mach-davinci/board-da850-hawk.c
|
||||
@@ -118,7 +118,7 @@ static struct davinci_nand_pdata da850_hawk_nandflash_data = {
|
||||
.nr_parts = ARRAY_SIZE(da850_hawk_nandflash_partition),
|
||||
.ecc_mode = NAND_ECC_HW,
|
||||
.ecc_bits = 4,
|
||||
- .options = NAND_USE_FLASH_BBT,
|
||||
+ .options = NAND_USE_FLASH_BBT | NAND_NO_SUBPAGE_WRITE,
|
||||
.timing = &da850_hawk_nandflash_timing,
|
||||
};
|
||||
|
||||
--
|
||||
1.6.0.4
|
||||
|
||||
2630
extras/recipes-kernel/linux/linux-davinci/hawkboard/configs/stock
Normal file
2630
extras/recipes-kernel/linux/linux-davinci/hawkboard/configs/stock
Normal file
File diff suppressed because it is too large
Load Diff
2659
extras/recipes-kernel/linux/linux-davinci/hawkboard/defconfig
Normal file
2659
extras/recipes-kernel/linux/linux-davinci/hawkboard/defconfig
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
||||
From 2ee9f2c655710d9e60a5a9b49871edc316e5363d Mon Sep 17 00:00:00 2001
|
||||
From: Roger Monk <r-monk@ti.com>
|
||||
Date: Wed, 25 Aug 2010 17:29:14 +0100
|
||||
Subject: [PATCH] board-da850-evm: Disable NAND SUBPAGE
|
||||
|
||||
* This was causing issues with UBI
|
||||
* Solution/Workaround identified by Caglar Akyuz - now applied locally to board file
|
||||
|
||||
Signed-off-by: Roger Monk <r-monk@ti.com>
|
||||
---
|
||||
arch/arm/mach-davinci/board-da850-evm.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c
|
||||
index cfed439..502b914 100755
|
||||
--- a/arch/arm/mach-davinci/board-da850-evm.c
|
||||
+++ b/arch/arm/mach-davinci/board-da850-evm.c
|
||||
@@ -187,7 +187,7 @@ static struct davinci_nand_pdata da850_evm_nandflash_data = {
|
||||
.nr_parts = ARRAY_SIZE(da850_evm_nandflash_partition),
|
||||
.ecc_mode = NAND_ECC_HW,
|
||||
.ecc_bits = 4,
|
||||
- .options = NAND_USE_FLASH_BBT,
|
||||
+ .options = NAND_USE_FLASH_BBT | NAND_NO_SUBPAGE_WRITE,
|
||||
.timing = &da850_evm_nandflash_timing,
|
||||
};
|
||||
|
||||
--
|
||||
1.6.0.4
|
||||
|
||||
@@ -0,0 +1,334 @@
|
||||
From: Melissa Watkins <m-watkins@ti.com>
|
||||
Date: Wed, 24 Nov 2010 02:59:34 -0600
|
||||
Subject: [PATCH 1/3] uio_pruss1: Core driver addition
|
||||
|
||||
This patch adds the uio_pru driver and updates the uio Makefile
|
||||
and Kconfig files to support this driver. The uio_pru driver provides
|
||||
a framework for handling the PRU in the user space and is responsible
|
||||
for the device setup and the primary interrupt handling.
|
||||
|
||||
Signed-off-by: Amit Chatterjee <amit.chatterjee@ti.com>
|
||||
Signed-off-by: Melissa Watkins <m-watkins@ti.com>
|
||||
---
|
||||
drivers/uio/Kconfig | 10 ++
|
||||
drivers/uio/Makefile | 1 +
|
||||
drivers/uio/uio_pru.c | 279 +++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 290 insertions(+), 0 deletions(-)
|
||||
create mode 100644 drivers/uio/uio_pru.c
|
||||
|
||||
diff --git a/drivers/uio/Kconfig b/drivers/uio/Kconfig
|
||||
index 8aa1955..8ae8280 100644
|
||||
--- a/drivers/uio/Kconfig
|
||||
+++ b/drivers/uio/Kconfig
|
||||
@@ -94,4 +94,14 @@ config UIO_PCI_GENERIC
|
||||
primarily, for virtualization scenarios.
|
||||
If you compile this as a module, it will be called uio_pci_generic.
|
||||
|
||||
+config UIO_PRUSS
|
||||
+ tristate "Texas Instruments PRUSS driver"
|
||||
+ depends on ARCH_DAVINCI_DA850
|
||||
+ default n
|
||||
+ help
|
||||
+ PRUSS driver for OMAPL13X/DA8XX/AM17XX/AM18XX devices
|
||||
+ PRUSS driver requires user space components
|
||||
+ To compile this driver as a module, choose M here: the module
|
||||
+ will be called uio_pruss.
|
||||
+
|
||||
endif
|
||||
diff --git a/drivers/uio/Makefile b/drivers/uio/Makefile
|
||||
index 73b2e75..e6d8adb 100644
|
||||
--- a/drivers/uio/Makefile
|
||||
+++ b/drivers/uio/Makefile
|
||||
@@ -6,3 +6,4 @@ obj-$(CONFIG_UIO_SMX) += uio_smx.o
|
||||
obj-$(CONFIG_UIO_AEC) += uio_aec.o
|
||||
obj-$(CONFIG_UIO_SERCOS3) += uio_sercos3.o
|
||||
obj-$(CONFIG_UIO_PCI_GENERIC) += uio_pci_generic.o
|
||||
+obj-$(CONFIG_UIO_PRUSS) += uio_pru.o
|
||||
diff --git a/drivers/uio/uio_pru.c b/drivers/uio/uio_pru.c
|
||||
new file mode 100644
|
||||
index 0000000..82dc35e
|
||||
--- /dev/null
|
||||
+++ b/drivers/uio/uio_pru.c
|
||||
@@ -0,0 +1,279 @@
|
||||
+/*
|
||||
+ * UIO TI Programmable Real-Time Unit (PRU) driver.
|
||||
+ *
|
||||
+ * (C) 2010 Amit Chatterjee <amit.chatterjee@ti.com>
|
||||
+ *
|
||||
+ * Copyright (C) {YEAR} Texas Instruments Incorporated - http://www.ti.com/
|
||||
+ *
|
||||
+ * This program is free software; you can redistribute it and/or
|
||||
+ * modify it under the terms of the GNU General Public License as
|
||||
+ * published by the Free Software Foundation version 2.
|
||||
+ *
|
||||
+ * This program is distributed .as is. WITHOUT ANY WARRANTY of any
|
||||
+ * kind, whether express or implied; without even the implied warranty
|
||||
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+ * GNU General Public License for more details.
|
||||
+ */
|
||||
+
|
||||
+#include <linux/device.h>
|
||||
+#include <linux/module.h>
|
||||
+#include <linux/platform_device.h>
|
||||
+#include <linux/uio_driver.h>
|
||||
+#include <linux/io.h>
|
||||
+#include <linux/clk.h>
|
||||
+#include <linux/dma-mapping.h>
|
||||
+
|
||||
+#define DRV_NAME "pruss"
|
||||
+#define DRV_VERSION "0.01"
|
||||
+
|
||||
+/*
|
||||
+0x01C30000 - 0x01C301FF Data RAM 0
|
||||
+0x01C30200 - 0x01C31FFF Reserved
|
||||
+0x01C32000 - 0x01C321FF Data RAM 1
|
||||
+0x01C32200 - 0x01C33FFF Reserved
|
||||
+0x01C34000 - 0x01C36FFF INTC Registers
|
||||
+0x01C37000 - 0x01C373FF PRU0 Control Registers
|
||||
+0x01C37400 - 0x01C377FF PRU0 Debug Registers
|
||||
+0x01C37800 - 0x01C37BFF PRU1 Control Registers
|
||||
+0x01C37C00 - 0x01C37FFF PRU1 Debug Registers
|
||||
+0x01C38000 - 0x01C38FFF PRU0 Instruction RAM
|
||||
+0x01C39000 - 0x01C3BFFF Reserved
|
||||
+0x01C3C000 - 0x01C3CFFF PRU1 Instruction RAM
|
||||
+0x01C3D000 - 0x01C3FFFF Reserved
|
||||
+*/
|
||||
+/*
|
||||
+ * 3 PRU_EVTOUT0 PRUSS Interrupt
|
||||
+ * 4 PRU_EVTOUT1 PRUSS Interrupt
|
||||
+ * 5 PRU_EVTOUT2 PRUSS Interrupt
|
||||
+ * 6 PRU_EVTOUT3 PRUSS Interrupt
|
||||
+ * 7 PRU_EVTOUT4 PRUSS Interrupt
|
||||
+ * 8 PRU_EVTOUT5 PRUSS Interrupt
|
||||
+ * 9 PRU_EVTOUT6 PRUSS Interrupt
|
||||
+ * 10 PRU_EVTOUT7 PRUSS Interrupt
|
||||
+*/
|
||||
+
|
||||
+#define PRUSS_INSTANCE (8)
|
||||
+
|
||||
+static struct clk *pruss_clk = NULL, *ecap0_clk = NULL;
|
||||
+static struct uio_info *info[PRUSS_INSTANCE];
|
||||
+static void *ddr_virt_addr;
|
||||
+static dma_addr_t ddr_phy_addr;
|
||||
+
|
||||
+
|
||||
+
|
||||
+static irqreturn_t pruss_handler(int irq, struct uio_info *dev_info)
|
||||
+{
|
||||
+ return IRQ_HANDLED;
|
||||
+}
|
||||
+
|
||||
+static int __devinit pruss_probe(struct platform_device *dev)
|
||||
+{
|
||||
+ int ret = -ENODEV;
|
||||
+ int count = 0;
|
||||
+ struct resource *regs_pruram, *regs_l3ram, *regs_ddr;
|
||||
+ char *string;
|
||||
+
|
||||
+ /* Power on PRU in case its not done as part of boot-loader */
|
||||
+ pruss_clk = clk_get(&dev->dev, "pruss");
|
||||
+ if (IS_ERR(pruss_clk)) {
|
||||
+ dev_err(&dev->dev, "no pruss clock available\n");
|
||||
+ ret = PTR_ERR(pruss_clk);
|
||||
+ pruss_clk = NULL;
|
||||
+ return ret;
|
||||
+ } else {
|
||||
+ clk_enable (pruss_clk);
|
||||
+ }
|
||||
+
|
||||
+ ecap0_clk = clk_get(&dev->dev, "ecap0");
|
||||
+ if (IS_ERR(ecap0_clk)) {
|
||||
+ dev_err(&dev->dev, "no ecap0 clock available\n");
|
||||
+ ret = PTR_ERR(ecap0_clk);
|
||||
+ ecap0_clk = NULL;
|
||||
+ return ret;
|
||||
+ } else {
|
||||
+ clk_enable(ecap0_clk);
|
||||
+ }
|
||||
+
|
||||
+
|
||||
+
|
||||
+ for (count = 0; count < PRUSS_INSTANCE; count++) {
|
||||
+ info[count] = (struct uio_info *)kzalloc(sizeof(struct uio_info), GFP_KERNEL);
|
||||
+ if (!info[count])
|
||||
+ return -ENOMEM;
|
||||
+
|
||||
+ }
|
||||
+
|
||||
+ regs_pruram = platform_get_resource(dev, IORESOURCE_MEM, 0);
|
||||
+ if (!regs_pruram) {
|
||||
+ dev_err(&dev->dev, "No memory resource specified\n");
|
||||
+ goto out_free;
|
||||
+ }
|
||||
+
|
||||
+ regs_l3ram = platform_get_resource(dev, IORESOURCE_MEM, 1);
|
||||
+ if (!regs_l3ram) {
|
||||
+ dev_err(&dev->dev, "No memory resource specified\n");
|
||||
+ goto out_free;
|
||||
+ }
|
||||
+
|
||||
+ regs_ddr = platform_get_resource(dev, IORESOURCE_MEM, 2);
|
||||
+ if (!regs_ddr) {
|
||||
+ dev_err(&dev->dev, "No memory resource specified\n");
|
||||
+ goto out_free;
|
||||
+ }
|
||||
+ ddr_virt_addr = dma_alloc_coherent(&dev->dev, regs_ddr->end-regs_ddr->start+1, &ddr_phy_addr, GFP_KERNEL|GFP_DMA);
|
||||
+
|
||||
+
|
||||
+ for (count = 0; count < PRUSS_INSTANCE; count++) {
|
||||
+ info[count]->mem[0].addr = regs_pruram->start;
|
||||
+ if (!info[count]->mem[0].addr) {
|
||||
+ dev_err(&dev->dev, "Invalid memory resource\n");
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ info[count]->mem[0].size = regs_pruram->end - regs_pruram->start + 1;
|
||||
+ info[count]->mem[0].internal_addr = ioremap(regs_pruram->start, info[count]->mem[0].size);
|
||||
+
|
||||
+ if (!info[count]->mem[0].internal_addr) {
|
||||
+ dev_err(&dev->dev, "Can't remap memory address range\n");
|
||||
+ break;
|
||||
+ }
|
||||
+ info[count]->mem[0].memtype = UIO_MEM_PHYS;
|
||||
+
|
||||
+
|
||||
+ info[count]->mem[1].addr = regs_l3ram->start;
|
||||
+ if (!info[count]->mem[1].addr) {
|
||||
+ dev_err(&dev->dev, "Invalid memory resource\n");
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ info[count]->mem[1].size = regs_l3ram->end - regs_l3ram->start + 1;
|
||||
+ info[count]->mem[1].internal_addr = ioremap(regs_l3ram->start, info[count]->mem[1].size);
|
||||
+
|
||||
+ if (!info[count]->mem[1].internal_addr) {
|
||||
+ dev_err(&dev->dev, "Can't remap memory address range\n");
|
||||
+ break;
|
||||
+ }
|
||||
+ info[count]->mem[1].memtype = UIO_MEM_PHYS;
|
||||
+
|
||||
+
|
||||
+ info[count]->mem[2].size = regs_ddr->end - regs_ddr->start + 1;
|
||||
+ if (!(info[count]->mem[2].size-1)) {
|
||||
+ dev_err(&dev->dev, "Invalid memory resource\n");
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+
|
||||
+ info[count]->mem[2].internal_addr = ddr_virt_addr;
|
||||
+
|
||||
+ if (!info[count]->mem[2].internal_addr) {
|
||||
+ dev_err(&dev->dev, "Can't remap memory address range\n");
|
||||
+ break;
|
||||
+ }
|
||||
+ info[count]->mem[2].addr = ddr_phy_addr;
|
||||
+ info[count]->mem[2].memtype = UIO_MEM_PHYS;
|
||||
+
|
||||
+
|
||||
+ string = kzalloc(20, GFP_KERNEL);
|
||||
+ sprintf(string, "pruss_evt%d", count);
|
||||
+ info[count]->name = string;
|
||||
+ info[count]->version = "0.01";
|
||||
+
|
||||
+ /* Register PRUSS IRQ lines */
|
||||
+ info[count]->irq = IRQ_DA8XX_EVTOUT0+count;
|
||||
+
|
||||
+ info[count]->irq_flags = IRQF_SHARED;
|
||||
+ info[count]->handler = pruss_handler;
|
||||
+
|
||||
+ ret = uio_register_device(&dev->dev, info[count]);
|
||||
+
|
||||
+ if (ret < 0)
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ platform_set_drvdata(dev, info);
|
||||
+
|
||||
+ if (ret < 0) {
|
||||
+ if (ddr_virt_addr)
|
||||
+ dma_free_coherent(&dev->dev, regs_ddr->end - regs_ddr->start + 1, ddr_virt_addr, ddr_phy_addr);
|
||||
+ while (count--) {
|
||||
+ uio_unregister_device(info[count]);
|
||||
+ if (info[count]->name)
|
||||
+ kfree(info[count]->name);
|
||||
+ iounmap(info[count]->mem[0].internal_addr);
|
||||
+ }
|
||||
+ } else {
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+out_free:
|
||||
+ for (count = 0; count < PRUSS_INSTANCE; count++) {
|
||||
+ if (info[count])
|
||||
+ kfree(info[count]);
|
||||
+ }
|
||||
+
|
||||
+ if (pruss_clk != NULL)
|
||||
+ clk_put(pruss_clk);
|
||||
+ if (ecap0_clk != NULL)
|
||||
+ clk_put(ecap0_clk);
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
+static int __devexit pruss_remove(struct platform_device *dev)
|
||||
+{
|
||||
+ int count = 0;
|
||||
+ struct uio_info **info;
|
||||
+
|
||||
+ info = (struct uio_info **)platform_get_drvdata(dev);
|
||||
+
|
||||
+ for (count = 0; count < PRUSS_INSTANCE; count++) {
|
||||
+ uio_unregister_device(info[count]);
|
||||
+ if (info[count]->name)
|
||||
+ kfree(info[count]->name);
|
||||
+
|
||||
+ }
|
||||
+ iounmap(info[0]->mem[0].internal_addr);
|
||||
+ iounmap(info[0]->mem[1].internal_addr);
|
||||
+ if (ddr_virt_addr)
|
||||
+ dma_free_coherent(&dev->dev, info[0]->mem[2].size, info[0]->mem[2].internal_addr, info[0]->mem[2].addr);
|
||||
+
|
||||
+ for (count = 0; count < PRUSS_INSTANCE; count++) {
|
||||
+ if (info[count])
|
||||
+ kfree(info[count]);
|
||||
+ }
|
||||
+
|
||||
+ platform_set_drvdata(dev, NULL);
|
||||
+
|
||||
+ if (pruss_clk != NULL)
|
||||
+ clk_put(pruss_clk);
|
||||
+ if (ecap0_clk != NULL)
|
||||
+ clk_put(ecap0_clk);
|
||||
+
|
||||
+
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static struct platform_driver pruss_driver = {
|
||||
+ .probe = pruss_probe,
|
||||
+ .remove = __devexit_p(pruss_remove),
|
||||
+ .driver = {
|
||||
+ .name = DRV_NAME,
|
||||
+ .owner = THIS_MODULE,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static int __init pruss_init_module(void)
|
||||
+{
|
||||
+ return platform_driver_register(&pruss_driver);
|
||||
+}
|
||||
+module_init(pruss_init_module);
|
||||
+
|
||||
+static void __exit pruss_exit_module(void)
|
||||
+{
|
||||
+ platform_driver_unregister(&pruss_driver);
|
||||
+}
|
||||
+module_exit(pruss_exit_module);
|
||||
+
|
||||
+MODULE_LICENSE("GPL v2");
|
||||
+MODULE_VERSION(DRV_VERSION);
|
||||
+MODULE_AUTHOR("Amit Chatterjee <amit.chatterjee@ti.com>");
|
||||
--
|
||||
1.7.0.4
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user