@ -49,14 +49,15 @@ endef
# -X reserve <size> bytes in the firmware image (hexval prefixed with 0x)
d e f i n e B u i l d / m k t p l i n k f w
-$( STAGING_DIR_HOST) /bin/mktplinkfw \
-H $( TPLINK_HWID) -W $( TPLINK_HWREV) -F $( TPLINK_FLASHLAYOUT) -N OpenWrt -V $( REVISION) $2 \
-H $( TPLINK_HWID) -W $( TPLINK_HWREV) -F $( TPLINK_FLASHLAYOUT) -N OpenWrt -V $( REVISION) \
-m $( TPLINK_HEADER_VERSION) \
-k $( word 1,$^) \
-r $@ \
-o $@ .new \
-j -X 0x40000 \
-a $( call rootfs_align,$( FILESYSTEM) ) \
$( if $( findstring sysupgrade,$1 ) ,-s) && mv $@ .new $@ || rm -f $@
$( wordlist 2,$( words $( 1) ) ,$( 1) ) \
$( if $( findstring sysupgrade,$( word 1,$( 1) ) ) ,-s) && mv $@ .new $@ || rm -f $@
e n d e f
# mktplinkfw-initramfs <optional extra arguments to mktplinkfw binary>
@ -64,7 +65,7 @@ endef
# -c combined image
d e f i n e B u i l d / m k t p l i n k f w - i n i t r a m f s
$( STAGING_DIR_HOST) /bin/mktplinkfw \
-H $( TPLINK_HWID) -W $( TPLINK_HWREV) -F $( TPLINK_FLASHLAYOUT) -N OpenWrt -V $( REVISION) $2 \
-H $( TPLINK_HWID) -W $( TPLINK_HWREV) -F $( TPLINK_FLASHLAYOUT) -N OpenWrt -V $( REVISION) $( 1) \
-m $( TPLINK_HEADER_VERSION) \
-k $@ \
-o $@ .new \
@ -75,14 +76,14 @@ endef
d e f i n e B u i l d / t p l i n k - s a f e l o a d e r
-$( STAGING_DIR_HOST) /bin/tplink-safeloader \
-B $( TPLINK_BOARD_NAME) \
-V $( REVISION) \
-k $( word 1,$^) \
-r $@ \
-o $@ .new \
$2 \
-j \
$( if $( findstring sysupgrade,$1 ) ,-S) && mv $@ .new $@ || rm -f $@
-B $( TPLINK_BOARD_NAME) \
-V $( REVISION) \
-k $( word 1,$^) \
-r $@ \
-o $@ .new \
-j \
$( wordlist 2,$( words $( 1) ) ,$( 1) ) \
$( if $( findstring sysupgrade,$( word 1,$( 1) ) ) ,-S) && mv $@ .new $@ || rm -f $@
e n d e f
d e f i n e B u i l d / l o a d e r - c o m m o n
@ -967,8 +968,8 @@ define Device/tl-wr2543-v1
BOARDNAME := TL-WR2543N
DEVICE_PROFILE := TLWR2543
TPLINK_HWID := 0x25430001
IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade " -v 3.13.99"
IMAGE/factory.bin := append-rootfs | mktplinkfw factory " -v 3.13.99"
IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
e n d e f
TARGET_DEVICES += tl-wr2543-v1