Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.