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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,466
» Latest member: Creig
» Forum threads: 16,192
» Forum posts: 116,855

Full Statistics

Latest Threads
Pinephone Pro wont boot t...
Forum: General Discussion of PinePhone Pro
Last Post: KNERD
2 hours ago
» Replies: 1
» Views: 33
PinePhone Pro discontinue...
Forum: General Discussion of PinePhone Pro
Last Post: KNERD
2 hours ago
» Replies: 4
» Views: 107
Are there plannes to crea...
Forum: PinePhone Pro Hardware
Last Post: franzthiemann
10 hours ago
» Replies: 2
» Views: 787
prototyping to help someo...
Forum: General
Last Post: xerosenex
Today, 02:31 AM
» Replies: 0
» Views: 29
Password reset via u-boot...
Forum: PineNote Software
Last Post: lunnabae
Yesterday, 01:17 AM
» Replies: 6
» Views: 1,678
incorporate a multimeter ...
Forum: General
Last Post: lalisa12
Yesterday, 01:14 AM
» Replies: 2
» Views: 485
New PineNote: No WiFi aft...
Forum: PineNote Software
Last Post: krexplex
08-12-2025, 01:09 PM
» Replies: 5
» Views: 1,404
Full desktop Surfing and ...
Forum: General Discussion on Pinebook Pro
Last Post: Pattienner
08-10-2025, 10:35 PM
» Replies: 2
» Views: 448
Any recommended brands/mo...
Forum: Pinebook Pro Hardware and Accessories
Last Post: fnfgopro
08-10-2025, 08:38 PM
» Replies: 2
» Views: 841
Thoughts after a year wit...
Forum: General Discussion on Pinebook Pro
Last Post: tantamount
08-10-2025, 02:25 PM
» Replies: 3
» Views: 607

 
  NOOBS
Posted by: Bluesman - 08-16-2017, 11:10 PM - Forum: General Discussion on ROCK64 - Replies (8)

Just received my Rock64. Is it possible to boot from USB hard drive?


Question Installer shows SD Card size 0GB
Posted by: atr.mbl - 08-16-2017, 11:05 PM - Forum: General Discussion on Pinebook - Replies (1)

For some reason the pine64 installer (on win7 32-bit) cannot recognise correctly the size of my sd card. It always shows 0.0 GB. The sd card (16GB micro sd hc class 1) works fine with all other devices and I formated it just before that.


  Plex server
Posted by: abrmx - 08-16-2017, 03:48 PM - Forum: General Discussion on PINE A64(+) - Replies (3)

Hello

I succesfully mount a Plex media Server on a PineA64

I use this instructions:

Code:
# Run add the ARMHF architecture to the Debian Packages that can be installed here
sudo dpkg --add-architecture armhf
# Make sure that we install the correct version of the arm package
echo "deb [arch=armhf] https://dev2day.de/pms/ jessie main" | sudo tee /etc/apt/sources.list.d/pms.list
# Update the package lists
sudo apt-get update
# Install the media server and all the dependencies
sudo apt-get install binutils:armhf plexmediaserver-installer -y

good luck!


  Configure the touchpad
Posted by: leszek - 08-16-2017, 02:43 PM - Forum: Linux on Pinebook - Replies (6)

I like to configure the touchpad to be able to use two finger tap for middle click and three finger tap for right click.

So far I was only able to switch 2 finger tap from right click to middle click with

Code:
xinput set-button-map 8 1 3 2 4 5 6 7 8 9 10 11 12 13

Though that does disable the right click for me. Tapping with 3 fingers sends an s keypress event.
Clicking on the far bottom right produces a 3 keypress.

Setting it back to the default
Code:
xinput set-button-map 8 1 2 3 4 5 6 7 8 9 10 11 12 13

Makes right click working again with two finger tap and right bottom corner click.
Three finger tap however still send an s keypress.


  Mute speakers when headset is plugged in
Posted by: leszek - 08-16-2017, 02:25 PM - Forum: Linux on Pinebook - Replies (4)

Somehow when I plug in a headset sound is played through it but the speakers don't mute and still play sound still.
I like to have the behavior to mute the speakers if I plug in my headphones or headset.
I guess I  need to enable some switch in alsamixer to make it work.


  Make Microphones work
Posted by: leszek - 08-16-2017, 02:22 PM - Forum: Linux on Pinebook - Replies (2)

I like to test the microphones. Though they seem to be disabled by default and not used by default for capturing with arecord or audacity.
What settings in [b]alsamixer[b] do I need to set to be able to record with both microphones?
I am a little bit overwhelmed by all the mixers I and settings I can adjust there.


  No USB Power after Login (ROCK64+Mate)
Posted by: metaflux - 08-16-2017, 01:31 AM - Forum: Linux on Rock64 - Replies (33)

Hello, can someone help me with my problem.

