wlanslovenija/firmware-packages-opkg — pull request #1 by gw0 (2012-08-17 19:37:48+00:00)
Title: Added poor support for flashing .bin firmwares to `nodeupgrade`

I made some minor improvements to `nodeupgrade` and added poor support for flashing `.bin` firmware files.

It flashes the TL-WRT741ND v2.4 router correctly with `wlan slovenija` firmware, but it later gives an error because of `mtd -j $CONF_TGZ` parameter for preserving configuration that seems to work only with JFFS2 and it consequently returns an error.

In my opinion the code needs some refactoring and should be simplified. The simplification is related to changing the convention for creating file names and some thoughts about this are on http://dev.wlan-si.net/ticket/1059#comment:3.

To sum up:
- exact partition names should be put in file names (not user friendly strings)
- file extensions should be used for detecting firmware image types
- optionally there could also be an alternative way of passing this information instead of actual file names (like appending query string like syntax, eg. `?partition=firmware&type=bin`, `?partition=rootfs&type=jffs2-64k`)

If you think this is naming convention change is reasonable, a new ticket should be open...