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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,209
» Latest member: liseyah198
» Forum threads: 16,121
» Forum posts: 116,582

Full Statistics

Latest Threads
Crippling noise from insi...
Forum: General Discussion on Pinecil
Last Post: dreieck
3 hours ago
» Replies: 3
» Views: 2,164
Replacement international...
Forum: General
Last Post: Cadair
11 hours ago
» Replies: 0
» Views: 19
Pinecil v2 issue
Forum: General Discussion on Pinecil
Last Post: autumnharris
Today, 01:35 AM
» Replies: 0
» Views: 16
Calls on ppp
Forum: PinePhone Pro Software
Last Post: chbwzxgk
Yesterday, 06:41 PM
» Replies: 6
» Views: 171
bookworm vs trixie discus...
Forum: Mobian on PinePhone
Last Post: anonymous
Yesterday, 03:28 AM
» Replies: 62
» Views: 16,126
New pinetab2 - can't char...
Forum: General Discussion on PineTab
Last Post: tmhorne
05-13-2025, 12:42 PM
» Replies: 10
» Views: 1,522
Case for the rock64 that ...
Forum: Rock64 Hardware and Accessories
Last Post: tophneal
05-13-2025, 07:32 AM
» Replies: 2
» Views: 1,156
SOQuartz64 4GB CM & Waves...
Forum: Quartz64 Hardware and Accessories
Last Post: Nicholas97
05-13-2025, 02:35 AM
» Replies: 3
» Views: 2,177
Pinephone + Keyboard for ...
Forum: PinePhone Hardware
Last Post: FONJGS55
05-11-2025, 07:51 AM
» Replies: 8
» Views: 1,642
Page turner for PineNote ...
Forum: PineNote Software
Last Post: macmartin
05-09-2025, 09:10 AM
» Replies: 0
» Views: 160

 
  [Article] Star64 JH7110 + NuttX RTOS: RISC-V Privilege Levels and UART Registers
Posted by: lupyuen - 07-18-2023, 05:35 PM - Forum: General - No Replies

We’re in the super-early stage of porting Apache NuttX Real-Time Operating System (RTOS) to the Star64 64-bit RISC-V SBC. (Based on StarFive JH7110 SoC)

In this article we’ll talk about the interesting things that we learnt about RISC-V and Star64 JH7110…

(1) What are RISC-V Privilege Levels
    (And why they make NuttX a little more complicated)

(2) What is NuttX Kernel Mode
    (And how it differs from Flat Mode)

(3) All about JH7110’s UART Registers
    (And how they are different from other 16550 UARTs)

(4) Why (naively) porting NuttX from QEMU to Star64 might become really challenging!
    (Thankfully we have the LiteX Arty-A7 and PolarFire Icicle ports)

https://lupyuen.codeberg.page/articles/privilege.html


  serial cable 2023 thread
Posted by: bsammon - 07-18-2023, 02:54 PM - Forum: General Discussion on Pinebook Pro - Replies (2)

So... is anyone selling a proper (fully compatible) serial console cable for the Pinebook pro ?

My impression from reading older threads is that 3.0V is ideal, 3.3V usually works, and 5.0V (which the Pine64 store was selling as PBP compatible) is unreliable.

Have any stores stepped up to sell proper cables for this?

Does everyone just have to solder their own cables together?

I want to experiment with alternative bootloaders and maybe firmwares, and it sounds like a serial console would be essential for when things inevitably go wrong.


  fwupd eating the cpu
Posted by: user641 - 07-18-2023, 09:39 AM - Forum: PostmarketOS on PinePhone - No Replies

I ran top to see what process are running on background and notice fwupd is contantly eating 25% of the cpu:
4136 1 root R 52056 2% 3 25% /usr/libexec/fwupd/fwupd

How to fix it? My phone running hotter than usual because of it.


  Can't install powersupply
Posted by: user641 - 07-18-2023, 08:09 AM - Forum: PostmarketOS on PinePhone - No Replies

$ sudo apk add powersupply
[sudo] password for user:
ERROR: unable to select packages:
powersupply (no such package):
required by: world[powersupply]


  Pinebook Pro Plus (upgraded Pinebook Pro)
Posted by: acruhl - 07-18-2023, 07:44 AM - Forum: General Discussion on Pinebook Pro - Replies (3)

No, it doesn't exist yet. I'm just pitching an idea.

What if the Pinebook Pro was upgraded to 8 gigs of memory with an upgraded CPU. Maybe something like the Quartz64 spec.

And it was offered in a few colors, maybe adding white and grey to the current black.

