| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 29,938
» Latest member: Ephraim
» Forum threads: 16,330
» Forum posts: 117,428
Full Statistics
|
| Latest Threads |
dead Pinebook - help plea...
Forum: General Discussion on Pinebook Pro
Last Post: williamcorlin
Yesterday, 04:22 PM
» Replies: 3
» Views: 642
|
Womens In Your City - Ano...
Forum: General
Last Post: Hipocrates
Yesterday, 01:01 AM
» Replies: 0
» Views: 65
|
BT PAN - we need iptables...
Forum: Mobian on PinePhone
Last Post: biketool
03-25-2026, 12:57 PM
» Replies: 1
» Views: 458
|
How can I record video on...
Forum: General Discussion on PinePhone
Last Post: baptx
03-25-2026, 12:55 PM
» Replies: 23
» Views: 18,388
|
u-boot rk356х (rockchip r...
Forum: Quartz64 Tutorials
Last Post: hamsterbacke
03-25-2026, 09:39 AM
» Replies: 18
» Views: 34,005
|
A/V output enable
Forum: Linux on Rock64
Last Post: 8lall0
03-24-2026, 04:45 PM
» Replies: 0
» Views: 66
|
If your USB-C port is fla...
Forum: PinePhone Pro Hardware
Last Post: Zebulon Walton
03-24-2026, 02:25 PM
» Replies: 0
» Views: 87
|
Pinebook problem
Forum: General Discussion on Pinebook Pro
Last Post: RicTor
03-18-2026, 08:58 AM
» Replies: 2
» Views: 4,688
|
Pine a64+ power supply
Forum: General Discussion on PINE A64(+)
Last Post: davidspencer
03-18-2026, 01:02 AM
» Replies: 0
» Views: 170
|
Private / self-hosted "Cl...
Forum: General Discussion on PinePhone
Last Post: cyberb123
03-17-2026, 11:57 AM
» Replies: 8
» Views: 7,220
|
|
|
| Ephemeral RTC Settings |
|
Posted by: Siliconserf - 08-24-2017, 06:39 PM - Forum: Linux on Pinebook
- No Replies
|
 |
OK, I'm sure there is something I'm not doing right, but the RTC has me stumped. I use the access point in the upper right of the Mate desktop to set the RTC to use my time zone and report time in 12, instead of 24 hour format. I do this as a user with Admin privileges. And the clock changes appropriately...until the next boot, whereupon I see that it has forgotten the settings and has gone back to defaults. The menus are very explicit about setting the system clock options. So what have I missed?
|
|
|
|
Solved - Resize Root Filesystem (Xenial) |
|
Posted by: aussiemate - 08-24-2017, 05:38 PM - Forum: Linux on Rock64
- Replies (4)
|
 |
This is for those less familiar with Linux, or running Linux from an SD card.
When you flash Ubuntu Xenial onto an SD card, the root filesystem size is only big enough to fit the operating system.
This is intentional; to keep the size of the image file as small as possible, making it quicker to download and flash to any size SD card (within reason).
After flashing the sd card and booting up for the first time, log in and do the following to expand the root filesystem by following these instructions.
There's a lot of code below, but the whole process took me less than 2 minutes, and you should be able to safely accept the default response to all prompts.
1. Fix the partition table to reflect the size of the SD card:
Code: rock64@rock64:~$ sudo parted -l
Warning: Not all of the space available to /dev/mmcblk1 appears to be used, you
can fix the GPT to use all of the space (an extra 60332032 blocks) or continue
with the current setting?
Fix/Ignore? F
Model: SD 5&DRP (sd/mmc)
Disk /dev/mmcblk1: 32.1GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 32.8kB 4129kB 4096kB loader1
2 4129kB 4194kB 65.5kB reserved1
3 4194kB 8389kB 4194kB reserved2
4 8389kB 12.6MB 4194kB loader2
5 12.6MB 16.8MB 4194kB atf
6 16.8MB 134MB 117MB fat16 boot legacy_boot, msftdata
7 134MB 1208MB 1074MB ext4 root
2. Increase the root partition size:
Code: rock64@rock64:~$ sudo fdisk /dev/mmcblk1
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/mmcblk1: 29.9 GiB, 32099008512 bytes, 62693376 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 062EE0ED-2FD5-4D89-B424-771CB4465BD4
Device Start End Sectors Size Type
/dev/mmcblk1p1 64 8063 8000 3.9M Linux filesystem
/dev/mmcblk1p2 8064 8191 128 64K Linux filesystem
/dev/mmcblk1p3 8192 16383 8192 4M Linux filesystem
/dev/mmcblk1p4 16384 24575 8192 4M Linux filesystem
/dev/mmcblk1p5 24576 32767 8192 4M Linux filesystem
/dev/mmcblk1p6 32768 262143 229376 112M Microsoft basic data
/dev/mmcblk1p7 262144 2359295 2097152 1G Linux filesystem
Command (m for help): d
Partition number (1-7, default 7):
Partition 7 has been deleted.
Command (m for help): n
Partition number (7-128, default 7):
First sector (262144-62693342, default 262144):
Last sector, +sectors or +size{K,M,G,T,P} (262144-62693342, default 62693342):
Created a new partition 7 of type 'Linux filesystem' and of size 29.8 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
3. Tell the kernel the partition table has changed:
Code: rock64@rock64:~$ sudo partprobe /dev/mmcblk1
4. Resize the root filesystem to fill the partition:
Code: rock64@rock64:~$ sudo resize2fs /dev/mmcblk1p7
resize2fs 1.42.13 (17-May-2015)
Filesystem at /dev/mmcblk1p7 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 2
The filesystem on /dev/mmcblk1p7 is now 7803899 (4k) blocks long.
rock64@rock64:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 459M 0 459M 0% /dev
tmpfs 93M 3.9M 89M 5% /run
/dev/mmcblk1p7 30G 769M 28G 3% /
tmpfs 462M 0 462M 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 462M 0 462M 0% /sys/fs/cgroup
/dev/mmcblk1p6 100M 22M 79M 22% /boot/efi
Reboot and you're done!
...but don't forget to change the default password from rock64
|
|
|
|
Rock64 Boot-up Bug with Serial Console Cable |
|
Posted by: MarkHaysHarris777 - 08-24-2017, 04:33 PM - Forum: Rock64 Hardware and Accessories
- Replies (1)
|
 |
Greetings,
The Rock64 often will not boot-up with a serial console connected to the console uart pins (6, 8, & 10).
Symptom: lights come on, nothing happens at all.
Solution: unplug the Tx line coming in on pin(10) prior to applying power for boot-up.
The Tx line often (if not always) has 3v3 on it when the other end is powered up, even in the idle state. This voltage present on pin(10) of the Rock64 prevents it from booting, sadly. I have reliably verified that unplugging the Tx line in on pin(10) of the Rock64 will allow the boot-up to start... as it boots up , carefully plug the Tx line back onto pin(10).
Also noticed that the Tx line (if left connected to pin[10] on Rock64 power-down) will back-feed into the board, which will dimly light the red LED (small glow) ! This back-feed is preventing boot-up.
Fortunately the serial console monitor does not need this line connected to monitor as long as it has the Rx connection and a good ground, so unplugging the line from pin(10) does not prevent monitoring the boot-up messages on the serial console.
Note: This problem occurs on both of my boards; dev board pre production, and the production master-piece which came last week !
Note: At this point I don't know if the current draw on the Tx line might damage the monitor ; currently I'm using my PineA64 desk machine as the serial monitor for my Rock64 boards.
|
|
|
|
| Q4OS Pinebook Questions |
|
Posted by: StewB - 08-24-2017, 03:53 PM - Forum: Linux on Pine A64(+)
- No Replies
|
 |
Nice install of Q4OS to microSD and transferred to the Pinebook internal drive.
What is the proper procedure to log into Wireless? (I see 2 connections: waan0 and waan1)
Will the miniHDMI work?
Thanks, Stew
|
|
|
|
| Boot hangs on pine64, how to debug? |
|
Posted by: olh - 08-24-2017, 05:37 AM - Forum: Android on Pine A64(+)
- Replies (1)
|
 |
I have a 2GB pine64 from July 2016. It has the android-7.1-r69.img installed on a 128GB card.
Now it happend two times that boot just hangs in that aninimated logo before the "Android" text appears. This is with a stock img. How can I check what it is waiting for, or what it is missing?
Is there a way to get not only the kernel messages on serial console, but also the 'adb logcat' output, or whatever else is Android logging during boot? So far I see the filesystems are mounted, some rc scripts are executed.
Thanks.
|
|
|
|
| emmc upgrade |
|
Posted by: Erik - 08-24-2017, 02:18 AM - Forum: Pinebook Hardware and Accessories
- Replies (1)
|
 |
Hi Guys,
This morning I swapped out the 16 Gb emmc module for a bigger 64Gb one. Opening the case was easy! After rebooting from a know working SD card I simply tried to run
/usr/local/sbin/pine_install_to_emmc.sh xenial-mate I get 'You should boot from SD card' ,which I did....
Any help how to continue would be appreciated. Do I need to partition the drive first? I the emmc drive broken? (I checked it is firmly inserted...)
Erik
|
|
|
|
| OMV base on Debian jessie Root Problem |
|
Posted by: ayamy - 08-24-2017, 01:52 AM - Forum: Debian
- Replies (3)
|
 |
Hi,
I have downloaded and installed on my pine64+ the distro OMV_3_0_71_Pine64_3.10.105 based on Armbian_5.27_Pine64_Debian_jessie_default_3.10.105 .
After an update from OMV 3.0.71 to OMV 3.0.78 at the reboot the console shows "no interface available" so OMV hasn't an ip adress for the web ui. So i'm stuck in the consolle that is asking username and password.
The problem is that I don't know the username and the password for Debian_jessie and without logging in debian jessie as root I can't fix the problem with my ethernet ... could you help me ?
thanks
|
|
|
|
Rock64 usb2.0 Power Control Floating GPIO Tutorial Files & Notes |
|
Posted by: MarkHaysHarris777 - 08-24-2017, 12:10 AM - Forum: Rock64 Hardware and Accessories
- Replies (6)
|
 |
Greetings,
The purpose of this post is to document the rock64_usb_power_service.sh script , provide instructions and notes for its correct use (tutorial) , and document the installation of the script as a systemd automated service.
The problem that we are solving is that the usb2.0 power regulators are controlled by a hardware line (EN) (gpio2) which is in a floating state when the Rock64 boots. This often results in the usb2.0 ports losing power ( at least momentarily ).
The solution to this problem is to create an executable script , as well an automated service (systemd) , that will export the gpio2 line to user space ( setting it low & turning ON the power regulators ) while also allowing the system admin (user) to control the gpio2 for power cycling devices plugged into the usb2.0 port. This approach to fixing this problem is a win-win in that the usb2.0 power remains on permanently after boot-up for those who want it, and it also allows advanced users the flexibility of being able to power cycle their usb2.0 ports as designed by the Rock64 engineers ( very handy in many use cases ).
The user has complete freedom and control because the script may be run manually (as root) or it may be installed as an automated systemd service. The following tutorial will provide the codes first , then I will discuss how to use them , and finally how to install the usb_gpio_on.service in systemd. After each code section I will give instructions for 1) where to place the script, 2) what permissions to give it, 3) what ownership to give it, and finally how to run it.
The Scripts
Before beginning switch into root operating mode ( and permissions ) with sudo -i (important).
rock64_usb_power_service.sh
Code: #!/bin/bash
# rock64_usb_power_service.sh
#
# Mark H. Harris
# v0.1b
#
#
PWRON=0
PWROFF=1
GP=2
GPOUT="out"
GPPATH="/sys/class/gpio"
GPVALUE="value"
GPMODE="direction"
## remove gpio if already exported
if [ -d $GPPATH/gpio$GP ]
then
echo $GP > $GPPATH/unexport
sleep 2
fi
# export the gpio, and set if ready
echo $GP > $GPPATH/export
sleep 2
if [ -e $GPPATH/gpio$GP/$GPMODE ]
then
echo $GPOUT > $GPPATH/gpio$GP/$GPMODE
sleep 2
echo $PWRON > $GPPATH/gpio$GP/$GPVALUE
fi
The rock64_usb_power_service.sh is the executable script. Place this script in /usr/local/sbin/
Check the spelling very carefully; or things will not work when it comes time to automate the service.
set the ownership, group, and permissions:
cd /usr/local/sbin/
chown root rock64_usb_power_service.sh
chgrp root rock64_usb_power_service.sh
chmod 0754 rock64_usb_power_service.sh
To run the script manually :
sudo -i
/usr/local/sbin/rock64_usb_power_service.sh
To power cycle the usb2.0 port's 5v :
sudo -i
echo 1 > /sys/class/gpio/gpio2/value
echo 0 > /sys/class/gpio/gpio2/value
The above script exports the (EN) gpio2 mux line to user space using the sysfs method, sets the direction "out", and sets the value 0 ( pulling the line low turns ON the usb2.0 power regulators ).
usb_gpio_on.service
Code: [Unit]
Description=set the gpio2 EN line low for usb2.0 power regulator ON
[Service]
ExecStart=/usr/local/sbin/rock64_usb_power_service.sh
Type=oneshot
[Install]
WantedBy=default.target
The above usb_gpio_on.service script is called a systemd "service unit file". This file describes the service to systemd so that systemd knows how to find the executable, and further knows that the service executable only needs to be run once. Again, it is very critical that all the spelling is precise; miss spellings will result is chaos; and of course no fix.
Place this file usb_gpio_on.service in directory /etc/systemd/system/
Set the ownership, group, and permissions for this file :
cd /etc/systemd/system/
chown root usb_gpio_on.service
chgrp root usb_gpio_on.service
chmod 0664 usb_gpio_on.service
Inform systemd that a change has been made to the unit files on disk (very critical)
systemctl daemon-reload
systemctl enable usb_gpio_on.service
Congratulations! At this point the service has successfully run; the gpio2 has been exported, and the gpio2 pin has been pulled low turning on the usb2.0 power regulators.
We are now done; all that is left to do is to reboot your Rock64 !
You can check that this worked after reboot by looking in /sys/class/gpio/ for an export directory called gpio2!
At this point you may go about life on your Rock64 normally -- the usb2.0 power should not drop because the EN line is no longer floating; however, if you like you still have the option to power cycle the usb2.0 ports using the method I detailed above.
Caveat Emptor
If you want to try this tutorial follow two simple rules , or do so at your own risk. Either wait for me to post on the forum that this has been tested multiple times and is 1) safe, and 2) works; or become a beta tester ( a guinea pig ). That means that you contact me on irc and tell me you're testing and that you will be gracious to provide feedback ( including loss of time and|or hair ) so that I know who is using it so far, and whether I need to fix anything or make anything clearer.
Every effort has been made to ensure that this is accurate and free from defects; but we all know the best laid plans of mice and of programmers.
We may at some future point fix this in the dts|dtb file and place in a future image; the problem with that is that users who wish to have the advanced ability to power cycle the usb ports as designed would have to hack the dts first! So we're going to try this and see how it goes.
This method and the script which have been provided have been tested according to this tutorial on my Rock64 production test board, and everything works on my board as described in this tutorial; again, if I need to make anything more clear, or if something is broken ( I certainly hope not ) please let me know asap , preferably on irc.
Thanks much !
|
|
|
|
|