Changeset 33540


Ignore:
Timestamp:
2012-09-25T14:57:41+02:00 (5 years ago)
Author:
juhosg
Message:

ar71xx: create 'fat' images for the DIR-825/TEW-673GRU boards

With these images, it is possible to use the 'unused'
partition of the flash. The 'fat' images can be installed
with the sysupgrade command. When a 'fat' image is
installed from a regular one, the platform specific
sysupgrade script copies the calibration data to the
end of the flash. Likewise, when a regular image is
installed from the 'fat' version the sysupgrade script
copies the calibration data back to the original location.

Location:
trunk/target/linux/ar71xx
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh

    r33535 r33540  
    101101        dir-615-c1 | \ 
    102102        dir-615-e4 | \ 
    103         dir-825-b1 | \ 
    104103        ew-dorin | \ 
    105104        ew-dorin-router | \ 
     
    107106        mzk-w300nh | \ 
    108107        tew-632brp | \ 
    109         tew-673gru | \ 
    110108        tew-712br | \ 
    111109        wrt400n | \ 
     
    131129                return 0 
    132130                ;; 
     131 
     132        dir-825-b1 | \ 
     133        tew-673gru) 
     134                dir825b_check_image "$1" && return 0 
     135                ;; 
     136 
    133137        om2p | \ 
    134138        om2p-lc) 
     
    240244                platform_do_upgrade_allnet "0x9f080000" "$ARGV" 
    241245                ;; 
     246        dir-825-b1 |\ 
     247        tew-673gru) 
     248                platform_do_upgrade_dir825b "$ARGV" 
     249                ;; 
    242250        om2p | \ 
    243251        om2p-lc) 
  • trunk/target/linux/ar71xx/image/Makefile

    r33535 r33540  
    171171cameo933x_mtdlayout=mtdparts=spi0.0:64k(u-boot)ro,64k(art)ro,64k(mac)ro,64k(nvram)ro,192k(language)ro,896k(kernel),2752k(rootfs),3648k@0x70000(firmware) 
    172172db120_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware) 
    173 dir825b1_mtdlayout=mtdparts=spi0.0:256k(uboot)ro,64k(config)ro,1024k(kernel),5184k(rootfs),64k(caldata)ro,1600k(unknown)ro,6208k@0x50000(firmware) 
     173dir825b1_mtdlayout=mtdparts=spi0.0:256k(uboot)ro,64k(config)ro,1024k(kernel),5184k(rootfs),64k(caldata)ro,1600k(unknown)ro,6208k@0x50000(firmware),64k@0x7f0000(caldata_copy) 
     174dir825b1_mtdlayout_fat=mtdparts=spi0.0:256k(uboot)ro,64k(config)ro,1024k(kernel),6784k(rootfs),64k(caldata)ro,7808k@0x50000(firmware),64k@0x660000(caldata_orig),6208k@0x50000(firmware_orig) 
    174175ew-dorin_mtdlayout_4M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),1024k(kernel),2688k(rootfs),64k(art),3712k@0x50000(firmware) 
    175176pb92_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,2752k(rootfs),896k(kernel),64k(nvram),64k(art)ro,3648k@0x50000(firmware) 
     
    216217                        ) > $(call factoryname,$(1),$(2)); \ 
    217218                fi; \ 
     219        fi 
     220        $(call MkuImageLzma,$(2)-fat,$(3) $(dir825b1_mtdlayout_fat)) 
     221        $(call CatFiles,$(KDIR_TMP)/vmlinux-$(2)-fat.uImage,1048576,$(KDIR)/root.$(1),6946816,$(KDIR_TMP)/$(2)-fat.bin) 
     222        if [ -e "$(KDIR_TMP)/$(2)-fat.bin" ]; then \ 
     223                echo -n "" > $(KDIR_TMP)/$(2)-fat.dummy; \ 
     224                sh $(TOPDIR)/scripts/combined-image.sh \ 
     225                        "$(KDIR_TMP)/$(2)-fat.bin" \ 
     226                        "$(KDIR_TMP)/$(2)-fat.dummy" \ 
     227                        $(call sysupname,$(1),$(2)-fat); \ 
    218228        fi 
    219229endef 
Note: See TracChangeset for help on using the changeset viewer.