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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,698
» Latest member: rth
» Forum threads: 16,260
» Forum posts: 117,187

Full Statistics

Latest Threads
Old Danctnix server in Pa...
Forum: PineTab Software
Last Post: brorean
Yesterday, 08:45 PM
» Replies: 1
» Views: 108
Hi everybody!
Forum: General
Last Post: MadisynErnser
11-20-2025, 10:03 PM
» Replies: 2
» Views: 2,260
PinePhone, PinePhone Pro,...
Forum: PinePhone Hardware
Last Post: brb78
11-20-2025, 04:15 PM
» Replies: 0
» Views: 84
Recycling pinephone as ho...
Forum: PinePhone Hardware
Last Post: biketool
11-20-2025, 09:04 AM
» Replies: 5
» Views: 586
Light Sensor / Proximity ...
Forum: General Discussion on PinePhone
Last Post: WhiteHexagon
11-18-2025, 03:07 PM
» Replies: 1
» Views: 158
How to stop it turning on
Forum: General Discussion on PinePhone
Last Post: biketool
11-18-2025, 02:30 PM
» Replies: 3
» Views: 469
8/24 status of JumpDrive
Forum: PinePhone Software
Last Post: biketool
11-18-2025, 01:27 PM
» Replies: 5
» Views: 2,151
Questions about running U...
Forum: General Discussion on PineTime
Last Post: alicesphere
11-18-2025, 12:48 AM
» Replies: 0
» Views: 91
Difficulty with openSUSE ...
Forum: PinePhone Software
Last Post: danm1988
11-17-2025, 07:49 AM
» Replies: 0
» Views: 96
Second screen mirroring
Forum: General
Last Post: andrekyler
11-17-2025, 01:06 AM
» Replies: 3
» Views: 1,914

 
  HW setup with an LPC-Link2 in CMSIS-DAP mode
Posted by: aaribaud - 10-28-2019, 03:51 PM - Forum: PineTime Tutorials - Replies (2)

If you have an LPC-Link2 lying around, you can use it to debug/develop on the PineTime dev kit.

First, you need to flash a CMSIS-DAP firmware on the LPC-Link2. NXP has these.

If you're using the wires provided with the PineTime, then you will need to populate the J6 location on the LPC-Link2; it's the only one which expects a pin header. I fitted a 9-pin right-angle header.

Then you have to properly match the PineTime SWD pinout to the J6 header pins. Gnd goes to pin 8, Vcc to pin 1, SWDIO to pin 2 and SWDCLK to pin 3.

Last, you have to put jumpers on both JP1 and JP2 of the LPC-Link2. JP1 will make it boot on its internal firmware and thus act as a CMSIS-DAP probe; JP2 will power the SWD signal buffers. If you forget JP2, OpenOCD will recodgnize the probe but not the PineTime.

Then you need a configuration file for OpenOCD. This file should contain the following:


Code:
source [find interface/cmsis-dap.cfg]
source [find target/nrf52.cfg]
telnet_port 4444

Name this file appropriately -- I named mine pinetime-lpc-link2-cmsis-dap.cfg.

Now run OpenOCD. In Linux, I run

Code:
openocd -f pinetime-lpc-link2-cmsis-dap.cfg -c init

At this point, if your PineTime still contains the factory firmware, it will be access-protected, i.e. you cannot read from it or write to it yet. You'll know it's the case if OpenOCD says "Error: Could not find MEM-AP to control the core".

If your PineTime is access-protected, you'll have to unprotect it before you can program it. This will remove the factory firmware, but it will have to go at some point, right? So open a second terminal, connect to OpenOCD using for instance

Code:
telnet localhost 4444

Now issue the following command:

Code:
dap apreg 1 0x0c

If the value displayed is 0x00000000 then your PineTime is indeed access-protected, and you can unprotect it by issuing

Code:
dap apreg 1 0x04 0x01

then

Code:
reset


to which OpenOCD should eventually display

Code:
nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints

... and that is the sign that your PineTime is unprotected and now ready to be reprogrammed!


  PineTime display
Posted by: soyrunner - 10-28-2019, 08:14 AM - Forum: General Discussion on PineTime - Replies (1)

For those of us getting on in years and small displays harder to read, is the pseudo analog display only an option that can be switched to a simple large font digital time and date?

soyrunner


  Pinebook 11" Keyboard
Posted by: Corkonian - 10-28-2019, 04:54 AM - Forum: Pinebook Hardware and Accessories - Replies (2)

For reasons unbeknownst to me, the first row of the alphanumeric keyboard (1234....) packed in. Some random letters in the other rows as well.
Any clue on how to solve that as I want the Pinebook to survive at least until the Pro arrives....


Question u-Boot location on the disk
Posted by: tsago - 10-28-2019, 04:30 AM - Forum: General Discussion on Pinebook Pro - Replies (5)

