| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 29,725
» Latest member: cuongLe
» Forum threads: 16,271
» Forum posts: 117,236
Full Statistics
|
| Latest Threads |
beep - playing PCM sample...
Forum: General Discussion on PinePhone
Last Post: WhiteHexagon
7 hours ago
» Replies: 0
» Views: 37
|
No telephone call audio, ...
Forum: PinePhone Pro Hardware
Last Post: biketool
Today, 02:22 AM
» Replies: 4
» Views: 135
|
Is Vector3d.shop a legiti...
Forum: General Discussion on Pinecil
Last Post: jamespo
Yesterday, 07:40 AM
» Replies: 0
» Views: 35
|
60fps display updates pos...
Forum: General Discussion on PinePhone
Last Post: WhiteHexagon
12-02-2025, 02:56 PM
» Replies: 0
» Views: 70
|
Password reset via u-boot...
Forum: PineNote Software
Last Post: oliviamillera
12-02-2025, 01:59 AM
» Replies: 7
» Views: 3,362
|
Selling my Pinephone Pro ...
Forum: General Discussion on PinePhone
Last Post: Kevin Kofler
12-01-2025, 10:25 AM
» Replies: 2
» Views: 2,857
|
Window Maker Live for Pin...
Forum: Linux on Pinebook Pro
Last Post: vajak
12-01-2025, 07:14 AM
» Replies: 0
» Views: 90
|
sd card problems
Forum: PinePhone Accessories
Last Post: ottahe
12-01-2025, 06:42 AM
» Replies: 2
» Views: 164
|
Recycling pinephone as ho...
Forum: PinePhone Hardware
Last Post: mdk
12-01-2025, 02:57 AM
» Replies: 6
» Views: 811
|
Battery connector dead
Forum: PinePhone Hardware
Last Post: mdk
12-01-2025, 02:54 AM
» Replies: 4
» Views: 2,492
|
|
|
| Bare metal on Pinephone Pro |
|
Posted by: alain - 08-19-2025, 07:58 AM - Forum: PinePhone Pro Software
- No Replies
|
 |
Hello,
I would like to boot a bare metal program (that just starts and enters in an infinite loop) (asm+c) on my ppp thank to U-Boot, but U-Boot don't boot my program and blinks the multicolor led in red, and then shut down. What's wrong in my code ?
start.S
Code: .global start
start:
msr DAIFSet, #7
bl main
spin: b spin
spl.lds
Code: ENTRY(start)
SECTIONS
{
. = 0x02000000;
. = ALIGN(4);
.text :
{
*(.text)
}
. = ALIGN(4);
.rodata : { *(.rodata*) }
. = ALIGN(4);
.data : { *(.data*) }
. = ALIGN(4);
.got : { *(.got) }
_end = .;
. = ALIGN(8);
__bss_start__ = .;
.bss_start (OVERLAY) : {
KEEP(*(.__bss_start));
__bss_base = .;
}
.bss __bss_base (OVERLAY) : {
*(.bss*)
. = ALIGN(4);
__bss_limit = .;
}
.bss_end __bss_limit (OVERLAY) : {
KEEP(*(.__bss_end));
}
__bss_end__ = .;
}
main.c
Code: /*
*
* Tom Trebisky 12-31-2021
*/
typedef volatile unsigned int vu32;
typedef unsigned int u32;
struct gpio {
vu32 data;
vu32 dir;
u32 _pad0[2];
u32 _pad1[8];
vu32 ie;
vu32 im;
vu32 il;
vu32 ip;
vu32 is;
vu32 ris;
vu32 debounce;
vu32 eoi;
vu32 ext;
u32 _pad2[3];
vu32 sync;
};
#define GPIO0_BASE ((struct gpio *) 0xff720000)
#define GPIO1_BASE ((struct gpio *) 0xff730000)
#define GPIO2_BASE ((struct gpio *) 0xff780000)
#define GPIO3_BASE ((struct gpio *) 0xff788000)
#define GPIO4_BASE ((struct gpio *) 0xff790000)
#define GPIO_BASE GPIO0_BASE
#define LED_BIT (8+3)
#define LED_PIN 24
#define LED_MASK 1<<LED_PIN
void main ( void ) {
volatile int count = 100000000;
while ( count-- )
;
}
Makefile
Code: BOARD = rk3399
CROSS_COMPILE = aarch64-linux-gnu-
# -------------------------------------
OBJS = start.o main.o
TARGET = $(BOARD).bin
# CFLAGS := -g -Wall -Wextra -ffreestanding -fno-builtin -mlittle-endian
CFLAGS := -g -Wall -ffreestanding -fno-builtin -mlittle-endian
CFLAGS += -march=armv8-a+crc
CFLAGS += -mtune=cortex-a53
CFLAGS += -I.
LDFLAGS := -Bstatic \
-Tspl.lds \
-Wl,--start-group \
-Wl,--end-group \
-Wl,--build-id=none \
-nostdlib
CC = $(CROSS_COMPILE)gcc $(CFLAGS)
LD = $(CROSS_COMPILE)gcc $(LDFLAGS)
OBJCOPY = $(CROSS_COMPILE)objcopy
DUMP = $(CROSS_COMPILE)objdump
LOAD = tools/loader -h64
# This gives us dependencies in .d files.
# CFLAGS += -MMD
# This gives us a map file.
# CFLAGS += -Wl,-Map=$(BOARD).map,--cref \
.c.o:
@echo " [CC] $<"
@$(CC) $< -c -o $@
.S.o:
@echo " [CC] $<"
@$(CC) $< -c -o $@
# -------------------------------------
all: install
#all: $(TARGET)
install: $(TARGET)
# cp $(TARGET) /var/lib/tftpboot
$(BOARD).elf: $(OBJS)
@echo " [LD] $(BOARD).elf"
@$(LD) $(OBJS) -o $(BOARD).elf
$(TARGET): $(BOARD).elf
@#echo " [IMG] $(TARGET)
@$(OBJCOPY) -O binary $(BOARD).elf $(TARGET)
dis: $(BOARD).elf
$(DUMP) -d $(BOARD).elf -z >$(BOARD).dis
fetch:
cp ../USB_loader/loader tools
usb: $(TARGET)
$(LOAD) $(TARGET)
sdcard: $(TARGET)
$(LOAD) -o $(TARGET) | dd of=/dev/sdf seek=1 conv=fdatasync
.PHONY: clean
clean:
rm -f *.o
rm -f *.img
rm -f *.elf
rm -f *.bin
rm -f *.map
rm -f *.dis
|
|
|
|
| fixing the ppkb mainboard rather than replacing... |
|
Posted by: Jite - 08-16-2025, 02:20 PM - Forum: PinePhone Pro Accessories
- Replies (2)
|
 |
