project-magpie / meta-stlinux

Yocto / OpenEmbedded BSP layer for stlinux (SH4) based Set-Top Boxes.

Home Page:http://project-magpie.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yocto BSP Layer - For STLinux sh4 based Set-Top-Boxes

This is the general hardware specific BSP overlay for STLinux based devices. It should be used with openembedded-core (not old-style org.openembedded.dev).

This layer in its entirety depends on:

URI: http://git.yoctoproject.org/git/poky
branch: dora
revision: HEAD

It is preferred that people raise pull requests using GIThub by forking the appropriate tree:

               https://github.com/project-magpie/meta-stlinux.git
               (More info on achieving this can be found at http://help.github.com/send-pull-requests/)

How to use it with yocto

Clone poky

git clone http://git.yoctoproject.org/git/poky poky

Switch to dylan branch

cd poky 
git checkout -b dora remotes/origin/dora

Move to top folder

cd ..

Independent Steps from poky/oe-core

Clone meta-stlinux

git clone https://github.com/project-magpie/meta-stlinux.git meta-stlinux
git checkout -b dora remotes/origin/dora

Initialize the oe-core build environment

# Initialize the oe-core build environment and edit configuration files 
# 
# This following command line line will create your build directory, setup your build environment,
# automatically place the current work directory inside the build dir and
# print out some useful information on how to bitbake packages.
# You can rerun this command every time you want to re-setup your build environment!

source poky/oe-init-build-env spark-build

Add meta-stlinux in bblayers.conf

vim conf/bblayers.conf
...
BBLAYERS ?= " \
  ${TOPDIR}/../oe-core/meta \
  ${TOPDIR}/../meta-stlinux \
"
...

Set MACHINE to spark and package type to ipk in local.conf

vim conf/local.conf
...
# Currently only spark hardware is supported
MACHINE ??= "spark"
...
PACKAGE_CLASSES ?= "package_ipk"
...

Run bitbake:

bitbake core-image-minimal 

Prerequisite

For the coprocessor firmware loading you have to provide the coprocessor firmware. Put the files either in the folder /data/stslave_fw/${MACHINE} or overwrite the variable "BINARY_STSLAVE_FW_PATH" in your conf/local.conf file. These files are audio.elf and video.elf. For spark this looks like this:

  • /data/stslave_fw/spark/video.elf
  • /data/stslave_fw/spark/audio.elf

These files can be extracted from a alternative image and are not part of this repository.

Caution!

Currently the only supported boot mechanism is booting a USB Stick. Fore more information have a look at this wiki page: Boot-from-USB-Stick

Layer maintainer: Christian Ege (graugans) k4230r6 at googlemail.com

About

Yocto / OpenEmbedded BSP layer for stlinux (SH4) based Set-Top Boxes.

http://project-magpie.github.io/


Languages

Language:BlitzBasic 76.1%Language:C 18.0%Language:Shell 6.0%