| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 29,687
» Latest member: ouglastam
» Forum threads: 16,256
» Forum posts: 117,177
Full Statistics
|
| Latest Threads |
Battery Life on Latest In...
Forum: General
Last Post: ouglastam
Today, 08:47 AM
» Replies: 1
» Views: 1,897
|
Difficulty with openSUSE ...
Forum: PinePhone Software
Last Post: danm1988
Today, 07:49 AM
» Replies: 0
» Views: 41
|
Second screen mirroring
Forum: General
Last Post: andrekyler
Today, 01:06 AM
» Replies: 3
» Views: 1,876
|
7 inch touch panel patche...
Forum: Linux on PINE A64-LTS / SOPINE
Last Post: mkjmkj
Today, 12:57 AM
» Replies: 0
» Views: 45
|
Pine64 LTS v1.2 not turni...
Forum: P64-LTS / SOPINE Hardware, Accessories and POT
Last Post: in_sympathy
Yesterday, 08:09 PM
» Replies: 0
» Views: 38
|
I think you can try compi...
Forum: General Discussion on Pinebook Pro
Last Post: wangyukunshan
11-14-2025, 05:27 AM
» Replies: 1
» Views: 261
|
Are you interested in a n...
Forum: General Discussion on Pinebook Pro
Last Post: WEF
11-12-2025, 02:33 PM
» Replies: 2
» Views: 3,029
|
Recycling pinephone as ho...
Forum: PinePhone Hardware
Last Post: biketool
11-12-2025, 11:18 AM
» Replies: 3
» Views: 430
|
BT PAN - we need iptables...
Forum: Mobian on PinePhone
Last Post: biketool
11-12-2025, 07:29 AM
» Replies: 0
» Views: 122
|
black cursos background
Forum: General Discussion on PineTab
Last Post: polrus
11-11-2025, 04:07 PM
» Replies: 0
» Views: 116
|
|
|
| U-Boot env save error |
|
Posted by: r4ms - 10-03-2025, 06:40 AM - Forum: PineNote Hardware
- Replies (1)
|
 |
There seems to be a hard coded mistake in uboot. "env save" uses parition 4 (Logo) instead of 3:
=> env save
Saving Environment to FAT...
** Unable to use mmc 0:4 for saveenv **
I haven't found any way to change the partition. Is there any?
|
|
|
|
| Bonk to boot |
|
Posted by: biketool - 10-01-2025, 02:17 AM - Forum: General Discussion on Pinebook Pro
- Replies (2)
|
 |
So my year and a half old PPp has started to have an issue where it wont come out of sleep, this has happened before it is related to the power/wake button not showing up in the system a reboot or two has always fixed this issue.
Now though the regular from fully off boot activators (USB power or power button) but a good smack on my hand and the boot process starts. I have to guess there is a loose ribbon cable somewhere, any ideas what the issue is?
|
|
|
|
| Does PinePhone support long-term battery health optimization? |
|
Posted by: roseblack - 09-30-2025, 09:09 PM - Forum: General Discussion on PinePhone
- Replies (5)
|
 |
Hi everyone,
I’m curious if the PinePhone has (or will have) any built-in feature or community tool to help optimize long-term battery health, like charging limits (e.g., stopping at 80%) or adaptive charging. I know some laptops and modern smartphones have this option, and it really helps prolong battery life.
Has anyone experimented with something similar on the PinePhone, or is it more a matter of manually managing charging?
|
|
|
|
USB Gadget on PineTab2 |
|
Posted by: Tronar - 09-26-2025, 12:42 PM - Forum: PineTab Software
- No Replies
|
 |
