Commit c1de0e48 authored by papauxg's avatar papauxg
Browse files

initial commit

parents
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.
This README file contains information on the contents of the
omap5-kvm layer.
Please see the corresponding sections below for details.
Dependencies
============
This layer depends on:
URI: git://git.openembedded.org/bitbake
branch: master
URI: git://git.openembedded.org/openembedded-core
layers: meta
branch: master
URI: git://git.yoctoproject.org/xxxx
layers: xxxx
branch: master
Patches
=======
Please submit any patches against the omap5-kvm layer to the
xxxx mailing list (xxxx@zzzz.org) and cc: the maintainer:
Maintainer: XXX YYYYYY <xxx.yyyyyy@zzzzz.com>
Table of Contents
=================
I. Adding the omap5-kvm layer to your build
II. Misc
I. Adding the omap5-kvm layer to your build
=================================================
--- replace with specific instructions for the omap5-kvm layer ---
In order to use this layer, you need to make the build system aware of
it.
Assuming the omap5-kvm layer exists at the top-level of your
yocto build tree, you can add it to the build system by adding the
location of the omap5-kvm layer to bblayers.conf, along with any
other layers needed. e.g.:
BBLAYERS ?= " \
/path/to/yocto/meta \
/path/to/yocto/meta-yocto \
/path/to/yocto/meta-yocto-bsp \
/path/to/yocto/meta-omap5-kvm \
"
II. Misc
========
--- replace with specific information about the omap5-kvm layer ---
# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"
# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "omap5-kvm"
BBFILE_PATTERN_omap5-kvm = "^${LAYERDIR}/"
BBFILE_PRIORITY_omap5-kvm = "6"
SOC_FAMILY = "omap-a15"
require conf/machine/include/soc-family.inc
require conf/machine/include/tune-cortexa15.inc
# Increase this everytime you change something in the kernel
MACHINE_KERNEL_PR = "r1"
PREFERRED_PROVIDER_virtual/kernel = "linux-omap5-kvm"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-omap5-kvm"
PREFERRED_PROVIDER_u-boot = "u-boot-omap5-kvm"
KERNEL_IMAGETYPE = "uImage"
UBOOT_ARCH = "arm"
UBOOT_ENTRYPOINT = "0x80008000"
UBOOT_LOADADDRESS = "0x80008000"
EXTRA_IMAGEDEPENDS += "virtual/bootloader"
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
XSERVER = "xserver-xorg \
xf86-input-evdev \
xf86-video-fbdev"
GUI_MACHINE_CLASS = "smallscreen"
#@TYPE: Machine
#@NAME: OMAP5 EVM KVM
#@DESCRIPTION: Machine configuration for the TI OMAP5 uEVM used as KVM Hypervisor
require conf/machine/include/omap-a15-kvm.inc
IMAGE_FSTYPES += "ubi tar.gz"
SERIAL_CONSOLE = "115200 ttyO2"
# 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 3836"
# 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"
# Currently removing the sgx machine feature because there is no SGX package
# available for omap5
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen"
require ${COREBASE}/meta-ti-glsdk/recipes-bsp/u-boot/u-boot-ti.inc
DESCRIPTION = "Custom u-boot bootloader for omap5 with kvm support"
PR = "r5+gitr${SRCPV}"
SRC_URI = "git://forge.tic.eia-fr.ch/git/geoffrey.papaux/u-boot-omap5.git;protocol=https;branch=${BRANCH}"
BRANCH ?= "papaux/v2013.07-omap5-usbnet-hyp"
# This commit corresponds to ti2013.04.00 release tag
SRCREV = "8bf2f9750ffb860540dd11d3f2cf6cc07b52654d"
SPL_BINARY = "MLO"
SPL_UART_BINARY = "u-boot-spl.bin"
This diff is collapsed.
SECTION = "kernel"
DESCRIPTION = "Custom Linux kernel for omap5 device and kvm"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
KERNEL_IMAGETYPE = "uImage"
inherit kernel
require recipes-kernel/linux/linux-dtb.inc
require recipes-kernel/linux/setup-defconfig.inc
KERNEL_DEVICETREE_omap5-evm = "arch/arm/boot/dts/omap5-uevm.dts"
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
COMPATIBLE_MACHINE = "omap-a15"
S = "${WORKDIR}/git"
BRANCH = "papaux/3.12-omap5-kvm"
# This commit corresponds to ti2013.04.02 release tag
SRCREV = "4adcfa4b809bc8efa04884aa2518b2e7c9900e67"
PV = "3.12"
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
MACHINE_KERNEL_PR_append = "f+gitr${SRCPV}"
SRC_URI = "git://forge.tic.eia-fr.ch/git/geoffrey.papaux/linux-omap5.git;protocol=https;branch=${BRANCH} \
file://defconfig \
"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment