[OpenWrt-Devel] [PATCH] kirkwood: add support for Marvell rd88f6281 as gateway+nas profile in legacy mode
Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- .../base-files/etc/uci-defaults/02_network | 39 +- target/linux/kirkwood/config-3.10 | 9 +++-- target/linux/kirkwood/config-3.14 | 8 - target/linux/kirkwood/image/Makefile | 14 +++- 4 files changed, 65 insertions(+), 5 deletions(-) diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network index 0c55cbf..11a30c0 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network @@ -20,11 +20,44 @@ set network.lan6.reqprefix='no' EOF } +set_wan_dhcp() { + local ifname=$1 + uci batch EOF +set network.wan='interface' +set network.wan.ifname='$ifname' +set network.wan.proto='dhcp' +set network.wan.type='bridge' +set network.wan6='interface' +set network.wan6.ifname='@wan' +set network.wan6.proto='dhcpv6' +set network.wan6.reqprefix='no' +EOF +} + +set_lan_static() { + local ifname=$1 + uci batch EOF +set network.lan='interface' +set network.lan.ifname='$ifname' +set network.lan.proto='static' +set network.lan.type='bridge' +set network.lan.ipaddr='192.168.2.1' +set network.lan.netmask='255.255.255.0' +set network.lan.nat='1' +EOF +} + . /lib/functions/uci-defaults.sh ucidef_set_interface_loopback -case `cat /proc/device-tree/model` in +if [ -r /proc/device-tree/model ]; then + model=`cat /proc/device-tree/model` +else + model=`grep ^Hardware /proc/cpuinfo | sed s/Hardware.*: \(.*\)/\1/g` +fi + +case $model in Seagate FreeAgent Dockstar) set_lan_dhcp eth0 ;; @@ -40,6 +73,10 @@ case `cat /proc/device-tree/model` in Linksys EA4500) ucidef_set_interfaces_lan_wan eth0 eth1 ;; +Marvell RD-88F6281 Reference Board) + set_lan_static lan1 lan2 lan3 lan4 + set_wan_dhcp wan eth1 eth2 + ;; *) ucidef_set_interface_lan eth0 ;; diff --git a/target/linux/kirkwood/config-3.10 b/target/linux/kirkwood/config-3.10 index d6606d3..4ae830a 100644 --- a/target/linux/kirkwood/config-3.10 +++ b/target/linux/kirkwood/config-3.10 @@ -60,6 +60,7 @@ CONFIG_DEBUG_LL_INCLUDE=mach/debug-macro.S # CONFIG_DLCI is not set CONFIG_DNOTIFY=y CONFIG_DTC=y +CONFIG_ETHERNET_PACKET_MANGLE=y CONFIG_EXT4_FS=y CONFIG_FRAME_POINTER=y CONFIG_FS_MBCACHE=y @@ -126,6 +127,7 @@ CONFIG_HW_RANDOM=y CONFIG_HZ_PERIODIC=y CONFIG_I2C=y CONFIG_I2C_BOARDINFO=y +CONFIG_I2C_MV64XXX=y CONFIG_INET_LRO=y CONFIG_INITRAMFS_SOURCE= # CONFIG_IP_ADVANCED_ROUTER is not set @@ -158,11 +160,12 @@ CONFIG_MACH_DLINK_KIRKWOOD_DT=y # CONFIG_MACH_OPENRD_CLIENT is not set # CONFIG_MACH_OPENRD_ULTIMATE is not set # CONFIG_MACH_RD88F6192_NAS is not set -# CONFIG_MACH_RD88F6281 is not set -# CONFIG_MACH_SHEEVAPLUG is not set +CONFIG_MACH_RD88F6281=y +CONFIG_MACH_SHEEVAPLUG=y # CONFIG_MACH_T5325 is not set # CONFIG_MACH_TS219 is not set # CONFIG_MACH_TS41X is not set +CONFIG_MARVELL_PHY=y CONFIG_MDIO_BOARDINFO=y CONFIG_MMC=y CONFIG_MMC_BLOCK=y @@ -187,6 +190,7 @@ CONFIG_MVEBU_CLK_CORE=y CONFIG_MVEBU_CLK_GATING=y CONFIG_MVEBU_MBUS=y CONFIG_MVMDIO=y +CONFIG_MVSWITCH_PHY=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_KUSER_HELPERS=y CONFIG_NEED_PER_CPU_KM=y @@ -253,6 +257,7 @@ CONFIG_SPI=y CONFIG_SPI_MASTER=y CONFIG_SPI_ORION=y CONFIG_SPLIT_PTLOCK_CPUS=99 +CONFIG_SWCONFIG=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y CONFIG_TICK_CPU_ACCOUNTING=y CONFIG_UBIFS_FS=y diff --git a/target/linux/kirkwood/config-3.14 b/target/linux/kirkwood/config-3.14 index 381ce75..b81aefc 100644 --- a/target/linux/kirkwood/config-3.14 +++ b/target/linux/kirkwood/config-3.14 @@ -72,6 +72,7 @@ CONFIG_DEBUG_UART_VIRT=0xfed12000 # CONFIG_DLCI is not set CONFIG_DNOTIFY=y CONFIG_DTC=y +CONFIG_ETHERNET_PACKET_MANGLE=y CONFIG_EXT4_FS=y CONFIG_FRAME_POINTER=y CONFIG_FS_MBCACHE=y @@ -146,6 +147,7 @@ CONFIG_HZ_FIXED=0 CONFIG_HZ_PERIODIC=y CONFIG_I2C=y CONFIG_I2C_BOARDINFO=y +CONFIG_I2C_MV64XXX=y CONFIG_INET_LRO=y CONFIG_INITRAMFS_SOURCE= CONFIG_IOMMU_HELPER=y @@ -158,6 +160,7 @@ CONFIG_IRQ_FORCED_THREADING=y CONFIG_IRQ_WORK=y CONFIG_JBD2=y CONFIG_KIRKWOOD_CLK=y +CONFIG_KIRKWOOD_LEGACY=y CONFIG_KTIME_SCALAR=y CONFIG_LEDS_GPIO=y CONFIG_LEDS_NETXBIG=y @@ -175,10 +178,11 @@ CONFIG_LZO_DECOMPRESS=y # CONFIG_MACH_OPENRD_CLIENT is not set # CONFIG_MACH_OPENRD_ULTIMATE is not set # CONFIG_MACH_RD88F6192_NAS is not set -# CONFIG_MACH_RD88F6281 is not set +CONFIG_MACH_RD88F6281=y # CONFIG_MACH_T5325 is not set # CONFIG_MACH_TS219 is not set # CONFIG_MACH_TS41X is not set +CONFIG_MARVELL_PHY=y CONFIG_MDIO_BOARDINFO=y # CONFIG_MLX5_CORE is not set CONFIG_MMC=y @@ -204,6 +208,7 @@ CONFIG_MVEBU_CLK_COMMON=y CONFIG_MVEBU_MBUS=y CONFIG_MVMDIO=y # CONFIG_MVNETA is not set +CONFIG_MVSWITCH_PHY=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_KUSER_HELPERS=y CONFIG_NEED_PER_CPU_KM
[OpenWrt-Devel] [PATCH 1/5] [packages] mc: update version to 4.7.5.3 with addition of mcview and mcdiff
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- utils/mc/Config.in | 20 +++ utils/mc/Makefile | 54 +++ 2 files changed, 53 insertions(+), 21 deletions(-) create mode 100644 utils/mc/Config.in diff --git a/utils/mc/Config.in b/utils/mc/Config.in new file mode 100644 index 000..1f503f8 --- /dev/null +++ b/utils/mc/Config.in @@ -0,0 +1,20 @@ +# mc package config + +menu Configuration + depends on PACKAGE_mc + +config MC_DISABLE_EDITOR + bool Disable internal editor + default y + help +Disables internal editor. +If unsure, choose the default Y. + +config MC_DISABLE_SUBSHELL + bool Disable subshell + default y + help +Disables background shell. +If unsure, choose the default Y. + +endmenu diff --git a/utils/mc/Makefile b/utils/mc/Makefile index 974f2da..0a162c6 100644 --- a/utils/mc/Makefile +++ b/utils/mc/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mc -PKG_VERSION:=4.7.5.2 +PKG_VERSION:=4.7.5.3 PKG_RELEASE:=3 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=http://www.midnight-commander.org/downloads/ -PKG_MD5SUM:=9fdfe7c0fcff362436eb35fcd1adf0fd +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=https://www.midnight-commander.org/downloads/ +PKG_MD5SUM:=6a67e139e0032d8a871455a80d490941 PKG_BUILD_PARALLEL:=1 @@ -21,32 +21,39 @@ include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk define Package/mc - SECTION:=utils - CATEGORY:=Utilities - DEPENDS:=+glib2 +libncurses +libiconv - TITLE:=midnight commander - a powerful file manager - URL:=http://www.midnight-commander.org/ - SUBMENU:=filemanager - MAINTAINER:=Luka Perkov open...@lukaperkov.net + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+glib2 +libncurses +libiconv + TITLE:=midnight commander - a powerful file manager + URL:=http://www.midnight-commander.org/ + SUBMENU:=Filemanager + MAINTAINER:=Luka Perkov open...@lukaperkov.net + MENU:=1 endef define Package/mc/description - GNU Midnight Commander is a visual file manager, licensed under GNU General - Public License and therefore qualifies as Free Software. It's a feature rich - full-screen text mode application that allows you to copy, move and delete - files and whole directory trees, search for files and run commands in the - subshell. + GNU Midnight Commander is a visual file manager, licensed under GNU General + Public License and therefore qualifies as Free Software. It's a feature rich + full-screen text mode application that allows you to copy, move and delete + files and whole directory trees, search for files and run commands in the + subshell. endef +define Package/mc/config + source $(SOURCE)/Config.in +endef + +mc-conf-args-$(CONFIG_MC_DISABLE_EDITOR) += --without-edit +mc-conf-args-$(CONFIG_MC_DISABLE_SUBSHELL) += --without-subshell + CONFIGURE_ARGS += \ --enable-utf8 \ --disable-vfs \ --with-screen=ncurses \ - --without-edit \ --without-gpm-mouse \ - --without-subshell \ --without-x \ - ac_cv_search_addwstr=no + ac_cv_search_addwstr=no \ + $(mc-conf-args-y) AM_HOST=$(firstword $(wildcard $(STAGING_DIR_HOST)/share/automake-*)) @@ -61,6 +68,11 @@ endef define Package/mc/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin/ + ln -sf mc $(1)/usr/bin/mcview + ln -sf mc $(1)/usr/bin/mcdiff +ifneq ($(CONFIG_MC_DISABLE_EDITOR),y) + ln -sf mc $(1)/usr/bin/mcedit +endif $(INSTALL_DIR) $(1)/etc/mc $(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/mc.menu $(1)/etc/mc $(INSTALL_DIR) $(1)/etc/mc/skins @@ -69,8 +81,8 @@ define Package/mc/install endef define Package/mc/conffiles -/etc/mc/mc.menu -/etc/mc/skins/default.ini + /etc/mc/mc.menu + /etc/mc/skins/default.ini endef $(eval $(call BuildPackage,mc)) -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 3/5] [packages] rsync: cosmetic changes after package split
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- net/rsync/Makefile | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/net/rsync/Makefile b/net/rsync/Makefile index 46670e5..f6d8eb1 100644 --- a/net/rsync/Makefile +++ b/net/rsync/Makefile @@ -21,20 +21,20 @@ PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk define Package/rsync - SECTION:=net - CATEGORY:=Network - SUBMENU:=File Transfer - TITLE:=Fast remote file copy program (like rcp) - DEPENDS:=+libpopt - URL:=http://rsync.samba.org/ + SECTION:=net + CATEGORY:=Network + SUBMENU:=File Transfer + TITLE:=Fast remote file copy program (like rcp) + DEPENDS:=+libpopt + URL:=http://rsync.samba.org/ endef define Package/rsyncd - SECTION:=net - CATEGORY:=Network - SUBMENU:=File Transfer - TITLE:=Rsync daemon - DEPENDS:=+rsync + SECTION:=net + CATEGORY:=Network + SUBMENU:=File Transfer + TITLE:=Rsync daemon + DEPENDS:=+rsync endef define Package/rsync/description @@ -54,7 +54,7 @@ CONFIGURE_ARGS += \ --disable-debug \ --disable-locale \ --disable-xattr-support \ - --disable-acl-support \ + --disable-acl-support define Package/rsync/install $(INSTALL_DIR) $(1)/usr/bin @@ -68,7 +68,7 @@ define Package/rsyncd/description endef define Package/rsyncd/conffiles -/etc/rsyncd.conf + /etc/rsyncd.conf endef define Package/rsyncd/install -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 4/5] [packages] smartmontools: split daemon into separate package
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- utils/smartmontools/Makefile | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/utils/smartmontools/Makefile b/utils/smartmontools/Makefile index 9220aea..606d601 100644 --- a/utils/smartmontools/Makefile +++ b/utils/smartmontools/Makefile @@ -1,5 +1,5 @@ -# -# Copyright (C) 2006-2010 OpenWrt.org +# +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -25,6 +25,13 @@ define Package/smartmontools URL:=http://smartmontools.sourceforge.net/ endef +define Package/smartmontools-daemon + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+rsync + TITLE:=S.M.A.R.T Monitoring Daemon +endef + define Package/smartmontools/description smartmontools contains utility programs (smartctl, smartd) to control/monitor storage systems using the Self-Monitoring, Analysis @@ -55,11 +62,15 @@ endef define Package/smartmontools/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/smartctl $(1)/usr/sbin/ +endef + +define Package/smartmontools-daemon/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/smartd $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/etc - $(INSTALL_DATA) ./files/smartd.conf $(1)/etc + $(INSTALL_DATA) ./files/smartd.conf $(1)/etc/ $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/smartd.init $(1)/etc/init.d/smartd endef $(eval $(call BuildPackage,smartmontools)) +$(eval $(call BuildPackage,smartmontools-daemon)) -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 0/5] [feeds/packages] updates for several packages
From: Eugene San (eugenesan) eugene...@gmail.com Next patches provide updates for several packages in feeds/packages: [packages] mc: update version to 4.7.5.3 with addition of mcview and mcdiff [packages] motion: update version to fix build with Lunux 2.6.38+ [packages] rsync: cosmetic changes after package split [packages] smartmontools: split daemon into separate package [packages] samba3: update version to 3.0.47 Thanks to Maarten Bezemer m.m.beze...@utwente.nl multimedia/motion/Makefile|4 +- net/rsync/Makefile| 26 +- net/samba3/Config.in | 19 + net/samba3/Makefile | 134 +- net/samba3/files/config-lfs.h | 56 - net/samba3/files/nmbd.init| 14 + net/samba3/files/samba.config | 12 +- net/samba3/files/samba.init | 72 - net/samba3/files/smb.conf.template|9 +- net/samba3/files/smbd.init| 70 + net/samba3/patches/100-avm.patch | 7182 +++-- net/samba3/patches/110-compile_fixes.patch| 87 +- net/samba3/patches/120-owrt_paths.patch | 82 +- net/samba3/patches/130-owrt_smbpasswd.patch | 28 +- net/samba3/patches/140-no_mmap.patch | 27 - net/samba3/patches/170-no_rpc.patch | 49 +- net/samba3/patches/180-fix_duplicate_define.patch | 12 - net/samba3/patches/200-fix-configure.patch| 14 + net/samba3/patches/500-remove_avm_smaller.patch | 78 + net/samba3/patches/510-remove-printing.patch | 49 + utils/mc/Config.in| 20 + utils/mc/Makefile | 54 +- utils/smartmontools/Makefile | 17 +- 23 files changed, 1330 insertions(+), 6785 deletions(-) delete mode 100644 net/samba3/files/config-lfs.h create mode 100644 net/samba3/files/nmbd.init delete mode 100755 net/samba3/files/samba.init create mode 100644 net/samba3/files/smbd.init create mode 100644 net/samba3/patches/200-fix-configure.patch create mode 100644 net/samba3/patches/500-remove_avm_smaller.patch create mode 100644 net/samba3/patches/510-remove-printing.patch create mode 100644 utils/mc/Config.in -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/5] [packages] motion: update version to fix build with Lunux 2.6.38+
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- multimedia/motion/Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/multimedia/motion/Makefile b/multimedia/motion/Makefile index 867333f..2ddc460 100644 --- a/multimedia/motion/Makefile +++ b/multimedia/motion/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=motion -PKG_VERSION:=3.2.11.1 +PKG_VERSION:=20110826-051001 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.lavrsen.dk/sources/motion-daily \ @SF/motion -PKG_MD5SUM:=4e729f129d8f9b9abaed5121c3cd0037 +PKG_MD5SUM:=e703fce57ae2215cb05f25e3027f5818 PKG_INSTALL:=1 -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/6] target: allow separate kernel configuration for profiles
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- include/target.mk | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/target.mk b/include/target.mk index af32309..135561d 100644 --- a/include/target.mk +++ b/include/target.mk @@ -111,18 +111,20 @@ GENERIC_PLATFORM_DIR := $(TOPDIR)/target/linux/generic GENERIC_PATCH_DIR := $(GENERIC_PLATFORM_DIR)/patches$(if $(wildcard $(GENERIC_PLATFORM_DIR)/patches-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) GENERIC_FILES_DIR := $(foreach dir,$(wildcard $(GENERIC_PLATFORM_DIR)/files $(GENERIC_PLATFORM_DIR)/files-$(KERNEL_PATCHVER)),$(dir)) -__config_name_list = $(1)/config-$(KERNEL_PATCHVER) $(1)/config-default -__config_list = $(firstword $(wildcard $(call __config_name_list,$(1 +__config_name_list = $(1)/config-$(KERNEL_PATCHVER)$(2) $(1)/config-default$(2) +__config_list = $(firstword $(wildcard $(call __config_name_list,$(1),$(2 find_kernel_config=$(if $(__config_list),$(__config_list),$(lastword $(__config_name_list))) -GENERIC_LINUX_CONFIG = $(call find_kernel_config,$(GENERIC_PLATFORM_DIR)) -LINUX_TARGET_CONFIG = $(call find_kernel_config,$(PLATFORM_DIR)) +GENERIC_LINUX_CONFIG = $(call find_kernel_config,$(GENERIC_PLATFORM_DIR),) +LINUX_TARGET_CONFIG = $(call find_kernel_config,$(PLATFORM_DIR),) ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)) - LINUX_SUBTARGET_CONFIG = $(call find_kernel_config,$(PLATFORM_SUBDIR)) + LINUX_SUBTARGET_CONFIG = $(call find_kernel_config,$(PLATFORM_SUBDIR),) endif +LINUX_PROFILE_CONFIG = $(call find_kernel_config,$(PLATFORM_SUBDIR),-$(PROFILE)) + # config file list used for compiling -LINUX_KCONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG) $(LINUX_SUBTARGET_CONFIG) $(TOPDIR)/env/kernel-config) +LINUX_KCONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG) $(LINUX_SUBTARGET_CONFIG) $(LINUX_PROFILE_CONFIG) $(TOPDIR)/env/kernel-config) # default config list for reconfiguring # defaults to subtarget if subtarget exists and target does not -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 3/6] kernel: allow parallel build of image and modules
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- Config.in | 13 + include/kernel-defaults.mk |6 -- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Config.in b/Config.in index f36221c..f4dbf80 100644 --- a/Config.in +++ b/Config.in @@ -307,6 +307,19 @@ menu Global build settings If you say Y, toolchain build might break. Before reporting build bugs, set this to N and re-run the build. + config KERNEL_PARALLEL + bool + prompt Parallelize the kernel build (May break build) + depends on PKG_BUILD_PARALLEL + default n + help + Build the kernel with parallel make jobs. + This speeds up the kernel build on SMP machines, but may + break the build for certain toolchain versions. + + If you say Y, kernel build might break. + Before reporting build bugs, set this to N and re-run the build. + comment Stripping options choice diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 5fd27ae..b637577 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -5,6 +5,8 @@ # See /LICENSE for more information. # +KERNEL_JOBS?=$(if $(CONFIG_KERNEL_PARALLEL),-j$(CONFIG_PKG_BUILD_JOBS)) + KERNEL_MAKEOPTS := -C $(LINUX_DIR) \ CROSS_COMPILE=$(KERNEL_CROSS) \ ARCH=$(LINUX_KARCH) \ @@ -93,14 +95,14 @@ endef define Kernel/CompileModules/Default rm -f $(LINUX_DIR)/vmlinux $(LINUX_DIR)/System.map - +$(MAKE) $(KERNEL_MAKEOPTS) modules + +$(MAKE) $(KERNEL_MAKEOPTS) $(KERNEL_JOBS) modules endef OBJCOPY_STRIP = -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id define Kernel/CompileImage/Default $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),,rm -f $(TARGET_DIR)/init) - +$(MAKE) $(KERNEL_MAKEOPTS) $(KERNELNAME) + +$(MAKE) $(KERNEL_MAKEOPTS) $(KERNEL_JOBS) $(KERNELNAME) $(KERNEL_CROSS)objcopy -O binary $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL) $(KERNEL_CROSS)objcopy $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux.elf endef -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 4/6] include/image.mk: allow paralell squashfs image compression
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- include/image.mk |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/image.mk b/include/image.mk index 65d79f4..824f6d5 100644 --- a/include/image.mk +++ b/include/image.mk @@ -87,7 +87,7 @@ else ifneq ($(CONFIG_TARGET_ROOTFS_SQUASHFS),) define Image/mkfs/squashfs @mkdir -p $(TARGET_DIR)/overlay - $(STAGING_DIR_HOST)/bin/mksquashfs4 $(TARGET_DIR) $(KDIR)/root.squashfs -nopad -noappend -root-owned -comp $(SQUASHFSCOMP) -processors 1 + $(STAGING_DIR_HOST)/bin/mksquashfs4 $(TARGET_DIR) $(KDIR)/root.squashfs -nopad -noappend -root-owned -comp $(SQUASHFSCOMP) -processors $(CONFIG_PKG_BUILD_JOBS) $(call Image/Build,squashfs) endef endif -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 5/6] settle git and gitsvn support
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- docs/build.tex | 61 +++- feeds.conf.default |4 +++ scripts/feeds |2 +- 3 files changed, 65 insertions(+), 2 deletions(-) diff --git a/docs/build.tex b/docs/build.tex index 6e1539a..910ad0a 100644 --- a/docs/build.tex +++ b/docs/build.tex @@ -41,12 +41,71 @@ So let's take a look at OpenWrt and see how this all works. \subsubsection{Download OpenWrt} -OpenWrt can be downloaded via subversion using the following command: +OpenWrt can be downloaded via subversion and git. + +For downloading using pure subversion (svn) use the following command: \begin{Verbatim} $ svn checkout svn://svn.openwrt.org/openwrt/trunk openwrt-trunk \end{Verbatim} +To install additional components (feeds) use the following command: + +\begin{Verbatim} +$ make package/symlinks +\end{Verbatim} + +In future to update main tree and feeds use the following commands: +\begin{Verbatim} +$ svn up +$ ./scripts/feeds update +\end{Verbatim} + +For downloading using pure git use the following command: + +\begin{Verbatim} +$ git clone git://nbd.name/openwrt.git openwrt-trunk +\end{Verbatim} + +In case you are planning to use git also for additional components (feeds and luci), +please create copy of feeds.conf.default as feeds.conf in which only lines starting +with src-git are uncommented. + +To install additional components (feeds) use the following command: + +\begin{Verbatim} +$ make package/symlinks +\end{Verbatim} + +In future to update main tree and feeds use the following commands: +\begin{Verbatim} +$ git fetch origin +$ git rebase origin/master +$ ./scripts/feeds update +\end{Verbatim} + +For downloading using git (while upstream repository is tracked as SVN) use the following command: + +\begin{Verbatim} +$ git svn clone svn://svn.openwrt.org/openwrt/trunk openwrt-trunk +\end{Verbatim} + +In case you are planning to use gitsvn also for additional components (feeds and luci), +please create copy of feeds.conf.default as feeds.conf in which only lines starting +with src-gitsvn are uncommented. +To install additional components (feeds) use the following command: + +\begin{Verbatim} +$ make package/symlinks +\end{Verbatim} + +In future to update main tree and feeds use the following commands: +\begin{Verbatim} +$ git svn fetch +$ git svn rebase +$ ./scripts/feeds update +\end{Verbatim} + Additionally, there is a trac interface on \href{https://dev.openwrt.org/}{https://dev.openwrt.org/} which can be used to monitor svn commits and browse the source repository. diff --git a/feeds.conf.default b/feeds.conf.default index c4ac535..3281049 100644 --- a/feeds.conf.default +++ b/feeds.conf.default @@ -7,3 +7,7 @@ src-svn luci http://svn.luci.subsignal.org/luci/trunk/contrib/package #src-svn xfce svn://svn.openwrt.org/openwrt/feeds/xfce #src-svn lxde svn://svn.openwrt.org/openwrt/feeds/lxde #src-link custom /usr/src/openwrt/custom-feed +#src-git packages git://nbd.name/packages.git +#src-git luci git://nbd.name/luci.git +#src-gitsvn packages svn://svn.openwrt.org/openwrt/packages +#src-gitsvn luci http://svn.luci.subsignal.org/luci/trunk/contrib/package diff --git a/scripts/feeds b/scripts/feeds index 6121a62..1b6633b 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -115,7 +115,7 @@ my %update_method = ( 'src-git' = { 'init' = git clone --depth 1 '%s' '%s', 'init_branch' = git clone --depth 1 --branch '%s' '%s' '%s', - 'update'= git pull, + 'update'= git fetch; git rebase, 'controldir'= .git}, 'src-gitsvn' = { 'init' = git svn clone -r HEAD '%s' '%s', -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 6/6] [package] mac80211: fix mwl8k firmware treatment at build and run times
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- package/mac80211/Makefile |4 +- .../701-mwl8k-firmware-reload-workaround.patch | 29 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 package/mac80211/patches/701-mwl8k-firmware-reload-workaround.patch diff --git a/package/mac80211/Makefile b/package/mac80211/Makefile index e2942f8..3fdd691 100644 --- a/package/mac80211/Makefile +++ b/package/mac80211/Makefile @@ -1326,14 +1326,14 @@ define KernelPackage/ath9k-htc/install endef define KernelPackage/mwl8k/install - $(INSTALL_DIR) $(1)/lib/firmware + $(INSTALL_DIR) $(1)/lib/firmware/mwl8k/ $(INSTALL_DATA) \ $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/fmimage_8366_ap-2.fw \ $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/fmimage_8366.fw \ $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/helper_8366.fw \ $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/fmimage_8687.fw \ $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/helper_8687.fw \ - $(1)/lib/firmware/ + $(1)/lib/firmware/mwl8k/ endef define KernelPackage/net-ipw2100/install diff --git a/package/mac80211/patches/701-mwl8k-firmware-reload-workaround.patch b/package/mac80211/patches/701-mwl8k-firmware-reload-workaround.patch new file mode 100644 index 000..7c09699 --- /dev/null +++ b/package/mac80211/patches/701-mwl8k-firmware-reload-workaround.patch @@ -0,0 +1,29 @@ +--- a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c +@@ -5470,7 +5470,7 @@ + */ + static int mwl8k_reload_firmware(struct ieee80211_hw *hw, char *fw_image) + { +- int i, rc = 0; ++ int i, rc, loops = 0; + struct mwl8k_priv *priv = hw-priv; + + mwl8k_stop(hw); +@@ -5479,7 +5479,16 @@ + for (i = 0; i mwl8k_tx_queues(priv); i++) + mwl8k_txq_deinit(hw, i); + +- rc = mwl8k_init_firmware(hw, fw_image, false); ++ loops = 5; ++ do { ++ rc = mwl8k_init_firmware(hw, fw_image, false); ++ if (rc) ++ printk(KERN_WARNING mwl8k: Failed to init firmware, will retry in 5 seconds @%s:%d.\n, __FUNCTION__, __LINE__); ++ else ++ break; ++ ++ msleep(5000); ++ } while (--loops); + if (rc) + goto fail; + -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 0/6] several fixes and enhancements
From: Eugene San (eugenesan) eugene...@gmail.com Next patches provide several fixes and enhancements listed below: target: allow separate kernel configuration for profiles kernel: add some missing usb modules kernel: allow parallel build of image and modules include/image.mk: allow paralell squashfs image compression settle git and gitsvn support [package] mac80211: fix mwl8k firmware treatment at build and run times Config.in | 13 docs/build.tex | 61 +++- feeds.conf.default |4 + include/image.mk |2 +- include/kernel-defaults.mk |6 +- include/target.mk | 14 +++-- package/mac80211/Makefile |4 +- .../701-mwl8k-firmware-reload-workaround.patch | 29 + scripts/feeds |2 +- target/linux/generic/config-3.0|6 +- 10 files changed, 125 insertions(+), 16 deletions(-) create mode 100644 package/mac80211/patches/701-mwl8k-firmware-reload-workaround.patch -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/6] kernel: add some missing usb modules
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- target/linux/generic/config-3.0 |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target/linux/generic/config-3.0 b/target/linux/generic/config-3.0 index ed8ad82..d8bd005 100644 --- a/target/linux/generic/config-3.0 +++ b/target/linux/generic/config-3.0 @@ -2893,13 +2893,13 @@ CONFIG_USB_SERIAL_SAFE_PADDED=y # CONFIG_USB_STKWEBCAM is not set # CONFIG_USB_STORAGE is not set CONFIG_USB_STORAGE_ALAUDA=y -# CONFIG_USB_STORAGE_CYPRESS_ATACB is not set -# CONFIG_USB_STORAGE_ENE_UB6250 is not set +CONFIG_USB_STORAGE_CYPRESS_ATACB=y +CONFIG_USB_STORAGE_ENE_UB6250=y CONFIG_USB_STORAGE_DATAFAB=y # CONFIG_USB_STORAGE_DEBUG is not set # CONFIG_USB_STORAGE_REALTEK is not set CONFIG_USB_STORAGE_FREECOM=y -# CONFIG_USB_STORAGE_ISD200 is not set +CONFIG_USB_STORAGE_ISD200=y CONFIG_USB_STORAGE_JUMPSHOT=y CONFIG_USB_STORAGE_KARMA=y # CONFIG_USB_STORAGE_ONETOUCH is not set -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 4/5] [orion] tune default network config
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- target/linux/orion/base-files/etc/config/network | 39 -- 1 files changed, 21 insertions(+), 18 deletions(-) diff --git a/target/linux/orion/base-files/etc/config/network b/target/linux/orion/base-files/etc/config/network index e7fdecd..24d7a39 100644 --- a/target/linux/orion/base-files/etc/config/network +++ b/target/linux/orion/base-files/etc/config/network @@ -1,22 +1,25 @@ -# Copyright (C) 2008 OpenWrt.org +# Copyright (C) 2011 OpenWrt.org -config interface loopback -option ifname lo -option protostatic -option ipaddr 127.0.0.1 -option netmask 255.0.0.0 +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' 'eth0' + option 'ifname' 'eth0' + option 'proto' 'none' -config interface wan - option ifname wan - option protodhcp - option hostname openwrt +config 'interface' 'wan' + option 'hostname' 'OpenWrt' + option 'proto' 'dhcp' + option 'type' 'bridge' + option 'ifname' 'wan eth1 eth2' -config interface lan -option ifname lan1 lan2 lan3 lan4 -option type bridge -option protostatic -option ipaddr 192.168.1.1 -option netmask 255.255.255.0 +config 'interface' 'lan' + option 'type' 'bridge' + option 'proto' 'static' + option 'netmask' '255.255.255.0' + option 'nat' '1' + option 'ipaddr' '192.168.2.1' + option 'ifname' 'lan1 lan2 lan3 lan4' -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 5/5] [orion] add rd88f5181l-ge and rd88f5181l-fxo devices
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- target/linux/orion/README | 30 +++ target/linux/orion/image/generic.mk| 38 +-- target/linux/orion/image/harddisk.mk |6 ++- .../patches/102-rd88f5181l-ge_partition_map.patch | 33 + .../patches/103-rd88f5181l-fxo_partition_map.patch | 33 + .../patches/104-rd88f5181l-force_cardbus.patch | 27 ++ 6 files changed, 161 insertions(+), 6 deletions(-) create mode 100644 target/linux/orion/README create mode 100644 target/linux/orion/patches/102-rd88f5181l-ge_partition_map.patch create mode 100644 target/linux/orion/patches/103-rd88f5181l-fxo_partition_map.patch create mode 100644 target/linux/orion/patches/104-rd88f5181l-force_cardbus.patch diff --git a/target/linux/orion/README b/target/linux/orion/README new file mode 100644 index 000..7ea1147 --- /dev/null +++ b/target/linux/orion/README @@ -0,0 +1,30 @@ +This orion target is intended to be used with devices based on Marvell Orion 5181 ARM-compatible CPU (aka Feroceon). + +Among supported devices are: + * WRT350N v2 + * WNR854T + * RD88F5181L_GE + * RD88F5181L_FXO + * DT2 + +Marvell RD88F5181L Reference Boards currently utilize OpenWRT native squashfs+jffs2overlay scheme. +Currently only manual install/upgrade procedure tested. +To perform manual/initial installation you will need a TFTP server and board specific image, +for example: openwrt-rd88f5181l_fxo-squashfs.img. + +Follow below steps to install firmware in to device's NOR flash. +(Remember to use apropriate network parameters) + +1. Prepare uBoot environment (In uBoot): + resetenv; reset + setenv ipaddr 192.168.2.200; setenv serverip 192.168.2.100 + setenv loadaddr 0x40; setenv console 'console=ttyS0,115200 panic=30' + setenv bootargs; setenv bootargs_root 'root=/dev/mtd1 ro' + setenv image_name openwrt-rd88f5181l_fxo-squashfs.img + setenv update 'tftpboot $(loadaddr) $(image_name); erase 0xFF80 0xFFEF; cp.b $(loadaddr) 0xFF80 0x6F' + setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); bootm 0xFF80' + save + +2. Update firmare (In uBoot): + run update + diff --git a/target/linux/orion/image/generic.mk b/target/linux/orion/image/generic.mk index c3bd601..670bed5 100644 --- a/target/linux/orion/image/generic.mk +++ b/target/linux/orion/image/generic.mk @@ -5,6 +5,8 @@ # See /LICENSE for more information. # +JFFS2_BLOCKSIZE = 128k + define Image/Prepare cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage endef @@ -25,6 +27,20 @@ define Image/BuildKernel -C none -a 0x8000 -e 0x8000 -n 'Linux-$(LINUX_VERSION)' \ -d $(KDIR)/wnr854t-zImage $(KDIR)/wnr854t-uImage cp $(KDIR)/wnr854t-uImage $(BIN_DIR)/openwrt-wnr854t-uImage + # RD88F5181L_GE: mach id 1812 (0x714) + echo -en \x07\x1c\xa0\xe3\x14\x10\x81\xe3 $(KDIR)/rd88f5181l_ge-zImage + cat $(LINUX_DIR)/arch/arm/boot/zImage $(KDIR)/rd88f5181l_ge-zImage + $(STAGING_DIR_HOST)/bin/mkimage -A arm -O linux -T kernel \ + -C none -a 0x8000 -e 0x8000 -n 'Linux-$(LINUX_VERSION)' \ + -d $(KDIR)/rd88f5181l_ge-zImage $(KDIR)/rd88f5181l_ge-uImage + cp $(KDIR)/rd88f5181l_ge-uImage $(BIN_DIR)/openwrt-rd88f5181l_ge-uImage + # RD88F5181L_FXO: mach id 1818 (0x71a) + echo -en \x07\x1c\xa0\xe3\x1a\x10\x81\xe3 $(KDIR)/rd88f5181l_fxo-zImage + cat $(LINUX_DIR)/arch/arm/boot/zImage $(KDIR)/rd88f5181l_fxo-zImage + $(STAGING_DIR_HOST)/bin/mkimage -A arm -O linux -T kernel \ + -C none -a 0x8000 -e 0x8000 -n 'Linux-$(LINUX_VERSION)' \ + -d $(KDIR)/rd88f5181l_fxo-zImage $(KDIR)/rd88f5181l_fxo-uImage + cp $(KDIR)/rd88f5181l_fxo-uImage $(BIN_DIR)/openwrt-rd88f5181l_fxo-uImage endef define Image/Build/Netgear @@ -40,6 +56,15 @@ define Image/Build/Netgear $(STAGING_DIR_HOST)/bin/add_header $(3) $(BIN_DIR)/openwrt-$(2)-$(1).img $(BIN_DIR)/openwrt-$(2)-$(1)-webupgrade.img endef +define Image/Build/Marvell + # Orion Marvell Images + ( \ + dd if=$(BIN_DIR)/openwrt-$(2)-uImage bs=1024k conv=sync; \ + dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \ + ) $(BIN_DIR)/openwrt-$(2)-$(1).img + $(STAGING_DIR_HOST)/bin/add_header $(3) $(BIN_DIR)/openwrt-$(2)-$(1).img $(BIN_DIR)/openwrt-$(2)-$(1)-webupgrade.img +endef + define Image/Build/Linksys # Orion Linksys Images # sysupgrade image @@ -70,15 +95,20 @@ define Image/Build/Linksys endef define Image/Build -$(call Image/Build/$(1),$(1)) -$(call Image/Build/Netgear,$(1),wnr854t,NG_WNR854T,$(1)) + $(call Image/Build/$(1),$(1)) + $(call Image/Build/Netgear,$(1),wnr854t,NG_WNR854T,$(1)) + $(call Image/Build/Marvell,$(1),rd88f5181l_ge
[OpenWrt-Devel] [PATCH 0/5] [orion] few cosmetic changes and new Marvell reference devices
From: Eugene San (eugenesan) eugene...@gmail.com Next patches provide few cosmetic changes new Marvell reference devices for orion target: [orion] move dt2 modifications to single patch [orion] use architecture default compliaton flags [orion] referesh kernel config for linux 3.0.3 [orion] tune default network config [orion] add rd88f5181l-ge and rd88f5181l-fxo devices target/linux/orion/Makefile|3 +- target/linux/orion/README | 30 ++ target/linux/orion/base-files/etc/config/network | 39 +- target/linux/orion/config-default | 253 -- .../orion/files/arch/arm/mach-orion5x/dt2-common.h | 82 --- .../orion/files/arch/arm/mach-orion5x/dt2-setup.c | 446 target/linux/orion/harddisk/config-default |1 - target/linux/orion/image/generic.mk| 38 ++- target/linux/orion/image/harddisk.mk |6 +- .../patches/102-rd88f5181l-ge_partition_map.patch | 33 ++ .../patches/103-rd88f5181l-fxo_partition_map.patch | 33 ++ .../patches/104-rd88f5181l-force_cardbus.patch | 27 + .../orion/patches/200-dt2_board_support.patch | 542 +++- 13 files changed, 800 insertions(+), 733 deletions(-) create mode 100644 target/linux/orion/README delete mode 100644 target/linux/orion/files/arch/arm/mach-orion5x/dt2-common.h delete mode 100644 target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c create mode 100644 target/linux/orion/patches/102-rd88f5181l-ge_partition_map.patch create mode 100644 target/linux/orion/patches/103-rd88f5181l-fxo_partition_map.patch create mode 100644 target/linux/orion/patches/104-rd88f5181l-force_cardbus.patch -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/5] [orion] move dt2 modifications to single patch
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- .../orion/files/arch/arm/mach-orion5x/dt2-common.h | 82 --- .../orion/files/arch/arm/mach-orion5x/dt2-setup.c | 446 .../orion/patches/200-dt2_board_support.patch | 542 +++- 3 files changed, 527 insertions(+), 543 deletions(-) delete mode 100644 target/linux/orion/files/arch/arm/mach-orion5x/dt2-common.h delete mode 100644 target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c diff --git a/target/linux/orion/files/arch/arm/mach-orion5x/dt2-common.h b/target/linux/orion/files/arch/arm/mach-orion5x/dt2-common.h deleted file mode 100644 index a54e188..000 --- a/target/linux/orion/files/arch/arm/mach-orion5x/dt2-common.h +++ /dev/null @@ -1,82 +0,0 @@ -#ifndef __INC_DT2_COMMON_H -#define __INC_DT2_COMMON_H - -#define ATAG_MV_UBOOT 0x41000403 - -struct tag_mv_uboot { - u32 uboot_version; - u32 tclk; - u32 sysclk; - u32 isUsbHost; - u32 overEthAddr; - u8 dt2_eeprom[256]; -}; - -#define DT2_EEPROM_ADDR0x50 -#define DT2_EEPROM_OFFSET 0 -#define DT2_EEPROM_LENGTH 256 - -#define DT2_SERIAL_NUMBER_DEFAULT run on default\0 -#define DT2_REVISION_DEFAULT_INIT 0xFF -#define DT2_CONFIG_FLAGS_DEFAULT 0x00 - -#define _PACKED_ __attribute__((packed)) - -struct DT2_EEPROM_SD_CONFIG { - unsigned intram_1; - unsigned intram_2; - unsigned intram_3; - unsigned intram_4; - unsigned char ram_5; - unsigned char ram_6; - unsigned short ram_7; - unsigned intmagic_id; - } _PACKED_; // 24 Bytes in total - -struct DT2_EEPROM_FC_CONFIG { - unsigned char rtc_sts_mask; - unsigned char rtc_sts_init; - unsigned char rtc_int_mask; - unsigned char rtc_int_init; - unsigned char rtc_atrim_init; - unsigned char rtc_dtrim_init; - unsigned char dummy1; - unsigned char dummy2; - unsigned char dt2_config_flags; /* 0x80 to load rtc_values to RTC */ - unsigned char dt2_revision; /* upper nibble is HW, lower nibble is FW */ - unsigned char dt2_serial_number[16]; /* Serial number of DT-2 */ - } _PACKED_; // 26 Bytes in total - -#define CFG_LOAD_RTC_VALUES0x80 - -struct DT2_EEPROM_GW_CONFIG { - unsigned intdummy1; - unsigned intdummy2; - unsigned intdummy3; - unsigned char dummy4; - unsigned char tos_video_val1; - unsigned char tos_video_val2; - unsigned char tos_voip_val; - unsigned char qos_igmp_cfg; - unsigned char num_of_ifs; - unsigned short vlan_ports_if[3]; - unsigned char mac_addr[3][6]; - } _PACKED_; // 42 Bytes in total - -#define _SIZE_OF_ALL_STRUCTS_ (sizeof(struct DT2_EEPROM_SD_CONFIG) + sizeof(struct DT2_EEPROM_FC_CONFIG) + sizeof(struct DT2_EEPROM_GW_CONFIG)) - -// MV = EEPROM - SD - FC - GW - CRC -struct DT2_EEPROM_MV_CONFIG { - unsigned int reg_addr[(DT2_EEPROM_LENGTH - _SIZE_OF_ALL_STRUCTS_ - sizeof(unsigned int)) / (sizeof(unsigned int) * 2)]; - unsigned int reg_data[(DT2_EEPROM_LENGTH - _SIZE_OF_ALL_STRUCTS_ - sizeof(unsigned int)) / (sizeof(unsigned int) * 2)]; - } _PACKED_; - -struct DT2_EEPROM_STRUCT { - struct DT2_EEPROM_MV_CONFIG mv; - struct DT2_EEPROM_SD_CONFIG sd; - struct DT2_EEPROM_FC_CONFIG fc; - struct DT2_EEPROM_GW_CONFIG gw; - unsigned intcrc; - } _PACKED_; - -#endif diff --git a/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c b/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c deleted file mode 100644 index a3d9c82..000 --- a/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c +++ /dev/null @@ -1,446 +0,0 @@ -/* - * arch/arm/mach-orion5x/dt2-setup.c - * - * Freecom DataTank Gateway Setup - * - * Copyright (C) 2009 Zintis Petersons zintis.peters...@abcsolutions.lv - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed as is without any - * warranty of any kind, whether express or implied. - */ - -#include linux/kernel.h -#include linux/init.h -#include linux/platform_device.h -#include linux/pci.h -#include linux/irq.h -#include linux/mtd/physmap.h -#include linux/mv643xx_eth.h -#include linux/ethtool.h -#include linux/if_ether.h -#include net/dsa.h -#include linux/ata_platform.h -#include linux/i2c.h -#include linux/reboot.h -#include linux/interrupt.h -#include asm/mach-types.h -#include asm/gpio.h -#include asm/leds.h -#include asm/mach/arch.h -#include asm/mach/pci.h -#include mach/orion5x.h -#include common.h -#include mpp.h - -/* - * DT2 local
[OpenWrt-Devel] [PATCH 2/5] [orion] use architecture default compliaton flags
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- target/linux/orion/Makefile |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/target/linux/orion/Makefile b/target/linux/orion/Makefile index 54e0c37..3952307 100644 --- a/target/linux/orion/Makefile +++ b/target/linux/orion/Makefile @@ -10,7 +10,6 @@ ARCH:=arm BOARD:=orion BOARDNAME:=Marvell Orion SUBTARGETS:=generic harddisk -CFLAGS=-Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves MAINTAINER:=Imre Kaloz ka...@openwrt.org LINUX_VERSION:=3.0.3 @@ -19,6 +18,6 @@ include $(INCLUDE_DIR)/target.mk KERNELNAME:=uImage -DEFAULT_PACKAGES += kmod-ath9k kmod-crypto-mv-cesa wpad-mini +DEFAULT_PACKAGES += kmod-ath9k kmod-mwl8k kmod-crypto-mv-cesa wpad-mini $(eval $(call BuildTarget)) -- 1.7.6 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 3/5] [orion] referesh kernel config for linux 3.0.3
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- target/linux/orion/config-default | 253 ++-- target/linux/orion/harddisk/config-default |1 - 2 files changed, 90 insertions(+), 164 deletions(-) diff --git a/target/linux/orion/config-default b/target/linux/orion/config-default index c78a397..896fa8d 100644 --- a/target/linux/orion/config-default +++ b/target/linux/orion/config-default @@ -1,64 +1,58 @@ CONFIG_ALIGNMENT_TRAP=y -# CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set -# CONFIG_ARCH_HAS_ILOG2_U32 is not set -# CONFIG_ARCH_HAS_ILOG2_U64 is not set +CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y CONFIG_ARCH_ORION5X=y -CONFIG_ARCH_SUPPORTS_AOUT=y +CONFIG_ARCH_REQUIRE_GPIOLIB=y +# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set +# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set # CONFIG_ARCH_SUPPORTS_MSI is not set -CONFIG_ARCH_SUSPEND_POSSIBLE=y -# CONFIG_ARM_THUMB is not set +# CONFIG_ARCH_USES_GETTIMEOFFSET is not set CONFIG_ARM=y +CONFIG_ARM_L1_CACHE_SHIFT=5 +# CONFIG_ARM_THUMB is not set # CONFIG_ARPD is not set -# CONFIG_ARTHUR is not set -CONFIG_ATA=m -# CONFIG_ATMEL is not set -# CONFIG_ATM is not set -# CONFIG_BINFMT_AOUT is not set -CONFIG_BITREVERSE=y -# CONFIG_BLK_DEV_CRYPTOLOOP is not set -# CONFIG_BLK_DEV_NBD is not set -# CONFIG_BONDING is not set -CONFIG_BOUNCE=y -# CONFIG_BSD_DISKLABEL is not set -# CONFIG_CIFS_STATS is not set -CONFIG_CLASSIC_RCU=y +CONFIG_BCMA_POSSIBLE=y +# CONFIG_BRCMUTIL is not set +CONFIG_CLKSRC_MMIO=y CONFIG_CMDLINE=root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 -CONFIG_CMDLINE_FORCE=y +CONFIG_CMDLINE_FROM_BOOTLOADER=y CONFIG_CPU_32v5=y -CONFIG_CPU_32=y CONFIG_CPU_ABRT_EV5T=y CONFIG_CPU_CACHE_VIVT=y CONFIG_CPU_COPY_FEROCEON=y -CONFIG_CPU_CP15_MMU=y CONFIG_CPU_CP15=y -# CONFIG_CPU_DCACHE_DISABLE is not set -CONFIG_CPU_FEROCEON_OLD_ID=y +CONFIG_CPU_CP15_MMU=y CONFIG_CPU_FEROCEON=y +# CONFIG_CPU_FEROCEON_OLD_ID is not set # CONFIG_CPU_ICACHE_DISABLE is not set -CONFIG_CPU_PABRT_NOIFAR=y -CONFIG_CPU_TLB_V4WBI=y -# CONFIG_CRC_CCITT is not set +CONFIG_CPU_PABRT_LEGACY=y +CONFIG_CPU_TLB_FEROCEON=y +CONFIG_CPU_USE_DOMAINS=y +CONFIG_CRC16=y +CONFIG_CRYPTO_AES=y +CONFIG_CRYPTO_ALGAPI=y +CONFIG_CRYPTO_ALGAPI2=y +CONFIG_CRYPTO_BLKCIPHER2=y CONFIG_CRYPTO_DEV_MV_CESA=y +CONFIG_CRYPTO_HASH2=y CONFIG_CRYPTO_HW=y +CONFIG_CRYPTO_RNG2=y +CONFIG_CRYPTO_WORKQUEUE=y +CONFIG_DEBUG_BUGVERBOSE=y # CONFIG_DEBUG_USER is not set -CONFIG_DEVPORT=y +CONFIG_DECOMPRESS_LZMA=y CONFIG_DLCI=m CONFIG_DLCI_MAX=8 -# CONFIG_DM9000 is not set CONFIG_DNOTIFY=y # CONFIG_DSCC4 is not set -# CONFIG_E1000E_ENABLED is not set -# CONFIG_E100 is not set +CONFIG_EFI_PARTITION=y # CONFIG_FARSYNC is not set -# CONFIG_FPE_FASTFPE is not set -# CONFIG_FPE_NWFPE is not set CONFIG_FRAME_POINTER=y -CONFIG_FS_POSIX_ACL=y -CONFIG_GENERIC_CLOCKEVENTS_BUILD=y +CONFIG_GENERIC_ATOMIC64=y CONFIG_GENERIC_CLOCKEVENTS=y -# CONFIG_GENERIC_FIND_FIRST_BIT is not set -# CONFIG_GENERIC_FIND_NEXT_BIT is not set +CONFIG_GENERIC_CLOCKEVENTS_BUILD=y CONFIG_GENERIC_GPIO=y +CONFIG_GENERIC_IRQ_CHIP=y +CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GPIOLIB=y CONFIG_GPIO_SYSFS=y # CONFIG_HAMRADIO is not set @@ -66,62 +60,47 @@ CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT=y -# CONFIG_HAVE_DMA_ATTRS is not set +CONFIG_HAVE_AOUT=y +CONFIG_HAVE_ARCH_KGDB=y +CONFIG_HAVE_ARCH_PFN_VALID=y +CONFIG_HAVE_C_RECORDMCOUNT=y +CONFIG_HAVE_DMA_API_DEBUG=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y +CONFIG_HAVE_FUNCTION_TRACER=y +CONFIG_HAVE_GENERIC_DMA_COHERENT=y +CONFIG_HAVE_GENERIC_HARDIRQS=y CONFIG_HAVE_IDE=y -CONFIG_HAVE_KPROBES=y -CONFIG_HAVE_KRETPROBES=y +CONFIG_HAVE_IRQ_WORK=y +CONFIG_HAVE_KERNEL_GZIP=y +CONFIG_HAVE_KERNEL_LZMA=y +CONFIG_HAVE_KERNEL_LZO=y +CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y +CONFIG_HAVE_MEMBLOCK=y CONFIG_HAVE_OPROFILE=y -CONFIG_HDLC_CISCO=m -CONFIG_HDLC_FR=m -CONFIG_HDLC=m -CONFIG_HDLC_PPP=m -# CONFIG_HDLC_RAW_ETH is not set -CONFIG_HDLC_RAW=m -# CONFIG_HERMES is not set -# CONFIG_HWMON_DEBUG_CHIP is not set +CONFIG_HAVE_PERF_EVENTS=y +CONFIG_HAVE_PROC_CPU=y +CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y +CONFIG_HAVE_SCHED_CLOCK=y +CONFIG_HAVE_SPARSE_IRQ=y CONFIG_HWMON=y +# CONFIG_HWMON_DEBUG_CHIP is not set CONFIG_HW_RANDOM=y +CONFIG_I2C=y CONFIG_I2C_BOARDINFO=y CONFIG_I2C_CHARDEV=y CONFIG_I2C_MV64XXX=y -CONFIG_I2C=y -# CONFIG_IDE is not set +# CONFIG_I2C_PXA_PCI is not set +CONFIG_INET_LRO=y CONFIG_INITRAMFS_SOURCE= -# CONFIG_IP6_NF_MANGLE is not set -# CONFIG_IP6_NF_MATCH_EUI64 is not set -# CONFIG_IP6_NF_MATCH_FRAG is not set -# CONFIG_IP6_NF_MATCH_HL is not set -# CONFIG_IP6_NF_MATCH_IPV6HEADER is not set -# CONFIG_IP6_NF_MATCH_OPTS is not set -# CONFIG_IP6_NF_MATCH_RT is not set -# CONFIG_IP6_NF_TARGET_LOG is not set -CONFIG_IP_MROUTE=y -# CONFIG_IP_NF_ARPTABLES is not set
[OpenWrt-Devel] [PATCH] [kirkwood] update to kernel 3.0.3 with addition of rd88f6281
From: Eugene San (eugenesan) eugene...@gmail.com Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- target/linux/kirkwood/Makefile |4 +- target/linux/kirkwood/README | 37 ++ .../base-files-rd88f6281/etc/config/network| 25 ++ target/linux/kirkwood/base-files/sbin/install2ubi | 14 + target/linux/kirkwood/config-default | 107 +-- target/linux/kirkwood/image/Makefile |8 +- .../patches/001-openwrt_partition_map.patch| 11 + .../patches/300-mv88f6281_rev_z0_tclock.patch | 11 + ...ardware-bridging-support-for-DSA-switches.patch | 381 target/linux/kirkwood/profiles/100-Sheevaplug.mk |6 +- target/linux/kirkwood/profiles/200-Dockstar.mk |6 +- target/linux/kirkwood/profiles/300-Iconnect.mk |6 +- target/linux/kirkwood/profiles/400-rd88f6281.mk| 17 + 13 files changed, 596 insertions(+), 37 deletions(-) create mode 100644 target/linux/kirkwood/README create mode 100644 target/linux/kirkwood/base-files-rd88f6281/etc/config/network create mode 100755 target/linux/kirkwood/base-files/sbin/install2ubi create mode 100644 target/linux/kirkwood/patches/300-mv88f6281_rev_z0_tclock.patch create mode 100644 target/linux/kirkwood/patches/400-hardware-bridging-support-for-DSA-switches.patch create mode 100644 target/linux/kirkwood/profiles/400-rd88f6281.mk diff --git a/target/linux/kirkwood/Makefile b/target/linux/kirkwood/Makefile index 06b6fc7..09e66c4 100644 --- a/target/linux/kirkwood/Makefile +++ b/target/linux/kirkwood/Makefile @@ -9,10 +9,10 @@ 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.6 +LINUX_VERSION:=3.0.3 include $(INCLUDE_DIR)/target.mk diff --git a/target/linux/kirkwood/README b/target/linux/kirkwood/README new file mode 100644 index 000..ef6d8e1 --- /dev/null +++ b/target/linux/kirkwood/README @@ -0,0 +1,37 @@ +This Kirkwood target is intended to be used with devices based on Marvell Kirkwood 6281/2 ARM-compatible CPU (aka Feroceon). + +Among supported devices are: + * Globalscale Sheevaplug + * Seagate Dockstar + * Iomega iConnect Wireless + * Marvell RD88F6281 Reference Boards + +Marvell RD88F6281 Reference Boards currently utilize UBIFS on NAND scheme for rootfs +and uImage is stored in raw NAND area. +Currently only manual install/upgrade procedure tested. +To perform manual/initial installation you will need a TFTP server and board specific images, +for example: openwrt-kirkwood-uImage and openwrt-kirkwood-rd88f6281-squashfs.uimg. + +Follow below steps to install firmware in to device's NAND flash. +(Remember to use apropriate network parameters) + +1. Prepare uBoot environment (In uBoot): + resetenv; reset + setenv mainlineLinux yes; save; reset + setenv ipaddr 192.168.2.200; setenv serverip 192.168.1.2 + setenv loadaddr 0x200; setenv console 'console=ttyS0,115200 panic=30' + setenv bootargs_root 'ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw' + setenv image_name openwrt-kirkwood-uImage + setenv root_name openwrt-kirkwood-rd88f6281-squashfs.uimg + setenv update_image 'tftpboot $(loadaddr) $(image_name); nand erase 0x10 0x20; nand write $(loadaddr) 0x10 0x20' + setenv load_firmware 'tftpboot $(loadaddr) $(root_name); setenv bootargs $(console) root=/dev/ram0 rw; bootm $(loadaddr)' + setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); nand read $(loadaddr) 0x10 0x20; bootm $(loadaddr)' + save + +2. Load initial firmare (In uBoot): + run update_image + run load_firmware + +3. Install firmware into NAND (In Linux): + $ install2ubifs + $ reboot diff --git a/target/linux/kirkwood/base-files-rd88f6281/etc/config/network b/target/linux/kirkwood/base-files-rd88f6281/etc/config/network new file mode 100644 index 000..24d7a39 --- /dev/null +++ b/target/linux/kirkwood/base-files-rd88f6281/etc/config/network @@ -0,0 +1,25 @@ +# Copyright (C) 2011 OpenWrt.org + +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' + option 'proto' 'none' + +config 'interface' 'wan' + option 'hostname' 'OpenWrt' + option 'proto' 'dhcp' + option 'type' 'bridge' + option 'ifname' 'wan eth1 eth2' + +config 'interface' 'lan' + option 'type' 'bridge' + option 'proto' 'static' + option 'netmask' '255.255.255.0' + option 'nat' '1' + option 'ipaddr' '192.168.2.1' + option 'ifname' 'lan1 lan2 lan3 lan4' diff --git a/target/linux/kirkwood/base-files/sbin/install2ubi b/target/linux
[OpenWrt-Devel] [PATCH 0/5] support git-svn and two devices in kirkwood and orion targets
Providing next patches for review/inclusion: support git-svn as scm and download engine(git as frontend for svn) support kernel config per target profile fix cpiogz [kirkwood]: add squashfs support and RD88F6281 profile [orion]: normalize jffs2 support and RD88F5181L_GE image Luci reqires additional patch: 0006-luci-workaround-for-git-as-scm-and-download-engine.patch (Will be following current patches set) feeds.conf.default |3 ++ include/download.mk| 16 include/image.mk |1 + include/target.mk |4 +- scripts/feeds |6 +++ 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 + target/linux/orion/config-default | 10 +++-- target/linux/orion/image/generic.mk| 34 +++--- .../patches/102-rd88f5181l-ge_partition_map.patch | 33 + 14 files changed, 197 insertions(+), 19 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 create mode 100644 target/linux/orion/patches/102-rd88f5181l-ge_partition_map.patch -- 1.7.4.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 4/5] [kirkwood]: add squashfs support and RD88F6281 profile
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 000..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 000..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 0x8000 -e 0x8000 -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-Devel] [PATCH 1/5] support git-svn as scm and download engine(git as frontend for svn)
Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- feeds.conf.default |3 +++ include/download.mk | 16 scripts/feeds |6 ++ 3 files changed, 25 insertions(+), 0 deletions(-) diff --git a/feeds.conf.default b/feeds.conf.default index c4ac535..5eb7555 100644 --- a/feeds.conf.default +++ b/feeds.conf.default @@ -1,6 +1,9 @@ src-svn packages svn://svn.openwrt.org/openwrt/packages src-svn xwrt http://x-wrt.googlecode.com/svn/trunk/package src-svn luci http://svn.luci.subsignal.org/luci/trunk/contrib/package +#src-gsvn packages svn://svn.openwrt.org/openwrt/packages +#src-gsvn xwrt http://x-wrt.googlecode.com/svn/trunk/package +#src-gsvn luci http://svn.luci.subsignal.org/luci/trunk/contrib/package #src-svn phone svn://svn.openwrt.org/openwrt/feeds/phone #src-svn efl svn://svn.openwrt.org/openwrt/feeds/efl #src-svn desktop svn://svn.openwrt.org/openwrt/feeds/desktop diff --git a/include/download.mk b/include/download.mk index fd197ea..91896df 100644 --- a/include/download.mk +++ b/include/download.mk @@ -97,6 +97,22 @@ define DownloadMethod/git ) endef +define DownloadMethod/gsvn + $(call wrap_mirror, \ + echo Checking out files from the git-svn repository...; \ + mkdir -p $(TMP_DIR)/dl \ + cd $(TMP_DIR)/dl \ + rm -rf $(SUBDIR) \ + [ \! -d $(SUBDIR) ] \ + git svn clone $(URL) $(SUBDIR) \ + echo Packing checkout... \ + rm -rf $(SUBDIR)/.git \ + $(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) \ + mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ \ + rm -rf $(SUBDIR); \ + ) +endef + define DownloadMethod/bzr $(call wrap_mirror, \ echo Checking out files from the bzr repository...; \ diff --git a/scripts/feeds b/scripts/feeds index 9f773df..4db6230 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -117,6 +117,11 @@ my %update_method = ( 'init_branch' = git clone --depth 1 --branch '%s' '%s' '%s', 'update'= git pull, 'controldir'= .git}, + 'src-gsvn' = { + 'init' = git svn clone '%s' '%s', + 'init_branch' = git svn clone --branch '%s' '%s' '%s', + 'update'= git svn rebase, + 'controldir'= .git}, 'src-bzr' = { 'init' = bzr checkout --lightweight '%s' '%s', 'update'= bzr update, @@ -286,6 +291,7 @@ my %install_method = ( 'src-cpy' = \install_generic, 'src-link' = \install_generic, 'src-git' = \install_generic, + 'src-gsvn' = \install_generic, 'src-bzr' = \install_generic, 'src-hg' = \install_generic, 'src-darcs' = \install_generic, -- 1.7.4.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] luci workaround for git-svn as scm and download engine
--- luci/Makefile |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/luci/Makefile b/luci/Makefile index 354de1e..ac1ac78 100644 --- a/luci/Makefile +++ b/luci/Makefile @@ -4,6 +4,7 @@ PKG_BRANCH:=trunk ifeq ($(DUMP),) USELOCAL:=$(shell grep luci ../../../.project 2/dev/null /dev/null echo 1) + USEGSVN:=$(shell git svn info 2/dev/null /dev/null echo 1) endif PKG_NAME:=luci @@ -16,7 +17,11 @@ ifeq ($(USELOCAL),1) else PKG_SOURCE_URL:=http://svn.luci.subsignal.org/luci/$(PKG_BRANCH) ifeq ($(DUMP),) -PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne's/^Revision: //p') +ifeq ($(USEGSVN),1) + PKG_REV:=$(shell LC_ALL=C svn info $(PKG_SOURCE_URL) | sed -ne's/^Revision: //p') +else + PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne's/^Revision: //p') +endif PKG_VERSION:=0.10+svn$(PKG_REV) endif PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -- 1.7.4.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 3/5] fix cpiogz
Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- include/image.mk |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/image.mk b/include/image.mk index 29328b3..3160a4d 100644 --- a/include/image.mk +++ b/include/image.mk @@ -106,6 +106,7 @@ endif ifneq ($(CONFIG_TARGET_ROOTFS_CPIOGZ),) define Image/mkfs/cpiogz ( cd $(TARGET_DIR); find . | cpio -o -H newc | gzip -9 $(BIN_DIR)/$(IMG_PREFIX)-rootfs.cpio.gz ) + $(call Image/Build,cpiogz) endef endif -- 1.7.4.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 5/5] [orion]: normalize jffs2 support and RD88F5181L_GE image
Signed-off-by: Eugene San (eugenesan) eugene...@gmail.com --- target/linux/orion/config-default | 10 +++-- target/linux/orion/image/generic.mk| 34 --- .../patches/102-rd88f5181l-ge_partition_map.patch | 33 +++ 3 files changed, 67 insertions(+), 10 deletions(-) create mode 100644 target/linux/orion/patches/102-rd88f5181l-ge_partition_map.patch diff --git a/target/linux/orion/config-default b/target/linux/orion/config-default index c78a397..665a2e8 100644 --- a/target/linux/orion/config-default +++ b/target/linux/orion/config-default @@ -41,6 +41,7 @@ CONFIG_CPU_TLB_V4WBI=y CONFIG_CRYPTO_DEV_MV_CESA=y CONFIG_CRYPTO_HW=y # CONFIG_DEBUG_USER is not set +CONFIG_DECOMPRESS_LZMA=y CONFIG_DEVPORT=y CONFIG_DLCI=m CONFIG_DLCI_MAX=8 @@ -137,7 +138,7 @@ CONFIG_MACH_DT2=y # CONFIG_MACH_MV2120 is not set # CONFIG_MACH_NET2BIG is not set # CONFIG_MACH_RD88F5181L_FXO is not set -# CONFIG_MACH_RD88F5181L_GE is not set +CONFIG_MACH_RD88F5181L_GE=y # CONFIG_MACH_RD88F5182 is not set # CONFIG_MACH_RD88F6183AP_GE is not set # CONFIG_MACH_TERASTATION_PRO2 is not set @@ -192,6 +193,7 @@ CONFIG_PLAT_ORION=y # CONFIG_R6040 is not set CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_ISL1208=y +CONFIG_RTC_DRV_DS1307=y CONFIG_SATA_PMP=y # CONFIG_SCSI_MULTI_LUN is not set # CONFIG_SENSORS_PC87360 is not set @@ -209,10 +211,10 @@ CONFIG_USB_EHCI_HCD=m # CONFIG_USB_ISIGHTFW is not set # CONFIG_USB_ISP1760_HCD is not set # CONFIG_USB_KAWETH is not set -CONFIG_USB=m +CONFIG_USB=y # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set # CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set -CONFIG_USB_OHCI_HCD=m +# CONFIG_USB_OHCI_HCD is not set # CONFIG_USBPCWATCHDOG is not set # CONFIG_USB_PEGASUS is not set # CONFIG_USB_PRINTER is not set @@ -229,7 +231,7 @@ CONFIG_USB_OHCI_HCD=m # CONFIG_USB_STORAGE_SDDR55 is not set # CONFIG_USB_STORAGE_USBAT is not set CONFIG_USB_SUPPORT=y -CONFIG_USB_UHCI_HCD=m +# CONFIG_USB_UHCI_HCD is not set # CONFIG_USB_USBNET is not set # CONFIG_USB_VIDEO_CLASS is not set # CONFIG_USB_WDM is not set diff --git a/target/linux/orion/image/generic.mk b/target/linux/orion/image/generic.mk index c3bd601..4a88a3a 100644 --- a/target/linux/orion/image/generic.mk +++ b/target/linux/orion/image/generic.mk @@ -5,6 +5,8 @@ # See /LICENSE for more information. # +JFFS2_BLOCKSIZE = 128k + define Image/Prepare cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage endef @@ -25,6 +27,13 @@ define Image/BuildKernel -C none -a 0x8000 -e 0x8000 -n 'Linux-$(LINUX_VERSION)' \ -d $(KDIR)/wnr854t-zImage $(KDIR)/wnr854t-uImage cp $(KDIR)/wnr854t-uImage $(BIN_DIR)/openwrt-wnr854t-uImage + # RD88F5181L_GE: mach id 1812 (0x714) + echo -en \x07\x1c\xa0\xe3\x14\x10\x81\xe3 $(KDIR)/rd88f5181l_ge-zImage + cat $(LINUX_DIR)/arch/arm/boot/zImage $(KDIR)/rd88f5181l_ge-zImage + $(STAGING_DIR_HOST)/bin/mkimage -A arm -O linux -T kernel \ + -C none -a 0x8000 -e 0x8000 -n 'Linux-$(LINUX_VERSION)' \ + -d $(KDIR)/rd88f5181l_ge-zImage $(KDIR)/rd88f5181l_ge-uImage + cp $(KDIR)/rd88f5181l_ge-uImage $(BIN_DIR)/openwrt-rd88f5181l_ge-uImage endef define Image/Build/Netgear @@ -40,6 +49,15 @@ define Image/Build/Netgear $(STAGING_DIR_HOST)/bin/add_header $(3) $(BIN_DIR)/openwrt-$(2)-$(1).img $(BIN_DIR)/openwrt-$(2)-$(1)-webupgrade.img endef +define Image/Build/Marvell + # Orion Marvell Images + ( \ + dd if=$(BIN_DIR)/openwrt-rd88f5181l_ge-uImage bs=1024k conv=sync; \ + dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \ + ) $(BIN_DIR)/openwrt-$(2)-$(1).img + $(STAGING_DIR_HOST)/bin/add_header $(3) $(BIN_DIR)/openwrt-$(2)-$(1).img $(BIN_DIR)/openwrt-$(2)-$(1)-webupgrade.img +endef + define Image/Build/Linksys # Orion Linksys Images # sysupgrade image @@ -70,15 +88,19 @@ define Image/Build/Linksys endef define Image/Build -$(call Image/Build/$(1),$(1)) -$(call Image/Build/Netgear,$(1),wnr854t,NG_WNR854T,$(1)) - # Leave WRT350Nv2 at last position due to webimage dependency for zip - # 5th parameter is kernel mtd size, e.g. 0x0010 = 1048576 or 0x001A = 1703936 -$(call Image/Build/Linksys,$(1),wrt350nv2,WNR350Nv2,$(1),1048576) + $(call Image/Build/$(1),$(1)) + $(call Image/Build/Netgear,$(1),wnr854t,NG_WNR854T,$(1)) + $(call Image/Build/Marvell,$(1),rd88f5181l_ge,RD88F5181L_GE,$(1)) + # Leave WRT350Nv2 at last position due to webimage dependency for zip + # and too big image without squashfs +ifeq ($(1),squashfs) + # 5th parameter is kernel mtd size, e.g. 0x0010 = 1048576 or 0x001A = 1703936 + $(call Image/Build/Linksys,$(1),wrt350nv2,WNR350Nv2,$(1),1048576) +endif endef define Image/Build/squashfs -$(call prepare_generic_squashfs,$(KDIR)/root.squashfs) + $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) ( \ dd if=$(KDIR