Date: | 2010-07-30 23:19:49 (13 years 7 months ago) |
---|---|
Author: | hauke |
Commit: | 8eb932c7e1275844a925898ee0568c10bc892895 |
Message: | mostly revert commit r22396 CFE does not boot images generated with these checksums because of wrong checksum. After flashing then with tftp to my Asus wl500-GPv1 the following messages are show: Null Rescue Flag. Boot program checksum is invalid Hello!! Enter Rescue Mode: (Check error) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22418 3c298f89-4303-0410-b956-a3cf2f4a3e73 |
Files: |
target/linux/brcm47xx/image/Makefile (1 diff) tools/firmware-utils/src/trx.c (1 diff) |
Change Details
target/linux/brcm47xx/image/Makefile | ||
---|---|---|
56 | 56 | -a 0x10000 -f $(KDIR)/root.$(1) |
57 | 57 | endef |
58 | 58 | define trxalign/squashfs |
59 | -a 1024 -f $(KDIR)/root.$(1) $(if $(2),-f $(2)) -a 0x10000 -F $(KDIR)/fs_mark | |
59 | -a 1024 -f $(KDIR)/root.$(1) $(if $(2),-f $(2)) -a 0x10000 -A $(KDIR)/fs_mark | |
60 | 60 | endef |
61 | 61 | |
62 | 62 | define Image/Build/trxV2 |
tools/firmware-utils/src/trx.c | ||
---|---|---|
276 | 276 | (fsmark)?fsmark:cur_len - offsetof(struct trx_header, flag_version)); |
277 | 277 | p->crc32 = STORE32_LE(p->crc32); |
278 | 278 | |
279 | p->len = (fsmark)?fsmark:cur_len - offsetof(struct trx_header, flag_version); | |
279 | p->len = STORE32_LE((fsmark) ? fsmark : cur_len); | |
280 | 280 | p->len = STORE32_LE(p->len); |
281 | 281 | |
282 | 282 | /* restore TRXv2 bin-header */ |