Skip to content

Commit

Permalink
Support SoPine for more boards
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed May 31, 2017
1 parent f1628fa commit 6e698d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
2 changes: 2 additions & 0 deletions package/root/usr/local/sbin/pine64_install_to_emmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ case "$1" in
REPO="ayufan-pine64/$1"
if [[ "$(cat /etc/pine64_model)" == "pinebook" ]]; then
PREFIX="$1-pine-a64-pinebook-v"
elif [[ "$(cat /etc/pine64_model)" == "sopine" ]]; then
PREFIX="$1-pine-a64-sopine-v"
else
PREFIX="$1-pine-a64-v"
fi
Expand Down
8 changes: 1 addition & 7 deletions package/root/usr/local/sbin/pine64_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@

set -e

MODEL="pine64"
# Detect Pinebook.
if [ -e "/proc/device-tree/soc@01c00000/lcd0@01c0c000/lcd_driver_name" \
-a "$(cat /proc/device-tree/soc\@01c00000/lcd0\@01c0c000/lcd_driver_name)" = "anx9804_panel" ]; then
MODEL="pinebook"
fi
echo "$MODEL"
cat /etc/pine64-model
7 changes: 0 additions & 7 deletions package/root/usr/local/sbin/pine64_update_uboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ if [ -z "$1" ]; then
echo "Using latest release: $VERSION."
fi

MODEL="pine64"
# Detect Pinebook.
if [ -e "/proc/device-tree/soc@01c00000/lcd0@01c0c000/lcd_driver_name" \
-a "$(cat /proc/device-tree/soc\@01c00000/lcd0\@01c0c000/lcd_driver_name)" = "anx9804_panel" ]; then
MODEL="pinebook"
fi

DEVICE="/dev/mmcblk0"
URL="https://github.com/ayufan-pine64/linux-build/releases/download/$VERSION/simple-image-$(cat /etc/pine64_model)-$VERSION.img.xz"
# URL="https://www.stdin.xyz/downloads/people/longsleep/pine64-images/simpleimage-pine64-$VERSION.img.xz"
Expand Down
2 changes: 2 additions & 0 deletions package/root/usr/local/sbin/pine64_upgrade_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ fi
REPO="ayufan-pine64/$2"
if [[ "$(cat /etc/pine64_model)" == "pinebook" ]]; then
PREFIX="$2-pine-a64-pinebook-v"
elif [[ "$(cat /etc/pine64_model)" == "sopine" ]]; then
PREFIX="$2-pine-a64-sopine-v"
else
PREFIX="$2-pine-a64-v"
fi
Expand Down

0 comments on commit 6e698d7

Please sign in to comment.