Skip to content
Permalink
Browse files

Add simple Pine64 model dections with Pinebook support

  • Loading branch information...
longsleep committed May 1, 2017
1 parent 156d20d commit 39fc3981e6938a8bac15a1244d202549d6dd85ab
@@ -0,0 +1,11 @@
#!/bin/sh

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"
@@ -7,8 +7,15 @@ if [ -n "$1" ]; then
VERSION="$1"
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://www.stdin.xyz/downloads/people/longsleep/pine64-images/simpleimage-pine64-$VERSION.img.xz"
URL="https://www.stdin.xyz/downloads/people/longsleep/pine64-images/simpleimage-$MODEL-$VERSION.img.xz"
PUBKEY="https://www.stdin.xyz/downloads/people/longsleep/longsleep.asc"
CURRENTFILE="/var/lib/misc/pine64_update_uboot.status"

0 comments on commit 39fc398

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