I have a ROCK64 with 4GB of RAM and an Ubuntu Mate (xenial-mate-rock64-0.4.17-85-arm64.img.xz from https://github.com/ayufan-rock64/linux-build/releases/) installed.
In the login screen my mouse and keyboard works perfect. A few seconds after the login, my mouse and keyboard tunrns off!. The light off the mouse goes out, so I assume that the current power on the USB port is no longer available or is not enough.

What can I do? Anybody an idea? THX.


  Deinterlacing not working in Kodi 17/18
Posted by: Blinky - 08-15-2017, 08:52 PM - Forum: Android on Rock64 - Replies (1)

Deinterlacing of videos don't seem to work in Kodi 17 or 18.

It seems to be a problem with Mediacodec.
If you turn it off deinterlacing works but then it uses 100% CPU resources and is then too choppy to play.

The problem doesn't exist on other socs like RK3288 from the same chip manufacturer.

Here is a sample video to try, the video is not deinterlaced.
With the stock video player and MXPlayer the video plays correctly.
https://drive.google.com/file/d/0BwxFVkl...VyZGM/view

Is there a way to solve it?


  CONFIG_IP_NF_NAT
Posted by: nebbors - 08-15-2017, 07:59 PM - Forum: Armbian - Replies (4)

Need module? Do I need to recompile myself or is it easier than that?


Brick Rock64 Linux Image Writing Scripts Codes and Tutorial
Posted by: MarkHaysHarris777 - 08-15-2017, 07:34 PM - Forum: General Discussion on ROCK64 - Replies (4)

Greetings,

The purpose of this post is to make available as quickly as possible the Rock64 Linux Image Writing Scripts ( codes and tutorials ) as well giving theory and instructions for their use.

Both of the scripts presented her derive directly, and were ported from, ayufan's "Pinebook to eMMC" script and perform the same function, yet over the Rock64 repos ( the arm64 primary images ).

Theory

Place these scripts ( as well the "curl" and "jq" packages ) on your gnu+linux system and use them to download and write the desired image from the network repos directly to the SD card ;  or even to the eMMC module using an adapter !  In addition the scripts may be placed on your bootable SD card in preparation for using the jumper setting technique for writing a network repo image directly to the eMMC memory module.  The flexibility is your own choice.  I have pushed the script(s) as a github PR, and eventually they will be included in the images automatically.

The Scripts


rock64_install_to_emmc.sh

Code:
#!/bin/bash

set -eo pipefail

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

echo "Rock64 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-rock64/linux-build/releases)"
   echo " - xenial-mate (https://github.com/ayufan-rock64/linux-build/releases)"
   echo " - xenial-i3 (https://github.com/ayufan-rock64/linux-build/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-rock64/linux-build"
       PREFIX="$1-rock64-"
       SUFFIX="-[0-9]*-arm64.img.xz"
       ARCHIVER="xz -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 "Done."



rock64_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 "Rock64 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-rock64/linux-build/releases)"
   echo " - xenial-mate (https://github.com/ayufan-rock64/linux-build/releases)"
   echo " - xenial-i3 (https://github.com/ayufan-rock64/linux-build/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/mmcblk0 ]]; then
#    echo "You should boot from SD card"
#    exit 1
#fi

case "$1" in
   xenial-minimal|xenial-mate|xenial-i3)
       REPO="ayufan-rock64/linux-build"
       PREFIX="$1-rock64-"
       SUFFIX="-[0-9]*-arm64.img.xz"
       ARCHIVER="xz -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/mmcblk0* || true
echo ""

echo "Downloading and writing to /dev/mmcblk0..."
curl -L -f "$DOWNLOAD_URL" | $ARCHIVER | dd bs=30M of=/dev/mmcblk0
sync
echo ""

echo "Done."



Instructions for Use:

Be sure to make both scripts executable as always with :

      chmod  0754  rock64_install_to_SD.sh

Both of the above scripts function the same way and have some very subtle differences, but generally have the same theory of operation;  the user selects a system image and version -- the script then finds the latest ( not pre release ) build, verifies it, and then downloads it from the network repos directly to the SD card, or even to the eMMC module via an adapter.

Sample syntax of the command is :

      sudo  ./rock64_install_to_SD.sh  xenial-mate  0.4.16

      sudo  ./rock64_install_to_SD.sh  xenial-minimal

If the version number is omitted then the script will find the latest ( not pre release ) build release!  The three primary arm64 versions are supported with this script:  xenial-mate | xenial-i3 |  xenial-minimal

The scripts differ mostly in their error checking, and where they write;  the SD.sh script writes to /dev/mmcblk0 while the emmc.sh script writes to mmcblk1.  The emmc.sh script makes sure that you're booted on the SD card first ! (very important for writing to the eMMC on the same system).  Otherwise, the two scripts are mostly identical and perform the same function.

The SD.sh script may be also used to write to the eMMC module if the module is placed into an adapter for use with the PC gnu+linux system.  The benefits of these scripts is two fold:  1) they are very fast with no intermediary step, and 2) the SD or eMMC is written to without having to play around with dd or Etcher ( or some other ) as well the syntax checking and command parsing is completely automatic ;  all the user has to know is the system and the version.

I have tested both of these scripts within reason and have found that they are functional and useful;  if the scripts are placed on your bootable SD card ( for writing to the eMMC module on-board with the jumper technique ) then they become very powerful for downloading and installing the desired image directly to the eMMC module from the network repos.  This is the very same technique that is used on the Pinebook to write images to its on-board eMMC module.

The Rock64 eMMC tutorial will be updated with this information.

As with any derived work, I have left ayufan's name attached due to respect, as well copyright and dignity of propriety;  however,  any errors are mine alone and I am responsible to correct any errors that might be found, quickly.