Everything else could stay the same. I'm happy with the keyboard, trackpad, peripherals, and monitor.

And it cost maybe $350-$375.

I would buy it.

What other competition exists at that price that is ARM based?

I have no idea what is involved in making a laptop though, so maybe I'm way off base.


  SMS issues
Posted by: SchizoPinePhone225 - 07-18-2023, 02:45 AM - Forum: Arch Linux on PinePhone - Replies (2)

my pinephone can not send sms messages through spacebar but can recieve them and phone calls,
it's running Arch Linux and KDE mobile.

What do I do?
I tried out Ubuntu touch and could send messages with it's built in sms app,
the only problem with that linux disto is I couldn't install packages.

For whatever reason manjaro doesn't boot my on phone anymore just one day decided not to boot and instead get stuck in that annoying boot loop with the vibration going off every 8 seconds.


  Power Consumption on Suspend
Posted by: JudgeFudge - 07-17-2023, 03:00 PM - Forum: Mobian on PinePhone - Replies (8)

Hello there, newbie here!

I have the Pinephone in the 3 GB Version with the Keyboard case, using it as a PDA with Gnome 3 (NOT phosh) as the DE, modem disabled via hardware switch.
Software works great, Performance as expected and battery time in combination with the battery case no problem in active use. However, in suspend, the battery consumption stays unreasonably high, draining battery of phone and case in around 24 hours, thats more than 1 Watt in suspend to RAM.

I've tried around a lot by now, but I've hit a wall here and wanted to ask if there are similar problems and workarounds.

First, the suspend is triggered via systemd, so the /etc/systemd/sleep.conf is used. I've set the SuspendState to mem, drain remains high. The drain is even higher when set to standby or freeze, although not much. Gnome 3 uses systemd for this, I've tested it by setting hibernate settings into the suspendvariables with the expected outcome.

So forward to the logs. Journalctl says

Code:
Jul 10 22:35:46 mobian systemd[1]: Reached target sleep.target - Sleep.
Jul 10 22:35:46 mobian systemd[1]: Starting systemd-suspend.service - System Suspend...
Jul 10 22:35:46 mobian systemd-sleep[7427]: Entering sleep state 'suspend'...
Jul 10 22:35:46 mobian kernel: PM: suspend entry (deep)
Jul 11 01:51:03 mobian kernel: Filesystems sync: 0.115 seconds
Jul 11 01:51:03 mobian kernel: Freezing user space processes
Jul 11 01:51:03 mobian kernel: Freezing user space processes completed (elapsed 0.012 seconds)
Jul 11 01:51:03 mobian kernel: OOM killer disabled.
Jul 11 01:51:03 mobian kernel: Freezing remaining freezable tasks
Jul 11 01:51:03 mobian kernel: Freezing remaining freezable tasks completed (elapsed 0.006 seconds)
Jul 11 01:51:03 mobian kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jul 11 01:51:03 mobian kernel: musb-sunxi 1c19000.usb: sunxi-musb does not have ULPI bus control register
Jul 11 01:51:03 mobian kernel: Disabling non-boot CPUs ...
Jul 11 01:51:03 mobian kernel: psci: CPU1 killed (polled 4 ms)
Jul 11 01:51:03 mobian kernel: psci: CPU2 killed (polled 4 ms)
Jul 11 01:51:03 mobian kernel: psci: CPU3 killed (polled 4 ms)
Jul 11 01:51:03 mobian kernel: Enabling non-boot CPUs ...
Jul 11 01:51:03 mobian kernel: Detected VIPT I-cache on CPU1
Jul 11 01:51:03 mobian kernel: arch_timer: CPU1: Trapping CNTVCT access
Jul 11 01:51:03 mobian kernel: CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
Jul 11 01:51:03 mobian kernel: CPU1 is up
Jul 11 01:51:03 mobian kernel: Detected VIPT I-cache on CPU2
Jul 11 01:51:03 mobian kernel: arch_timer: CPU2: Trapping CNTVCT access
Jul 11 01:51:03 mobian kernel: CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
Jul 11 01:51:03 mobian kernel: CPU2 is up
Jul 11 01:51:03 mobian kernel: Detected VIPT I-cache on CPU3
Jul 11 01:51:03 mobian kernel: arch_timer: CPU3: Trapping CNTVCT access
Jul 11 01:51:03 mobian kernel: CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
Jul 11 01:51:03 mobian kernel: CPU3 is up
Jul 11 01:51:03 mobian kernel: sunxi-rsb 1f03400.rsb: RSB running at 4000000 Hz
Jul 11 01:51:03 mobian kernel: pinephone-keyboard 2-0015: Failed to read scan data: -13
Jul 11 01:51:03 mobian kernel: musb-sunxi 1c19000.usb: sunxi-musb does not have ULPI bus control register
Jul 11 01:51:03 mobian kernel: OOM killer enabled.
Jul 11 01:51:03 mobian kernel: Restarting tasks ... done.
Jul 11 01:51:03 mobian kernel: PM: suspend exit

