Page 1 of 1

Difference between .trx and .bin files?

Posted: Thu Aug 27, 2009 2:46 pm
by pbix
I read the installation Wiki and there is a brief description of the difference between a .trx file and .bin files. It says
The *.bin images are identical to the generic *.trx image, except they have a model-specific header that allows for easy installation.
I would like some further understanding as to what precisely is meant by "model-specific header".

Re: Difference between .trx and .bin files?

Posted: Thu Aug 27, 2009 8:21 pm
by Eric
The .bin files are identical to the .trx files, except that there is some extra data at the beginning of the file:

Code: Select all

brcm-2.4 .bin contents:
     [extra header bytes]  [TRX file data]
The extra header bytes contain data used by particular models of router to validate that the firmware is appropriate for the router. Once installed this extra header is discarded.

Re: Difference between .trx and .bin files?

Posted: Fri Jun 05, 2015 11:37 pm
by sajjadhalai
firstly We go to linux (ubuntu) and use that command to convert bin to trx

Code: Select all

dd if=openwrt-E2500-v1-squashfs.bin of=openwrt-E2500-v1-squashfs.trx bs=32 skip=1 
then copy output file to router tmp directory through SCP or Telnet or FTP and put command

Code: Select all

 mtd -r write /tmp/openwrt-E2500-v1-squashfs.trx firmware
remember on the end is 'firmware' ,,,,,, not 'linux'
remember it does not preserve your settings