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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,706
» Latest member: Hazel Stone
» Forum threads: 16,261
» Forum posts: 117,197

Full Statistics

Latest Threads
irradium (based on crux l...
Forum: Linux on RockPro64
Last Post: mara
9 hours ago
» Replies: 10
» Views: 16,841
PinePhone, PinePhone Pro,...
Forum: PinePhone Hardware
Last Post: j_s
Yesterday, 11:33 AM
» Replies: 4
» Views: 193
Quill OS for the PineNote
Forum: PineNote Software
Last Post: JhonSmith
Yesterday, 01:42 AM
» Replies: 1
» Views: 92
auto-owning the SD card i...
Forum: PineTab Software
Last Post: biketool
11-25-2025, 04:16 AM
» Replies: 1
» Views: 395
Old Danctnix server in Pa...
Forum: PineTab Software
Last Post: Stunnned
11-24-2025, 01:27 PM
» Replies: 2
» Views: 212
Volumio (PINE A64-LTS / S...
Forum: Linux on PINE A64-LTS / SOPINE
Last Post: kapqa
11-23-2025, 02:02 AM
» Replies: 8
» Views: 15,551
Reinstallation Arch Linux...
Forum: General Discussion on PineTab
Last Post: rth
11-22-2025, 08:25 PM
» Replies: 1
» Views: 244
Recycling pinephone as ho...
Forum: PinePhone Hardware
Last Post: biketool
11-20-2025, 09:04 AM
» Replies: 5
» Views: 649
Light Sensor / Proximity ...
Forum: General Discussion on PinePhone
Last Post: WhiteHexagon
11-18-2025, 03:07 PM
» Replies: 1
» Views: 232
How to stop it turning on
Forum: General Discussion on PinePhone
Last Post: biketool
11-18-2025, 02:30 PM
» Replies: 3
» Views: 507

 
  The strategic advantages of Phosh for mobile Linux
Posted by: amosbatto - 08-05-2020, 11:04 PM - Forum: General Discussion on PinePhone - Replies (9)

[Image: renderTimingPixel.png]My thoughts on why Phosh is important:
https://amosbbatto.wordpress.com/2020/08...-of-phosh/


Feedback is welcome.


  Emacs on Manjaro Kde
Posted by: pine76 - 08-05-2020, 08:51 PM - Forum: Linux on Pinebook Pro - Replies (11)

Hi there,

New Pinebook Pro user here; very excited to use this as my productivity laptop.

I am having problems in setting up software to math my workflow. Emacs is one important program for me; I have installed it from the repositories. However, launching emacs is giving me troubles. First, it refused to launch, I made a workaround by adjusting the gtk theme. However, emacs is refusing to display icons in its toolbar.

I was wondering if there is any way to display icons and make emacs work normally? If so, any help would be appreciated.


  Activating a sim card
Posted by: bcnaz - 08-05-2020, 06:23 PM - Forum: Mobian on PinePhone - Replies (4)

I tried to activate a new un-activated AT&T PrePaid sim card in my Brave Heart phone with Mobian running on it without succeeding.
 The phone does see the new AT&T sim,  but it will not dial out to the 611 number to activate.

The B.H. phone does function with a sim card I removed from my Android phone.
 But,
         The Android sim card does have a problem with data,
> an AT&T tech had previously suggested replacing that sim card when I called AT&T to fix the Android phone.

So I was hoping I could just activate a new sim card in my BH Pine phone directly.

Apparently Android has an app that makes it possible to activate the sim card.?

Is there an app I can put on Debian to activate a new sim card, or should I activate the card in the old Android phone, then move it to my Pine phone..?

Thanks,  B.C.


  Custom Boot Logo
Posted by: lupyuen - 08-05-2020, 05:31 PM - Forum: Development Discussion on PineTime - No Replies

The new MCUBoot Bootloader (that we're loading into new PineTimes) shows a Boot Logo that's stored in External SPI Flash upon startup.

To change the Boot Logo, just prepare a 240x240 PNG file in 24-bit colour (or use a sample logo from the link below), and follow these steps...

PineTime Logo Loader

This calls GitHub Actions to create a custom firmware image (Mynewt) that writes the Boot Logo into External SPI Flash. The Boot Logo format (RGB565) is explained here...


MCUBoot Bootloader for PineTime Smart Watch


.jpg   pinetime-safe-small.jpg (Size: 381.96 KB / Downloads: 678)


  Bringing up a fresh Debian install (or trying)
Posted by: foresto - 08-05-2020, 03:51 PM - Forum: Linux on RockPro64 - Replies (2)

The challenge before me is to bring up a mainline Debian install on the RockPro64. It will be a headless server with at least one SATA disk. I know there will be snags, but I'm hoping to work through them and maybe turn to you folks for help. I'll document what I discover along the way so others can use this as a guide.

Problem 1: (deferred) NAS case defects.

The first unit I received was warped or otherwise misshapen. (Maybe damaged in shipping?) The board's screw holes did not quite align with the case's standoffs, and the ports did not quite align with the case holes, so I could not mount the board.

The second unit I received has other problems, but at least the mounting holes are properly aligned, so I can move forward with the project. I will revisit the remaining case defects later.

Problem 2: (solved) Debian installer image.

The netboot installer daily build has been failing for the past week, so the link to the latest installer is (at the time of this writing) broken.

I browsed for earlier builds and used the last one that succeeded. Following the readme in that directory, I decompressed and concatenated the rockpro64 part with the generic part to form a complete SD card image, and wrote it to a microsd card using dd. This allowed me to proceed, but only briefly, as a related problem came up later. (See problem 4.)

Solution:  It turns out the installer daily builds stop working whenever the Debian archive's kernel is upgraded, because the kernel module ABI no longer matches the version used by the installer. Submit a report to the debian-installer maintainers and/or contact them on irc to see if someone has time to update the installer, and then wait for a new daily build.

Problem 3: (workaround exists) Serial console.

Connecting my USB-to-TTL UART/serial adapter to pins 6, 8, and 10 of the rockpro64 (described here) established communication, but the serial line settings were wrong. At 115200 bps, booting yielded a little garbage, then several lines of readable text, then a lot more garbage. At 1500000 bps, only garbage was received for the entire boot sequence.

I found this report that the boot firmware runs the console at 115200 while the Debian installer runs at 1500000, which was helpful information, but it didn't explain why 1500000 bps didn't work at all.

It turns out the 1.5 Mbps speed is too fast for the CP2102 chip that is used on many USB-to-serial adapters, including mine. (My adapter was advertised as supporting that speed, but I suppose that was false advertising.)

Workaround: Reconfigure the installer. I mounted the SD card on my computer, opened the extlinux/extlinux.conf file in a text editor, and added this text on its own line at the end of the default boot stanza (the section that starts with "label l0"): 

Code:
append console=ttyS2,115200n8
I was then able to open my serial port at 115200 bps, power up the rockpro64, see the text from the entire boot sequence (except for a little garbage before and after the initial bootloader messages), and operate the Debian installer.

I will order a new adapter, and I expect it will clear up most of the serial port garbage, but this won't change the fact that the 1500000 bps setting used by the bootloader and installer is too fast for about half the adapters on the market, meaning that the debian installer image will by default not work for many people. Either the speed should be reduced to 115200, or the instructions should be amended to explain the problem and the workaround. I may end up submitting a bug report to Debian about this.

Problem 4: (solved) No kernel modules found.

After configuring the language and network settings, and selecting a Debian mirror, the installer failed with a "No kernel modules found" message. The same error appeared with every mirror I chose. It also appeared with every available installer image.

Just like the daily build problem that I mentioned earlier, this happens whenever the Debian archive's kernel is upgraded, because the module ABI no longer matches the version used by the installer. When it happens, all of the installer daily builds are broken, so it is pointless to try the others.

Solution: Report the problem and wait for the maintainers to update the installer to use the new kernel.

Problem 5: (workaround exists) The installer does not install a bootloader.

The installer finished setting up the /boot and / (root) filesystems, but it did not even try to install a bootloader of any kind. That's a critical problem for an operating system installer. I suppose that part of supporting the RockPro64 simply isn't done yet.

The debian u-boot-rockchip package looks like it is meant to solve this issue, but I haven't tried it yet because it doesn't yet recognize the RockPro64 v2.1 board revision. I'll probably revisit it later.

Workaround: Until I learn how to build and install the required u-boot components on a fresh SD card, I can boot from the card that contains the debian installer image. Here's what I did to make it work:
  • Tell the installer to create the /boot partition on the same SD card that contains the installer image. This becomes partition 2 on that card.
  • Set the bootable flag on partition 2.
  • After installing, create the boot/dtbs/rockchip directory on partition 2.
  • Copy boot/dtbs/rockchip/rk3399-rockpro64-v2.dtb from partition 1 (the installer partition) to the same directory on partition 2.
  • Create the /extlinux directory on partition 2.
  • Create an extlinux/extlinux.conf file in that directory on parition 2, with this content: (The value after root= must match what the installer says in its "You will need to boot manually" message.)
Code:
menu title Debian
prompt 0
timeout 50

label l0
menu label Debian
linux /vmlinuz
append root=<your-root-device>
initrd /initrd.img
fdt /dtbs/rockchip/rk3399-rockpro64-v2.dtb

With those modifications to the installer SD card, the RockPro64 will boot from it, launch the kernel and initrd from the new partition, and bring up the installed OS. I believe this works because the installer SD card image already contains the u-boot components needed for boot, in the correct disk locations preceding the first partition.

It has been suggested that a custom script in /etc/kernel/postinst.d/ could copy the latest .dtb file to the /boot directory (which lives on SD card partition 2) whenever a new kernel is installed. I like this idea, but have not tried it yet.

Problem 6: (workaround exists) Debian stable/buster does not support the RockPro64.

I want to take advantage of Debian's stable release, but only the unstable suite supports this board for now, so the installer uses packages from unstable and configures the installed system to do the same.

Workaround: Preseed the installer to use the current stable suite (named buster) instead of its defaults, and then use apt pinning to configure the installed system to use the unstable suite for kernel packages.
  • Mount the installer SD card on a computer, and create a file called preseed.cfg in the root directory, containing this text:
Code:
#_preseed_V1
d-i mirror/suite string buster
  • Tell the installer about the preseed configuration by appending preseed/file=/media/preseed.cfg to the  kernel command line. Together with the argument we added earlier for the serial console speed, the append line should look like this:
Code:
append preseed/file=/media/preseed.cfg console=ttyS2,115200n8
  • Boot from the installer SD card and proceed through the installation process, but stop at the "Finish the installation" screen. Do not press the <Continue> button yet.
  • Switch away from the installer's virtual screen to a terminal screen, by pressing Control+A and then 2.
  • Start a shell in the newly installed filesystem (which is already mounted at /target) by running these commands:
Code:
mount -t proc none /target/proc
mount --rbind /sys /target/sys
chroot /target bash
  • Add these lines to the end of /etc/apt/sources.list:
Code:
# A few components from unstable are needed to boot the RockPro64
deb http://deb.debian.org/debian/ unstable main
deb-src http://deb.debian.org/debian/ unstable main
  • Create a file called /etc/apt/preferences.d/unstable-rockpro64.pref containing this text:
Code:
Explanation: Avoid most packages from unstable
Package: *
Pin: release a=unstable
Pin-Priority: 1

Explanation: RockPro64 kernel packages from unstable
Package: linux-image-* linux-headers-*
Pin: release a=unstable
Pin-Priority: 500
  • Upgrade the newly installed system's kernel packages to the latest available from the unstable suite, using these commands:
Code:
apt update
apt upgrade
  • Exit the installed filesystem environment:
Code:
exit
  • Return to the installer's virtual screen, by pressing Control+A and then 1.
  • Finally, press the <Continue> button on the "Finish the installation" screen.

With those changes in place, the installed system is entirely Debian stable, except for the kernel. OS updates will work just like a vanilla Debian stable system.

Problem 7: (solved) Network services try to start before the network is up, and fail.

Any network daemons configured to listen only on the eth0 interface may sometimes fail to start, because systemd attempts to launch them without waiting for eth0 to initialize. (The problem may not show up with default network daemon configurations, since those often listen on all interfaces and therefore do not require one to be ready before the daemon starts.)

This happens because Debian's installer sets up eth0 as a hotplug interface, leaving it disconnected from systemd network targets and dependency chains.

Solution: Edit /etc/network/interfaces and add this line just above the "allow-hotplug eth0" line:
Code:
auto eth0

I may add more here when I continue the project.


  wifi comes and goes and prompts for password often
Posted by: motox6 - 08-05-2020, 01:55 PM - Forum: Mobian on PinePhone - Replies (2)

I have about 6 wifi Access Points that all use the same ESSID.

Even when sitting in the same place, the pinephone running mobian current as of today, will randomly popup the password dialog for the wifi password.

Most of the time it will not successfully reconnect and will ask for the password 3 or 4 times until it apparently gives up or I give up.

Turning the wifi adapter off and back on quickly generally does not help.

Turning the wifi adapter off for about 15 seconds and turning it back on does tend to produce a working wifi session.

The behavior happens every few hours.

Any reason the wifi can't remember the password itself?  And perhaps retry / off-on cycle the wifi on its own?

The Access Point I would think it would be using is an ASUS RAX75.  (nighthawk).


  apt-get update hanging twice (work-around included)
Posted by: motox6 - 08-05-2020, 01:43 PM - Forum: Mobian on PinePhone - Replies (11)

Sorry, I accidentally deleted the content of my prior post, because I did not understand how the reply editor worked.
So I deleted the entire post as what was left was not helpful.  (Was there a way to go back to prior versions?)

So here is synopsis without all the nice details I had in the prior post. Sad

I was doing a fresh install of Mobian to the EMMC.
I did an apt update and apt upgrade

and it got stuck at 7% for 20 hours.  Reading elsewhere I found people running into a similar issue and identify a system control restart command related to fstrim as the problem.  I killed the systemctl restart process related to fstrim

The process continued a little bit and exited.

I did another

apt upgrade

It got to 88% and got stuck again.

I killed another systemctl restart process this time related to something else.

This time the apt upgrade continued to completion.

I re-ran
apt upgrade
and
dpkg --configure -a

just to make sure everything was okay, and everything was okay.

I think in both hang cases there was also a process related to something about dialog.

Perhaps the upgrade was asking something that did not appear on the screen?

I ran the entire process once on the phone via Kings Cross and once via SSH using a screen session.


  What is jumpdrive?
Posted by: natasha - 08-05-2020, 01:41 PM - Forum: General Discussion on PinePhone - Replies (25)

I saw:
https://github.com/dreemurrs-embedded/Jumpdrive

Ok, it looks like you can flash jumpdrive into a microSD and boot the phone. Does it also say this is a tool collection?

Then I read people use USB to boot with jumpdrive without using a microSD card?

Is this like a small OS just to fix things?

Can anyone with patience, explain a little bit? Not too technical, please

thanks


  broken emmc
Posted by: nieral - 08-05-2020, 11:57 AM - Forum: PinePhone Hardware - Replies (7)

Hey!

My Pinephone BH won't boot anymore. I have PM Os installed on the emmc, the sd card as an additional drive. It worked very well with the stable branch. Three days later it was dead. When pressing the power button it stucks with the 'led test' and makes a short 'click' (which seems to be specific to pm os) and restarts over and over again. that it quits at the "led test" reminds on the error bieps from bios, when something essential did go wrong. So: no boot screen, nothing.

What I already tried:
- completely charge the battery
- flash the sd card with jumpdrive:
The phone booted into the jumpdrive modus, but: lsblk did not show the emmc nor the sd card (which is strange). I can unplug the usb cable while it runs jumpdrive, so the battery works well.

I think the emmc is dead. Can I replace it??

I appreciate any idea.


Ralf


  touch screen API resources?
Posted by: Rich_Morin - 08-05-2020, 09:23 AM - Forum: Mobian on PinePhone - Replies (7)

The PinePhone touch screen controller GT917S datasheet contains a lot of useful-looking information, but (of course) it says nothing about the API(s) that can be used to access the controller. I'm interested in supporting braille input on a PinePhone, probably on Mobian and/or pmOS. Can anyone point me to some relevant resources?