As can be seen, the suspend entry is deep, so this is done to RAM in theory, this is no problem with falling back to s2idle or anything like that.
The interesting and thing here seems to be the fact that the 
Code:
Freezing user space processes
Is done at wakeup, not at sleep. I am relatively sure that this is the issue, as I've found unrelated issues several years old referring to this as the culprit for high suspend energy consumption on laptops of different kinds. 
https://askubuntu.com/questions/828486/k...pend-tasks
Some were fixed by bios settings, some by ACPI Settings, for what I've seen. Both don't show up in the wiki, so I am asking here for two things:


1. Is this a normal behavior others are experiencing? A suspend that high would drain a Pinephone in about 8 Hours, no usage and no active modem. 

2. Any Idea how to fix this? Is this due to a newer kernel? This is freshly setup, so I dont have a specific fallback right now.



Before settling for Gnome, I've played around with lomiri, but I've uninstalled it. Otherwise the image is pretty clean from a software standpoint (no system installations, just userspace programs like chromium or gedit). All Packages are up to date of course, no external repos were added.

Code:
mobian@mobian:~$ uname -a
Linux mobian 6.1-sunxi64 #1 SMP Mon Jul  3 04:42:56 UTC 2023 aarch64 GNU/Linux
mobian@mobian:~$ cat /etc/debian_version
12.0

If you need more debugging information, don't hesitate to ask. If you think this is the wrong place for those questions I apologize and would be glad to get a hint were I can find some help.


  Share some experience
Posted by: user641 - 07-17-2023, 10:43 AM - Forum: PinePhone Software - Replies (1)

Hello,
I have been using my pinephone for around 2,5 years now. Have tested mobian, arch, pmos and lineage. I like the mobian/debian culture and used it a lot for those reasons, arch is kind of my favorite because it's very snappy and the battery seems to last longer than mobian and pmos. Last week I gave a new try to pmos and looks amazing, I don't remember seing the ram usage and average load the other times I used pmos...it's so amazing, average load around 0.20 when idle...mobian always higher than 1.00, ram usage around 600mb, mobian and arch much more like 1,4GB on average....the only downpoint so far in my experience with pmos is the battery life, it seems to get warmer than arch. Mobian is good and stable(I was using trixie lately) but very hungry on resources and battery disaster.
What are you experiences and thoughts?


  Using optical drives with Pinephone
Posted by: cdforever - 07-17-2023, 05:46 AM - Forum: PinePhone Hardware - Replies (2)

Hello all, I'm curious as to whether anyone has been able to use an optical drive such as a USB DVD drive with a Pinephone or Pinephone Pro?

My use case is - my preferred way to acquire music is to buy a CD. I would like to set up a Pinephone as a one-stop shop for listening and ripping CDs. I have been able to do this before with a Samsung Galaxy S20 5G under Android.

My Pinephone running Postmarket OS recognizes USBdevices and can also run with a Nexdock. It can read flash drives too. If I use an optical drive, including powered variants, it shows under lsusb but not fdisk -l.

Before I go down a complete rabbit hole trying to get this to work, I wanted to ask if anyone had used this setup with any success? Or if it works on a Pinephone Pro I can upgrade. I'm wondering if the hardware supports it but there's something missing at the Linux kernel level, or need certain drivers.

Happy to post logs etc. but mainly wondering if anyone else has made this setup work previously?


  bes2600 driver
Posted by: mshelby - 07-16-2023, 09:59 PM - Forum: PineTab Hardware - Replies (57)

Hoping someone here can aggregate the info on the bes2600 wifi/bluetooth driver in development and offer a step by step set of instructions to at the very least, download the  from gitlab and get it compiled. Currently, as of kernel version 6.4.2 it does not build using 'make.'

There is some info about applying a patch, but the info is presented in such a way that the newbie (who just bought the device and wants to download a driver) could do it.

a note for the Devs: please provide setup and install info of the driver that is free from insider jargon and assumptions. Yes, I know it is a development release tablet, but that doesn't mean that everyone knows how to patch a file (what file?) to get a kernel module to build with make.