/openwrt/package/system/mtd/src/ |
H A D | trx.c | 2 * trx.c 65 struct trx_header *trx; local 87 trx = ptr; 88 if (trx->magic != TRX_MAGIC) { 94 trx->crc32 = crc32buf(scan, trx->len - (scan - ptr)); 111 const struct trx_header *trx = (const struct trx_header *) buf; local 125 if (trx->magic != TRX_MAGIC || trx->len < sizeof(struct trx_header)) { 127 fprintf(stderr, "Bad trx heade 157 struct trx_header *trx; local [all...] |
H A D | Makefile | 7 obj.ar71xx = trx.o $(obj.seama) 8 obj.brcm = trx.o
|
/openwrt/target/linux/bcm53xx/image/ |
H A D | Makefile | 31 define Build/trx-serial 32 $(STAGING_DIR_HOST)/bin/trx \ 40 define Build/trx-nand 45 $(STAGING_DIR_HOST)/bin/trx \ 54 define Build/asus-trx 88 IMAGES := trx 92 IMAGE/trx := append-ubi | trx-nand 96 IMAGES := trx 97 IMAGE/trx [all...] |
/openwrt/package/utils/otrx/src/ |
H A D | otrx.c | 156 FILE *trx; local 174 trx = fopen(trx_path, "r"); 175 if (!trx) { 181 fseek(trx, trx_offset, SEEK_SET); 182 bytes = fread(&hdr, 1, sizeof(hdr), trx); 203 fseek(trx, trx_offset + TRX_FLAGS_OFFSET, SEEK_SET); 205 while ((bytes = fread(buf, 1, otrx_min(sizeof(buf), length), trx)) > 0) { 226 fclose(trx); 238 static ssize_t otrx_create_append_file(FILE *trx, const char *in_path) { argument 251 if (fwrite(buf, 1, bytes, trx) ! 264 otrx_create_append_zeros(FILE *trx, size_t length) argument 280 otrx_create_align(FILE *trx, size_t curr_offset, size_t alignment) argument 289 otrx_create_write_hdr(FILE *trx, struct trx_header *hdr) argument 333 FILE *trx; local 434 otrx_extract_copy(FILE *trx, size_t offset, size_t length, char *out_path) argument 480 FILE *trx; local [all...] |
/openwrt/target/linux/brcm47xx/image/ |
H A D | Makefile | 51 define Build/trx-with-loader 52 $(STAGING_DIR_HOST)/bin/trx \ 60 define Build/trx-v2-with-loader 61 $(STAGING_DIR_HOST)/bin/trx \ 71 define Build/trx-without-loader 72 $(STAGING_DIR_HOST)/bin/trx \ 79 define Build/asus-trx 140 IMAGES := trx 141 IMAGE/trx := trx [all...] |
/openwrt/target/linux/brcm47xx/base-files/lib/upgrade/ |
H A D | platform.sh | 65 echo "trx" 123 "trx") 130 echo "Invalid image type. Please use only .trx files" 150 local trx="$1" 154 "chk") cmd=$(platform_trx_from_chk_cmd "$trx");; 155 "cybertan") cmd=$(platform_trx_from_cybertan_cmd "$trx");; 158 default_do_upgrade "$trx" "$cmd"
|
/openwrt/target/linux/bcm53xx/base-files/lib/upgrade/ |
H A D | platform.sh | 43 echo "trx" 120 "trx") 127 echo "Invalid image type. Please use only .trx files" 136 # $(2): offset of trx in image 139 local trx="$1" 142 # Extract partitions from trx 145 otrx extract "$trx" \ 174 rm -f /tmp/kernel.trx 176 otrx create /tmp/kernel.trx \ 196 mtd write /tmp/kernel.trx firmwar [all...] |
/openwrt/tools/firmware-utils/src/ |
H A D | motorola-bin.c | 31 * motorola-bin --wr850g WR850G_V403.stripped.trx WR850G_V403.trx 36 * motorola-bin --strip WR850G_V403.trx WR850G_V403.stripped.trx 121 void *trx; // pointer to original firmware (mmmapped) local 130 // mmap trx file 133 || (trx = mmap(0, len, PROT_READ, MAP_SHARED, fd, 0)) == (void *) (-1) 151 firmware = trx; 152 if (htonl(crc32buf(trx + offsetof(struct motorola, flags), len - offsetof(struct motorola, flags))) != firmware->crc) 173 || write(fd, trx [all...] |
H A D | trx2usr.c | 106 static int trx2usr(FILE* trx, FILE* usr) argument 120 while ((n = fread(buf, 1, CHUNK, trx))) 142 if (ferror(trx)) 163 fprintf(stderr, "Usage: trx2usr <trx input> <usr output>\n");
|
/openwrt/target/linux/adm5120/image/ |
H A D | router_be.mk | 10 $(call Image/Build/TRXNoloader,$(call imgname,$(1),$(2)).trx,$(1)) 13 -r $(call imgname,$(1),$(2)).trx:0x10000 \
|
H A D | router_le.mk | 21 $(STAGING_DIR_HOST)/bin/trx -o $(1) -f $(KDIR)/vmlinux.lzma \ 27 $(call Image/Build/TRX,$(call imgname,$(1),$(2)).trx,$(1),$(KDIR)/loader-$(2).gz) 32 $(call Image/Build/TRXEdimax,$(call imgname,$(1),$(2)).trx,$(1)) 35 -x $(call imgname,$(1),$(2)).trx:0x10000 \ 40 -x $(call imgname,$(1),$(2)).trx:0x10000 \ 43 rm -f $(call imgname,$(1),$(2)).trx 48 $(call Image/Build/TRXEdimax,$(call imgname,$(1),$(2)).trx,$(1)) 51 -x $(call imgname,$(1),$(2)).trx:0x10000 \ 61 rm -f $(call imgname,$(1),$(2)).trx 66 $(call Image/Build/TRXNoloader,$(call imgname,$(1),$(2)).trx, [all...] |
H A D | Makefile | 84 $(STAGING_DIR_HOST)/bin/trx -o $(1) -f $(3) -f $(KDIR)/vmlinux.lzma \ 89 $(STAGING_DIR_HOST)/bin/trx -o $(1) -f $(KDIR)/vmlinux.lzma \
|
/openwrt/package/system/mtd/ |
H A D | Makefile | 26 TITLE:=Update utility for trx firmware images
|
/openwrt/target/linux/ar71xx/files/drivers/mtd/ |
H A D | cybertan_part.c | 76 struct trx_header trx; member in struct:firmware_header 126 theader = &header->trx;
|
/openwrt/scripts/flashing/ |
H A D | flash.sh | 46 3) run this script (unit will only accept .trx images)
|
/openwrt/tools/firmware-utils/ |
H A D | Makefile | 22 $(call cc,trx)
|
/openwrt/target/linux/ramips/image/ |
H A D | Makefile | 48 define Build/trx 49 $(STAGING_DIR_HOST)/bin/trx \
|
H A D | mt7621.mk | 58 IMAGE/sysupgrade.bin := trx | pad-rootfs
|
/openwrt/target/linux/ar71xx/image/ |
H A D | legacy.mk | 715 $(STAGING_DIR_HOST)/bin/trx -o $(KDIR)/image.tmp \ 721 $(STAGING_DIR_HOST)/bin/trx -o $(KDIR)/image.tmp -f $(KDIR_TMP)/vmlinux-$(2).uImage \
|