tew-632brp: use LZMA compressed uImage
SVN-Revision: 13645
This commit is contained in:
parent
f63a6e0d56
commit
e643c26169
2 changed files with 12 additions and 12 deletions
|
@ -34,20 +34,20 @@ static struct mtd_partition tew_632brp_partitions[] = {
|
||||||
} , {
|
} , {
|
||||||
.name = "kernel",
|
.name = "kernel",
|
||||||
.offset = 0x030000,
|
.offset = 0x030000,
|
||||||
.size = 0x100000,
|
.size = 0x0c0000,
|
||||||
} , {
|
} , {
|
||||||
.name = "rootfs",
|
.name = "rootfs",
|
||||||
.offset = 0x130000,
|
.offset = 0x0f0000,
|
||||||
.size = 0x2b0000,
|
.size = 0x2f0000,
|
||||||
} , {
|
|
||||||
.name = "firmware",
|
|
||||||
.offset = 0x030000,
|
|
||||||
.size = 0x3b0000,
|
|
||||||
} , {
|
} , {
|
||||||
.name = "art",
|
.name = "art",
|
||||||
.offset = 0x3e0000,
|
.offset = 0x3e0000,
|
||||||
.size = 0x020000,
|
.size = 0x020000,
|
||||||
.mask_flags = MTD_WRITEABLE,
|
.mask_flags = MTD_WRITEABLE,
|
||||||
|
} , {
|
||||||
|
.name = "firmware",
|
||||||
|
.offset = 0x030000,
|
||||||
|
.size = 0x3b0000,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_MTD_PARTITIONS */
|
#endif /* CONFIG_MTD_PARTITIONS */
|
||||||
|
|
|
@ -39,14 +39,14 @@ endef
|
||||||
define Image/Build/AP81
|
define Image/Build/AP81
|
||||||
cp $(KDIR)/vmlinux $(KDIR)/vmlinux-$(2)
|
cp $(KDIR)/vmlinux $(KDIR)/vmlinux-$(2)
|
||||||
$(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR)/vmlinux-$(2) '$(strip $(3))'
|
$(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR)/vmlinux-$(2) '$(strip $(3))'
|
||||||
gzip -9 -c $(KDIR)/vmlinux-$(2) > $(KDIR)/vmlinux-$(2).bin.gz
|
$(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux-$(2) $(KDIR)/vmlinux-$(2).bin.lzma
|
||||||
mkimage -A mips -O linux -T kernel -a 0x80060000 -C gzip -e \
|
mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -e \
|
||||||
0x80060000 \
|
0x80060000 \
|
||||||
-n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
|
-n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
|
||||||
-d $(KDIR)/vmlinux-$(2).bin.gz $(KDIR)/vmlinux-$(2).uImage
|
-d $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/vmlinux-$(2).uImage
|
||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/vmlinux-$(2).uImage bs=1024k conv=sync; \
|
dd if=$(KDIR)/vmlinux-$(2).uImage bs=768k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=2752k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=3008k conv=sync; \
|
||||||
) > $(call imgname,$(1),$(2)).bin
|
) > $(call imgname,$(1),$(2)).bin
|
||||||
cp $(call imgname,$(1),$(2)).bin $(call imgname,$(1),$(2)).webui
|
cp $(call imgname,$(1),$(2)).bin $(call imgname,$(1),$(2)).webui
|
||||||
echo -n $(4) >> $(call imgname,$(1),$(2)).webui
|
echo -n $(4) >> $(call imgname,$(1),$(2)).webui
|
||||||
|
|
Loading…
Reference in a new issue