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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 30,120
» Latest member: benstoke
» Forum threads: 16,364
» Forum posts: 117,538

Full Statistics

Latest Threads
Pinephone software
Forum: General Discussion on PinePhone
Last Post: Zebulon Walton
Yesterday, 02:21 PM
» Replies: 3
» Views: 297
Real women, real desire, ...
Forum: General
Last Post: Spaker
Yesterday, 01:04 AM
» Replies: 0
» Views: 55
Weatherproof case build
Forum: Enclosures
Last Post: ltorsini
07-07-2026, 07:01 PM
» Replies: 12
» Views: 38,536
Pinephone + Keyboard for ...
Forum: PinePhone Hardware
Last Post: PinePhoneProUser
07-07-2026, 04:47 PM
» Replies: 16
» Views: 11,111
pinecil v2 dosent negotia...
Forum: General Discussion on Pinecil
Last Post: moses
07-07-2026, 07:28 AM
» Replies: 0
» Views: 113
Rock64 v2.0 u-boot SPI is...
Forum: General Discussion on ROCK64
Last Post: ju0n
07-05-2026, 11:02 AM
» Replies: 0
» Views: 146
Libby - ebook reader that...
Forum: PineNote Software
Last Post: kiwigoldfish
07-04-2026, 04:41 PM
» Replies: 6
» Views: 4,113
PineNote v1.2 - Charges N...
Forum: General Discussion on Pinebook Pro
Last Post: ttsp
07-02-2026, 02:52 AM
» Replies: 0
» Views: 358
How to change the PineNot...
Forum: General Discussion on PineNote
Last Post: cameronharring
07-01-2026, 12:22 PM
» Replies: 0
» Views: 202
PinePhone Pro disable Vol...
Forum: PinePhone Pro Hardware
Last Post: FR_IV
07-01-2026, 10:53 AM
» Replies: 1
» Views: 1,652

 
  Cant boot into home-rolled Arch Linux image
Posted by: craftkiller - 02-16-2020, 08:02 PM - Forum: Linux on Pinebook Pro - Replies (4)

As a learning experience, I've been trying to roll my own Arch Linux image. I've been cobbling together bits and pieces from the following locations while adding some bits of my own:

  1. anarsoul's build scripts
  2. Blutkoete's manual setup
  3. hku2's manual setup
  4. enospc's mostly upstream uboot
Below is a copy of my image building script. My issue is, after writing the image to my SD card and rebooting, my pinebook pro boots into debian on the eMMC. I figure I must be missing some important component to the boot process on ARM but I have no idea what that is. Since the pinebook boots into debian without showing me any sort of error message, I don't know how to debug this. Does anyone see what I am missing, or does anyone know how to get some more info out of the pinebook during boot?


Code:
#!/usr/bin/env bash
set -x
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Manual Steps
##############
#
# Install dirmngr
#
# trust arch linux arm key
# gpg --recv-keys 68B3537F39A313B3E574D06777193F152BDBE6A6

WORKSPACE=$(mktemp -d -t "arch-pinebook-pro-build-XXXXXXX")
cleanup() {
   if [ -d "$MOUNT" ]; then
       umount -R "$MOUNT" || true
   fi

   if [ -z "$LOOP_DEVICE" ]; then
       losetup -d "$LOOP_DEVICE"
   fi

if [ -d "$WORKSPACE" ]; then
rm -rf "$WORKSPACE"
fi
}
trap cleanup EXIT

DOWNLOADS="$WORKSPACE/downloads"
mkdir -p "$DOWNLOADS"
ROOT="$WORKSPACE/root"
mkdir -p "$ROOT"
MOUNT="$WORKSPACE/mount"
mkdir -p "$MOUNT"
IMAGE_FILE="$WORKSPACE/archlinux.img"
IMAGE_SIZE="$(( 1024*1024*1024*6 ))" # bytes

