Changeset 14413
- Timestamp:
- 2009-02-05T17:46:55+01:00 (9 years ago)
- Location:
- trunk/target/linux/ar71xx
- Files:
-
- 2 edited
-
files/arch/mips/ar71xx/mach-mzk-w04nu.c (modified) (3 diffs)
-
image/Makefile (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c
r14383 r14413 46 46 .size = 0x010000, 47 47 } , { 48 .name = " uImage",48 .name = "kernel", 49 49 .offset = 0x050000, 50 50 .size = 0x160000, … … 52 52 .name = "rootfs", 53 53 .offset = 0x1b0000, 54 .size = 0x610000, 55 } , { 56 .name = "config", 57 .offset = 0x7c0000, 58 .size = 0x020000, 54 .size = 0x630000, 59 55 } , { 60 56 .name = "art", … … 62 58 .size = 0x020000, 63 59 .mask_flags = MTD_WRITEABLE, 60 } , { 61 .name = "firmware", 62 .offset = 0x050000, 63 .size = 0x770000, 64 64 } 65 65 }; -
trunk/target/linux/ar71xx/image/Makefile
r14251 r14413 1 1 # 2 # Copyright (C) 2008 OpenWrt.org2 # Copyright (C) 2008-2009 OpenWrt.org 3 3 # 4 4 # This is free software, licensed under the GNU General Public License v2. … … 78 78 endef 79 79 80 define Image/Build/Planex 81 cp $(KDIR)/vmlinux $(KDIR)/vmlinux-$(2) 82 $(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR)/vmlinux-$(2) '$(strip $(3))' 83 gzip -9 -c $(KDIR)/vmlinux-$(2) > $(KDIR)/vmlinux-$(2).bin.gzip 84 if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.gzip"` -gt 1441792 ]; then \ 85 echo "Warning: $(KDIR)/vmlinux-$(2).bin.gzip is too big"; \ 86 else if [ `stat -c%s $(KDIR)/root.$(1)` -gt 6356992 ]; then \ 87 echo "Warning: $(KDIR)/root.$(1) is too big"; \ 88 else \ 89 mkimage -A mips -O linux -T kernel -a 0x80060000 -C gzip -e \ 90 0x80060000 \ 91 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ 92 -d $(KDIR)/vmlinux-$(2).bin.gzip $(KDIR)/vmlinux-$(2).uImage; \ 93 ( \ 94 dd if=$(KDIR)/vmlinux-$(2).uImage bs=1408k conv=sync; \ 95 dd if=$(KDIR)/root.$(1) bs=6208k conv=sync; \ 96 ) > $(call imgname,$(1),$(2)).bin; \ 97 $(STAGING_DIR_HOST)/bin/mkplanexfw -v 2.00.00 \ 98 -i $(call imgname,$(1),$(2)).bin \ 99 -o $(call imgname,$(1),$(2)).webui; \ 100 fi; fi 101 endef 102 80 103 define Image/Build/Template/Compex 81 104 $(call Image/Build/MyLoader,$(1),$(2)) … … 102 125 endef 103 126 127 define Image/Build/Template/Planex 128 $(call Image/Build/Planex,$(1),$(2),$(3)) 129 endef 130 131 define Image/Build/Template/Planex/squashfs 132 $(call Image/Build/Template/Planex,squashfs,$(1),$(2)) 133 endef 134 104 135 define Image/Build/Profile/WP543 105 136 $(call Image/Build/Template/Compex/$(1),wp543) … … 122 153 endef 123 154 155 define Image/Build/Profile/MZKW04NU 156 $(call Image/Build/Template/Planex/$(1),mzk-w04nu,board=MZK-W04NU) 157 endef 158 124 159 define Image/Build/squashfs 125 160 $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) … … 131 166 132 167 $(call Image/Build/Profile/DIR615C1,$(1)) 168 $(call Image/Build/Profile/MZKW04NU,$(1)) 133 169 $(call Image/Build/Profile/TEW632BRP,$(1)) 134 170 $(call Image/Build/Profile/TEW652BRP,$(1))
Note: See TracChangeset
for help on using the changeset viewer.
