[Moto G5 Questions & Answers] BArgue:
Thanks. My mistake, this batch file did have more of those lines. This is what I used (Motorola_Moto_G5_XT1675_CEDRIC_RETEU_SS_8.1.0_OPP28.85-19-4-2_CID50):

<phone_model model="cedric"/>

<software_version version="cedric-user 8.1.0 OPP28.85-19-4-2 3447de release-keysM8937_46.42.02.75R"/>

<subsidy_lock_config MD5="d41d8cd98f00b204e9800998ecf8427e" name="slcf_rev_d_default_v1.0.nvm"/>

<regulatory_config SHA1="da39a3ee5e6b4b0d3255bfef95601890afd80709" name="regulatory_info_default.png"/>

<sparsing enabled="true" max-sparse-size="268435456"/>

<interfaces>

<interface name="AP"/>

</interfaces>

</header>

<steps interface="AP">

<step operation="getvar" var="max-sparse-size"/>

<step operation="oem" var="fb_mode_set"/>

<step MD5="9f3a13b8222b08e2171d2519e5276c31" filename="gpt.bin" operation="flash" partition="partition"/>

<step MD5="9ea732d853c838d9ed8486ca6df10321" filename="bootloader.img" operation="flash" partition="bootloader"/>

<step MD5="3605a87a6e4ba36c2f995204a7ec2aa6" filename="NON-HLOS.bin" operation="flash" partition="modem"/>

<step MD5="77aec885e43c1441ae775a36add08125" filename="fsg.mbn" operation="flash" partition="fsg"/>

<step operation="erase" partition="modemst1"/>

<step operation="erase" partition="modemst2"/>

<step MD5="bded198b6f1d31e9ce664376503b223b" filename="adspso.bin" operation="flash" partition="dsp"/>

<step MD5="0f114b5a2ab83e18444fa0d8e79a8e0e" filename="logo.bin" operation="flash" partition="logo"/>

<step MD5="4559fd8bad5404d1ec16a98614b3765a" filename="boot.img" operation="flash" partition="boot"/>

<step MD5="864a8060abe29e56fe2e8e93cac2c4a3" filename="recovery.img" operation="flash" partition="recovery"/>

<step MD5="39b15d4e645ba9576e819edfaf5b668e" filename="system.img_sparsechunk.0" operation="flash" partition="system"/>

<step MD5="ed64b41d92f7cf5f4079442fc446e0af" filename="system.img_sparsechunk.1" operation="flash" partition="system"/>

<step MD5="aef832b70ded5b7b5788bf87b61a8ad6" filename="system.img_sparsechunk.2" operation="flash" partition="system"/>

<step MD5="31c52fe5f412ac621e325f879a08e6e8" filename="system.img_sparsechunk.3" operation="flash" partition="system"/>

<step MD5="982e8d23a01a1017c72c23c56aed3ca2" filename="system.img_sparsechunk.4" operation="flash" partition="system"/>

<step MD5="1ef6cd540e95e3fe2c80d934376b6f3a" filename="system.img_sparsechunk.5" operation="flash" partition="system"/>

<step MD5="66a2a34e2bacd1ab0f5065524e2ce141" filename="system.img_sparsechunk.6" operation="flash" partition="system"/>

<step MD5="052ca5a46c322450dacad5678c31ac0e" filename="system.img_sparsechunk.7" operation="flash" partition="system"/>

<step MD5="0a20486510c1c5f45d1d8dbfcf0b9975" filename="system.img_sparsechunk.8" operation="flash" partition="system"/>

<step MD5="1e60bbc27184845acdc99d789f503c0c" filename="oem.img" operation="flash" partition="oem"/>

<step operation="erase" partition="cache"/>

<step operation="erase" partition="userdata"/>

<step operation="erase" partition="DDR"/>

<step operation="oem" var="fb_mode_clear"/>

</steps>

</flashing>

Does that look right? I seem to recall a message about some process or other not being able to run before the board change. Can't recall what it was though. It was plugging it into the charger shortly after that burned out the port.

I think I need a proper grown-up to look at it as I'm already hopelessly out of my depth :(