From 72823077cdabdb6b3432a254d413000d00630634 Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Tue, 5 Jun 2007 20:55:21 +0000 Subject: add support for jffs2 filesystems with 256k blocksize, fix taishan support SVN-Revision: 7506 --- target/linux/amcc-2.6/Makefile | 2 +- target/linux/amcc-2.6/image/Makefile | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'target/linux') diff --git a/target/linux/amcc-2.6/Makefile b/target/linux/amcc-2.6/Makefile index 935e639..58d739d 100644 --- a/target/linux/amcc-2.6/Makefile +++ b/target/linux/amcc-2.6/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk ARCH:=powerpc BOARD:=amcc BOARDNAME:=AMCC Taishan -FEATURES:=squashfs broken +FEATURES:=jffs2 define Target/Description Build firmware images for the AMCC Taishan evaluation board diff --git a/target/linux/amcc-2.6/image/Makefile b/target/linux/amcc-2.6/image/Makefile index bab2e64..bd391f0 100644 --- a/target/linux/amcc-2.6/image/Makefile +++ b/target/linux/amcc-2.6/image/Makefile @@ -19,6 +19,13 @@ define Image/Build $(call Image/Build/$(1),$(1)) endef +define Image/Build/jffs2-256k + ( \ + dd if=$(LINUX_DIR)/arch/ppc/boot/images/uImage bs=4096k conv=sync; \ + dd if=$(KDIR)/root.$(1) bs=256k conv=sync; \ + ) > $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-jffs2.img +endef + define Image/Build/squashfs $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) ( \ -- cgit v1.1