PINE64
Manjaro Pinephone adventure Lessions learned - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Manjaro on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=130)
+---- Thread: Manjaro Pinephone adventure Lessions learned (/showthread.php?tid=12308)



Manjaro Pinephone adventure Lessions learned - linux-aarhus - 11-25-2020

This is a cross post from Manjaro Forum (by request)

https://forum.manjaro.org/t/wip-pinephone-adventure-lessons-leaned/39655

---

## Be cautious
* The nano-to-micro sim adapter in the package is not a superfluous accessory.
* The sim reader is for micro sim - so if you have a nano sim - you will need it.
* The sim reader is the lower of the two slot - the upper slot is SD-card reader.

The pictograms showing sim/sd-card can be misunderstood - this will short you sim and cause irreparable damage to it. Because the nano sim is smaller than an SD card you will most likely bend the third leg in the reader - with a high probability of causing damage to the PCB and subsequently your SD-card.

So be sure to insert the cards in their appropriate slots.

So by now you will all know that I melted my sim and learned to take apart the pinephone and replace the pcb with a new undamaged counterpart.

## Pinephone boot order
Pinephone boots from USB or SD if present - otherwise the eMMC. Due to the high number of writes rumors are SD-cards don't last very long.

That means you can try out other images without actually flashing your phone

## Testing images
Download the xz compressed image to your computer and unpack the image

    [fh@a116h Downloads]$ ls
    Manjaro-ARM-plasma-mobile-dev-pinephone-201124.img.xz
    [fh@a116h Downloads]$ unxz Manjaro-ARM-plasma-mobile-dev-pinephone-201124.img.xz
    [fh@a116h Downloads]$ ls
    Manjaro-ARM-plasma-mobile-dev-pinephone-201124.img


Then use your favorite image writing tool - mine is **mintstick** - to write the image to the SD-card. You can also use **dd** but you **must** ensure all data is written before removing the card from your computer.

## Using jumpdrive
Depending on the sequence when connect your device - you may experience weird behavior of your network connection.

I have not been able to nail it completely but it seems be act like this

**Connect to computer after loading jumpdrive**
Your system will create a new route leading nowhere because 172.16.42.1 is broadcasted as router but has no internet connection.

**Connecting before loading jumpdriver**
Your network connection works as expected.

## Flashing your pinephone
Flashing from an SD-card is prone to failure. The only viable way is to get the jumpdrive image. Read more at Pine64 wiki by following [this link][1]. Download is found following [this link][2].

System used for this excercise is a cheap yepo laptop

    [fh@a116h ~]$ inxi -Sxxx
    System:
      Host: a116h Kernel: 5.9.11-2-MANJARO x86_64 bits: 64 compiler: gcc
      v: 10.2.0 Desktop: Xfce 4.14.3 tk: Gtk 3.24.23 info: xfce4-panel wm: xfwm4
      dm: LightDM 1.30.0 Distro: Manjaro Linux

I have no idea if it was/is my sd-card(s) or a limitation of the jumpdrive but I was only able to make it work using a smaller SD-card than the 8GB cards used to test images.

So if you cannot get jumpdrive to work - use a small card -  64MB is enough - I got a 2GB card to work. Remove the back cover and the battery and insert the jumpdrive in the ***upper*** slot. Attach the battery - and the phone starts - immediately displaying the jumpdrive.

[details="jumpdrive screen"]
![image|375x500](upload://zl5DWfKUjT58gdFJjqs8tkeCAMy.jpeg)
[/details]

Attach your device to your computer using the red cable. After a few seconds your system will display two new block devices - it could look like this

[details="jumpdrive devices"]
![Screenshot_2020-11-25_11-30-28|374x397](upload://ULD5x2xQKppbTM6t0reetyBaOu.png)
[/details]


and you can verify using the terminal

    [fh@a116h ~]$ lsblk
    NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    sda      8:0    0 238,5G  0 disk
    ├─sda1  8:1    0  100M  0 part /boot/efi
    └─sda2  8:2    0    16G  0 part /
    sdb    8:16  1  29,1G  0 disk
    ├─sdb1  8:17  1 213,6M  0 part
    └─sdb2  8:18  1  28,9G  0 part
    sdc      8:32  1  1,8G  0 disk
    └─sdc1  8:33  1    49M  0 part

In the example sdb is the eMMC of the device and sdc is the jumpdrive.

Open your image writer application select the unpacked image you want to write and write it to the device eMMC as shown below.

![2020-11-25_11-57|690x180](upload://vTUrPXGzpGmHS0LfKIONM7QOBZQ.png)

When flashing is done - ensure the data is synced - use the eject button of the file manager.

![2020-11-25_12-14|690x182](upload://dewGs3w90jUSmyYwjg2Se4YbYeu.png)

Remove the cable, battery and jumpdrive. Attach battery and the device starts using the new system.






[1]: https://wiki.pine64.org/wiki/PinePhone#Flashing_eMMC_using_Jumpdrive
[2]: https://github.com/dreemurrs-embedded/Jumpdrive/releases/


RE: Manjaro Pinephone adventure Lessions learned - linux-aarhus - 11-26-2020

For updates and additions to the above post ... follow the link to Manjaro Forum.