01/2022 update: I had a look at the same procedure with a Moto G5 and G5s:
- use
blockdev --getsize64 /dev/block/platform/soc/7824900.sdhci/by-name/logo
(path depends on device… look for by-name) for the bs (bytesize) value ofdd
to get the full partition. The value (“634418”) used prior was just taken blindly from the moto-bootlogo readme. The partition is actually 4 mbytes in ~2016 Motos, 16 mbytes later - also merge the PR upstream that parses the header size as 16bit value. This will make header readouts successful when there are more elements
- running
moto-bootlogo
will extract all existing images, take those a basis for modification as the pixel size needs to be according to your device - here is a svg to determine pixel resolution freely - logo_boot.svg.gz | by tcecyk for Motorola Moto G4 Play
- Moto G5 devices want the
orange.png
file replaced, create a secondcopy_image_header
call within main.cpp to copy ‘logo_boot’ to ‘orange’