| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
Womens In Your City - Ano...
Forum: General
Last Post: Hipocrates
Today, 01:01 AM
» Replies: 0
» Views: 34
|
BT PAN - we need iptables...
Forum: Mobian on PinePhone
Last Post: biketool
Yesterday, 12:57 PM
» Replies: 1
» Views: 448
|
How can I record video on...
Forum: General Discussion on PinePhone
Last Post: baptx
Yesterday, 12:55 PM
» Replies: 23
» Views: 18,352
|
u-boot rk356х (rockchip r...
Forum: Quartz64 Tutorials
Last Post: hamsterbacke
Yesterday, 09:39 AM
» Replies: 18
» Views: 33,989
|
A/V output enable
Forum: Linux on Rock64
Last Post: 8lall0
03-24-2026, 04:45 PM
» Replies: 0
» Views: 52
|
If your USB-C port is fla...
Forum: PinePhone Pro Hardware
Last Post: Zebulon Walton
03-24-2026, 02:25 PM
» Replies: 0
» Views: 68
|
Pinebook problem
Forum: General Discussion on Pinebook Pro
Last Post: RicTor
03-18-2026, 08:58 AM
» Replies: 2
» Views: 4,664
|
Pine a64+ power supply
Forum: General Discussion on PINE A64(+)
Last Post: davidspencer
03-18-2026, 01:02 AM
» Replies: 0
» Views: 157
|
Private / self-hosted "Cl...
Forum: General Discussion on PinePhone
Last Post: cyberb123
03-17-2026, 11:57 AM
» Replies: 8
» Views: 7,198
|
Automatic screen rotation
Forum: PineTab Software
Last Post: Raik
03-17-2026, 01:49 AM
» Replies: 32
» Views: 29,952
|
|
|
| GTK4 on mobile GNU/Linux devices |
|
Posted by: Gamey - 12-21-2020, 06:27 AM - Forum: PinePhone Software
- Replies (1)
|
 |
As you probably know GTK4 was released but it's currently hard to find much information on it specially when it comes to mobile support. Originally I planned to only make a post on fosstodon about this but after thinking for a while I came to the conclusion that it probably deserves a own thread in here. To make it short in this thread I would like to ask for some help gathering information on the current state of GTK4 on the Pinephone and other GNU/Linux devices. I would love some responses from people who are a bit deeper into the topic then me :D
|
|
|
|
| kernel module that supports usb-c hdmi |
|
Posted by: alexandre - 12-21-2020, 04:59 AM - Forum: Linux on Pinebook Pro
- Replies (16)
|
 |
Hi, I currently run a 5.7 kernel on my pinebookpro that supports my usb-c hub, especially its HDMI output. I got it installing archlinuxarm from a repo that was called «simulated-earth» or something like this (thanks to those guys if they ever read me ). But as this repo is dead for a while now, i'm still using this pretty old kernel. I've tried the one provided by Nadia, which is very up-to-date, but cant, unfortunately, make my HDMI output works. I assume this is du to a specific kernel module, but as I am far from being an expert I can just show you the return of lsmod, and ask you for your help if you can identify if there really is an exotic module that should be responsible for this well behavior of this kernel :
rpcsec_gss_krb5 36864 0
snd_usb_audio 266240 2
snd_usbmidi_lib 40960 1 snd_usb_audio
snd_hwdep 20480 1 snd_usb_audio
snd_rawmidi 45056 1 snd_usbmidi_lib
snd_seq_device 20480 1 snd_rawmidi
snd_soc_hdmi_codec 16384 0
cdc_ether 20480 0
usbnet 49152 1 cdc_ether
r8152 86016 0
mii 20480 2 usbnet,r8152
snd_soc_simple_amplifier 16384 1
panfrost 65536 0
gpu_sched 32768 1 panfrost
hci_uart 118784 0
btqca 16384 1 hci_uart
btbcm 24576 1 hci_uart
btintel 32768 1 hci_uart
joydev 32768 0
bluetooth 454656 5 btqca,btintel,hci_uart,btbcm
snd_soc_rockchip_i2s 16384 2
snd_soc_rockchip_pcm 16384 1 snd_soc_rockchip_i2s
rockchip_rga 28672 0
dw_wdt 20480 0
videobuf2_dma_sg 24576 1 rockchip_rga
cw2015_battery 16384 0
ecdh_generic 16384 1 bluetooth
ecc 32768 1 ecdh_generic
rfkill 40960 2 bluetooth
hantro_vpu 90112 0
snd_soc_es8316 40960 1
rockchipdrm 147456 2
dw_mipi_dsi 20480 1 rockchipdrm
dw_hdmi 53248 1 rockchipdrm
analogix_dp 45056 1 rockchipdrm
cec 61440 1 dw_hdmi
rockchip_saradc 16384 0
rc_core 57344 1 cec
drm_kms_helper 241664 4 dw_mipi_dsi,rockchipdrm,dw_hdmi,analogix_dp
rockchip_thermal 24576 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
snd_soc_simple_card 20480 1
snd_soc_simple_card_utils 24576 1 snd_soc_simple_card
panel_simple 81920 0
pwm_bl 16384 0
drm 622592 10 gpu_sched,drm_kms_helper,dw_mipi_dsi,panel_simple,rockchipdrm,dw_hdmi,panfrost,analogix_dp
drm_panel_orientation_quirks 20480 1 drm
gpio_keys 24576 0
hid_multitouch 32768 0
Thanks for any suggestions,
alex
|
|
|
|
| Modem scripts replaced by eg25-manager by apt-get dist-upgrade |
|
Posted by: Zebulon Walton - 12-20-2020, 09:59 PM - Forum: Mobian on PinePhone
- Replies (2)
|
 |
Today I ran apt-get update && apt-get dist-upgrade and noticed the following in the output:
Code: Selecting previously unselected package eg25-manager.
dpkg: considering removing pinephone-modem-scripts in favour of eg25-manager ...
dpkg: yes, will remove pinephone-modem-scripts in favour of eg25-manager
Unpacking eg25-manager (0.1.1-1) ...
...
Setting up eg25-manager (0.1.1-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/eg25-manager.service → /lib/systemd/system/eg25-manager.service.
Is this something that is supposed to happen? After rebooting the phone, modem exhibited the same behavior as before - after about 20-30 seconds a 3G signal is indicated, about 10 or 15 minutes later it switches over to 4G. A test call worked OK.
|
|
|
|
levinboot tutorial |
|
Posted by: clover - 12-20-2020, 09:30 PM - Forum: Pinebook Pro Tutorials
- No Replies
|
 |
Q. Why should I install levinboot instead of a more common bootloader like u-boot?
A. Speed! It's just faster. suspend-to-ram is broken in TF-A for the forseeable future, and us Pinebook Pro users are turning our laptops on and off frequently, so being able to boot significantly faster is much appreciated. I can get from power key press to gdm login in 14 seconds. I would be interested in hearing other peoples times.
Here is my tweet showcasing the fast boot capabilities: https://twitter.com/AlexRob12252696/stat...5974057984
Q. Why shouldn't I install levinboot?
A. Frankly, if you are new to using linux it's not the most friendly software to install, and if you don't have a serial console you can quickly find yourself in a tough situation. But if you're brave and like being on the bleeding edge, you should give it a go.
Q. What's the difference between levinboot and u-boot?
A.
- levinboot uses a compressed payload which needs to include the kernel, dtb, bl31.elf, and initramfs, and immediately boots the kernel, where u-boot seems to find these in the userspace.
- because this payload is pre-compressed before booting, the user must update the payload whenever kernel or initramfs change, while u-boot is more flexible about this.
- levinboot is specifically created for Pinebook Pro and RockPro64, whereas u-boot can be applied to a broader range of devices.
Q. How did you build levinboot?
(btw, if you are confused by any of the below or want more info there is a good readme section in the source code: https://gitlab.com/DeltaGem/levinboot)
A. I cross-compiled on an x86 machine running Ubuntu (pop os), and here are my steps:
install cross-compiler (gcc-aarch64) i used version 10.
Code: sudo apt install -y gcc-aarch64-linux-gnu
clone dependency (arm trusted firmware) no need to build but you will use the headers later
Code: git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git
clone levinboot
Code: git clone https://gitlab.com/DeltaGem/levinboot.git
cd levinboot
setup build variables
Code: CROSS=aarch64-linux-gnu
export CC=$CROSS-gcc
export OBJCOPY=$CROSS-objcopy
export LD=$CROSS-ld
if you want to use emmc, you have the option to enable high-speed emmc mode as a config parameter, but it was not working at the moment, so i left this out.
then I build it with CFLAG -mno-outline-atomics for GCC 10 support
Code: mkdir _build && cd _build
CFLAGS="-O3 -mno-outline-atomics" ../configure.py --payload-{lz4,gzip,zstd,initcpio,sd,emmc,nvme,spi} --with-tf-a-headers /path/to/trusted-firmware-a/include/export
ninja
BOOM! that's it. the file i want is called levinboot-sd.img, and because i want it on the emmc instead, i'll just rename it.
Code: mv levinboot-sd.img levinboot-emmc.img
Q. How did you install levinboot?
A. first i had to make a GPT partition on my emmc. I used a special fdisk tool for GPT called GPT fdisk.
Code: sudo gdisk /dev/mmcblk2
in the partition table scan it does, you should see
GPT: present
if you don't, i think you need to look at the wiki to find out how to add the GPT partition table. this will wipe your data.
the commands are the same as fdisk so i pressed n to add my first partition; I chose this as my payload partition.
i made my first sector be offset by 65536 because this is how much space people leave room at the start for u-boot, and hey, it works for levinboot too
(i wanted levinboot on my emmc too!)
i made my last sector be +60M because the payload is about that big 
levinboot requires the payload to be in a specific type of GPT partition with one of three specific GUIDs, I chose e5ab07a0-8e5e-46f6-9ce8-41a518929b7c
gdisk will let you enter the GUID around this point
next I also created a root partition. i guess if you already have one on the device you don't need to create it. but this should just be any root device and since its not levinboot specific I will leave it out of this tutorial.
press w to save and exit
At this point I am ready to flash my emmc with both the payload and levinboot.
I use two scripts to do this and you should scrutinize and edit the scripts to suit your particular needs before executing them.
- compress and flash payload: https://ironrobin.net/clover/droppy/#/Pi...payload.sh
- flash levinboot: https://ironrobin.net/clover/droppy/#/Pi...vinboot.sh
And that's really it. if you have those scripts adjusted to your situation, it should boot your root partition.
Enjoy! and I hope this sheds some more light on this cool promising bootloader.
|
|
|
|
| Boot from USB 3.0 with hub |
|
Posted by: Turbo - 12-20-2020, 02:24 PM - Forum: Linux on Rock64
- No Replies
|
 |
Hello
As storage is going sparse on my Rock64, I would like to put my bootdrive, an Sata SSD connected over an USB 3.0 to Sata bridge, behind an USB 3.0 hub.
However, as soon as I try to boot with this setup, I get the following error in the U-boot console and the rock64 is trapped in a bootloop.
Code: scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... WARN halted endpoint, queueing URB anyway.
Unexpected XHCI event TRB, skipping... (fcf14530 00000000 13000000 02008401)
"Synchronous Abort" handler, esr 0x96000210
ELR: fef60008
LR: fef60008
x0 : 0000000000000000 x1 : 00000000000003e8
x2 : 0000000000000040 x3 : 000000000000003f
x4 : 00000000fcf14910 x5 : 0000000000000031
x6 : 00000000fef8846c x7 : 000000000000000f
x8 : 00000000fcf02ac0 x9 : 0000000000000008
x10: 00000000fcf02775 x11: 0000000000000008
x12: 00000000ffffffff x13: 00000000000035c8
x14: 00000000fcf049cc x15: 0000000000000008
x16: 0000000000000000 x17: 0000000000000000
x18: 00000000fcf0ce08 x19: 00000000fcf13240
x20: 00000000fcf03240 x21: 0000000000000000
x22: 00000000fcf1dad0 x23: 0000000000000000
x24: 00000000fcf02f00 x25: 0000000080000383
x26: 0000000000000002 x27: 0000000000000001
x28: 00000000fcf02dc0 x29: 00000000fcf02c40
Resetting CPU ...
My current setup, in which USB booting works is the following. I use a rock64 v2, on which I've flashed ayufans Uboot fork, version 2017.09-rockchip-ayufan-1065-g95f6152134 from April 2020. (newest version). Boot device is a sata SSD connected directly to the USB 3.0 port with an USB to Sata Bridge.
Does somebody had maybe similiar problems or know a solution? According to my research, there should be a U-boot module which allows to use USB-hubs (PATCH v2 00/15, see here), however it is not clear for me, if this patch is integrated in ayufans U-boot. Or does somebody know another U-boot fork allowing the usage of USB hubs for boot devices?
I know that this question is a bit strange, and that the setup seems utterly complicated, however I have to stall a bit until the rockpro64, my new dream server board, will be back in stock again
Thank you very much for answer.
Best regards
Turbo
|
|
|
|
| PineTab as ebook reader |
|
Posted by: samiam - 12-20-2020, 12:38 PM - Forum: General Discussion on PineTab
- Replies (2)
|
 |
Could someone give me a very basic summary re what I would need to do to a PineTab to adequately use it as an ebook reader for pdf, epub, etc formats? I'm aware that I would need to identify working combinations of OS and reader sw - I'm interested in what other tasks I would need to complete. Thanks.
|
|
|
|
| Simple Unixy mistakes that will ruin your day |
|
Posted by: KC9UDX - 12-20-2020, 11:35 AM - Forum: General
- Replies (7)
|
 |
Since it's expected that most everyone here is using a Unix or Linux, and there seem to be a lot of users new to the idiom here, I thought it would be nice to have a thread of pitfalls to be aware of. Experienced users have all been down this road many times. If you have one or more to contribute, please do.
I'll start with one I ran into recently. It caused a several-day headache. Firefox was randomly crashing, and the only thing that would remedy it was to kill ypbind, a rather odd situation. This was caused by a simple oversight on my part. In /etc/nsswitch.conf I had the line
Code: hosts: files nis dns
where I should have had
Code: hosts: files dns nis
I've written a pretty extensive web server, but I've never written a web browser, and can only guess why this is relevant. So I won't propose a possible explanation.
|
|
|
|
|