[Librem-5-dev] Birch image flashing
Angus Ainslie
angus.ainslie at puri.sm
Wed Nov 27 11:49:28 PST 2019
Hi All,
These instructions will flash a full image onto the Birch devices. They
will wipe out anything already contained on the eMMC.
First you need to get the latest version of the uuu scripts. So clone
the librem5-devkit tools repo
angus at midas:/tmp$ git clone
https://source.puri.sm/Librem5/librem5-devkit-tools
Cloning into 'librem5-devkit-tools'...
warning: redirecting to https://source.puri.sm/Librem5/librem5-devkit-tools.git/
remote: Enumerating objects: 998, done.
remote: Counting objects: 100% (998/998), done.
remote: Compressing objects: 100% (415/415), done.
remote: Total 998 (delta 569), reused 957 (delta 531)0 KiB/s
Receiving objects: 100% (998/998), 3.26 MiB | 2.35 MiB/s, done.
Resolving deltas: 100% (569/569), done.
Then grab the latest image and u-boot. They will end up here
https://arm01.puri.sm/job/Images/job/Image%20Build/ as "next librem5
amber-phone"
angus at midas:/tmp$ cd librem5-devkit-tools/
angus at midas:/tmp/librem5-devkit-tools$ mkdir files
angus at midas:/tmp/librem5-devkit-tools$ cd files/
angus at midas:/tmp/librem5-devkit-tools/files$ wget
https://arm01.puri.sm/job/Images/job/Image%20Build/2793/artifact/librem5.img.xz
--2019-11-27 11:11:22-- https://arm01.puri.sm/job/Images/job/Image%20Build/2793/artifact/librem5.img.xz
Resolving arm01.puri.sm (arm01.puri.sm)... 51.15.91.187
Connecting to arm01.puri.sm (arm01.puri.sm)|51.15.91.187|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 549679508 (524M) [application/x-xz]
Saving to: ‘librem5.img.xz’
librem5.img.xz 100%[=============================================================>] 524.21M 8.18MB/s in 75s
2019-11-27 11:12:37 (6.99 MB/s) - ‘librem5.img.xz’ saved [549679508/549679508]
angus at midas:/tmp/librem5-devkit-tools/files$ xz -d librem5.img.xz
angus at midas:/tmp/librem5-devkit-tools/files$ wget
https://arm01.puri.sm/job/u-boot_builds/job/uboot_librem5_build/lastSuccessfulBuild/artifact/output/uboot-librem5/u-boot-librem5.imx
--2019-11-27 11:39:13-- https://arm01.puri.sm/job/u-boot_builds/job/uboot_librem5_build/lastSuccessfulBuild/artifact/output/uboot-librem5/u-boot-librem5.imx
Resolving arm01.puri.sm (arm01.puri.sm)... 51.15.91.187
Connecting to arm01.puri.sm (arm01.puri.sm)|51.15.91.187|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1072240 (1.0M) [application/octet-stream]
Saving to: ‘u-boot-librem5.imx’
u-boot-librem5.imx 100%[=============================================================>] 1.02M 1.01MB/s in 1.0s
2019-11-27 11:39:15 (1.01 MB/s) - ‘u-boot-librem5.imx’ saved [1072240/1072240]
Then install uuu from mfgtools using 1 of the methods below
1) on PureOS
apt-get install mfgtools
2) on other debian based distros
angus at midas:/tmp/librem5-devkit-tools$ wget
https://repo.pureos.net/pureos/pool/main/m/mfgtools/uuu_1.2.31-0%2Bpureoslibrem5.2_amd64.deb
--2019-11-27 11:27:04-- https://repo.pureos.net/pureos/pool/main/m/mfgtools/uuu_1.2.31-0%2Bpureoslibrem5.2_amd64.deb
Resolving repo.pureos.net (repo.pureos.net)... 138.201.228.45
Connecting to repo.pureos.net (repo.pureos.net)|138.201.228.45|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 324956 (317K) [application/octet-stream]
Saving to: ‘uuu_1.2.31-0+pureoslibrem5.2_amd64.deb’
uuu_1.2.31-0+pureoslibrem5.2_amd64 100%[=============================================================>] 317.34K 395KB/s in 0.8s
2019-11-27 11:27:05 (395 KB/s) - ‘uuu_1.2.31-0+pureoslibrem5.2_amd64.deb’ saved [324956/324956]
angus at midas:/tmp/librem5-devkit-tools$ sudo dpkg -i
uuu_1.2.31-0+pureoslibrem5.2_amd64.deb(Reading database ... 365408 files
and directories currently installed.) Preparing to unpack uuu_1.2.31-0+pureoslibrem5.2_amd64.deb ...
Unpacking uuu (1.2.31-0+pureoslibrem5.2) over (1.2.91+0git6b465-0pureos+librem5.2~372.gbpe9f666) ...
Setting up uuu (1.2.31-0+pureoslibrem5.2) ...
3) On other Linux distros
angus at midas:/tmp/librem5-devkit-tools$ sudo ./scripts/build_uuu.sh -i
Ok now we're ready to flash the phone. Not doing these steps in this
order could cause the flashing to fail.
1) Take out the battery AND disconnect the USB C cable.
2) Hold VOL+ then insert the battery.
3) Plug the USB C cable in. The phone should now show up with "lsusb"
angus at midas:/tmp/librem5-devkit-tools$ lsusb | grep NXP
Bus 003 Device 024: ID 1fc9:012b NXP Semiconductors
4) Now do the actual flashing
angus at midas:/tmp/librem5-devkit-tools$ uuu uuu_scripts/flash_librem5.lst
uuu (Universal Update Utility) for nxp imx chips -- libpureos/1.2.91+0git6b465-62-g9c56e46
Success 1 Failure 0
5) Now power cycle the phone by removing the USB C and battery. Then
install the battery first before plugging in the USB C.
Your phone should now be running the latest image
Cheers
Angus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.community.puri.sm/pipermail/librem-5-dev/attachments/20191127/536137c3/attachment-0001.html>
More information about the Librem-5-dev
mailing list