(I've initially intended to ask in the Linux-specific sub-forum, but I guess this is not limited to Linux only. Corrections welcome)

To be ready for un-bricking my horrible experiments that are bound to come, I'm slowly working on gathering information on how this wonderful creature boots.

Mrfixit (thanks!) clarified on IRC that the u-Boot bootloader is stored in an off-set on the eMMC, not directly accessible (~not in one of the two actual partitions, I assume).
So my questions would be:
- Where is it exactly?
- How do I find it?
- How do I recognize that I have actually found it?


I have also had a look at the ChromiumOS image, and in it, there are two interesting files in /boot: boot.scr and bootloader.bin.
(disclaimer: I'm away from the PBP and SD card, so I may be misremembering the filenames. Corrections will follow.)
When I run "file boot.scr", this is identified as an u-Boot bootloader image. The other file is simply data.
==> this brings a side-question: can the bootloader then be stored completely in the /boot partition? Or am I misunderstanding the purpose of these two files?

Upon further googling and reading, I've stumbled upon these links:
https://linux-sunxi.org/Bootable_SD_card
https://linux-sunxi.org/Mainline_U-Boot

These suggest specific places on the eMMC for the location of u-boot. I have also noticed that there are "gaps" at the beginning of the mmcblk1 disk and between the two "readable" partitions.
I've tried to copy various amounts of data from the above start locations using dd into a file and then tried to identify them with "file", but had no luck so far.

Am I looking into the wrong place?
Am I applying a completely wrong approach to find and identify u-Boot?

Ultimately, the question can be boiled down to: Once I have a u-Boot binary, where do I put it on the disk?
Apologies if these questions are too dumb, but I sort of figured this might be useful to document somewhere on the forums/wiki.


  PinePhone wireless charging?
Posted by: soyrunner - 10-27-2019, 02:04 PM - Forum: PinePhone Hardware - Replies (9)

Will this be possible with an adapter?  Or is there some inherent flaw in wireless charging, e.g. excessive heat ruining the battery?


Lightbulb Future device suggestion: smaller form factor
Posted by: MotoFufu9k - 10-27-2019, 12:15 PM - Forum: PinePhone Hardware - Replies (6)

Hello

I personally am very interested in the PinePhone and would actually buy it as soon as possible, if there wasn't one thing that made it unsuitable as my daily driver; That thing being the width.
The PinePhone is 76.6mm wide according to the wiki.
The highest width that I can comfortably hold in my hand is 67mm.
Which makes the PinePhone far to wide for me to somewhat comfortably use it with one hand.
I personally would be willing to sacrifice in some other aspects like thickness.

I am adding a poll to this thread to hopefully get some vague info on how demanded this feature actually is.


Information My dev environment for NRF52, with NRF52-SDK, NRF52-DK, J-Link, CMake and CLion
Posted by: JF002 - 10-27-2019, 09:20 AM - Forum: PineTime Tutorials - Replies (1)

Hello!

Coming from the STM32 and ESP32 world, I'm a total beginner as far as the NRF52 is concerned. For now, I'm still learning the MCU, the tools and the SDK.


The first thing I want to do is to create my development environment that'll allow me to write code, program the chip, debug,... It's based on CLion/CMake, it uses the NRF52-SDK and the tools from J-Link to debug and program.

This is not directly about the PineTime, but I intend to use this when I'm ready to work on the watch directly.

So, I created a little "base project" which contains the bare minimum to build, program and debug a simple blinky application. The project is here and the wiki page that gives more details is here. It might be useful for anyone who is just starting with NRF52.

For now, the master branch contains a simple blinky app, and the branch freertos is the same but using FreeRTOS.

Have fun Smile


  My PCIe disk controller works with Linux 5.3.6
Posted by: guannais - 10-25-2019, 04:53 PM - Forum: Linux on RockPro64 - Replies (1)

As said in the title, I have a disk controller LSI 9208 8i that needed some patch (pcie_rk_delay_bus_scan) to work with kernel Rockchip line 4.4 (the patch is in ayufan's kernel since april). I tried again the mainline and, finally, it works out of the box with the version 5.3.6. By the way, I have not tested Panfrost graphic driver, and I could not make framebuffer console to work.


Question lsblk devices
Posted by: tsago - 10-25-2019, 07:59 AM - Forum: Linux on Pinebook Pro - Replies (9)

I can recognize mmcblk1 / ...p1/p2, but I wonder, what are:
mmcblk1boot0
mmcblk1boot1
mmcblk1rpmb
?

Given the 16M size, I assume the last one is the SPI flash? What about the others? (both showing 4M size)
fdisk -l doesn't give me any interesting information.
Are these supposed to be interact-able in any way? 
Or am I just dumb and these are actually still the eMMC?


  Make SD Card to read-only mode
Posted by: rahulsharma - 10-25-2019, 01:42 AM - Forum: RockPro64 Hardware and Accessories - Replies (1)

Hi all experts,
According to my project that needs to be run 24x7 on my rockpro64, there was issue with OS corruption as due to power shutdown the devices was on unexpected power cycle. So i was trying to make the OS to read-only mode.

I followed this link-
https://medium.com/@andreas.schallwig/ho...c0f7be7353

I successfully done that but some system services and my docker service stoped working now.

OS -
Armbian ver5.98

Requirement-
1) I have made one app that needs to be run 24x7 and that is a docker process. So i need to access docker in RO mode.
2) I have also made a system-service(in /etc/systemd/system/my-service) that keeps on monitoring that docker app.
3) There are some file write operation need to be done in "/opt" or any other folder.

Please suggest me way to make the OS to read-only by keeping above 3 requirements.

Thanks.