| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 29,665
» Latest member: Weston234
» Forum threads: 16,242
» Forum posts: 117,139
Full Statistics
|
| Latest Threads |
Wake up Call
Forum: General Discussion on PinePhone
Last Post: biketool
2 hours ago
» Replies: 4
» Views: 188
|
How to add an homemade ap...
Forum: Mobian on PinePhone
Last Post: JChdeL
Today, 04:13 AM
» Replies: 3
» Views: 283
|
kivy app keeping focus wh...
Forum: Mobian on PinePhone
Last Post: JChdeL
Today, 04:12 AM
» Replies: 0
» Views: 24
|
Optimizing Battery Life o...
Forum: General Discussion on PinePhone
Last Post: earthworm
Today, 03:04 AM
» Replies: 0
» Views: 45
|
Has anyone installed Tris...
Forum: General
Last Post: RandB
Yesterday, 12:08 PM
» Replies: 1
» Views: 2,181
|
Xen hypervisor on Rock64
Forum: Linux on Rock64
Last Post: darkfader
Yesterday, 09:25 AM
» Replies: 6
» Views: 9,686
|
[Article] RISC-V Ox64 BL8...
Forum: General
Last Post: smithjohns
Yesterday, 12:54 AM
» Replies: 3
» Views: 9,468
|
Pinetab2s running DanctNI...
Forum: PineTab Software
Last Post: biketool
11-02-2025, 04:45 AM
» Replies: 0
» Views: 87
|
Open-Source Support for P...
Forum: General Discussion on PineTime
Last Post: euiccc2025
11-01-2025, 05:55 PM
» Replies: 2
» Views: 2,215
|
StarPro64 Irradium (based...
Forum: Getting Started
Last Post: mara
11-01-2025, 04:04 PM
» Replies: 11
» Views: 5,693
|
|
|
QEMU with Alpinelinux |
|
Posted by: Surehand53 - 05-03-2023, 01:41 PM - Forum: General Discussion on Pinebook Pro
- Replies (6)
|
 |
Alpinelinux in QEMU
I have used the introduction from astr0baby and a few other internet sources and came up with a working solution to boot Alpinelinux in QEMU on the Pinebook Pro. The settings are relatively simple and should work with other target ISOs in a similar way. There is no graphics support, yet. The host distro used here is Manjaro. There might be some differences with other distros. Mind you, this describes how to run an arch64 ISO on an arch64 system.
Install Qemu and create a folder to keep all files together:
Code: pacman -S qemu-base
pacman -S qemu-img
mkdir qemu
Copy the ISO of Alpinelinux to your qemu folder. I have used the Standard ISO for the aarch64 architecture.
Then you need to download a BIOS
Code: wget https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd
Last thing to prepare is a virtual harddrive to install Alpinelinux
Code: qemu-img create -f qcow2 alpine.qcow2 8G
This makes a 8G virtual hard disk in a file named alpine.qcow2, the qcow2 format being a format which appears to be 8G to the guest (VM), but only actually writes to the host any sectors which were written to by the guest in practice.
Install Alpinelinux
With all in place you can now start qemu from the .iso file and then install Alpinelinux to your virtual harddrive
Code: qemu-system-aarch64 \
-machine virt -cpu cortex-a57 \
-m 1024M -nographic \
-bios QEMU_EFI.fd \
-drive format=raw,readonly=on,file=alpine-standard-3.17.3-aarch64.iso \
-drive file=alpine.qcow2,media=disk,if=virtio
A small explanation. The first line is qemu for the aarch64 architecture. The second line describes the cpu. Then memory of 1024M is assigned. 512M is also fine. No graphics is supported. Next is the bios and then the two drives. The ISO file and the virtual harddrive.
Later I show how to use kvm and smp. They could also be used here, but this keeps is simple.
Once Alpinelinux has booted login like this:
user: root
passwd: <leave empty>
Once logged in you can straight away start the install process.
Please see the Alpine Docu and Alpine Wiki for details of the installation process.
You will be asked a bunch of questions, most of them will be default. Things to notice:
- maybe set your timezone
- you will be asked which drive you want to use: vda
- what kind of installation you want: sys
Run Alpinelinux
After the system is installed successfully, you can poweroff. To restart the system you don't need the ISO file anymore. The command after installation is:
Code: qemu-system-aarch64 \
-machine virt -cpu cortex-a57 \
-m 1024M -nographic \
-bios QEMU_EFI.fd \
-drive file=alpine.qcow2,media=disk,if=virtio
SMP
If you want qemu to use more than one cpu add the [backcolor=#f6f8fa]-smp 2[/backcolor] switch. This gives two cpus, more is possible.
KVM
For Kvm to work you either have to add your user in Manjaro to the kvm group, or run qemu with sudo.
Also:
- add -accel kvm
- you can switch [backcolor=#f6f8fa]-cpu[/backcolor] to host
If you use KVM there appears to be a bug that sometimes creates this error message:
Quote:qemu-system-aarch64: kvm_init_vcpu: kvm_arch_init_vcpu failed (0): Invalid argument
Just repeat the start command until it works.
Code: qemu-system-aarch64 \
-accel kvm -machine virt -cpu host -smp 2 \
-m 1024M -nographic \
-bios QEMU_EFI.fd \
-drive file=alpine.qcow2,media=disk,if=virtio
Edit See comment from jpalus below for a better way to call qemu with kvm.
That's it. I am sure there is still much to improve, but it works.
References
https://drewdevault.com/2018/09/10/Getti...-qemu.html
|
|
|
|
| PinePhone app development |
|
Posted by: WhiteHexagon - 05-03-2023, 08:48 AM - Forum: PinePhone Software
- Replies (14)
|
 |
okay, so my new PinePhone arrived, yay! and after a tricky challenge to get past the user registration screen, I am now ready to do some app development. I have previous experience with iOS and Android, and currently playing around with Zig. However I am new to Linux development, and from my brief bit of research I can see GUI options using SDL or GTK... Do we currently have a 'getting started' as an App developer type resource? maybe a template very basic GUI App? responding to orientation events, life cycle events etc, or is someone able to give me some pointers please? Something low level like single header C libs linking into my Zig would be ideal. i.e. I have no interest in giant frameworks with dependency hell. Alternative approach would be something like a unikernal template with a framebuffer starting point? I am open to suggestions
|
|
|
|
| Jabber with chatty |
|
Posted by: user641 - 05-03-2023, 07:54 AM - Forum: Mobian on PinePhone
- Replies (2)
|
 |
Hello, I've been using jabber with chatty, I like it's simple interface. But I have the problem that omemo encryption works not with all contacts and when the phone goes into ibernation encrypted messages are not unencrypted after unlocking the phone. Is there a way around?
|
|
|
|
| Getting all keys working on pine phone keyboard-case |
|
Posted by: undata - 05-03-2023, 07:21 AM - Forum: PinePhone Accessories
- Replies (5)
|
 |
Does anyone have a definite, exact, way to get the keyboard working for characters such as '|' which are on the front bevel of the function keys? Please.
There were various posts and threads I followed, which loaded the so-called "userland" driver, which I built, and which I know installed, since it disabled any functioning from the pine phone keyboard.
Some (or maybe all) of these posts come from people who may be smarter than myself. But can we have an exact , EXACT, set of steps? It's just surreal that we have instructions making crucial changes to the boot sequence etc., which also include steps such as "To save changes and close Nano, type CTRL-X, Y, and Enter."
I mean really, they are giving somewhat vague instructions about how to create daemons and drivers, and assuming that a person performing those would need exact keystrokes for how to save a file using nano???? Wow.
|
|
|
|
UART connection when booting? |
|
Posted by: saper - 05-02-2023, 08:21 AM - Forum: PinePhone Pro Hardware
- No Replies
|
 |
I have connected the headphone-to-UART adapter to the PinePhone Pro, flipped the privacy switch #6 down and started the phone.
To my surprise, the only nessages I see are some sellected messages from the Linux kernel:
Code: [ 1.065868] OF: graph: no port node found in /i2c@ff3d0000/typec-portc@22
[ 4.575898] pinephone-keyboard 5-0015: error -ENXIO: Failed to read device ID
[ 4.592797] gpio gpiochip4: (gpio4): gpiochip_lock_as_irq: tried to flag a GPIO set as output for IRQ
[ 4.593652] gpio gpiochip4: (gpio4): unable to lock HW IRQ 27 for IRQ
[ 4.594346] genirq: Failed to request resources for stk3310_event (irq 100) on irqchip rockchip_gpio_irq
[ 4.595374] stk3310 3-0048: request irq 100 failed
[ 4.685972] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 4.839273] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 4.847959] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jan 4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e
Manjaro Linux 5.18.0-2-MANJARO-ARM (ttyS2)
manjaro-arm login:
It seem that the "UART" facility is connected to
GPIO4_C3/UART2C_RX_u
GPIO4_C4/UART2C_TX_u
I'd expect to get the primary UART getting Boot ROM and bootloader messages. Any (hope fully easy) way to get those signals out?
Edit: How to get bootloader messages: Use 115200 bps speed on the UART port to see bootloader messages. 1500000 bps are needed later for the kernel.
Code: connected
U-Boot TPL 2021.10 (Oct 04 2021 - 15:09:26)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...
U-Boot SPL 2021.10 (Oct 04 2021 - 15:09:26 +0000)
Trying to boot from SPI
NOTICE: BL31: v2.6(release):
NOTICE: BL31: Built : 00:00:00, Jan 1 1980
Tow-Boot 2021.10 (Oct 04 2021 - 15:09:26 +0000)004 [variant: spi]
SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 PinePhonePro
DRAM: 3.9 GiB
PMIC: RK8180 (on=0x80, off=0x00)
MMC: mmc@fe310000: 3, mmc@fe320000: 1, mmc@fe330000: 0
Loading Environment from SPIFlash... SF: Detected gd25lq128e with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Model: Pine64 PinePhonePro
Net: No ethernet found.
starting USB...
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3a0000: USB OHCI 1.0
Bus usb@fe3c0000: USB EHCI 1.00
Bus usb@fe3e0000: USB OHCI 1.0
scanning bus usb@fe380000 for devices... 1 USB Device(s) found
scanning bus usb@fe3a0000 for devices... 1 USB Device(s) found
scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found
scanning bus usb@fe3e0000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Please press [ESCAPE] or [CTRL+C] to enter the boot menu.
off
off
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
1513 bytes read in 14 ms (105.5 KiB/s)
## Executing script at 00500000
gpio: pin 105 (gpio 105) value is 1
gpio: pin 154 (gpio 154) value is 1
20785160 bytes read in 913 ms (21.7 MiB/s)
gpio: pin 105 (gpio 105) value is 0
89899 bytes read in 36 ms (2.4 MiB/s)
7656782 bytes read in 347 ms (21 MiB/s)
gpio: pin 157 (gpio 157) value is 1
Moving Image from 0x2080000 to 0x2200000, end=3640000
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Ramdisk to f47a4000, end f4ef154e ... OK
Loading Device Tree to 00000000f478b000, end 00000000f47a3f2a ... OK
Starting kernel ...
¯ÎÜV.ÿYQøéðå³uÎAqO³uÎS¸þ»·¹¹xeª%²é»q»Íλގ<Uz´Ȋõ٦åíÙñj½íùý
Manjaro Linux 5.18.0-2-MANJARO-ARM (ttyS2)
manjaro-arm login:
i wonder if BOOTROM prints anything to that serial port?
|
|
|
|
| Cannot call at several mobile phones |
|
Posted by: Gon - 05-02-2023, 02:16 AM - Forum: General Discussion on PinePhone
- Replies (3)
|
 |
hi all,
Some weeks ago it suddenly came an issue on my PinePhone with calls. When I made a call, it rang the first tune, but later it hung up, simply it stopped calling. I use Mobian OS on it.
I've been searching for any sollution , but I can't find any. I've tried installing several OS, like PostmarketOS phosh, and Manjaro Plasma Mobile, even Postmarket Plasma Mobile. And on all of them it keeps the same issue. I've noticed that when I call on some mobile phones (always the same), it only rings the first tune and hangs up, but if I call on another mobile phones, it simply runs and makes the call ok. Calling to the landline it works fine too.
It is really strange, doesn't it? Should be a problem on the PinePhone itself?
|
|
|
|
| Thinking about purchasing product need more information |
|
Posted by: southcoast - 05-01-2023, 10:53 PM - Forum: General Discussion on Pinebook Pro
- Replies (7)
|
 |
So I Used to be really into Linux, Programming, Networking and basically anything to do with computers especially when I was trying to go to school for a degree in Computer Networking. Well long story short I ended up having to quit school but I at least was able to get a certificate so it wasn't all a waste and then I ended up having to go to work full time and it seemed like my interest and my hobby in computers fell to the wayside which I feel is a shame since I really enjoyed programming computers and being able to do things on Linux and even share Linux with others as a free alternative to windows that was better and didn't have all the bull crap involved.
Right now I got a part time job at the community college and just got a certificate in Electrical Technology and am extremely close to getting my associates degree. After I finish my associates degree I plan on taking the core programming classes and getting a certificate and associates degree in this since all my general education is already going to be done it will only take me 7 classes.
The one cool thing with my Electrical Technology certificate is I was able to get into Electronics and I plan to continue taking classes in this aswell. We learned to solder stuff and I did have a raspberry pi I was able to start being able to do stuff with it till I ended up frying it and haven't replaced it yet but that is a whole different story.
My question to you is will this laptop allow me to run basic networking tests, collect packets, and perhaps even be able to do a little bit of programming in C. Also will I be able to install different Linux operating system and play around with this stuff? I am kind of hoping that this is kind of a buffed up version of a rasberry pi, I would buy a system 76 however it is just out of my price range at the time. Is this a good starter laptop for linux for a poor college student who wants to learn about computers, networking, linux, and programming in C? Should I but the PRO version aswell or will the regular laptop suffice for the little projects that I want to do? I really would like to install slackware and ubuntu and perhaps FREEBSD just to mess around, I would also like to analyze packets using wireshark or whatever newer program they are using, I also would like to create some programs in C and C++ and perhaps perl... Is this going to be possible. I also would like to be able to browse the internet for information and be able to read articles and books on it pertaining to computers and computer networking.
This laptop will not be used for anything fun IE videos, games, etc so that is not going to be a problem, it is strictly a hobby/project computer which I hope to use to learn and get better at computers again.
|
|
|
|
| Arch Linux Arm DanctNIX complete setup |
|
Posted by: mikehenson - 05-01-2023, 08:14 PM - Forum: PinePhone Pro Software
- Replies (3)
|
 |
I have created multiple videos on seting up a PinePhone Pro with DanctNIX Arch Linux Arm.
EDIT: adding Original PinePhone
PinePhone - Flash DanctNIX Arch with Phosh
https://www.youtube.com/watch?v=XNF8zuIE...99&index=8
00:00 Intro
00:20 Insert SD card
01:00 Download jumpdrive
02:00 unzip jumpdrive
03:00 umount SD card
04:10 flash jumpdrive to SD card
05:50 remove SD from computer
06:30 Download Arch Linux
06:45 Turn off the phone
07:30 unzip Arch Linux
08:00 install Jumpdrive SD into phone
09:00 plug phone into computer
09:10 turn on the phone
09:45 umount the emmc
11:15 flash Arch Linux to emmc
12:45 turn off the phone
13:45 remove SD card
14:15 turn on the phone
15:30 Password 123456
PinePhone Pro (1of5) - Flash DanctNIX Arch with Phosh
https://www.youtube.com/watch?v=FBGVUq3D...99&index=3
00:00 Intro
00:20 Download image
01:05 uncompressed image
02:20 Turn on phone
03:30 unmount phone
04:25 dd the image
07:10 Reboot the phone
08:40 DONE!
PinePhone OR PinePhone Pro (2of5) - Phosh - Setup - Updates - Packages
https://www.youtube.com/watch?v=-nbUXABJ...99&index=4
00:00 Intro
00:25 enable ssh
02:38 Change password
03:45 remove "show all apps"
04:18 Screen Scaling
05:45 Update Arch
10:30 Remove unused packages
11:05 Mount Network drive
12:45 Packages
13:05 Install gedit
13:30 Install pcmanfm
15:40 Custom Packages
17:45 Install wayvnc-git
20:20 Install aspell aspell-en
20:40 Configure gedit (spell checker)
22:15 Install gnome-screenshot
23:15 Configure pcmanfm
28:00 Change desktop Icon
PinePhone OR PinePhone Pro (3of5) - Phosh - Setup - Syncthing - Squeekboard - Online Accounts
https://www.youtube.com/watch?v=esOT5PhC...99&index=5
00:00 install Syncthing
03:00 Start syncthing
03:55 Add network computer
04:48 Share the Downloads folder
06:10 add a syncthing desktop icon
10:30 G o o g l e account
12:30 Set key ring password
14:15 calendar sync
14:40 email sync
15:00 Local contacts and calendar sync with syncthing
16:00 Should have just restarted the phone...
19:00 install evolution to trouble shoot.
20:50 just restart the phone
21:30 update the squeekboard layout
PinePhone OR PinePhone Pro (4of5) - Phosh - Setup - Biktorgj - osmin - brave
https://www.youtube.com/watch?v=QgFtFzPh...99&index=6
00:00 Intro
00:10 Log into phone
00:28 install gnome-firmware
01:00 run gnome-firmware
01:00 run gnome-firmware
03:20 Fail, Run again
04:20 Downgrade again
05:55 Biktorgj is loaded
06:30 verify the ADSP version
08:00 ... Thinking
08:05 DanctNIX tweaks app
08:10 Power
09:05 Set a background image
11:45 install wrong app...
13:55 install phosh-mobile-settings
14:40 phosh-mobile-settings
15:45 set the calendar on lock screen
17:15 Looking for power profile to sync calendars...
22:30 PinePhone verse PinePhone Pro Power
24:30 phosh-ticket-box set the folder to look in
26:15 Restart phone to see new lock screen
28:00 install osmin - Navigation app
29:40 running osmin
31:00 Try to copy already downloaded maps...
32:30 install sayonara-player
32:45 run sayonara-player
38:15 running osmin again with maps
41:25 install brave - browser
42:30 run brave browser
PinePhone OR PinePhone Pro (5of5) - Phosh - Setup - Chatty - SIM Card - SMS - MMS - Bible
https://www.youtube.com/watch?v=i10sj2WK...99&index=7
00:00 ssh
01:20 Copy Chatty files to phone
02:30 All conversations are on Chatty
03:00 Pull SIM card out of OG PinePhone
04:15 Pull apart PinePhone Pro
05:50 Service???
07:00 It Works!!!
07:40 APN settings
09:30 4G data works
09:55 Test Chatty SMS
10:30 Test 4G data
11:45 APN again???
12:50 3rd time is the charm!
13:30 SMS setup EDIT: MMS setup
15:00 Test MMS
16:00 MMS work!
16:20 bible_gui (Bible App)
18:45 run bible_gui
19:20 Download bible translations
23:00 Add translation
24:00 "~/share/net.lugsole.bible_gui/translations"
25:30 Play the Bible
26:10 Remove unwanted "desktop" icons
27:30 LEAVE A COMMENT!!!
EDIT:
I have both a PinePhone and PinePhone Pro. Are there any videos you would like to see?
|
|
|
|
| Handwriting recognition app |
|
Posted by: serko43 - 05-01-2023, 04:07 PM - Forum: PineNote Software
- Replies (3)
|
 |
Hey there,
I am a German student at TH-Köln in my last semester and I am working on my final thesis.
My work is about the development of a note app that is able to recognize handwriting. Actually it is important for the project and the next steps to explore how far the state of such an app for the PineNote is. Is there anyone in this community who knows of such a software for the PineNote or a developer currently working on such a project? If there is someone who is developing such an app, it is in my interest to network and share experiences. Tips and experience reports also from general app development for the PineNote are welcome.
For the implementation of this software, I will use the cross-platform framework Qt with C++ as the programming language. I will also be using TensorFlow.
I would be very happy to receive comments and your opinion on the project idea and share your experiences.
Many greetings from cologne
|
|
|
|
|