Convert a .BIN file to .TRX for OpenWRT / DD-WRT

I recently had reason to convert the latest DD-WRT firmware .bin file to .trx format, so that I could manually flash my WRT54GL. Not wanting to risk it, I first converted the .bin image with the following command:


This is a companion discussion topic for the original entry at https://www.funkypenguin.co.nz/how-to/convert-a-bin-file-to-trx-for-openwrt-dd-wrt/