Dear Piners,
has anybody of you tried to get a USB gadget working for the second USB interface on the PineTab2? This is a fully functional OTG interface that you can use for much more than only charging. Anyway, as long as you don't connect an OTG cable, it will reside in device mode, so it should be possible to program USB gadgets following such instructions:
https://openwrt.org/docs/guide-user/hardware/usb_gadget
https://trac.gateworks.com/wiki/linux/OTG
https://developer.toradex.com/linux-bsp/...ode-linux/
https://www.kernel.org/doc/Documentation...nfigfs.txt
https://github.com/torvalds/linux/blob/m...usb-gadget
Based on these (and some other web sites) I contrived a script for a mass storage gadget. First I prepared an 8 GB big container file using these commands:
Code: dd if=/dev/zero of=/stick.img bs=1M count=8192
fdisk /stick.img
# Inside fdisk I prepared the image using the following keys:
# o x s 32 h 128 c 4096 r n p 1 \n \n t c p w
losetup -o 1M /dev/loop0 /stick.img
mkfs.vfat /dev/loop0
mount -t vfat /dev/loop0 /mnt
echo hallo >/mnt/test.txt
umount /mnt
losetup -d /dev/loop0
The following script intends to simulate a USB stick on the device mode USB port:
Code: #!/bin/sh
cd /sys/kernel/config/usb_gadget
mkdir g1
sleep 1
cd g1
echo 0x1d6b >idVendor # reserved for the Linux Foundation
echo 0x0104 >idProduct # multifunction is sufficient
#echo 0x0615 > bcdDevice This is preset for some reason.
echo 0x0200 > bcdUSB # USB 2.0
# Is the following correct for a flash stick?
echo 0x08 > bDeviceClass
echo 0x06 > bDeviceSubClass
echo 0x80 > bDeviceProtocol
#echo 0x62 > bDeviceProtocol
echo 0x40 >bMaxPacketSize0
echo high-speed >max_speed
# The following strings can be chosen freely; for the serial number I take the
# actual SN of my PineTab2.
cd strings
mkdir 0x409 && cd 0x409
sleep 1
cat /proc/device-tree/serial-number >serialnumber
echo Pine64 >manufacturer
echo PineTab2\ v2.0 >product
# Alternatively one could also use some of the information in
# /sys/bus/i2c/drivers/husb311/0-004e to fill in the above.
cd ../../configs
mkdir c.1 && cd c.1
sleep 1
mkdir strings/0x409
sleep 1
echo "Memory stick emulation based on image file" >strings/0x409/configuration
# German:
mkdir strings/0x407
sleep 1
echo "Speicherstick-Emulation mit einer Image-Datei" >strings/0x407/configuration
echo 0xc0 >bmAttributes # self-powered
echo 2 >MaxPower # probably irrelevant when self-powered
cd ../../functions
mkdir mass_storage.usb0
sleep 1
cd mass_storage.usb0
echo 1 >stall
cd lun.0
echo /stick.img >file
echo 0 >removable
echo 1 >nofua
cd ../../..
ln -s functions/mass_storage.usb0 configs/c.1
sleep 1
# and now make it active:
ls /sys/class/udc >UDC
# to unbind it: echo "" >UDC; sleep 1; cd ..; rm -rf g1
# in emergency: echo 1 >functions/mass_storage.usb0/lun.0/forced_eject
Several of these settings are not absolutely necessary, also the sleep statements; they reflect only my desperate attempts to get it working. When I execute it, not having anything connected to the USB port yet, I see these lines in my dmesg:
Code: Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
dwc3 fcc00000.usb: failed to enable ep0out
Why "removable"? Why "no medium"? What exactly "failed" w.r.t. endpoint 0?
Then I connect my PineTab2 to a PC's USB-2 port, which results in four more lines in the dmesg:
Code: typec-extcon typec-extcon: extcon changed sdp=1 cdp=0 dcp=0 usb=0 usb_host=0 dp=0
typec-extcon typec-extcon: extcon changed sdp=1 cdp=0 dcp=0 usb=1 usb_host=0 dp=0
typec-extcon typec-extcon: extcon changed sdp=1 cdp=0 dcp=0 usb=0 usb_host=0 dp=0
typec-extcon typec-extcon: extcon changed sdp=1 cdp=0 dcp=0 usb=1 usb_host=0 dp=0
The dmesg of the PC is full of errors then:
Code: usb 4-10: new high-speed USB device number 5 using xhci_hcd
usb 4-10: device descriptor read/64, error -71
usb 4-10: device descriptor read/64, error -71
usb 4-10: new high-speed USB device number 6 using xhci_hcd
usb 4-10: device descriptor read/64, error -71
usb 4-10: device descriptor read/64, error -71
usb usb4-port10: attempt power cycle
usb 4-10: new high-speed USB device number 7 using xhci_hcd
usb 4-10: Device not responding to setup address.
usb 4-10: Device not responding to setup address.
usb 4-10: device not accepting address 7, error -71
usb 4-10: new high-speed USB device number 8 using xhci_hcd
usb 4-10: Device not responding to setup address.
usb 4-10: Device not responding to setup address.
usb 4-10: device not accepting address 8, error -71
usb usb4-port10: unable to enumerate USB device
Obviously the gadget isn't functional. When I unplug the cable again, the PC's dmesg shows nothing, the PineTab2's just the ususal extcon stuff:
Code: typec-extcon typec-extcon: extcon changed sdp=1 cdp=0 dcp=0 usb=0 usb_host=0 dp=0
typec-extcon typec-extcon: extcon changed sdp=0 cdp=0 dcp=0 usb=0 usb_host=0 dp=0
The worst thing I observe when I try to switch off the gadget again using echo "" >UDC; it seems to be some kind of crash:
Code: dwc3 fcc00000.usb: wait for SETUP phase timed out
dwc3 fcc00000.usb: failed to set STALL on ep0out
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5177 at dwc3_ep0_out_start+0xc8/0xe0
Modules linked in: aes_ce_ccm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device zram aes_ce_blk aes_ce_cipher polyval_ce polyval_generic ghash_ce bes2600(C) sm4 sha2_ce sha256_arm64 sha1_ce snd_soc_simple_amplifier mac80211 st_accel_i2c st_sensors_i2c libarc4 ov5648 st_accel st_sensors v4l2_fwnode dw9714 snd_soc_simple_card v4l2_async cfg80211 snd_soc_simple_card_utils phy_rockchip_inno_csidphy snd_soc_rockchip_i2s_tdm snd_soc_rk817 rfkill snd_soc_hdmi_codec snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer hantro_vpu snd v4l2_vp9 v4l2_jpeg v4l2_h264 rockchip_rga videobuf2_dma_contig soundcore v4l2_mem2mem videobuf2_dma_sg videobuf2_memops videobuf2_v4l2 videodev videobuf2_common mc joydev mousedev sch_fq_codel crypto_user loop fuse nfnetlink ip_tables x_tables ipv6 crc_ccitt dw_hdmi_cec panfrost dw_hdmi_i2s_audio drm_shmem_helper gpu_sched hid_multitouch
CPU: 0 UID: 0 PID: 5177 Comm: bash Tainted: G C 6.15.2-danctnix2-1-pinetab2 #1 PREEMPT(full) 2075623fc0cc7105688baa1cc4ca060147351f05
[ 3357.684396] Tainted: [C]=CRAP
[ 3357.684413] Hardware name: Pine64 PineTab2 v2.0 (DT)
[ 3357.684434] pstate: 604000c9 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 3357.684464] pc : dwc3_ep0_out_start+0xc8/0xe0
[ 3357.684504] lr : dwc3_ep0_out_start+0x4c/0xe0
[ 3357.684535] sp : ffff80008778ba70
[ 3357.684552] x29: ffff80008778ba70 x28: ffff00010088b900 x27: 0000000000000000
[ 3357.684605] x26: 0000000000000000 x25: 0000000000000000 x24: ffff00013c924840
[ 3357.684655] x23: ffff0001039f0810 x22: 0000000000000000 x21: ffff000100b76990
[ 3357.684705] x20: ffff000100b76880 x19: ffff00010434f200 x18: ffff8000842730b8
[ 3357.684755] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000006
[ 3357.684804] x14: 0000000000000000 x13: ffffffffffff3f08 x12: ffff800081cd3d70
[ 3357.684854] x11: ffffffffffff3f04 x10: ffff800081cd3dc8 x9 : ffffffffffff3f00
[ 3357.684905] x8 : ffffffffffff3f0c x7 : ffff80008435d000 x6 : 0000000000000000
[ 3357.684954] x5 : ffff800081c4f000 x4 : 0000000000000000 x3 : 0000000000000000
[ 3357.685003] x2 : 0000000000000000 x1 : ffff00010088b900 x0 : 00000000ffffff92
[ 3357.685054] Call trace:
[ 3357.685073] dwc3_ep0_out_start+0xc8/0xe0 (P)
[ 3357.685118] dwc3_ep0_stall_and_restart+0xb4/0xe0
[ 3357.685158] dwc3_ep0_reset_state+0x68/0xa0
[ 3357.685194] dwc3_gadget_soft_disconnect+0x13c/0x1d0
[ 3357.685231] dwc3_gadget_pullup+0x8c/0x138
[ 3357.685267] usb_gadget_disconnect_locked+0x4c/0x170
[ 3357.685303] gadget_unbind_driver+0x54/0x158
[ 3357.685334] device_remove+0x54/0x90
[ 3357.685371] device_release_driver_internal+0x1d4/0x240
[ 3357.685407] driver_detach+0x54/0xc0
[ 3357.685440] bus_remove_driver+0x78/0x108
[ 3357.685472] driver_unregister+0x38/0x78
[ 3357.685506] usb_gadget_unregister_driver+0x28/0x50
[ 3357.685538] gadget_dev_desc_UDC_store+0xc0/0x150
[ 3357.685580] configfs_write_iter+0xcc/0x130
[ 3357.685617] vfs_write+0x24c/0x388
[ 3357.685658] ksys_write+0x78/0x120
[ 3357.685695] __arm64_sys_write+0x24/0x40
[ 3357.685734] invoke_syscall+0x6c/0x100
[ 3357.685777] el0_svc_common.constprop.0+0x48/0xf0
[ 3357.685817] do_el0_svc+0x24/0x38
[ 3357.685846] el0_svc+0x2c/0x138
[ 3357.685883] el0t_64_sync_handler+0x10c/0x140
[ 3357.685916] el0t_64_sync+0x160/0x168
[ 3357.685951] ---[ end trace 0000000000000000 ]---
Also, I can't delete the directory tree of my gadget in the configfs: not permitted.
Further observations:
* After this disaster I can plug a USB stick into this very socket using an OTG cable. It works, switches to host mode and mounts the stick.
* Also, charging the PineTab2 will work as always.
* The message "dwc3 fcc00000.usb: failed to enable ep0out" always shows up, also when I try other configurations, e.g. the script here near the bottom of the page (8814.usbconfigfs.sh.txt for an acm gadget):
https://e2e.ti.com/support/processors-gr...-am62x_dts
My questions:
a) Has anybody got a working USB gadget of any flavour (mass_storage, acm, ecm, ...) on the PineTab2? Please show me your script or tell me my mistake.
b) Could this be a broken kernel driver? Should I report an issue to danctnix?
c) Can you reproduce the problem on your own PineTab2 using my script?
Sorry for this terribly long write-up.
Any ideas?
|
|
|
|
| Problem joining Discord Pine64 |
|
Posted by: dhdurgee - 09-26-2025, 11:50 AM - Forum: General
- Replies (1)
|
 |
