Changeset 18763


Ignore:
Timestamp:
2009-12-12T01:45:32+01:00 (8 years ago)
Author:
nbd
Message:

build wrt350n v2 recovery and web upgrade images (based on patch from #5970)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/orion/image/Makefile

    r16938 r18763  
    11# 
    2 # Copyright (C) 2008 OpenWrt.org 
     2# Copyright (C) 2008-2009 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
    55# See /LICENSE for more information. 
    66# 
     7 
    78include $(TOPDIR)/rules.mk 
    89include $(INCLUDE_DIR)/image.mk 
     
    4950 
    5051define Image/Build/Linksys 
    51 # placeholder for the WRT350N v2 
     52        # WRT350N v2 sysupgrade image 
     53        ( \ 
     54                dd if="${KDIR}/$2-uImage" bs=$5 conv=sync; \ 
     55                dd if="${KDIR}/root.$1" bs=64k conv=sync; \ 
     56        ) > "${BIN_DIR}/openwrt-$2-$1.img" 
     57        # WRT350N v2 webupgrade image for stock firmware 
     58        rm -rf "${TMP_DIR}/$2_webupgrade" 
     59        mkdir "${TMP_DIR}/$2_webupgrade" 
     60        # create parameter file 
     61        echo ":kernel $5 ${BIN_DIR}/openwrt-$2-uImage" >"${TMP_DIR}/$2_webupgrade/$2.par" 
     62        echo ":rootfs 0 ${KDIR}/root.$1" >>"${TMP_DIR}/$2_webupgrade/$2.par" 
     63        # create webupgrade file 
     64        ( cd "${TMP_DIR}/$2_webupgrade"; \ 
     65                "${STAGING_DIR_HOST}/bin/$2-builder" \ 
     66                        -v "${TMP_DIR}/$2_webupgrade/$2.par" \ 
     67                        "${BIN_DIR}/openwrt-$2-$(1)-webupgrade.img"; \ 
     68                $(CP) openwrt-$2-$(1)-webupgrade.bin $(BIN_DIR)/openwrt-$2-$(1)-recovery.bin; \ 
     69        ) 
     70        rm -rf "${TMP_DIR}/$2_webupgrade" 
    5271endef 
    5372 
     
    6584        $(call Image/Build/$(1),$(1)) 
    6685        $(call Image/Build/Netgear,$(1),wnr854t,NG_WNR854T,$(1)) 
    67         $(call Image/Build/Linksys,$(1),wrt350nv2,WNR350Nv2,$(1)) 
     86        $(call Image/Build/Linksys,$(1),wrt350nv2,WNR350Nv2,$(1),1048576)       # 5th parameter is kernel mtd size 0x00100000 = 1048576 / 0x001A0000 = 1703936 
    6887        $(call Image/Build/Freecom,$(1),dt2,DT,$(1)) 
    6988endef 
Note: See TracChangeset for help on using the changeset viewer.