aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/otrx/src
Commit message (Collapse)AuthorAgeFilesLines
* otrx: add extra compilation check before using __BYTE_ORDERRafał Miłecki2015-06-221-0/+4
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46106 3c298f89-4303-0410-b956-a3cf2f4a3e73
* otrx: include endian.h to make __BYTE_ORDER work with muslRafał Miłecki2015-06-221-0/+1
| | | | | | | | | | | | Without this the condition if __BYTE_ORDER == __BIG_ENDIAN was always true. Thanks Szabolcs. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46105 3c298f89-4303-0410-b956-a3cf2f4a3e73
* otrx: optimize memory usage by function checking TRX CRCRafał Miłecki2015-06-201-16/+18
| | | | | | | | Allocating huge buffer for the whole TRX wasn't too optimal. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46078 3c298f89-4303-0410-b956-a3cf2f4a3e73
* otrx: make crc32 table global for further optimizationsRafał Miłecki2015-06-201-67/+68
| | | | | | | | | | So far we got only one generic function accessing this table, but implementing optimizations will require calculating crc32 in other code parts as well. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46077 3c298f89-4303-0410-b956-a3cf2f4a3e73
* otrx: support for creating simple TRX filesRafał Miłecki2015-04-141-0/+185
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45444 3c298f89-4303-0410-b956-a3cf2f4a3e73
* otrx: change command line API to start with a modeRafał Miłecki2015-04-142-56/+70
| | | | | | | | This will allow adding more modes without options conflict. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45443 3c298f89-4303-0410-b956-a3cf2f4a3e73
* otrx: use %zd to fix printf format warningsRafał Miłecki2015-04-141-2/+2
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45436 3c298f89-4303-0410-b956-a3cf2f4a3e73
* otrx: check TRX length read from header to avoid Segmentation faultRafał Miłecki2015-04-141-0/+6
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45433 3c298f89-4303-0410-b956-a3cf2f4a3e73
* otrx: include byteswap.h to fix compilation with muslRafał Miłecki2015-04-141-0/+1
| | | | | | | | Fixes #19470 Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45430 3c298f89-4303-0410-b956-a3cf2f4a3e73
* otrx: support for extracting partitionsRafał Miłecki2015-04-121-1/+127
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45390 3c298f89-4303-0410-b956-a3cf2f4a3e73
* otrx: new package with tiny app verifying TRX imagesRafał Miłecki2015-04-092-0/+244
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45315 3c298f89-4303-0410-b956-a3cf2f4a3e73