archroot() {
   CHROOT="$1"
   shift 1
   CMD="$@"
   mount -o bind /tmp "$CHROOT/tmp"
   mount -o bind /dev "$CHROOT/dev"
   chroot "$CHROOT" mount -t proc proc /proc
   chroot "$CHROOT" mount -t sysfs sys /sys
   chroot "$CHROOT" "$CMD"
   chroot "$CHROOT" umount /sys
   chroot "$CHROOT" umount /proc
   umount "$CHROOT/dev"
   umount "$CHROOT/tmp"
}

wget -O "$DOWNLOADS/base.tar.gz.sig" http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz.sig
wget -O "$DOWNLOADS/base.tar.gz" http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
gpg --verify "$DOWNLOADS/base.tar.gz.sig" "$DOWNLOADS/base.tar.gz"

# Disk positions (in bytes)
sector_size=512
boot_start=$((1024*1024*20))
boot_size=$((1024*1024*1024*1))
main_start=$((boot_start + boot_size + sector_size))


dd if=/dev/zero of="$IMAGE_FILE" bs=1 count=0 seek=$IMAGE_SIZE

fdisk "$IMAGE_FILE" <<EOF
o
n
p
1
$((boot_start/sector_size))
+$((boot_size/sector_size))
t
c
n
p
2
$((main_start/sector_size))

t
2
83
a
2
w
EOF

LOOP_DEVICE=$(losetup -f)
losetup -P $LOOP_DEVICE $IMAGE_FILE

dd if="$DIR/idbloader.img" of=$LOOP_DEVICE seek=64 conv=notrunc
dd if="$DIR/u-boot.itb" of=$LOOP_DEVICE seek=16384 conv=notrunc

mkfs.vfat -n BOOT -F32 ${LOOP_DEVICE}p1
mkfs.ext4 -L ARCH ${LOOP_DEVICE}p2

mount ${LOOP_DEVICE}p2 "$MOUNT"
mkdir "$MOUNT/boot"
mount ${LOOP_DEVICE}p1 "$MOUNT/boot"

# bsdtar too old on base pinebook install
#bsdtar -xpf "$DOWNLOADS/base.tar.gz" -C "$MOUNT"
tar -xpf "$DOWNLOADS/base.tar.gz" -C "$MOUNT"
# no genfstab on base pinebook install, do in chroot instead
# genfstab -U "$MOUNT" >> "$MOUNT/etc/fstab"
mv "$MOUNT/etc/resolv.conf" "$MOUNT/etc/resolv.conf.bak"
cp /etc/resolv.conf "$MOUNT/etc/resolv.conf"

cat > "$MOUNT/chroot_commands" <<EOF
#!/usr/bin/env bash
set -x
set -euo pipefail
IFS=$'\n\t'

pacman-key --init
pacman-key --populate archlinuxarm
killall -KILL gpg-agent
pacman -Syu --noconfirm
# wget to fetch manjaro packages
# arch-install-scripts for genfstab
pacman -S --noconfirm wget arch-install-scripts


mkdir /manjaro_packages
pushd .
cd /manjaro_packages
wget "http://ftp-nyc.osuosl.org/pub/manjaro-arm/repo/stable/aarch64/core/linux-pinebookpro-5.5.0-3-aarch64.pkg.tar.xz"
wget "http://ftp-nyc.osuosl.org/pub/manjaro-arm/repo/stable/aarch64/core/uboot-pinebookpro-2020.01-4-aarch64.pkg.tar.xz"
wget "http://ftp-nyc.osuosl.org/pub/manjaro-arm/repo/stable/aarch64/community/pinebookpro-post-install-20200203-1-any.pkg.tar.xz"
wget "http://ftp-nyc.osuosl.org/pub/manjaro-arm/repo/stable/aarch64/community/ap6256-firmware-2020.01-1-aarch64.pkg.tar.xz"

pacman -U linux-pinebookpro-5.5.0-3-aarch64.pkg.tar.xz
pacman -U uboot-pinebookpro-2020.01-4-aarch64.pkg.tar.xz
pacman -U pinebookpro-post-install-20200203-1-any.pkg.tar.xz
pacman -U ap6256-firmware-2020.01-1-aarch64.pkg.tar.xz
popd

