OpenWrt Forum Archive

Topic: Simple question about flashing my WRT54G(S)

The content of this topic has been archived on 3 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I can flash my devices using mtd binary and generic.trx files.
But i want to upload *.bin files and flash its! When i try to do it my WRT54GSv2 doesn't boot because CRC error (i think so)

How can i flash *.bin files with mtd ?

Peshkoff wrote:

I can flash my devices using mtd binary and generic.trx files.
But i want to upload *.bin files and flash its! When i try to do it my WRT54GSv2 doesn't boot because CRC error (i think so)

How can i flash *.bin files with mtd ?

You need to strip out the 32 first bytes to get a .trx :

dd if=code.bin of=linux.trx skip=1 bs=32

Check that linux.trx starts with HDR0.

Thnks smile

The discussion might have continued from here.