Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,677
» Latest member: Charlotten
» Forum threads: 16,248
» Forum posts: 117,156

Full Statistics

Latest Threads
compass pdf link expired:...
Forum: General Discussion on PinePhone
Last Post: WhiteHexagon
Yesterday, 12:39 PM
» Replies: 4
» Views: 230
No touch KB after update(...
Forum: Mobian on PinePhone
Last Post: biketool
Yesterday, 02:25 AM
» Replies: 2
» Views: 129
Running Pinebook (non-Pro...
Forum: Pinebook Hardware and Accessories
Last Post: guidol
11-09-2025, 04:19 AM
» Replies: 0
» Views: 77
Pinebook Pro for sale
Forum: General Discussion on Pinebook Pro
Last Post: rfm83
11-08-2025, 09:22 AM
» Replies: 0
» Views: 129
What is wrong with the Mo...
Forum: General Discussion on PinePhone
Last Post: Mahgue
11-08-2025, 05:13 AM
» Replies: 0
» Views: 93
StarPro64 Irradium (based...
Forum: Getting Started
Last Post: mara
11-07-2025, 01:12 PM
» Replies: 12
» Views: 5,951
Wake up Call
Forum: General Discussion on PinePhone
Last Post: biketool
11-06-2025, 06:18 AM
» Replies: 6
» Views: 501
Reinstallation Arch Linux...
Forum: General Discussion on PineTab
Last Post: victor_yeh
11-05-2025, 11:17 PM
» Replies: 0
» Views: 128
I think you can try compi...
Forum: General Discussion on Pinebook Pro
Last Post: wangyukunshan
11-05-2025, 02:25 AM
» Replies: 0
» Views: 158
Second screen mirroring
Forum: General
Last Post: OpalTromp
11-04-2025, 09:53 PM
» Replies: 2
» Views: 1,803

 
Brick pinebook_install_to_SD.sh
Posted by: MarkHaysHarris777 - 08-23-2017, 04:26 PM - Forum: General Discussion on Pinebook - Replies (2)

Greetings,  

  The purpose of this post is to make the Pine Installer script available (on the forum) for Pinebook users who want to create SD cards on their Pinebook using the SD card slot, which will allow making SD cards directly on the Pinebook from the network;  this script is similar to the pin64_install_to_emm.sh , as well the rock64_install_to_SD.sh.

  The script does require the  curl  package,  as well the  jq  package.

(  This script allows you to burn Pinebook images from the network, to the SD card while booted from eMMC  )

pinebook_install_to_SD.sh

Code:
#!/bin/bash

set -eo pipefail

if [[ "$(id -u)" -ne "0" ]]; then
    echo "This script requires root."
    exit 1
fi

echo "Pine A64/Pinebook release installer!"
echo "(C) 2017. Kamil Trzciński (https://ayufan.eu)."
echo ""

usage() {
   echo "Usage:"
   echo "$ $0 <system> [version]"
   echo ""
   echo "Systems:"
   echo " - xenial-minimal (https://github.com/ayufan-pine64/linux-build/releases)"
   echo " - xenial-mate (https://github.com/ayufan-pine64/linux-build/releases)"
   echo " - xenial-i3 (https://github.com/ayufan-pine64/linux-build/releases)"
   echo " - android-7.0 (https://github.com/ayufan-pine64/android-7.0/releases)"
   echo " - android-7.1 (https://github.com/ayufan-pine64/android-7.1/releases)"
   echo ""
   echo "Version:"
   echo " - latest will be used if version is not defined"
   exit 1
}

if [[ $# -ne 1 ]] && [[ $# -ne 2 ]]; then
   usage
fi

#if [[ ! -d /sys/devices/soc.0/1c10000.sdmmc/mmc_host/mmc1 ]]; then
#    echo "You should boot from SD card"
#    exit 1
#fi

#if [[ ! -e /dev/mmcblk1 ]]; then
#    echo "You should boot from SD card"
#    exit 1
#fi

case "$1" in
   xenial-minimal|xenial-mate|xenial-i3)
       REPO="ayufan-pine64/linux-build"
       PREFIX="$1-$(cat /etc/pine64_model)-bspkernel-"
       SUFFIX="-[0-9]*.img.xz"
       ARCHIVER="xz -d"
       ;;

   android-7.0|android-7.1)
       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
       SUFFIX="-r[0-9]*.img.gz"
       ARCHIVER="gzip -d"
       ;;

   *)
       echo "Unknown system: $1"
       echo ""
       usage
       ;;
esac

VERSION="$2"

if [[ -z "$VERSION" ]]; then
    VERSION=$(curl -f -sS https://api.github.com/repos/$REPO/releases/latest | jq -r ".tag_name")
    if [ -z "$VERSION" ]; then
        echo "Latest release was not for $1."
       echo "Please go to: https://github.com/$REPO/releases/latest"
       exit 1
    fi

    echo "Using latest release: $VERSION from https://github.com/$REPO/releases."
fi

NAME="$PREFIX$VERSION$SUFFIX"
NAME_SAFE="${NAME//./\\.}"
VERSION_SAFE="${VERSION//./\\.}"

echo "Looking for download URL..."
DOWNLOAD_URL=$(curl -f -sS https://api.github.com/repos/$REPO/releases | \
   jq -r ".[].assets | .[].browser_download_url" | \
   ( grep -o "https://github\.com/$REPO/releases/download/$VERSION_SAFE/$NAME_SAFE" || true))

if [[ -z "$DOWNLOAD_URL" ]]; then
   echo "The download URL for $NAME not found".
   echo "Look at https://github.com/$REPO/releases for correct versions."
   exit 1
fi

echo "Doing this will overwrite all data stored on eMMC."

while true; do
   echo "Type YES to continue or Ctrl-C to abort."
   read CONFIRM
   if [[ "$CONFIRM" == "YES" ]]; then
       break
   fi
done

echo ""
echo "Using $DOWNLOAD_URL..."
echo "Umounting..."
umount -f /dev/mmcblk1* || true
echo ""

echo "Downloading and writing to /dev/mmcblk1..."
curl -L -f "$DOWNLOAD_URL" | $ARCHIVER | dd bs=30M of=/dev/mmcblk1
sync
echo ""
echo "You may want to run now pine64_remove_boot0.sh to make the current device unbootable."
echo ""

echo "Done."
Notes:
Place the script in the normal place    /usr/local/sbin/pinebook_install_to_SD.sh
make the script executable with :
sudo  chmod  0775  /usr/local/sbin/pinebook_install_to_SD.sh
sudo  chown  root  /usr/local/sbin/pinebook_install_to_SD.sh
sudo  chgrp  root  /usr/local/sbin/pinebook_install_to_SD.sh
To run the script and get usage:
sudo  /usr/local/sbin/pinebook_install_to_SD.sh
To run the script and load xenial-i3 :
sudo  /usr/local/sbin/pinebook_install_to_SD.sh   xenial-i3

If you do not specify a version then the script will pull the most recent (non pre release) from the repos.

(  This script allows you to burn Pinebook images from the network, to the SD card while booted from eMMC  )
Rolleyes

Updated Instructions.


  Pinebook not booting for the 1st time
Posted by: Tionicer - 08-23-2017, 12:10 PM - Forum: General Discussion on Pinebook - Replies (7)

I am experiencing very unfortunate event - pinebook that came to me does not boot. I hope the community can help me with this.
Here is my case:

After delivery I tried to start pinebook by hitting the power button. The green power led turned on and nothing happened - screen did not react, no flash, no out of battery sign as many other users had experienced. I powered it down (pressing power button for ~5 seconds), the green power light went off. Then I plugged the charger in and the green power led button turned on again and that's it, nothing else happened. Unplugging the cable does nothing. The plastic around the charger port does not get warmer but the camera does get warmer when the device is plugged in. I tried unplugging the power cord and closing the lid, as I could see the green led light is still on, does not react to the lid.
I let it charge overnight, tried plugging charging cable many times and it made no effect. No other led lights turned on so far.

I wrote a support ticket but still got no response (after 4 days 17 hours passed at the time of the writing of this post).

Does anyone know what can be done in this case? I will gladly do any debugging that could help.
Also, I am not sure if I can unscrew the screws and look into the insides of the laptop without voiding the 30-day warranty in case the device is defective/dead. Can I do that safely? I have a suspicion that it is that the display is not working (just an assumption as of now) so I want to see if it is all plugged correctly inside.

 I would also appreciate any other information that can be useful in my case.
Thank you.


  Pinebook Solar charging
Posted by: Soul_Hacker - 08-23-2017, 07:58 AM - Forum: General Discussion on Pinebook - Replies (2)

Hello, I am pretty new here.
I got my Pinebook a few weeks ago and everything seems fine except a few flaws which are not as important to me for now.

Whats actually a great thing about the Pinebook is its battery-life...
I highly recommend buying the USB-to-Power Cord along with your Pinebook.

Now to my experiment. I challenged the Pinebook to LIVE WITHOUT A POWER OUTLET FOR TWO WEEKS.
And it went very well with my setup which is pretty low-end.

  • Pinebook with USB powercord
  • 700mWh Powermonkey Powerbar
  • and a Solar Panel from Solarmonkey which has the same size as two large smartphones
   

So i tried working*/browsing with my Pinebook all (sunny) day while i let the powerbank charge, and if i needed power is would just plug it into the powerbank.
(If you plug it directly into the Solar panel it will only "slowly discharge")
If the weather really was bad (cloudy weather works) you could still work practically 24/7 for one day.
If you have a good weather condition and load the powerbank to full charge, you can work almost 2 days without sun.
The Pinebook is pretty happy with 4.3V for charging it seems.

*Sys- and Network-admin Stuff; Light Programming

tl;dr
So if you actually want to live off the grid for a few days or just wondered if you should buy a powerbank and/or a solar-panel for your Pinebook (and other Devices).
YES TOTTALLY DO IT, it works great. if you have a better/larger Solar Panel you could probably charge this thing.


  Android Oreo?
Posted by: epigon - 08-23-2017, 05:45 AM - Forum: Android on Pinebook - Replies (12)

Hi all,

Any chance of Oreo on the Pinebook?

Thanx

Fred


  Does “0.2.14: jenkins-android-7.1-rock-64-69” support wifi?
Posted by: fbms - 08-22-2017, 07:51 PM - Forum: Android on Rock64 - Replies (5)

I flashed "0.2.14: jenkins-android-7.1-rock-64-69" into a sd card, but I could make wifi work.
Anybody know about this?""


  New Pinebook, having issues powering on...
Posted by: JRR - 08-22-2017, 05:55 PM - Forum: Pinebook Hardware and Accessories - Replies (5)

Hi All,

Just received my Pinebook 14" on Friday.  Flat battery when it arrived, but after charging for an hour or so, it did power up.
I liked what I saw, however now I am now having an issue where it will not power on.  Here is what I put in the ticket I posted (#1561)...

On Saturday I had some difficulty getting it to power on, but eventually it did.  Today (Sunday), it will not power on.  When I plug the cord in the red power light by the socket comes on, and the green power light on the keyboard lights, it then displays the battery charging symbol and shows that the battery is fully charged.  Then the power light on the keyboard goes out.  And I cannot get it to come back on.  I have tried pressing the power button in multiple ways, and nothing happens.  I have tried the sleep button (Fn-F1) and nothing happens.

Anyone else have this problem?
Also, I opened the ticket on Sunday and have as yet had no response?  Anyone else know about how long it takes for them to respond?

Thank you for any help!


  Problems At Shutdown?
Posted by: robbiemacg - 08-22-2017, 10:02 AM - Forum: Linux on Pinebook - Replies (10)

I'm running the most current, stable kernel. Just pulled my Pinebook out of my briefcase to discover it didn't actually shutdown when I last ended a session (reworked a bit of code on the bus this am), and my battery is all but dead.

Anyone else experience something similar? Any thoughts on what logs I might look at to start to get to the bottom of things?


  rant - userland is 32-bit
Posted by: bitbank - 08-22-2017, 08:04 AM - Forum: Linux on Rock64 - Replies (3)

Part of the reason I bought the Rock64 is to have a decent aarch64 system with more RAM and faster USB than some of my other ARM64 SBCs. Today while trying to build one of my projects, I discovered that the Linaro Linux distributed with the Rock64 has a 64-bit kernel, but 32-bit userland. This caused my build script to fail because uname returns only aarch64 as the system type. Besides this very disappointing news, so far, I've encountered the following issues with the board:

1) No SPI driver in current linux distribution
2) USB loses power and won't respond
3) Missing wifi drivers for my wifi dongles
4) Half of the GPIO header is unusable because it has conflicts or has been repurposed