Dear all,
I was hoping to brain storm the community on how to fix the pinephone keyboard mainboard rather than just replacing it when the charging chip overheats and gets fried as it seems to do every 4-9 months for me.
I must have at least 6-7 mainboards in my possession now (only one of which is working sadly).
I have never soldered before, but would be willing to learn, particularly if the replacement charging chip could be bought for very cheap and it just needed desoldering the old one and soldering on the new one. This would be a good reason to start my soldering journey...
Glad for anyone's tips on this.
BW
|
|
|
|
Pinephone pro stuck while booting |
|
Posted by: Supervisor - 08-16-2025, 11:35 AM - Forum: PinePhone Pro Hardware
- Replies (3)
|
 |
So i have a pinephone pro and i have tried every thing provided here https://forum.pine64.org/showthread.php?tid=18216 and gotten assistanve on discord which still did not help. Ive charged for approximately 10 hours on Maskrom, tried using a sd card, flashed directly to EMMC, attempted to reinstall Towboot, Used a gui tool and dd, and still it will not work. Whenever i turn it on with a working os installed it will flash red then yellow then stay stuck, the screen wont even show anything. If i try without an os on the phone it reboots as the it knows there no os installed. Sometimes too when i turn it on it will stay red and just vibrate as soon as it is turned on. It will not even boot to an SD card if i use either the RE button or the volume down button. I can however boot into mass storage mode by holding volume up and connect it to the computer, im not sure how much this can help but if anyone can help pls do.
|
|
|
|
| Compatible U.S. carriers with web voicemail access? |
|
Posted by: Zebulon Walton - 08-15-2025, 02:40 PM - Forum: General Discussion on PinePhone
- Replies (2)
|
 |
Anyone know of U.S. carriers compatible with the Pinephone that have access to voicemail via a computer using a web browser? So far the only one I've come up with is T-Mobile which is a bit pricey. (T-Mobile does have inexpensive pay-as-you go plans but it looks like you can't bring over your existing phone number. I've had my cell phone number since 1992 and don't really want to change it.)
The reason: Just a few days ago my carrier AT&T discontinued their voicemail notification feature which I have used for decades - it notified an external device (pager) when a new voicemail arrived. This was a legacy feature from the early 1990s that probably nobody provides any more. However I would still like a way to check for voicemail that does not involve turning on and using the phone. (I leave the phone off most of the time for privacy as I have no wish to be tracked 24/7). Although possible to retrieve voicemail from a land line that is an increasingly rare thing to find when not at home.
|
|
|
|
| Long dialpad keypress to retrieve voicemail |
|
Posted by: Zebulon Walton - 08-15-2025, 01:35 PM - Forum: Mobian on PinePhone
- Replies (3)
|
 |
AT&T has made some unwelcome (at least to me) changes to its basic voicemail service. Now the simplest way to check voicemail from one's phone is to hold down the "1" key on the dialpad to issue a long tone. However this does not work on the Pinephone, at least not running Mobian Bookworm+Phosh.
It is not clear whether this long tone triggers something proprietary in a phone provided by AT&T or whether just sending the tone out over the phone network is sufficient. (It does work if I put my SIM back in the flip phone AT&T sent me when 3G service was discontinued in the U.S. but I did that just for test purposes, I don't want to actually use that stupid Google-infested thing.)
Anyone know if this can be made to work on the Pinephone? I can still retrieve voicemail by dialing my own number so am not dead in the water but it's necessary to enter a security code each time which is a bit of a PITA.)
|
|
|
|
| Simple Outdoor Weather Station with Pine64 and ESP32 |
|
Posted by: aria22 - 08-08-2025, 12:47 PM - Forum: General Discussion on PineTab
- No Replies
|
 |
Hi everyone! I’m working on a basic outdoor weather station using a Pine64 board, and I want to feed it real-time temperature, pressure, and humidity data from an ESP32 + BME280 sensor over the network. I just followed this helpful tutorial using an ESP32 with BMP280 to upload weather data to ThingSpeak it’s a great blueprint for sending environmental readings wirelessly:
https://www.theengineeringprojects.com/2...erver.html
I’ve also seen a Random Nerd Tutorials guide for building a standalone ESP32 + BME280 mini weather station, and skimmed Pine64’s docs on setting up services via their community Linux image. Does anyone here have experience aggregating sensor data this way? I’d love tips on best practices for handling connectivity, lightweight data ingestion, or small dashboards on Pine boards.
|
|
|
|
|