|
It seems that you must change usb settings in script.bin file. Fex file is in packages/tools/u-boot/extra folder. You can take a look in fex file from loboris located at https://github.com/loboris/Orang ... uild/orange_pi2.fex Actually, you can replace the whole file, just be carefull that he enabled highest CPU frequency for which some kind of cooler is required. Be careful not to change file name, it should be still orange_pi2.fex
After that, you can force rebuild u-boot by issuing following command:
- PROJECT=OPi2 ARCH=arm scripts/clean u-boot
Copy code
Then prepare image as ussual.
About building mpg123 - there is a lot of different things to know about adding packages, but for mpg123 is actually pretty simple. Just add following lines:
- ################################################################################
- # This file is part of OpenELEC - http://www.openelec.tv
- # Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) <- this should probably be your name
- #
- # OpenELEC 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, either version 2 of the License, or
- # (at your option) any later version.
- #
- # OpenELEC is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
- ################################################################################
- PKG_NAME="mpg123"
- PKG_VERSION="1.22.4"
- PKG_REV="1"
- PKG_ARCH="any"
- PKG_LICENSE="GPL"
- PKG_SITE="http://sourceforge.net/projects/mpg123/"
- PKG_URL="$SOURCEFORGE_SRC/$PKG_NAME/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.bz2"
- PKG_DEPENDS_TARGET="toolchain alsa-lib"
- PKG_PRIORITY="optional"
- PKG_SECTION="multimedia"
- PKG_SHORTDESC="mpg123: play sound files"
- PKG_LONGDESC="Play sound files"
- PKG_IS_ADDON="no"
- PKG_AUTORECONF="yes"
Copy code
in packages/multimedia/mpg123/package.mk I hope that it is self explanatory. For other possible examples take a look to other package.mk files. I'm not sure there is tutorial about that. I learnt with looking at other packages.
After that, you must just include this package as dependecy somewhere. Because this is development tool, you can add it to a list in packages/testing/package.mk. Just replace PKG_DEPENDS_TARGET="toolchain" with PKG_DEPENDS_TARGET="toolchain mpg123" and edit distributions/OpenELEC/options file in which you set testing to yes. |
|