Difference between .trx and .bin files?

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Difference between .trx and .bin files?

Post 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".
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Eric
Site Admin
Posts: 1441
Joined: Sat Jun 14, 2008 1:14 pm

Re: Difference between .trx and .bin files?

Post 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.

sajjadhalai
Posts: 108
Joined: Sun Apr 08, 2012 6:54 am

Re: Difference between .trx and .bin files?

Post 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

Post Reply