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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,703
» Latest member: bestleo
» Forum threads: 16,261
» Forum posts: 117,195

Full Statistics

Latest Threads
Quill OS for the PineNote
Forum: PineNote Software
Last Post: JhonSmith
6 hours ago
» Replies: 1
» Views: 64
PinePhone, PinePhone Pro,...
Forum: PinePhone Hardware
Last Post: biketool
7 hours ago
» Replies: 3
» Views: 170
auto-owning the SD card i...
Forum: PineTab Software
Last Post: biketool
Yesterday, 04:16 AM
» Replies: 1
» Views: 384
Old Danctnix server in Pa...
Forum: PineTab Software
Last Post: Stunnned
11-24-2025, 01:27 PM
» Replies: 2
» Views: 192
Volumio (PINE A64-LTS / S...
Forum: Linux on PINE A64-LTS / SOPINE
Last Post: kapqa
11-23-2025, 02:02 AM
» Replies: 8
» Views: 15,547
Reinstallation Arch Linux...
Forum: General Discussion on PineTab
Last Post: rth
11-22-2025, 08:25 PM
» Replies: 1
» Views: 234
Recycling pinephone as ho...
Forum: PinePhone Hardware
Last Post: biketool
11-20-2025, 09:04 AM
» Replies: 5
» Views: 639
Light Sensor / Proximity ...
Forum: General Discussion on PinePhone
Last Post: WhiteHexagon
11-18-2025, 03:07 PM
» Replies: 1
» Views: 220
How to stop it turning on
Forum: General Discussion on PinePhone
Last Post: biketool
11-18-2025, 02:30 PM
» Replies: 3
» Views: 496
8/24 status of JumpDrive
Forum: PinePhone Software
Last Post: biketool
11-18-2025, 01:27 PM
» Replies: 5
» Views: 2,200

 
  Creating a current armbian-Image with network-fix
Posted by: clusterDude - 06-26-2020, 12:21 AM - Forum: Clusterboard - Replies (15)

I recently got my sopine modules and my clusterboard only to notice that the network is not working. So I searched the forums and found a way to conveniently build an Armbian-Image which has the network fix applied (using Ubuntu):

I tested this with the current Armbian Focal release.

Thanks to @AZClusterboard  who made an initial guide on how to setup the clusterboard which gave me confidence to buy my own cluster!

Step [b]Overview:[/b]

  1. Download current Armbian Focal release
  2. Mount the Image to make modifications
  3. Make changes to the .dtb file (allwinner network fix)
  4. Write the changed Image to as many sopines as you wish
  5. (Give each sopine a unique hostname by hand)

Step number 5 is not necessary but it helps in identifying sopine modules by name. So you can boot all modules at once, look at a "nmap" printout and can see each hostname and the corresponding ip-adress.

More thorough explanation of the steps:

1. Download current Armbian Focal release (https://www.armbian.com/sopine-a64/)

2. Mount the Image to make modifications (more informations here)

2.1. create a dir to mount the image to: e.g.

Code:
sudo mkdir /mnt/img

2.2. find the location of the partition within the image


Code:
fdisk -l <armbian-image.img>
This command gives you an overview about the image: Important are 2 things: sector-size (512 byte in my case) and beginning of the partition (sector 8192 in my case). The product is

Code:
512 bytes/sector * 8292 sectors =4194304 bytes
We need this number to correctly mound the image in the next step.

2.3. mound the image at the correct sector to the created directory in /mnt/img

Code:
sudo mount -o loop,rw,sync,offset=4194304 <armbian-image.img> /mnt/img
The image is now mounted with read and write permissions. Every change we do to the image will remain


3. Make changes to the .dtb file

3.1. navigate to the correct .dtb file

Code:
cd /mnt/img/boot/dtb/allwinner/

3.2. Now we need to translate the .dtb file. To do so we change it into a modifiable state using dtc. The file we want to change is sun50i-a64-sopine-baseboard.dtb (see here). I will name this modifiable file "temp.dts". This command will most likely throw some warnings but it will work.

Code:
sudo dtc -I dtb -O dts -o temp.dts sun50i-a64-sopine-baseboard.dtb

3.3. apply the fix to temp.dts described here

Code:
sudo nano temp.dts

go to the segment

Code:
ethernet@1c30000

and add

Code:
allwinner,tx-delay-ps = <500>;

as described here [LINK]

It will then look similar to 

Code:
                ethernet@1c30000 {
                        compatible = "allwinner,sun50i-a64-emac";
                        syscon = <0x2d>;
                        reg = <0x1c30000 0x10000>;
                        interrupts = <0x0 0x52 0x4>;
                        interrupt-names = "macirq";
                        resets = <0x2 0xd>;
                        reset-names = "stmmaceth";
                        clocks = <0x2 0x24>;
                        clock-names = "stmmaceth";
                        status = "okay";
                        pinctrl-names = "default";
                        pinctrl-0 = <0x2e>;
                        phy-mode = "rgmii";
                        phy-handle = <0x2f>;
                        phy-supply = <0x30>;
                        phandle = <0x6f>;
                        allwinner,tx-delay-ps = <500>;

                        mdio {
                                compatible = "snps,dwmac-mdio";
                                #address-cells = <0x1>;
                                #size-cells = <0x0>;
                                phandle = <0x70>;

                                ethernet-phy@1 {
                                        compatible = "ethernet-phy-ieee802.3-c22";
                                        reg = <0x1>;
                                        phandle = <0x2f>;
                                };
                        };
                };


3.3. translate the modified .dts to and .dtb file and overwrite the old(faulty) .dtb-file. This command will produce some warnings, but it will work.

Code:
sudo dtc -O dtb -o sun50i-a64-sopine-baseboard.dtb -b 0 temp.dts

3.4. remove the temp.dts

Code:
sudo rm temp.dts

3.5. unmount the image, go to your home directory first, so the unmount process is successful

Code:
cd ~/
sudo umount /mnt/img

4. The image is now ready to be  written to a sd-card!

5. To change the hostname of each "sd-card"
After the sd-card is written, mount the sd-card and navigate

Code:
cd etc/

and change 2 files:

[1]In hostname, specify a hostname (old one is most likely "pine64so") you like (probaly something like "master" or "worker1" or "worker2" ...),
[2] in hosts, change every entry with the old hostname to your new hostname.

Save the changes made to both files, unmount you sd-card, put it in the sopine-module, wait for it to boot (may take some minutes), login with "root" and "1234" and enjoy your cluster!

If you have any questions, comments or suggestions for improvement let me know!


  CPU Configuration and Status Scripts for PBP/Linux
Posted by: Syonyk - 06-25-2020, 10:28 PM - Forum: Linux on Pinebook Pro - Replies (2)

https://github.com/syonyk/pinebookpro

I've created two halfway helpful utility scripts that are useful enough to share generally. They should work with any Linux, though I've only tested them on Ubuntu 20.04/mainline kernel 5.7.

The first is cpu-set.sh - which allows you to, as root, quickly toggle between all CPUs, big CPUs, little CPUs, see the status of the CPU, and set the governor across all the cores (the cpufreq-utils don't seem to get all the cores properly). Really, you shouldn't have to do much more than powersave, performance, or schedutil. I've not seen much power savings by turning cores off, but if you want to do hardware accelerated KVM work, you'll need to disable the little cores - they don't seem to support the hardware virtualization properly.

The second is pbp-status.sh - which shows the CPU status, temperature, and some basic battery stats (voltage, current, watts). Most of the battery stats will be zero while charging, as the only one you get out is the voltage. This doesn't need root.

Code:
CPU0: 1 Freq: 1200 MHz    (schedutil)
CPU1: 1 Freq: 1200 MHz    (schedutil)
CPU2: 1 Freq: 1008 MHz    (schedutil)
CPU3: 1 Freq: 1200 MHz    (schedutil)
CPU4: 1 Freq: 600 MHz    (schedutil)
CPU5: 1 Freq: 600 MHz    (schedutil)

Temp 0: 35
Temp 1: 35

Voltage: 4077 mV
Current: 823 mA
Power:   3355 mW

Enjoy! Let me know if there are other things you'd like to see.


  Fixing the USB-C problem in software?
Posted by: heng - 06-25-2020, 04:23 PM - Forum: PinePhone Software - Replies (18)

This website https://xnux.eu/devices/pine64-pinephone...-pinephone states:

Quote:It's not fixable in SW, other than via a manual selection of power and data roles by the user.

How can I do "a manual selection of power and data roles"? Is there a command or shell script I could use?

I don't know how to solder, so I can't desolder the VCONN switches.


  Not booting after latest update
Posted by: Boern - 06-25-2020, 03:13 PM - Forum: Mobian on PinePhone - Replies (6)

Hi, 

I issued an

Code:
apt update && apt upgrade

a few hours ago and since then it's not booting anymore. I just see the LED shining in white. The screen remains black.

I saw that it was installing the 5.7 kernel, so I guess it messed up u-boot. 

I had it installed to EMMC, so I hope I will be able to restore everything by booting from SD. Can I just reinstall u-boot? What are the commands to do so?
I'm also still on the old version where /boot was on the root partition. Maybe it is also because of that. I guess, when I'm already in the process of repairing I could also repartition.


  Default Theme
Posted by: wasgurd - 06-25-2020, 12:06 PM - Forum: Mobian on PinePhone - Replies (4)

Hi all,

I tried the dark theme by:

Code:
gsettings set org.gnome.desktop.interface gtk-theme “Adwaita-dark”

How to get back to the default one?


  Problems with Phone Calls
Posted by: TitanToast - 06-25-2020, 11:31 AM - Forum: UBPorts on PinePhone - No Replies

Every time I press a call, I and the person I am talking to hear loud static noises. It sounds a bit like a radio and it's very hard to understand each other.

Is this normal or a specific hardware problem.

Thanks


  Pinephone- UB Ports
Posted by: brettmarkman - 06-25-2020, 10:47 AM - Forum: General Discussion on PinePhone - Replies (5)

Any new info on when I would be able to order a pinephone? thx...


  Nextcloud Account setup not working
Posted by: kelbot - 06-25-2020, 10:19 AM - Forum: UBPorts on PinePhone - Replies (3)

When I go to System Settings > Accounts > Nextcloud, I get an endlessly spinning circle to the right but nothing ever happens. Has anyone else been able to setup a Nextcloud account or any other account? I just tried and none of the account options work. Just spins forever.


  3500mAh battery seems to have killed modem
Posted by: forretress - 06-25-2020, 08:58 AM - Forum: PinePhone Hardware - Replies (3)

Before replacing the battery, internet and texting were working on Verizon's network (I hadn't tried making a call). After the 3500mAh replacement[0] the bottom half of the screen started flickering. I immediately turned the phone off and put the stock battery in, but now I don't seem to have any cellular network access (though the phone can see my SIM card). I've already double checked that it wasn't a result of me accidentally flipping the kill-switches when I did the swap. I recognise that this was the result of me playing with fire to see what would happen, and while I'm open to advice I'm sort of assuming I'll need to wait for more main boards to come available -- replacing the modem specifically is probably above of my level of solder competency. I just wanted to warn anybody googling for pinephone battery upgrade information related to v1.2 CE that my personal experience is 3500mAh kills modems.

[0]: https://www.amazon.com/6-7-8-Battery-Cas...07F7R4HLM/


  Image #58 Touchscreen Unresponsive
Posted by: BryWilson - 06-25-2020, 07:36 AM - Forum: UBPorts on PinePhone - Replies (3)

Upgraded from PinePhone Devel Image #52 to #58 this morning over OTA, rebooted and now have an utterly unresponsive touchscreen Undecided

It boots up fine, Volume Up and Down buttons and Power button work (as evidenced by OSD responses) and I can still ssh in, but touchscreen not working.

If I revert back to Image #52, touchscreen works again - OTA update to #58 breaks it again. I see from System Image Changes page (https://ci.ubports.com/job/rootfs/job/ro...ge/changes) that #58 and #59 have not changed since #57, so assuming this is a #57 problem?