+define Image/Build/Cellvision
+ $(call Image/Build/Loader,$(2),bin,0x80500000,0x6D8,y,$(3))
+ mkdir -p $(BIN_DIR)/tmp
+ cp $(KDIR)/loader-$(2).bin $(BIN_DIR)/tmp/vmlinux.bin
+ gzip -9 $(BIN_DIR)/tmp/vmlinux.bin
+ dd if=$(BIN_DIR)/tmp/vmlinux.bin.gz of=$(call imgname,$(1),$(2))-xmodem.bin bs=64k conv=sync
+ rm -rf $(BIN_DIR)/tmp
+ $(call Image/Build/TRXNoloader,$(call imgname,$(1),$(2)).trx,$(1))
+ cat $(call imgname,$(1),$(2)).trx >> $(call imgname,$(1),$(2))-xmodem.bin
+ $(STAGING_DIR_HOST)/bin/mkcasfw -B $(2) -d \
+ -K $(call imgname,$(1),$(2))-xmodem.bin \
+ $(call imgname,$(1),$(2))-webui.bin
+endef
+
+define Image/Build/Cellvision2
+ # only for CAS-700/771/790/861
+ $(call Image/Build/Loader,$(2),gz,0x80500000,0x6D8,y,$(3))
+ $(call Image/Build/TRXNoloader,$(call imgname,$(1),$(2)).trx,$(1))
+ dd if=$(KDIR)/loader-$(2).gz of=$(call imgname,$(1),$(2)).bin bs=64k conv=sync
+ cat $(call imgname,$(1),$(2)).trx >> $(call imgname,$(1),$(2)).bin
+ echo -ne '\x14\x07\x24\x06$(2)' | dd bs=14 count=1 conv=sync >> $(call imgname,$(1),$(2)).bin
+ echo -ne 'OpenWrt\x00\x00\x00' >> $(call imgname,$(1),$(2)).bin
+endef
+