I have an account on Discord and access several areas there, so I anticipated no problems accessing the Pine64 area. I was mistaken.
I am told that I must complete a few more steps first, but when I click on the button to do so a popup window opens that has a submit button that cannot be pressed and the beginning of a list of rules that cannot be scrolled to see them all.
I had intended to embed or attach the screenshots of this, but either I don't know how to do so or that is unavailable in this forum.
I see no way to contact anyone to correct this problem, so I am posting here in hopes someone can help me get this sorted out.
Thank you in advance for your assistance,
Dave
|
|
|
|
| Migrating to PineTime from a Fitbit |
|
Posted by: dhdurgee - 09-25-2025, 12:41 PM - Forum: General Discussion on PineTime
- No Replies
|
 |
I am currently using an antique Fitbit Flex 2 taped together and have ordered the Pinetime dev kit to replace it as my health/fitness monitor.
I currently keep an eye on my Fitbit using the https://dashboard.exercise.quest/ website on my laptop. I used to sync my Fitbit using their USB dongle until they dropped support. This forced me to get a junk phone to use with their Android app to sync it.
The final straw leading to my migration was Google insisting I had to migrate my Fitbit into their account. That along with the decrepit state of my device led to my decision to migrate.
I intend to take them up on their offer to download my Fitbit historic data once I have the Pinetime configured to take over its function. I would hope to be able to integrate this into new data from the Pinetime at some point.
The wiki indicates there are multiple ways to manage and work with my new Pinetime. I have a laptop running Linux mint 22 and an Android 16 phone. I would prefer to be able to monitor things from my laptop as I currently do and a data display similar to the webpage noted above would be great. As the Pinetime has many more features than the Flex 2 I also see reasons to connect with my phone.
Can the Pinetime display incoming caller-ID information from the phone? Can the Pinetime be used to accept or decline a call? These functions would be great to have as I could then leave my phone in my pocket and deal with a call. If the Pinetime could also be used to originate a call that would also be handy.
The heart monitoring functions of the Pinetime are new to me as the Flex 2 doesn't have that. In addition to heart rate can it detect heart rhythm issues? It would be good to be alerted to these in time to seek medical attention before they become acute. If it can detect a myocardial infarction to initiate an emergency call great.
Does the Pinetime have a fall detection feature? As I am a 72 year old a bad fall can be life threatening and it would be great if an emergency call could be initiated in case of a fall leaving me non-responsive.
As a newcomer to Pinetime I would appreciate any recommendations for which tools are best suited for me. I ordered the dev kit as it offers more possible options, but that might have been an overreach on my part. I have been working with Linux for a number of years, but I am mostly an end user as opposed to a developer.
Thank you in advance for your guidance to a new Pinetime user.
Dave
|
|
|
|
| Pinecil v2 not reaching 20v … |
|
Posted by: Escape75 - 09-23-2025, 09:25 PM - Forum: General Discussion on Pinecil
- No Replies
|
 |
