Skip to content
Permalink
Browse files

inject_bl301: changed package URL

  • Loading branch information...
Portisch committed Nov 6, 2019
1 parent 98f1e30 commit 26b445bc17f9e67699f732b4305c91d2af0e3e21
@@ -0,0 +1,13 @@
#################################################################
# CoreELEC inject_bl301 config #
# #
# [substring coreelect-dt-id] = [substring BL301 blob binary] #
# #
# [substring coreelect-dt-id] = [] -> "Not supported" #
# #
#################################################################

[BL301]
odroid=
khadas_vim3=Khadas_VIM3

@@ -2,10 +2,11 @@
# Copyright (C) 2019-present Team CoreELEC (https://coreelec.org)

PKG_NAME="inject_bl301"
PKG_VERSION="0.1"
PKG_VERSION="f4ac1141f1146e547d96071ecd44d4fcf251d13a"
PKG_SHA256="d425872099a46b2a641cf40735bd17eb9b430dab4687223632bd85bcaac3e4a6"
PKG_LICENSE="proprietary"
PKG_SITE="https://coreelec.org"
PKG_URL=""
PKG_URL="https://sources.coreelec.org/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="Tool to inject bootloader blob BL301.bin on internal eMMC"
PKG_TOOLCHAIN="manual"
@@ -14,6 +15,6 @@ makeinstall_target() {
mkdir -p $INSTALL/usr/sbin
mkdir -p $INSTALL/etc/inject_bl301
install -m 0755 inject_bl301 $INSTALL/usr/sbin/inject_bl301
install -m 0755 checkbl301.sh $INSTALL/usr/sbin/checkbl301
install -m 0644 bl301.conf $INSTALL/etc/inject_bl301/bl301.conf
install -m 0755 $PKG_DIR/scripts/checkbl301.sh $INSTALL/usr/sbin/checkbl301
install -m 0644 $PKG_DIR/config/bl301.conf $INSTALL/etc/inject_bl301/bl301.conf
}
@@ -0,0 +1,36 @@
#!/bin/sh
#
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org)
#
# Detect BL301 injection
#
#####################################################
#
# Comand Line Arguments
# -v = Show verbose output
#
#####################################################

VERBOSE=0
INSTALLED=0

if [ "$1" = "-v" ]; then
VERBOSE=1
fi

if [ -e /dev/bootloader ]; then
dd if=/dev/bootloader bs=1M count=4 status=none | grep -aq COREELEC_BL301_BIN
if [ ${?} = 0 ]; then
INSTALLED=1
fi
fi

if [ "$VERBOSE" = 1 ]; then
if [ "$INSTALLED" = 1 ]; then
echo "CoreELEC BL301 Installed"
else
echo "CoreELEC BL301 Not found"
fi
fi
exit $INSTALLED
Binary file not shown.

0 comments on commit 26b445b

Please sign in to comment.
You can’t perform that action at this time.