What's the point of selling a 64-bit board that only runs 32-bit software? The Cortex-A53 is an old, slow ARM design and it's only benefit is that it supports the ARMv8 register model and instruction set. A new build of Linux can fix this 32/64-bit situation, but the other problems on my list will keep me from ever using it in projects. It looks like this board will join many others collecting dust in the desk drawer of shame.

/rant


  Keyboard commands for Android
Posted by: Drsdroid - 08-21-2017, 05:00 PM - Forum: Android on Rock64 - Replies (3)

I was wondering if anyone had good keyboard commands to perform the function of the "HOME" key in android

I know ESC works for BACK and ALT+TAB works for recent apps. But nothing seems to work for me for "HOME", surprisingly the "HOME" key on the keyboard doesn't do it.

I'm using a TV remote coupled with the FLIRC adapter and it works great for android.  Works 100% flawlessly with KODI so I may use KODI as my front-end.


  libssl-dev eon't install
Posted by: williamcolls - 08-21-2017, 03:22 PM - Forum: Debian - Replies (2)

I need to install libssl-dev, but when I try I am getting the following error:

The following packages have unmet dependencies:
libssl-dev : Depends: libssl1.0.0 (= 1.0.1t-1+deb8u6) but 1.0.2l-1~bpo8+1 is to
be installed

/etc/debian_version says 8.9 and i installed the pine64-image-debianmate-310102bps-2.img 

uname -a gives the following output:
Linux dev-fs 3.10.102-2-pine64-longsleep #66 SMP PREEMPT Sat Jul 16 10:53:13 CES
T 2016 aarch64 GNU/Linux


How do I fix this?

Thanks for your time.

William.