Permalink
Browse files

OPENPANDORA: Refactor overlay to better suit upstream examples.

  • Loading branch information...
1 parent b7937a4 commit 934fc41016e6024750de6369996bad73d2f9da91 @djwillis djwillis committed May 26, 2011
Showing 314 changed files with 348 additions and 56 deletions.
View
@@ -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.
View
23 README
@@ -0,0 +1,23 @@
+This is the general machine/platform specific 'stuff' overlay for the OpenPandora device.
+It should be used with openembedded-core (not old-style org.openembedded.dev).
+
+http://www.openpandora.org/
+
+This layer depends on:
+
+URI: git://git.openembedded.org/openembedded-core
+branch: master
+revision: HEAD
+
+URI: git://git.openembedded.org/meta-openembedded
+branch: master
+revision: HEAD
+
+URI: git://git.angstrom-distribution.org/meta-angstrom
+branch: master
+revision: HEAD
+
+Send pull requests to firmware-dev-bounces@openpandora.org
+
+Layer maintainers: John Willis <John.Willis at distant-earth.com>
+ Michael Mrozek <EvilDragon at openpandora.org>
View
@@ -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 += "openpandora-layer"
+BBFILE_PATTERN_openpandora-layer := "^${LAYERDIR}/"
+BBFILE_PRIORITY_openpandora-layer = "7"
@@ -0,0 +1,33 @@
+#@TYPE: Machine configuration
+#@NAME: ixp4xx
+#@DESCRIPTION: genric machine configuration for ixp4xx platforms
+
+# Set default for common ixp4xx-based machines
+MACHINE_FEATURES ?= "kernel26 usbhost pci ext2 vfat redboot apex"
+
+# Select an appropriate default kernel
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-ixp4xx"
+PREFERRED_VERSION_linux-ixp4xx ?= "2.6.37%"
+
+# Add packages required for basic networking support
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "ixp4xx-npe"
+
+# Set default for 16MB machines - can be overridden for more or less flash.
+ROOT_FLASH_SIZE ?= "12"
+
+# Allow for rootfs loaded direct from internal hard disk
+IMAGE_FSTYPES ?= "jffs2 tar.gz"
+
+# Set default for common ixp4xx-based machines
+EXTRA_IMAGECMD_jffs2 = "--pad --eraseblock=0x20000 -n"
+
+require conf/machine/include/tune-xscale.inc
+
+#-------------------------------------------------------------------------------
+# Board defaults
+#-------------------------------------------------------------------------------
+# These values are board specific but they seem to be common to a large number
+# of boards so are reasonable defaults.
+SERIAL_CONSOLE = "115200 ttyS0"
+KERNEL_CONSOLE = "ttyS0,115200n8"
+USE_VT = "0"
@@ -0,0 +1,15 @@
+SOC_FAMILY = "omap3"
+TARGET_ARCH = "arm"
+
+require conf/machine/include/tune-cortexa8.inc
+PREFERRED_PROVIDER_virtual/kernel = "linux-omap"
+# Increase this everytime you change something in the kernel
+MACHINE_KERNEL_PR = "r101"
+
+KERNEL_IMAGETYPE = "uImage"
+
+UBOOT_ENTRYPOINT = "0x80008000"
+UBOOT_LOADADDRESS = "0x80008000"
+
+EXTRA_IMAGEDEPENDS += "u-boot x-load"
+
@@ -0,0 +1,69 @@
+#@TYPE: Machine
+#@NAME: OMAP3 based Pandora Handheld Console
+#@DESCRIPTION: Machine configuration for the Pandora http://www.openpandora.org/ Handheld Console
+#@MAINTAINER: John Willis
+
+TARGET_ARCH = "arm"
+
+PREFERRED_PROVIDER_virtual/bootloader = "u-boot-omap3pandora"
+
+PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
+
+XSERVER = " \
+ xserver-xorg \
+ xserver-xorg-extension-glx \
+ xserver-xorg-extension-dri \
+ xf86-input-tslib \
+ xf86-input-evdev \
+ xf86-input-mouse \
+ xf86-input-keyboard \
+ xf86-video-omapfb \
+"
+
+#800 * 480 Widescreen
+GUI_MACHINE_CLASS = "bigscreen"
+MACHINE_GUI_CLASS = "bigscreen"
+MACHINE_DISPLAY_WIDTH_PIXELS = "800"
+MACHINE_DISPLAY_HEIGHT_PIXELS = "480"
+
+#IMAGE_FSTYPES += "tar.bz2 ubi"
+IMAGE_FSTYPES = "tar.bz2"
+
+SERIAL_CONSOLE = "115200 ttyS0"
+
+require conf/machine/include/omap3.inc
+
+# Put it below omap3.inc as we override the kernel and PR here
+PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}"
+MACHINE_KERNEL_PR = "r3"
+
+# Use our 'Powered by Angstrom' splash for the images.
+PREFERRED_PROVIDER_virtual/psplash = "psplash-omap3pandora"
+
+KERNEL_IMAGETYPE = "uImage"
+
+# 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"
+
+UBOOT_ENTRYPOINT = "0x80008000"
+UBOOT_LOADADDRESS = "0x80008000"
+UBOOT_ARCH = "arm"
+UBOOT_MACHINE = "omap3_pandora_config"
+
+PREFERRED_PROVIDER_u-boot = "u-boot-omap3pandora"
+PREFERRED_PROVIDER_x-load = "x-load-omap3pandora"
+EXTRA_IMAGEDEPENDS += "virtual/bootloader x-load"
+
+MACHINE_FEATURES = "kernel26 apm usbgadget usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio"
@@ -1,51 +0,0 @@
-#@TYPE: Machine
-#@NAME: OMAP3 based Pandora Handheld Console
-#@DESCRIPTION: Machine configuration for the Pandora http://www.openpandora.org/ Handheld Console
-
-TARGET_ARCH = "arm"
-include conf/machine/include/tune-cortexa8.inc
-
-PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
-
-XSERVER = " \
- xserver-xorg \
- xf86-input-evdev \
- xf86-input-mouse \
- xf86-input-tslib \
- xf86-video-omapfb \
- xf86-input-keyboard \
-"
-
-#What is the correct one, both seem in use?
-MACHINE_GUI_CLASS = "bigscreen"
-GUI_MACHINE_CLASS = "bigscreen"
-
-#800 * 480 Widescreen
-MACHINE_DISPLAY_WIDTH_PIXELS = "800"
-MACHINE_DISPLAY_HEIGHT_PIXELS = "480"
-
-# Ship all kernel modules
-MACHINE_EXTRA_RRECOMMENDS = "omap3-sgx-modules kernel-modules"
-
-# Make sure firmware is installed for BT and WiFi.
-MACHINE_EXTRA_RDEPENDS = "pandora-firmware"
-
-IMAGE_FSTYPES += "jffs2 tar.bz2"
-EXTRA_IMAGECMD_jffs2 = "-lnp "
-
-SERIAL_CONSOLE = "115200 ttyS0"
-
-#PREFERRED_PROVIDER_virtual/kernel = "linux-omap"
-PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel"
-
-KERNEL_IMAGETYPE = "uImage"
-
-UBOOT_ENTRYPOINT = "0x80008000"
-UBOOT_LOADADDRESS = "0x80008000"
-UBOOT_ARCH = "arm"
-UBOOT_MACHINE = "omap3_pandora_config"
-
-PREFERRED_VERSION_u-boot = "git"
-#EXTRA_IMAGEDEPENDS += "u-boot x-load"
-
-MACHINE_FEATURES = "kernel26 apm alsa usbgadget usbhost keyboard vfat ext2 screen touchscreen bluetooth wifi"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,26 @@
+require linux.inc
+
+DESCRIPTION = "Linux kernel for the OpenPandora handheld"
+KERNEL_IMAGETYPE = "uImage"
+
+COMPATIBLE_MACHINE = "omap3-pandora"
+
+# This is on the pandora-37 branch
+SRCREV = "6fcb7be7a34f3ffa9b80eae2b318747a6beff386"
+
+SRC_URI = " \
+ git://git.openpandora.org/pandora-kernel.git;protocol=git;branch=pandora-37 \
+"
+
+PV = "2.6.37-pandora+${PR}+git${SRCREV}"
+
+S = "${WORKDIR}/git"
+
+# NOTE: We pull in the default config from the OP kernel GIT tree and keep that config in sync the needs of OE in-tree.
+# It does mean we do not ship the usual defconfig in the OE tree.
+
+KERNEL_DEFCONFIG = "omap3_pandora_defconfig"
+
+do_configure_prepend() {
+ install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
+}
File renamed without changes.
Oops, something went wrong.

0 comments on commit 934fc41

Please sign in to comment.