I just bought a Pinecil v2 and updated to firmware 2.23
and it also checks out to be official via the website check.
I bought the Amazon Basics 65W One-Port GaN USB-C PD 3.0
charger which is on the pine64.org list of 20v chargers but it only
goss up to 15v. When I play with the settings I can get it to reach
20v only when PD Mode is set to normal. So the default mode
„no dynamic” as well as „safe mode” only go to 15 volts …
Is that normal?
|
|
|
|
| Wifi 5Ghz Issue |
|
Posted by: nicolaos - 09-17-2025, 06:36 PM - Forum: PineNote Software
- No Replies
|
 |
New Pinenote user here, running on Debian Trixie. I've read the recent blog post explaining the issues with Wifi using 5Ghz, and indeed I can't connect my Pinenote to my home network on that frequency.
The blog post explains 2 workarounds, the first of which involves changing your network to only use specific bands. I'm not particularly interested in that option as it won't work on any other networks when I'm away from home and I don't want to jeopardize performance to my other devices.
What's not clear to me is if there's any action I can take to try out the second workaround listed there. It sounds like a more robust way to solve the issue, but the blog post doesn't seem to contain any instructions or links to instructions for how to actually do it.
|
|
|
|
| the self built bl602_boot2 is very different from pre-built one |
|
Posted by: pinecheng - 09-16-2025, 09:58 AM - Forum: Getting Started
- Replies (2)
|
 |
Anyone is still playing PineCone? I am trying to build blsp_boot2 myself using the bl_iot_sdk tree.
However, the binary that I built is very different from the prebuilt image bl_iot_sdk/tools/flash_tool/bl602/builtin_imgs/blsp_boot2.elf
Here is how I did:
$ cd bl_iot_sdk
$ export BL60X_SDK_PATH=$(pwd)
$ export CONFIG_CHIP_NAME=BL602
$ cd bl_iot_sdk/customer_app/bl602_boot2
$make
The generated binary bl602_boot2.elf contains the main function like a dummy.
230002aa <main>:
230002aa: 8082 ret
230002ac: 0001 nop
230002ae: 0101 addi sp,sp,0
The pre-built blsp_boot2.elf seems to be a valid one, which matches the bl602_boot2 code.
Can anyone point out what I have missed here? thanks so much in advance.
|
|
|
|
|