Signed-off-by: Eugene San (eugenesan) <eugene...@gmail.com> --- target/linux/kirkwood/Makefile | 4 +- .../linux/kirkwood/base-files/etc/config/network | 37 ++++++++++++++++++++ target/linux/kirkwood/config-default-rd88f6281 | 20 +++++++++++ target/linux/kirkwood/image/Makefile | 10 ++++- .../patches/001-openwrt_partition_map.patch | 21 +++++++++-- target/linux/kirkwood/profiles/400-rd88f6281.mk | 17 +++++++++ 6 files changed, 102 insertions(+), 7 deletions(-) create mode 100644 target/linux/kirkwood/base-files/etc/config/network create mode 100644 target/linux/kirkwood/config-default-rd88f6281 create mode 100644 target/linux/kirkwood/profiles/400-rd88f6281.mk
diff --git a/target/linux/kirkwood/Makefile b/target/linux/kirkwood/Makefile index 37d6d3d..96cef3f 100644 --- a/target/linux/kirkwood/Makefile +++ b/target/linux/kirkwood/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk ARCH:=arm BOARD:=kirkwood BOARDNAME:=Marvell Kirkwood -FEATURES:=targz usb jffs2 +FEATURES:=targz usb jffs2 squashfs MAINTAINER:=Imre Kaloz <ka...@openwrt.org> LINUX_VERSION:=2.6.37.4 @@ -18,6 +18,6 @@ include $(INCLUDE_DIR)/target.mk KERNELNAME:="uImage" -DEFAULT_PACKAGES += +DEFAULT_PACKAGES += kmod-crypto-mv-cesa $(eval $(call BuildTarget)) diff --git a/target/linux/kirkwood/base-files/etc/config/network b/target/linux/kirkwood/base-files/etc/config/network new file mode 100644 index 0000000..d24221f --- /dev/null +++ b/target/linux/kirkwood/base-files/etc/config/network @@ -0,0 +1,37 @@ +config 'interface' 'loopback' + option 'ifname' 'lo' + option 'proto' 'static' + option 'ipaddr' '127.0.0.1' + option 'netmask' '255.0.0.0' + +config 'interface' 'eth0' + option 'ifname' 'eth0' + +config 'interface' 'lan' + option 'ifname' 'lan1 lan2 lan3 lan4' + option 'type' 'bridge' + option 'proto' 'static' + option 'netmask' '255.255.255.0' + option 'nat' '1' + option 'stp' '1' + option 'ipaddr' '192.168.2.1' + +config 'interface' 'wan' + option 'hostname' 'openwrt' + option 'proto' 'dhcp' + option 'defaultroute' '0' + option 'peerdns' '0' + option 'type' 'bridge' + option 'ifname' 'wan eth1 eth2' + +config 'wifi-device' 'wifi0' + option 'type' 'mac80211' + option 'channel' '5' + +config 'wifi-iface' + option 'device' 'wlan0' + option 'network' 'lan' + option 'mode' 'ap' + option 'ssid' 'openwrt' + option 'hidden' '0' + option 'encryption' 'none' diff --git a/target/linux/kirkwood/config-default-rd88f6281 b/target/linux/kirkwood/config-default-rd88f6281 new file mode 100644 index 0000000..56e64d5 --- /dev/null +++ b/target/linux/kirkwood/config-default-rd88f6281 @@ -0,0 +1,20 @@ +CONFIG_MACH_RD88F6281=y +CONFIG_CMDLINE="rootdelay=1 console=ttyS0,115200 panic=5" +CONFIG_NET_DSA_MV88E6123_61_65=y +CONFIG_INITRAMFS_COMPRESSION_GZIP=y +CONFIG_RD_GZIP=y +CONFIG_BLK_DEV_INITRD=y +CONFIG_BLK_DEV_RAM=y +CONFIG_BLK_DEV_RAM_COUNT=16 +CONFIG_BLK_DEV_RAM_SIZE=65536 +CONFIG_MTD_UBI=y +CONFIG_MTD_UBI_WL_THRESHOLD=4096 +CONFIG_MTD_UBI_BEB_RESERVE=1 +# CONFIG_MTD_UBI_GLUEBI is not set +# CONFIG_MTD_UBI_DEBUG is not set +CONFIG_UBIFS_FS=y +# CONFIG_UBIFS_FS_XATTR is not set +# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set +CONFIG_UBIFS_FS_LZO=y +CONFIG_UBIFS_FS_ZLIB=y +# CONFIG_UBIFS_FS_DEBUG is not set diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile index c93be67..3972b61 100644 --- a/target/linux/kirkwood/image/Makefile +++ b/target/linux/kirkwood/image/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2009-2010 OpenWrt.org +# Copyright (C) 2009-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,9 +8,11 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk JFFS2OPTS += --little-endian --pagesize=0x800 --no-cleanmarkers --pad +JFFS2_BLOCKSIZE = 128k define Image/Prepare cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage + cp $(LINUX_DIR)/arch/arm/boot/zImage $(KDIR)/zImage endef define Image/BuildKernel @@ -31,10 +33,14 @@ define Image/Build/jffs2-128k endef define Image/Build/squashfs + $(STAGING_DIR_HOST)/bin/mkimage -A arm -O linux -T multi \ + -C none -a 0x00008000 -e 0x00008000 -n 'Linux-$(LINUX_VERSION)-initrd' \ + -d $(KDIR)/zImage:$(KDIR)/root.squashfs $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).uimg + $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) ( \ dd if=$(KDIR)/uImage bs=4096k conv=sync; \ - dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \ + dd if=$(KDIR)/root.squashfs bs=128k conv=sync; \ ) > $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img endef diff --git a/target/linux/kirkwood/patches/001-openwrt_partition_map.patch b/target/linux/kirkwood/patches/001-openwrt_partition_map.patch index 0f94adc..eace9d5 100644 --- a/target/linux/kirkwood/patches/001-openwrt_partition_map.patch +++ b/target/linux/kirkwood/patches/001-openwrt_partition_map.patch @@ -1,6 +1,21 @@ ---- a/arch/arm/mach-kirkwood/sheevaplug-setup.c -+++ b/arch/arm/mach-kirkwood/sheevaplug-setup.c -@@ -33,7 +33,7 @@ static struct mtd_partition sheevaplug_n +Index: linux-2.6.37/arch/arm/mach-kirkwood/rd88f6281-setup.c +=================================================================== +--- linux-2.6.37.orig/arch/arm/mach-kirkwood/rd88f6281-setup.c 2011-02-01 12:29:21.463104001 +0200 ++++ linux-2.6.37/arch/arm/mach-kirkwood/rd88f6281-setup.c 2011-02-01 12:29:34.051104000 +0200 +@@ -34,7 +34,7 @@ + .offset = MTDPART_OFS_NXTBLK, + .size = SZ_2M + }, { +- .name = "root", ++ .name = "rootfs", + .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL + }, +Index: linux-2.6.37/arch/arm/mach-kirkwood/sheevaplug-setup.c +=================================================================== +--- linux-2.6.37.orig/arch/arm/mach-kirkwood/sheevaplug-setup.c 2011-02-01 12:29:21.483104001 +0200 ++++ linux-2.6.37/arch/arm/mach-kirkwood/sheevaplug-setup.c 2011-02-01 12:29:34.051104000 +0200 +@@ -33,7 +33,7 @@ .offset = MTDPART_OFS_NXTBLK, .size = SZ_4M }, { diff --git a/target/linux/kirkwood/profiles/400-rd88f6281.mk b/target/linux/kirkwood/profiles/400-rd88f6281.mk new file mode 100644 index 0000000..6910bd3 --- /dev/null +++ b/target/linux/kirkwood/profiles/400-rd88f6281.mk @@ -0,0 +1,17 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/rd88f6281 + NAME:=Marvell RD-88F6281 Reference Board + PACKAGES:= kmod-ath9k wpad-mini +endef + +define Profile/rd88f6281/Description + Marvell RD-88F6281 Reference Board Profile +endef + +$(eval $(call Profile,rd88f6281)) -- 1.7.4.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel