| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
Looking for engineer for ...
Forum: PinePhone Pro Hardware
Last Post: Andrey_voce
04-06-2026, 08:44 AM
» Replies: 0
» Views: 168
|
StarPro64 Irradium (based...
Forum: Getting Started
Last Post: mara
04-05-2026, 03:03 AM
» Replies: 19
» Views: 8,712
|
Finally got Kali working ...
Forum: General Discussion on Pinebook Pro
Last Post: qingss0
04-04-2026, 08:00 AM
» Replies: 0
» Views: 257
|
Charging problem
Forum: General Discussion on Pinebook Pro
Last Post: RicTor
04-04-2026, 07:30 AM
» Replies: 0
» Views: 118
|
Latest firmware for PineP...
Forum: PinePhone Software
Last Post: baptx
04-03-2026, 08:37 AM
» Replies: 106
» Views: 216,995
|
Updates have gotten me ex...
Forum: General Discussion on PineNote
Last Post: bills2002
04-02-2026, 05:16 PM
» Replies: 0
» Views: 213
|
Voidlinux working on eMMC
Forum: General Discussion on PineTab
Last Post: tllim
04-01-2026, 04:14 PM
» Replies: 1
» Views: 299
|
Pinecil V2 doesn’t power ...
Forum: General Discussion on Pinecil
Last Post: Juptin
03-28-2026, 02:37 AM
» Replies: 1
» Views: 2,088
|
dead Pinebook - help plea...
Forum: General Discussion on Pinebook Pro
Last Post: williamcorlin
03-26-2026, 04:22 PM
» Replies: 3
» Views: 939
|
BT PAN - we need iptables...
Forum: Mobian on PinePhone
Last Post: biketool
03-25-2026, 12:57 PM
» Replies: 1
» Views: 606
|
|
|
| How to boot Manjaro from NVME with uboot on eMMC |
|
Posted by: as400 - 01-16-2020, 12:10 PM - Forum: Pinebook Pro Tutorials
- Replies (47)
|
 |
Edited on 27.03.2020 - due to Manjaro not using boot.scr anymore.
I have taken below steps to achieve booting from NVME. It can be probably mirrored on Debian with some small changes since Manjaro is using boot.scr and Debian extlinux.conf.
First download a package: uboot-pinebookpro-2017.09-2-aarch64.pkg.tar.xz. It has uboot files with @pcm720 patches included. Current Manjaro uboot package does not have nvme support enabled. This is subject to change.
1. Extract the files from the package: idbloader.img, trust.img, uboot.img.
2. Write uboot files (pay attention to your device - it has to be eMMC !!! In my case /dev/mmcblk2):
"dd if=idbloader.img of=/dev/mmcblk2 bs=32k seek=1 conv=fsync"
"dd if=uboot.img of=/dev/mmcblk2 bs=64k seek=128 conv=fsync"
"dd if=trust.img of=/dev/mmcblk2 bs=64k seek=192 conv=fsync"
3. Create partition on your NVME drive to rsync filesystem from eMMC.
4. Mount the partition - lets say in /mnt
5. "cd /mnt"
6. "mkdir dev proc sys mnt"
7. "rsync -aHxv --numeric-ids --progress /* /mnt --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/mnt"
8. chroot to your newly synced partition "chroot /mnt".
9. "cd /boot/extlinux"
9. Edit extlinux.conf and change "root=LABEL=ROOT" to "root=/dev/nvme0n1p1" (if your new partition is first on disk).
10. Exit chroot "exit".
11. On eMMC !!! Rename extlinux directory to something else eg. extlinux.old.
12. Reboot machine - you should boot from NVME.
13. After sucessful reboot check "lsblk" it should be something like:
[root@pbp ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk2 179:0 0 58.2G 0 disk
└─mmcblk2p1 179:1 0 58.2G 0 part
mmcblk2boot0 179:32 0 4M 1 disk
mmcblk2boot1 179:64 0 4M 1 disk
nvme0n1 259:0 0 894.3G 0 disk
└─nvme0n1p1 259:1 0 20G 0 part /
In case you want to start the system from eMMC just rename extlinux.old to extlinux on eMMC. Opposite to what has been done in step 11.
Enjoy !
|
|
|
|
| Camera/Flash Protector |
|
Posted by: kuro - 01-16-2020, 09:47 AM - Forum: PinePhone Hardware
- No Replies
|
 |
After reading the new blog post, I really liked the idea of having the pine logo on the camera/flash protector.
However, I also noticed that it is a single piece of glass that covers both the camera and the flash. This is weird because almost every phone on the market uses distinct pieces to cover the flash and cameras.
I suspect they do this because the light from the flash can reflect and refract directly into the camera which may screw up the pictures. As this is just my speculation it would be nice if someone with a developer phone could test it (I will test it with my braveheart when it arrives if no one can do it sooner).
If this is an actual issue, the solution could be as simple as "breaking" the glass in half (for example the nokia 5 smartphone does this).
|
|
|
|
| Cura OpenSCAD and .appimage |
|
Posted by: tso4ev - 01-16-2020, 03:12 AM - Forum: Pinebook Pro Tutorials
- Replies (4)
|
 |
Hi all, Ive found that .appimage does not work I'm trying to use cura.appimage but it does not work just like openscad.appimage is there any way to fix that maybe I'm missing something.. somebody having any luck with bouth programs ?
|
|
|
|
| Only powers on with previous SD Card installed |
|
Posted by: pete - 01-15-2020, 10:57 PM - Forum: General Discussion on Pinebook Pro
- Replies (4)
|
 |
Hi All,
Strange solution occurred this morning.
I've been trying out different OS on my PBP to see which I may stick with. So far have Mate Bionic image on the Emmc (from the tutorial instrcutions) and have SD cards with mate, chromium, manjaro.
Strangely I just shutdown from manjaro sd card and now the PBP will only power on with that specific SD Card in the slot.
i.e. I get 0 response (not even an orange LED) when pressing and holding the power button with any of the following attempts:
- No SD Card boot - Ubuntu Mate from EMMC (worked last night)
- SD Card with Bootable Bionic Mate image
- SD Card with Chromium Image
Where as
4. Replacing the SD card with the same Manjaro image - boots straight away. Very strange.
Can anyone point me towards a reason for this so I can figure out what to do?
Thanks,
Pete
|
|
|
|
| CPU Frequency |
|
Posted by: tso4ev - 01-15-2020, 07:14 PM - Forum: General Discussion on Pinebook Pro
- Replies (9)
|
 |
Hi to everybody I'm proud owner of the pinebook pro but I have some issues with it ..
So the problem is till now the CPU frequency monitor (left from the clock) was showing 1.99 GHz max but some how it show the scale only up to 1.51 GHz even on Performance mode.. I've try $ sudo lscpu | grep MHz the result was CPU max MHz: 1512.0000 CPU min MHz: 408.0000. (clearly it shows only the little cores but that's funny how till now always it was showing 1.99 GHz and now it goes only up to 1.51 can someone of you test the command sudo lscpu | grep and share the results) and give me some feedback what the cpu frequency monitor shows ?
thanks
|
|
|
|
| Troubleshooting New Kernel Image |
|
Posted by: wsgts - 01-15-2020, 07:06 PM - Forum: Linux on Pinebook Pro
- Replies (3)
|
 |
I'm having great fun dorking around with the Pinebook Pro, I haven't recompiled the Linux kernel since about 2005 or so, so it's been a while. It's great fun to try and get everything up to speed, I appreciate all the work that went into this project.
So far, I have gotten the
- firmware updates (trackpad)
- default image updates from MrFixit
- package updates from the Debian repo
- all the other password changes, directory renames, etc
Then, of course, more dorking around. I recompiled the kernel on my x86 laptop, to enable DM_CRYPT kernel so I could encrypt my home directly with LUKS, encrypted the SD card I had installed and was finally able to create the filesystem then mount under LUKS.
After several reboots fiddling with the /etc/crypttab and /etc/fstab the Pinebook does not boot. I dont get to the splash screen, I have read in the wiki that I should reset the motherboard so I have ordered a very small screwdriver set from Amazon to reset it.
It has booted one time after I let it be for about 5 minutes awaiting the splash screen, which makes me believe I have some type of connector issue. After all, a faulty kernel wouldn't boot after any length of time. I guess without some type of on-screen message I am really looking for some more advanced troubleshooting techniques?
T
|
|
|
|
| Working AC Adapter |
|
Posted by: grondinm - 01-15-2020, 06:05 PM - Forum: General Discussion on PinePhone
- Replies (6)
|
 |
Since the PinePhone Braveheart edition does not come with the AC(Wall) adapter I figured maybe we could start up a comparison of results/charge times for consideration.
The only adapters I have are from my current Personal(P30 Lite) and work phone (S9) and previous phone(Essential PH-1)
The S9 Adapter does not specify wattage just says 9.0V == 1.67A or 5.0V == 2.0A
The P30 Lite Adapter does not specify wattage just says 5V == 2A or 9V == 2A
The Essential adapter clearly says 27W 5V == 3A or 9V == 3A not sure I'll use this one since Pine says 15w...
I'll update this post with charge times once i have my device in hand.
I'm no electrician so those numbers mean nothing to me. I also realize that those are note actual = signs but it's the closest thing i could find to represent.
|
|
|
|
| Touchpad, Keyboard, I2C oh my. |
|
Posted by: resistanceisfutile - 01-15-2020, 05:17 PM - Forum: Pinebook Pro Hardware and Accessories
- Replies (12)
|
 |
As of the latest firmware update for the keyboard and touchpad that is miles better for the keyboard, users have been reporting a sort of input lag with the touchpad. With the right libinput tweaks, it is a little annoying but usable.
I too did some experimenting, but did not get very far.
The keyboard is driven by the SH68F83, which presents two interfaces over USB - one for keyboard and one for touchpad. The touchpad is connected to the SH68F83 over an i2c bus. An eeprom is also connected to the SH68F83 i2c bus and is used only for persisting the kill switches states. When the touchpad is touched, interrupts are fired alerting the SH68F83 to read registers and proxy data back to the OS over USB.
@xalius has been attempting to reverse the the firmware that runs on the SH68F83, a USB/keyboard MCU with an 8051 core.
How I suspect the keyboard and touchpad firmware update process works:
- A firmware fw_tp_update.hex is flashed to the SH68F83. This firmware appears to be named XW-TPUTOOL_TV3-US-H1-12-00.
- The touchpad update firmware receives tpfw.bin over USB and then flashes it to the touchpad IC (likely over i2c at 400KHz, but could be some OOB bitbang over the i2c bus)
- The fw_ansi.hex or fw_iso.hex are then flashed back to the SH68F83.
According to the SH68F83 datasheet, two flashing modes are described. ICP (JTAG) after an undocumented waveform is modulated - followed by the flash - the protocol also undocumented. Another mode, SSP (Self-Sector Programming) is described. This mode is performed by code running on the 8051 MCU, and would thus require said code to be part of the firmware image.
Dissassembly of the 8051 code in the available images has so far been fruitless. The SH68F83 has many application-specific SFRs that - while listed in the datasheet - do not appear in any of the dissassemblies I have tried (after modifying a disassembler to print their names).
If SSP mode is being used, then there should be code in the firmware images that more or less does the following:- Get a block of data from the USB transceiver. Using the TX* and RX* SFRs.
- Fill XPAGE, IB_OFFSET, and IB_DATA SFRs with the flash sector, offset into the sector, and data to write.
- Kick off a state "gate" by sequentially filling IB_CON1, IB_CON2, IB_CON3, IB_CON4, and IB_CON5 with a magic numbers.
Another theory is that there is perhaps an undocumented USB flashing mode and the updater tool (which I've been told was derived from a mysterious reverse-engineered? windows-based flash tool).
Access to the i2c bus is available on the touchpad. Can access the eeprom here too. I forgot to mark V33 (3.3V) is the pad next to D1.
![[Image: yYI8392.jpg]](https://i.imgur.com/yYI8392.jpg)
From the factory, the eeprom is erased (all 0xFF). What this tells us is the firmware running the SH68F83 is checking for 0xFF at address 0x00 of the eeprom and ensuring none of the kill switches are enabled.
The 3 LSBs of address 0x00 in the eeprom correspond to the state of the kill switches:
Pine+F10 = Bit 1
Pine+F11 = Bit 2
Pine+F12 = Bit 3
All other bits will be zero. Once a kill switch is pressed, the 3 LSBs will hold the state of each switch and the rest of the bits will remain zero forever. High = kill switch enabled, Low = disabled.
When the system boots, the SH68F83 firmware accesses the eeprom to read these 3 bits. This occurs regardless of what is happening with the SoC.
All I have is a Bus Pirate - and it's not fast enough to sniff even the 100KHz i2c. I was able to capture partial data from both the eeprom accesses and from the touchpad. However, the flash operation over i2c (or OOB something?) was either running at 400KHz or it's not i2c. The idea is to get a dump of what gets sent to the touchpad IC during step-2 of the firmware updater tool, as that is when i saw the largest burst of traffic over i2c.
Regarding the touchpad IC. The spec sheet from the pinebookpro wiki says the touchpad is using a PCT1336QN - for which a datasheet is available. It is a QFN48. Even though the pcb is the same model number, they're not using a PCT1336QN. It's a QFN40 part number HLK H2168. Searches for any information on this part have come up with nothing. No idea what it is. And without a $400 Saleae, I've exhausted my options.
Hoping somebody with more toys and experience can pick up from here? Here's what we're hoping for:
- A proper dissassembly of the SH68F83's 8051 code from the firmware .hex files.
- A dump of sniffed i2c traffic during a firmware update of the touchpad.
- A dump of sniffed i2c traffic while using the touchpad, with correlation to what was happening on the touch pad (tapping, two fingers, scroll, pressing the buttons, etc.)
- What the heck is the HLK H2168? Datasheets or any info anyone can find about this chip are greatly appreciated.
Additional note: I found the bCountryCode byte in both the ISO and ANSI firmwares in what I think is what the datasheet refers to as the "Information Block", which could be useful. Gave @xalius a link to my patched firmwares for testing. This could be helpful in terms of further updates - the flasher tool could detect the country code and thus eliminate the need to specify it when running the update.
|
|
|
|
|