librem5-flash-image merge requestshttps://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests2023-10-08T13:13:05Zhttps://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/22Reboot the device after flashing succeeds2023-10-08T13:13:05ZSebastian KrzyszkowiakReboot the device after flashing succeedsCloses #7Closes #7https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/23Make "luks" the default image variant2023-06-25T18:42:21ZSebastian KrzyszkowiakMake "luks" the default image variantCloses #14Closes #14https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/21Document changes and release 0.0.42023-06-13T03:13:28ZGuido GuntherDocument changes and release 0.0.4https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/20d/gbp.conf: Update for upstream packaging2023-04-11T02:50:40ZGuido Guntherd/gbp.conf: Update for upstream packagingCreate a v<version-number> tag instead of using the pureos/ namespace.
Drop some options that don't apply while at that.
This should make releasing a `gbp dch -R && gbp tag` without any hand holding.Create a v<version-number> tag instead of using the pureos/ namespace.
Drop some options that don't apply while at that.
This should make releasing a `gbp dch -R && gbp tag` without any hand holding.https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/18Improve user prompts2023-03-21T01:03:41ZSebastian KrzyszkowiakImprove user promptsMake the description of flashing mode more detailed and print a message
once flashing is completed.Make the description of flashing mode more detailed and print a message
once flashing is completed.https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/17Add flag to use local image instead of downloading an official one2023-02-27T10:01:55ZTravis WrightsmanAdd flag to use local image instead of downloading an official oneI've been experimenting with building Librem 5 images myself and so I needed a way to tell `librem5-flash-image` to not verify my `librem5r4.img` files and just use them for flashing without downloading an official image. Not sure if thi...I've been experimenting with building Librem 5 images myself and so I needed a way to tell `librem5-flash-image` to not verify my `librem5r4.img` files and just use them for flashing without downloading an official image. Not sure if this is the best way to accomplish this but open to feedback.https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/19Document changes and release 0.0.32023-02-24T16:22:30ZGuido GuntherDocument changes and release 0.0.3The `--stable` option didn't make it into a release yet.The `--stable` option didn't make it into a release yet.https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/15Add --stable option2022-08-23T08:58:24ZGuido GuntherAdd --stable optionWith `--stable` the latest image from `https://storage.puri.sm/librem5/images/` will be fetched. This allows us to migrate to stable image downloads. To test
```
scripts/librem5_flash_image.py --stable --variant=luks
```
Once we're con...With `--stable` the latest image from `https://storage.puri.sm/librem5/images/` will be fetched. This allows us to migrate to stable image downloads. To test
```
scripts/librem5_flash_image.py --stable --variant=luks
```
Once we're confident this works we can make `--stable` the default and add a `--latest` instead.
I've only put the `librem5r4` images there for the moment and would like to replace that image with the latest images we use to flash devices atm.
We then switch the latest image with the next stable image update (https://source.puri.sm/Librem5/OS-issues/-/issues/249)
I took the minimal approach and build up the metadata Jenkins provides. Note that Jenkins is still needed as we fetch uboot from there, we can do that switch in an extra step once we have the rest in place (to update images, etc).
This can also later on used to fetch images from laneakia, etc.https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/16librem5-flash-image: Flash builds without description2022-06-14T13:23:09ZGuido Guntherlibrem5-flash-image: Flash builds without descriptionCloses: #8Closes: #8https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/14Use a 10s timeout2022-02-11T06:51:43ZGuido GuntherUse a 10s timeout10s is *very* long but lets see what happens for cases where we hit it.10s is *very* long but lets see what happens for cases where we hit it.https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/12Change start of name of temporary directory from devkit_image_ to tmp_image_.2021-11-29T17:03:25ZElias RudbergChange start of name of temporary directory from devkit_image_ to tmp_image_.Just tested this, it works.
Closes #6Just tested this, it works.
Closes #6https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/10Document changes and release 0.0.22021-09-12T06:15:14ZGuido GuntherDocument changes and release 0.0.2Release so distros can pick it up.Release so distros can pick it up.https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/9Switch default to byzantium2021-09-10T14:33:58ZGuido GuntherSwitch default to byzantiumWe use the unencrypted image since it's smaller and want to
add the a helper to change the encryption key to avoid
a false sense of security.
Closes: https://source.puri.sm/Librem5/librem5-flash-image/-/issues/1We use the unencrypted image since it's smaller and want to
add the a helper to change the encryption key to avoid
a false sense of security.
Closes: https://source.puri.sm/Librem5/librem5-flash-image/-/issues/1https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/8Add back debian packaging2021-09-06T17:43:32ZGuido GuntherAdd back debian packagingThis makes it simpler to track build-deps and to test development
versions.
This is based on Debian's packaging by Henry-Nicolas TourneurThis makes it simpler to track build-deps and to test development
versions.
This is based on Debian's packaging by Henry-Nicolas Tourneurhttps://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/7Makefile: fix metainfo file privileges in the install target2021-07-13T07:51:15ZHenry-Nicolas TourneurMakefile: fix metainfo file privileges in the install targetThe metainfo file permission is currently 0755 while it should be 0644.
The metainfo Appstream file does not need any execution privilege since this is not a script nor an executable.The metainfo file permission is currently 0755 while it should be 0644.
The metainfo Appstream file does not need any execution privilege since this is not a script nor an executable.https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/6Appstream Metadata: modalias globbing is case sensitive, usb PID/VID hex code...2021-07-09T12:37:02ZHenry-Nicolas TourneurAppstream Metadata: modalias globbing is case sensitive, usb PID/VID hex code are upper caseThis issue was initially raised by: https://lintian.debian.org/tags/appstream-metadata-malformed-modalias-provide
In !2 , we added appstream metadata but the modalias globbing is case sensitive.
Example using: `find /sys/devices/ -nam...This issue was initially raised by: https://lintian.debian.org/tags/appstream-metadata-malformed-modalias-provide
In !2 , we added appstream metadata but the modalias globbing is case sensitive.
Example using: `find /sys/devices/ -name modalias -print0 | xargs -0 cat`
The USB ids are upper case, the globbing need to respect that too.
This is also explained at https://wiki.debian.org/AppStream/Guidelineshttps://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/2Add AppStream metainfo support to annouce supported HW2021-07-08T18:13:24ZHenry-Nicolas TourneurAdd AppStream metainfo support to annouce supported HWThis adds metainfo XML appstream file to announce HW support for the Librem5 USB ids.
Implemenented following: https://wiki.debian.org/AppStream/Guidelines
Freedesktop reference: https://freedesktop.org/software/appstream/docs/chap-M...This adds metainfo XML appstream file to announce HW support for the Librem5 USB ids.
Implemenented following: https://wiki.debian.org/AppStream/Guidelines
Freedesktop reference: https://freedesktop.org/software/appstream/docs/chap-Metadata.html
Example tests:
```
nicolas@lp-nicolas:~$ appstreamcli what-provides modalias 'usb:v1fc9p012bd*'
Identificateur: sm.puri.librem5-flash-image [generic]
Nom: librem5-flash-image
Résumé: Image flashing tool for Librem 5 devices
nicolas@lp-nicolas:~$ appstreamcli validate /usr/share/metainfo/sm.puri.librem5-flash-imag.metainfo.xml
I: sm.puri.librem5-flash-image:3: cid-contains-hyphen sm.puri.librem5-flash-image
La validation a réussi : informations : 1
```https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/5Makefile: use a PREFIX env var that can be overloaded2021-07-08T15:14:08ZHenry-Nicolas TourneurMakefile: use a PREFIX env var that can be overloadedThis is to allow downstream distribution to easily switch
the target installation folder from /usr/local to /usr by setting
the PREFIX variable.This is to allow downstream distribution to easily switch
the target installation folder from /usr/local to /usr by setting
the PREFIX variable.https://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/4gitlab-ci: Run make check2021-07-08T08:25:30ZGuido Gunthergitlab-ci: Run make checkWe only tested the download but didn't run the checks since we split out the code form librem5-devkit-toolsWe only tested the download but didn't run the checks since we split out the code form librem5-devkit-toolshttps://source.puri.sm/Librem5/librem5-flash-image/-/merge_requests/3build: Allow to install scripts2021-07-07T17:00:17ZGuido Guntherbuild: Allow to install scriptsThis makes it simpler for packagers
```
make install BINDIR=/usr/bin/ DESTDIR=/tmp/a
```This makes it simpler for packagers
```
make install BINDIR=/usr/bin/ DESTDIR=/tmp/a
```