Changeset 42371


Ignore:
Timestamp:
2014-09-01T15:21:42+02:00 (3 years ago)
Author:
blogic
Message:

brcm47xx: image: build alternative TRX using less optimized LZMA

There is a group of devices that lzma-loader doesn't work with. They
simply hang at "Starting program at 0x80001000" which is really hard to
debug and we didn't find any solution for this for years.

Broadcom doesn't use lzma-loader on these devices anyway. They decided
to drop lzma-loader and use less optimal LZMA compression that can be
handled by CFE itself (it doesn't use dictionary).

So support these devices we will need kernel compressed with different
parameters and trx without a loader.

Signed-off-by: Rafał Miłecki <zajec5@…>

Backport of r42205

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/barrier_breaker/target/linux/brcm47xx/image/Makefile

    r42167 r42371  
    1313 
    1414define Image/Prepare 
     15        # Optimized LZMA compression (with dictionary), handled by lzma-loader. 
    1516        cat $(KDIR)/vmlinux | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma 
     17 
     18        # Less optimal LZMA compression (no dictionary), handled by CFE. 
     19        $(STAGING_DIR_HOST)/bin/lzma e -so -d16 $(KDIR)/vmlinux > $(KDIR)/vmlinux-nodictionary.lzma 
     20 
    1621        gzip -nc9 $(KDIR)/vmlinux > $(KDIR)/vmlinux.gz 
    1722ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) 
     
    231236                -f $(KDIR)/loader.gz -f $(KDIR)/vmlinux.lzma \ 
    232237                $(call trxalign/$(1),$(1)) 
     238        $(STAGING_DIR_HOST)/bin/trx -o $(BIN_DIR)/$(IMG_PREFIX)-$(1)-noloader-nodictionary.trx \ 
     239                -f $(KDIR)/vmlinux-nodictionary.lzma \ 
     240                $(call trxalign/$(1),$(1)) 
    233241        $(STAGING_DIR_HOST)/bin/trx -o $(BIN_DIR)/$(IMG_PREFIX)-$(1)-gz.trx \ 
    234242                -f $(KDIR)/vmlinux.gz \ 
Note: See TracChangeset for help on using the changeset viewer.