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:

dd if=firmware.bin of=firmware.trx bs=32 skip=1

Which I found here.

You’ve successfully subscribed to 🧑‍💻 Funky Penguin
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Your link has expired
Success! Check your email for magic link to sign-in.