genfstab -U / >> /etc/fstab

# clean up
#yes | pacman -Scc
EOF
chmod +x "$MOUNT/chroot_commands"
archroot "$MOUNT" "/chroot_commands"
rm "$MOUNT/chroot_commands"
mv "$MOUNT/etc/resolv.conf.bak" "$MOUNT/etc/resolv.conf"

sync
umount -R "$MOUNT"
losetup -d "$LOOP_DEVICE"

cp $IMAGE_FILE "$DIR/archlinux.img"

Its worth noting that when I write the official manjaro image to the SD card, it does boot that successfully.


  can PSCI post info about battery life?
Posted by: blicken - 02-16-2020, 06:26 PM - Forum: UBPorts on PinePhone - No Replies

Im still digging into the interfaces and devices for the pinePhone, much of it is differnt from other systems I have messed with.
I see that acpi isnt a module here, but psci is. I would like to know if I can query psci to get battery charge info.
alternatively, a method for getting battery life info would be helpful.

yes, I see the applet for battery life. where is that source code?


  Pinebook Pro For Sale
Posted by: ghn - 02-16-2020, 04:19 PM - Forum: General Discussion on Pinebook Pro - Replies (1)

I don't have much use for mine. Ready to give this guy a new home. $220+shipping.

See ebay posting. https://www.ebay.com/itm/184173728014


  Web browsing with plasma-mobile
Posted by: Gobelin - 02-16-2020, 02:28 PM - Forum: PostmarketOS on PinePhone - Replies (5)

I run PostmarketOS with plasma-mobile UI.

I have 2 browser installed :
- Firefox
- Angelfish

