What's the difference between .img and .bin files for router firmwares?

5

2

OpenWRT and DD-WRT for example supply two files:

  • factory (.img)
  • sysupgrade (.bin)

Why is one a .img and the other a .bin?

Does it matter which one I just and if yes, when should I choose which?

Georg Schölly

Posted 2010-11-03T22:33:39.930

Reputation: 1 146

Answers

8

OpenWRT and DD-WRT are just two different projects that "power" routers. Look at it as if you're comparing Linux distributions. Your question would be similar to asking what the difference between Ubuntu and Fedora is. They offer different features for different purposes.

About the files: One is an .img file, which completely erases the firmware and replaces it with a new image. The .bin is just a "sysupgrade" so it's just an upgrade that doesn't replace the current image.

BloodPhilia

Posted 2010-11-03T22:33:39.930

Reputation: 27 374

nice answer! +1 – studiohack – 2010-11-03T23:01:32.473

So when do I have to use which? I tried upgrading through the web interface using a .img and it didn't work. Is this expected behaviour? – Georg Schölly – 2010-11-04T07:38:18.913

@Georg that depends on your needs, check out their respective websites for all features. As for updating, this will only work if you already have the custom firmware installed. – BloodPhilia – 2010-11-04T17:13:16.230

@BloodPhilia: Guessing with ".bin is just and "sysupgrade"" you meant to say ".bin is just a "sysupgrade"". Good analogy though. +1 – Belmin Fernandez – 2010-11-07T14:01:11.803