Changeset 33326


Ignore:
Timestamp:
2012-09-06T20:15:26+02:00 (4 years ago)
Author:
cshore
Message:

[ar71xx] dir825b1: Add image for DIR-825-B1 that uses the whole flash (must first be flashed with the 'standard' image) and an image to revert the change to allow reversion to stock firmware.

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

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/etc/diag.sh

    r33294 r33326  
    6565                status_led="d-link:green:status" 
    6666                ;; 
    67         dir-825-b1) 
     67        dir-825-b1 |\ 
     68        dir-825-b1-openwrt |\ 
     69        dir-825-b1-stock) 
    6870                status_led="d-link:orange:power" 
    6971                ;; 
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/network

    r33282 r33326  
    3232 
    3333dir-825-b1|\ 
     34dir-825-b1-openwrt|\ 
     35dir-825-b1-tostock|\ 
    3436tew-673gru) 
    3537        ucidef_set_interfaces_lan_wan "eth0.1" "eth1" 
  • trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh

    r33282 r33326  
    202202                name="dir-825-b1" 
    203203                ;; 
     204        *"DIR-825 rev. B1 OpenWrt") 
     205                name="dir-825-b1-openwrt" 
     206                ;; 
     207        *"DIR-825 rev. B1 TOSTOCK") 
     208                name="dir-825-b1-tostock" 
     209                ;; 
    204210        *EAP7660D) 
    205211                name="eap7660d" 
  • trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh

    r33285 r33326  
    102102        dir-615-e4 | \ 
    103103        dir-825-b1 | \ 
     104        dir-825-b1-openwrt | \ 
     105        dir-825-b1-tostock | \ 
    104106        ew-dorin | \ 
    105107        ew-dorin-router | \ 
  • trunk/target/linux/ar71xx/generic/profiles/d-link.mk

    r30577 r33326  
    5151$(eval $(call Profile,DIR615E4)) 
    5252 
     53define Profile/DIR825B1_ALL 
     54        NAME:=D-Link DIR-825 rev. B1 - all flavours 
     55        PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev 
     56endef 
     57 
     58define Profile/DIR825B1_ALL/Description 
     59    Build all D-Link DIR-825 rev. B1 images 
     60endef 
     61 
     62$(eval $(call Profile,DIR825B1_ALL)) 
    5363 
    5464define Profile/DIR825B1 
     
    5969define Profile/DIR825B1/Description 
    6070        Package set optimized for the D-Link DIR-825 rev. B1. 
     71        Copies the calibration data to the last erase block so that, if desired, 
     72        an image optimized for use with OpenWrt (access to full flash) can be flashed. 
    6173endef 
    6274 
    6375$(eval $(call Profile,DIR825B1)) 
     76 
     77define Profile/DIR825B1_OPENWRT 
     78        NAME:=D-Link DIR-825 rev. B1 optimized for OpenWrt 
     79        PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev 
     80endef 
     81 
     82define Profile/DIR825B1_OPENWRT/Description 
     83        Package set optimized for the D-Link DIR-825 rev. B1. running OpenWrt 
     84        Can only be flashed from OpenWrt because it requires that the calibration data 
     85        be on the last sector of the flash (which the 'standard' version that can be flashed from 
     86        stock will ensure).      
     87endef 
     88 
     89$(eval $(call Profile,DIR825B1_OPENWRT)) 
     90 
     91define Profile/DIR825B1_TOSTOCK 
     92        NAME:=D-Link DIR-825 rev. B1 that undoes OpenWrt optimization 
     93        PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev 
     94endef 
     95 
     96define Profile/DIR825B1_TOSTOCK/Description 
     97        Package set optimized for the D-Link DIR-825 rev. B1. that undoes OpenWrt optimization 
     98        Copies the calibration data from the last erase block to the erase block normally used 
     99        by the stock firmware for said data. 
     100endef 
     101 
     102$(eval $(call Profile,DIR825B1_TOSTOCK)) 
     103 
  • trunk/target/linux/ar71xx/image/Makefile

    r33295 r33326  
    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,1536k(unknown)ro,64k(owrt_caldata),6208k@0x50000(firmware) 
     174dir825b1_openwrt_mtdlayout=mtdparts=spi0.0:256k(uboot)ro,64k(config)ro,1024k(kernel),6784k(rootfs),64k(caldata)ro,7808k@0x50000(firmware) 
    174175ew-dorin_mtdlayout_4M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),1024k(kernel),2688k(rootfs),64k(art),3712k@0x50000(firmware) 
     176dir825b1_tostock_mtdlayout=mtdparts=spi0.0:256k(uboot)ro,64k(config)ro,1024k(kernel),5184k(rootfs),64k(caldata),1536k(unknown)ro,64k(owrt_caldata)ro,6208k@0x50000(firmware) 
    175177pb92_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) 
    176178planex_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,960k(kernel),6784k(rootfs),128k(art)ro,7744k@0x50000(firmware) 
     
    217219                fi; \ 
    218220        fi 
     221endef 
     222 
     223define Image/Build/DIR825B1_OPENWRT 
     224        $(call MkuImageLzma,$(2),$(3) $(dir825b1_openwrt_mtdlayout)) 
     225        $(call Sysupgrade/KRuImage,$(1),$(2),1048576,6946816) 
     226endef 
     227 
     228define Image/Build/DIR825B1_TOSTOCK 
     229        $(call MkuImageLzma,$(2),$(3) $(dir825b1_tostock_mtdlayout)) 
     230        $(call Sysupgrade/KRuImage,$(1),$(2),1048576,5308416) 
    219231endef 
    220232 
     
    758770 
    759771$(eval $(call SingleProfile,DIR825B1,$(fs_64k),DIR825B1,dir-825-b1,DIR-825-B1,ttyS0,115200,01AP94-AR7161-RT-080619-00,00AP94-AR7161-RT-080619-00)) 
     772$(eval $(call SingleProfile,DIR825B1_OPENWRT,$(fs_64k),DIR825B1_OPENWRT,dir-825-b1-openwrt,DIR-825-B1_OPENWRT,ttyS0,115200,01AP94-AR7161-RT-080619-00,00AP94-AR7161-RT-080619-00)) 
     773$(eval $(call SingleProfile,DIR825B1_TOSTOCK,$(fs_64k),DIR825B1_TOSTOCK,dir-825-b1-tostock,DIR-825-B1_TOSTOCK,ttyS0,115200,01AP94-AR7161-RT-080619-00,00AP94-AR7161-RT-080619-00)) 
    760774$(eval $(call SingleProfile,DIR825B1,$(fs_64k),TEW673GRU,tew-637gru,TEW-673GRU,ttyS0,115200,01AP94-AR7161-RT-080619-01,00AP94-AR7161-RT-080619-01)) 
    761775 
     
    848862 
    849863$(eval $(call MultiProfile,AP121,AP121_2M AP121_4M)) 
     864$(eval $(call MultiProfile,DIR825B1_ALL,DIR825B1 DIR825B1_OPENWRT DIR825B1_TOSTOCK)) 
    850865$(eval $(call MultiProfile,EWDORIN, EWDORINAP EWDORINRT)) 
    851866$(eval $(call MultiProfile,TEW652BRP,TEW652BRP_FW TEW652BRP_RECOVERY)) 
Note: See TracChangeset for help on using the changeset viewer.