1- Firefox is running quite well, specially with the customization found here. However, I struggle to find a way to get a virtual keyboard running (the virtual keyboard from the distro do not show up when placing the cursor in a text field.

2- I can't run Angelfish : it launches, but impossible to load a page. I got this error :

Code:
pinephone:~$ angelfish
Using Wayland-EGL
Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.
org.kde.kwindowsystem: Loaded plugin "/usr/lib/qt5/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemKWaylandPlugin.so" for platform "wayland"
file:///usr/lib/qt5/qml/org/kde/kirigami.2/Page.qml:362:9: QML Loader: Binding loop detected for property "active"
Loaded from file: 0 "/home/laurent/.config/angelfish/history.json"
qml: WebView completed.
qml: Settings: QQuickWebEngineSettings(0xaaab03cd3220)
qml: Current WebView is now : 0
Using the 'xdg-shell' shell integration
qml: Using homepage
qml: Loading url: https://start.duckduckgo.com
qrc:/WebView.qml:91: TypeError: Cannot read property 'editFlags' of undefined
qrc:/WebView.qml:96: TypeError: Cannot read property 'editFlags' of undefined
qrc:/WebView.qml:101: TypeError: Cannot read property 'editFlags' of undefined
qrc:/WebView.qml:105: TypeError: Cannot read property 'linkUrl' of undefined
qrc:/WebView.qml:118: TypeError: Cannot read property 'linkUrl' of undefined
../../3rdparty/chromium/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0283
qml:     url: https://start.duckduckgo.com/
../../3rdparty/chromium/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0283
pinephone:~$


Do you know were to report bugs for angelfish ?
Did you manage to use any web browser with touch UI on postmarketOS ?


  3D Printing a Pinephone Back Cover
Posted by: sundog - 02-16-2020, 11:11 AM - Forum: PinePhone Accessories - Replies (32)

Hey, y'all - I decided to download the 3d model of the pinephone's back cover as linked to from the wiki and give it a go through my 3d printer to see what happened.

Of course, I've only got a tiny printer, so I had to print it standing on it's side edge to get it to fit on the print bed.

The print quality wasn't high enough to actually use on my phone (I printed in PLA with 0.2mm layers for these initial attempts, will switch to a more appropriate material eventually) but it came close!

Here's a jumpy timelapse video of the case being printed that I posted to the fediverse last night:
https://toot-lab.reclaim.technology/@djs...5853072932

There are also some pictures in this thread:

https://toot-lab.reclaim.technology/@djs...1702310396

Has anyone gotten a good enough print to use on their phone yet? I'd love to hear about it!


  Setup instructions and SSH hardening
Posted by: supernova - 02-16-2020, 10:21 AM - Forum: UBPorts on PinePhone - Replies (4)

I have started to document my Ubuntu Touch setup process as I learn how this system works.  I have have had the phone about a week now and I am trying to gather information from many different resources into one place for my own reference and also hope this may help others.

Also it is very important to note that Ubuntu Touch comes with an SSH server running by default on your phone.  So I have come up with some instruction on hardening your SSH server setup and scripts to easily enable and disable the service as needed.

Please feel free to share and make comments.  I still have lots of things to work on and add as I get them fully working (cell calls, sms, firewall, trying apps).
Ubuntu Touch setup


  Update on last batch of Bravehearts not yet shipped
Posted by: nimji - 02-16-2020, 10:14 AM - Forum: General Discussion on PinePhone - Replies (16)

With the latest Feb. update post now live, could we receive some news regarding this last batch of Braveheart units that didn't get shipped?

Quick refresher from this thread

01-29-2020, 10:59 PM (This post was last modified: 01-29-2020, 11:02 PM by tllim.)

During Jan 18 when shipping team, including me, wrap up the PinePhone shipment, we discovered there is about 80 units that lacking shipping label. Based on the quantity, shipping team believes that there is one batch (about 80 units) that logistic didn't provide the shipping label info. However, the logistic team already left work for the Chinese New Year, we don't know which batch (within certain date range, not certain country) got affected and can only know when logistic and shipping team back from Chinese New Year (has been extended due to Coronavirus crisis). Based on recent response, I believes the affected batch is the last batch (from January 5 order till sold out). Please noted that this is a not random miss shipment scenario. Once back from the Chinese New New Year/Chronavirus Crisis period and Hong Kong open back the broader, shipping team will immediately ship out this missed batch.

In the February update it's called out that -

Sadly, this isn’t the entire extent of the problem; as I’ve already mentioned, all devices which contain batteries ship from Hong Kong. Earlier this month Hong Kong closed many key crossings to the region from mainland China, including the one which we rely on, and now there is a 2-week long quarantine for anyone arriving from mainland China to Hong Kong. This means that our shipping staff can’t reach the Hong Kong warehouse. 

So, then, what does all this mean in practice? It means that we cannot produce anything this month and, even if we could, there is no way for us to ship any devices with batteries.


Emphasis mine. Since these 80 units are packed with batteries and ready to go do they have a chance at shipping? Or is the shut down + quarantine going to impact these as well moving forward since they are not on mainland China and therefor not considered backlog (like the Feb. update post mentions will still being going out).

Given the nature of the shutdown safety should be the priority, with these units being in a unique situation and not being expressly addressed I wanted to see if we could get some official word one way or another however.


  Your lies cost me time and money
Posted by: hmmmmm - 02-16-2020, 07:16 AM - Forum: General Discussion on PinePhone - Replies (16)

I had to wait an extra week and pay $15 because of the lies on the content declaration.

Why were there lies on the package about it's content and no one was informed about it?

The phone obviously isn't $25 and most definitely isn't a gift.


  where is the source code for the bootstrap OS?
Posted by: blicken - 02-15-2020, 09:15 PM - Forum: PostmarketOS on PinePhone - Replies (2)

Where is the source code for the postmarket OS that ships on the pine phone.
Specifically, I want to look at the hardware test page that comes up for factory testing.


  can I get the hardware addresses of Pine Phones devices?
Posted by: blicken - 02-15-2020, 09:09 PM - Forum: PinePhone Hardware - Replies (2)

can I get the hardware addresses of Pine Phones devices?
I have tried sudo cat /proc/ioports
and some other commands that might work on more standard Ubuntu distros. this isnt a distro specific question, I just want the hardware addresses for the devices such as the motor, rgb LED, gps, acellerometer etc.