[OpenWrt-Devel] packages git repo trouble
Hi, It seems the packages git repo (git://nbd.name/packages.git) has some trouble. If I do a fresh clone all I get is a repo with two commits in its history: [ge...@white packages]$ git log --pretty=oneline ec888539de4a6e1021abd983341f3a3693c6fd6e [packages] freeswitch: fix typo in mod-openzap description 9f50fccd82b106130dce4366ad3f165fde76c481 [packages] freeswitch: mod-openzap needs pcap.h to build Could someone who can administer the git repos please look into it. Thanks. -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] pxcab: build fix (resend)
On 08/26/2009 11:22 PM, Akinobu Mita wrote: 0001-powerpc-mpic-Fix-mapping-of-DCR-based-MPIC-variants.patch was merged in 2.6.30.4 Signed-off-by: Akinobu Mita akinobu.m...@gmail.com --- ...ic-Fix-mapping-of-DCR-based-MPIC-variants.patch | 107 1 files changed, 0 insertions(+), 107 deletions(-) I committed this as revision 17428. -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [patch 0/8] powerpc64 and kexec-tools updates
On 08/14/2009 03:09 PM, Geoff Levand wrote: Hi, This set of patches introduces a new target feature powerpc64 to help simplify the build files, updates the kexec-tools package to version 2.0.1, and does some kexec-tools package cleanups. [patch 3/8] kexec-tools: Update package to version 2.0.1 [patch 4/8] kexec-tools: Add libtool PKG_FIXUP [patch 5/8] kexec-tools: Minor makefile line end fixes [patch 6/8] kexec-tools: Make build of kdump optional [patch 7/8] kexec-tools: Make link /sbin/kexec for compatability with other distros [patch 8/8] kexec-tools: Remove the unused file kexec.sh I committed these patches as revisions 17371-17376. -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [patch 0/3] Update udev package
On 08/20/2009 04:19 PM, Geoff Levand wrote: Hi, These patches update the udev package from udev-106 to udev-142. [patch 1/3] udevtrigger: Breakout udevtrigger package [patch 2/3] udev: Update udev package from udev-106 to udev-142 [patch 3/3] ps3: Update defconfig-ps3-petitboot to not build udevtrigger I committed these patches as revisions 17377-17379. -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [patch 0/8] powerpc64 and kexec-tools updates
Hi, On 08/14/2009 03:09 PM, Geoff Levand wrote: updates the kexec-tools package to version 2.0.1, and does some kexec-tools package cleanups. [patch 3/8] kexec-tools: Update package to version 2.0.1 [patch 4/8] kexec-tools: Add libtool PKG_FIXUP [patch 5/8] kexec-tools: Minor makefile line end fixes [patch 6/8] kexec-tools: Make build of kdump optional [patch 7/8] kexec-tools: Make link /sbin/kexec for compatability with other distros [patch 8/8] kexec-tools: Remove the unused file kexec.sh As there have been no comments regarding the kexec-tools updates, I plan to commit them in the next day or so. Please let me know if you have any problems. -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch 2/3] udev: Update udev package from udev-106 to udev-142
Update the init scripts have to use udevadm where appropriate. The udev package no longer provides separate udev utilities like udevtrigger and udevsettle. These have been incorporated into the udev admin program udevadm. Replace the udevextras sub package with config options to the udev package. Update the preinit script to check for '/lib/udev/devices', and copy it to '/dev/ if it is found, then to conditionaly setup /dev the old way with mknod etc. Udev now recommends using the directory '/lib/udev/devices' to initialize the '/dev' directory at startup. Signed-off-by: Geoff Levand geoffrey.lev...@am.sony.com --- I put my name there as the udev package maintainer. If anyone would like to take that role, please let me know. package/base-files/files/etc/preinit | 12 + package/udev/Makefile| 142 +++ package/udev/files/20-input-grouping.rules |9 - package/udev/patches/001-no_debug.patch | 22 -- package/udev/patches/002-udevtrigger_no_config.patch | 12 - package/udev/patches/003-portability.patch | 51 -- package/udev/udev-config.in | 94 package/udev/udevextras-config.in| 57 --- 8 files changed, 189 insertions(+), 210 deletions(-) --- a/package/base-files/files/etc/preinit +++ b/package/base-files/files/etc/preinit @@ -40,15 +40,19 @@ elif [ -x /sbin/hotplug2 ]; then elif [ -x /sbin/udevd ]; then mount -n -t tmpfs -o mode=0755 udev /dev - /sbin/udevd --daemon - /sbin/udevtrigger - /sbin/udevsettle + [ -d /lib/udev/devices ] cp -af /lib/udev/devices/* /dev/ + [ -c /dev/console ] || mknod -m 0600 /dev/console c 5 1 + [ -c /dev/null ] || mknod -m 0666 /dev/null c 1 3 + /sbin/udevd --daemon --resolve-names=never + /sbin/udevadm trigger + /sbin/udevadm settle M0=/dev/pty/ptmx M1=/dev/pty/ptmx HOTPLUG= fi -mkdir -p /dev/pts /dev/shm +[ -d /dev/pts ] || mkdir -p /dev/pts +[ -d /dev/shm ] || mkdir -p /dev/shm mount devpts /dev/pts -t devpts # the shell really doesn't like having stdin/out closed --- a/package/udev/Makefile +++ b/package/udev/Makefile @@ -1,4 +1,4 @@ -# +# # Copyright (C) 2006-2008 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. @@ -8,80 +8,112 @@ include $(TOPDIR)/rules.mk PKG_NAME:=udev -PKG_VERSION:=106 +PKG_VERSION:=142 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=...@kernel/linux/utils/kernel/hotplug/ -PKG_MD5SUM:=320ccd2d0f4540d10e021bafa14f8985 +PKG_MD5SUM:=3edc4cf383dccb06d866c5156d59ddd5 include $(INCLUDE_DIR)/package.mk +PKG_INSTALL=1 + define Package/udev - SECTION:=utils - CATEGORY:=Utilities - DEPENDS:=...@linux_2_6 - TITLE:=Dynamic device management subsystem - URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html + SECTION:=base + CATEGORY:=Base system + TITLE:=Dynamic device management subsystem + URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html + MAINTAINER:=Geoff Levand geoffrey.lev...@am.sony.com endef define Package/udev/description - udev provides a dynamic device directory containing only the files for - actually present devices. It creates or removes device node files in - the /dev directory, or it renames network interfaces. + udev allows Linux users to have a dynamic /dev directory and it + provides the ability to have persistent device names. endef -define Package/udevextras -$(call Package/udev) - TITLE:=Utilities for udev scripts, for general device discovery - MENU:=1 +define Package/udev/config + source $(SOURCE)/udev-config.in endef -define Package/udevextras/config - source $(SOURCE)/udevextras-config.in -endef +udev-args-$(CONFIG_UDEV_DISABLE_LOGGING) += --disable-logging +udev-args-$(CONFIG_UDEV_ENABLE_DEBUG) += --enable-debug -UDEV_ALL_EXTRAS=ata_id cdrom_id dasd_id edd_id scsi_id path_id usb_id volume_id -UDEV_EXTRAS=$(strip $(foreach e, $(UDEV_ALL_EXTRAS), \ - $(if $(CONFIG_UDEVEXTRAS_$(e)),extras/$(e - -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - CROSS_COMPILE=$(TARGET_CROSS) \ - STRIP=/bin/true \ - OPTFLAGS=$(TARGET_CFLAGS) \ - DESTDIR=$(PKG_INSTALL_DIR) \ - INSTALL=install -c \ - EXTRAS=$(UDEV_EXTRAS) \ - VOLUME_ID_STATIC=true \ - all install -endef +CONFIGURE_ARGS += --prefix=/usr --exec-prefix= --sysconfdir=/etc \ + --sbindir=/sbin $(udev-args-y) + +udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_ata_id) += ata_id + +udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_cdrom_id) += cdrom_id +udev-extra-rules-$(CONFIG_UDEV_EXTRA_cdrom_id) += 60-cdrom_id.rules + +udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_collect) += collect + +udev-extra-lib-bin
[OpenWrt-Devel] [patch 0/3] Update udev package
Hi, These patches update the udev package from udev-106 to udev-142. [patch 1/3] udevtrigger: Breakout udevtrigger package [patch 2/3] udev: Update udev package from udev-106 to udev-142 [patch 3/3] ps3: Update defconfig-ps3-petitboot to not build udevtrigger Patch [1] breaks out the udevtrigger utility into its own package built from the udev-106 sources. This seperate udevtrigger package is needed for hotplug2, which uses the udevtrigger utility available in udev-106. Patch [2] updates the udev package to udev-142. udev-142 no longer has a seperate udevtrigger utility. The trigger feature has been moved into the udevadm utility. Just as a note, a 32 bit powerpc built gives these binary file sizes: udev-142 udevadm 108K udev-106 udevtrigger 17K -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch 1/3] udevtrigger: Breakout udevtrigger package
Current versions of udev no longer provide the separate udevtrigger utility that hotplug2 needs. To allow for the udev package to be updated, yet still provide a udevtrigger, create a new package udevtrigger that is built from old udev sources. Signed-off-by: Geoff Levand geoffrey.lev...@am.sony.com --- I put my name there as the udevtrigger package maintainer. If anyone would like to take that role, please let me know. package/udev/Makefile | 13 --- package/udevtrigger/Makefile| 43 package/udevtrigger/patches/001-no_debug.patch | 22 ++ package/udevtrigger/patches/002-udevtrigger_no_config.patch | 12 +++ 4 files changed, 77 insertions(+), 13 deletions(-) --- a/package/udev/Makefile +++ b/package/udev/Makefile @@ -31,13 +31,6 @@ define Package/udev/description the /dev directory, or it renames network interfaces. endef -define Package/udevtrigger -$(call Package/udev) - SECTION:=base - CATEGORY:=Base system - TITLE:=Small utility to request kernel devices events for coldplug -endef - define Package/udevextras $(call Package/udev) TITLE:=Utilities for udev scripts, for general device discovery @@ -81,11 +74,6 @@ define Package/udev/install $(CP) files/20-input-grouping.rules $(1)/etc/udev/rules.d/ endef -define Package/udevtrigger/install - $(INSTALL_DIR) $(1)/sbin - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevtrigger $(1)/sbin/ -endef - define Package/udevextras/install $(INSTALL_DIR) $(1)/etc/udev $(CP) $(PKG_BUILD_DIR)/etc/udev/rules.d $(1)/etc/udev/ @@ -96,5 +84,4 @@ define Package/udevextras/install endef $(eval $(call BuildPackage,udev)) -$(eval $(call BuildPackage,udevtrigger)) $(eval $(call BuildPackage,udevextras)) --- /dev/null +++ b/package/udevtrigger/Makefile @@ -0,0 +1,43 @@ +# +# Copyright (C) 2006-2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=udevtrigger +PKG_VERSION:=106 +PKG_RELEASE:=1 + +PKG_SOURCE:=udev-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=...@kernel/linux/utils/kernel/hotplug/ +PKG_MD5SUM:=320ccd2d0f4540d10e021bafa14f8985 + +TAR_OPTIONS+=--transform='s,udev-$(PKG_VERSION),$(PKG_NAME)-$(PKG_VERSION),' + +include $(INCLUDE_DIR)/package.mk + +define Package/udevtrigger + SECTION:=base + CATEGORY:=Base system + TITLE:=Small utility to request kernel devices events for coldplug + URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html + MAINTAINER:=Geoff Levand geoffrey.lev...@am.sony.com +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + CROSS_COMPILE=$(TARGET_CROSS) \ + STRIP=/bin/true \ + DESTDIR=$(PKG_INSTALL_DIR) \ + udevtrigger +endef + +define Package/udevtrigger/install + $(INSTALL_DIR) $(1)/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/udevtrigger $(1)/sbin/ +endef + +$(eval $(call BuildPackage,udevtrigger)) --- /dev/null +++ b/package/udevtrigger/patches/001-no_debug.patch @@ -0,0 +1,22 @@ +Index: udev-106/Makefile +=== +--- udev-106.orig/Makefile 2007-06-04 13:22:17.765154568 +0200 udev-106/Makefile 2007-06-04 13:22:17.831144536 +0200 +@@ -113,7 +113,7 @@ + AR = $(CROSS_COMPILE)ar + RANLIB = $(CROSS_COMPILE)ranlib + +-CFLAGS= -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 ++CFLAGS= -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 + WARNINGS = -Wstrict-prototypes -Wsign-compare -Wshadow \ + -Wchar-subscripts -Wmissing-declarations -Wnested-externs \ + -Wpointer-arith -Wcast-align -Wsign-compare -Wmissing-prototypes +@@ -130,7 +130,7 @@ + + # if DEBUG is enabled, then we do not strip + ifeq ($(strip $(DEBUG)),true) +- CFLAGS += -DDEBUG ++ CFLAGS += -g -DDEBUG + endif + + ifeq ($(strip $(USE_GCOV)),true) --- /dev/null +++ b/package/udevtrigger/patches/002-udevtrigger_no_config.patch @@ -0,0 +1,12 @@ +Index: udev-106/udevtrigger.c +=== +--- udev-106.orig/udevtrigger.c2007-06-04 13:22:17.745157608 +0200 udev-106/udevtrigger.c 2007-06-04 13:22:18.022115504 +0200 +@@ -446,7 +446,6 @@ + }; + + logging_init(udevtrigger); +- udev_config_init(); + dbg(version %s, UDEV_VERSION); + sysfs_init(); + ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch 3/3] ps3: Update defconfig-ps3-petitboot to not build udevtrigger
Signed-off-by: Geoff Levand geoffrey.lev...@am.sony.com --- target/linux/ps3/petitboot/defconfig-ps3-petitboot |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/target/linux/ps3/petitboot/defconfig-ps3-petitboot +++ b/target/linux/ps3/petitboot/defconfig-ps3-petitboot @@ -4,9 +4,6 @@ CONFIG_TARGET_ps3=y CONFIG_UCI_PRECONFIG=y CONFIG_UCI_PRECONFIG_network_lan_proto=dhcp - -# Busybox overrides - CONFIG_BUSYBOX_CONFIG_GETTY=y CONFIG_BUSYBOX_CONFIG_FDISK=y CONFIG_BUSYBOX_CONFIG_FEATURE_FDISK_WRITABLE=y @@ -14,7 +11,10 @@ CONFIG_BUSYBOX_CONFIG_FEATURE_FDISK_WRIT # CONFIG_BUSYBOX_CONFIG_HTTPD is not set CONFIG_BUSYBOX_CONFIG_TFTP=y CONFIG_BUSYBOX_CONFIG_FEATURE_TFTP_GET=y + +# CONFIG_PACKAGE_udevtrigger is not set CONFIG_UDEV_ENABLE_DEBUG=y + CONFIG_PETITBOOT_DEBUG=y CONFIG_PETITBOOT_PS3=y # CONFIG_PETITBOOT_AUTORUN_GUI is not set ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [patch 0/8] powerpc64 and kexec-tools updates
On 08/14/2009 03:09 PM, Geoff Levand wrote: Hi, This set of patches introduces a new target feature powerpc64 to help simplify the build files, updates the kexec-tools package to version 2.0.1, and does some kexec-tools package cleanups. [patch 1/8] powerpc: Create a powerpc64 config feature [patch 2/8] pxcab: Replace TARGET_pxcab with feature powerpc64 [patch 3/8] kexec-tools: Update package to version 2.0.1 [patch 4/8] kexec-tools: Add libtool PKG_FIXUP [patch 5/8] kexec-tools: Minor makefile line end fixes [patch 6/8] kexec-tools: Make build of kdump optional [patch 7/8] kexec-tools: Make link /sbin/kexec for compatability with other distros [patch 8/8] kexec-tools: Remove the unused file kexec.sh Are there any comments regarding these updates? If not, I would like to commit them sometime soon. Mita-san and Florian, and comments on patch [2]? I think it should be OK for pxcab. -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [patch 0/8] powerpc64 and kexec-tools updates
On 08/18/2009 03:36 PM, Florian Fainelli wrote: Hi Geoff, Le Wednesday 19 August 2009 00:10:52 Geoff Levand, vous avez écrit : On 08/14/2009 03:09 PM, Geoff Levand wrote: Hi, This set of patches introduces a new target feature powerpc64 to help simplify the build files, updates the kexec-tools package to version 2.0.1, and does some kexec-tools package cleanups. [patch 1/8] powerpc: Create a powerpc64 config feature [patch 2/8] pxcab: Replace TARGET_pxcab with feature powerpc64 [patch 3/8] kexec-tools: Update package to version 2.0.1 [patch 4/8] kexec-tools: Add libtool PKG_FIXUP [patch 5/8] kexec-tools: Minor makefile line end fixes [patch 6/8] kexec-tools: Make build of kdump optional [patch 7/8] kexec-tools: Make link /sbin/kexec for compatability with other distros [patch 8/8] kexec-tools: Remove the unused file kexec.sh Are there any comments regarding these updates? If not, I would like to commit them sometime soon. Mita-san and Florian, and comments on patch [2]? I think it should be OK for pxcab. Yes it is, that should have been done when merging the pxcab target. Go ahead for patches 1 and 2. Thanks. OK, I committed [1] and [2] as revisions 17306 and 17307. -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch 0/8] powerpc64 and kexec-tools updates
Hi, This set of patches introduces a new target feature powerpc64 to help simplify the build files, updates the kexec-tools package to version 2.0.1, and does some kexec-tools package cleanups. [patch 1/8] powerpc: Create a powerpc64 config feature [patch 2/8] pxcab: Replace TARGET_pxcab with feature powerpc64 [patch 3/8] kexec-tools: Update package to version 2.0.1 [patch 4/8] kexec-tools: Add libtool PKG_FIXUP [patch 5/8] kexec-tools: Minor makefile line end fixes [patch 6/8] kexec-tools: Make build of kdump optional [patch 7/8] kexec-tools: Make link /sbin/kexec for compatability with other distros [patch 8/8] kexec-tools: Remove the unused file kexec.sh -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch 1/8] powerpc: Create a powerpc64 config feature
The config symbol TARGET_ps3 is used in the build files where special handling for the 64 bit PowerPC processors is needed. Introduce a new config feature powerpc64, and replace the use of TARGET_ps3 with powerpc64. Signed-off-by: Geoff Levand geoffrey.lev...@am.sony.com --- feeds/packages/libs/libtwin/Makefile |2 +- package/kexec-tools/Makefile |2 +- package/kexec-tools/kexec-config.in |2 +- scripts/metadata.pl |1 + target/Config.in |3 +++ target/linux/ps3/Makefile|1 + target/linux/ps3/petitboot/target.mk |2 +- toolchain/Config.in |6 +++--- toolchain/gcc/Config.in |2 +- toolchain/gcc/Config.version |2 +- 10 files changed, 14 insertions(+), 9 deletions(-) --- a/feeds/packages/libs/libtwin/Makefile +++ b/feeds/packages/libs/libtwin/Makefile @@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/package.mk define Package/libtwin SECTION:=libs CATEGORY:=Libraries - DEPENDS:=+zlib +libpng +libjpeg @TARGET_ps3 + DEPENDS:=+zlib +libpng +libjpeg TITLE:=The tiny windowing system libraries URL:=http://www.t2-project.org/packages/libtwin.html endef --- a/package/kexec-tools/Makefile +++ b/package/kexec-tools/Makefile @@ -20,7 +20,7 @@ include $(INCLUDE_DIR)/package.mk define Package/kexec-tools SECTION:=utils CATEGORY:=Utilities - DEPENDS:=...@armeb||@i386||@TARGET_ps3||@mipsel||@mips +zlib + DEPENDS:=...@armeb||@i386||@powerpc64||@mipsel||@mips +zlib TITLE:=Kernel boots kernel URL:=http://kernel.org/pub/linux/kernel/people/horms/kexec-tools/ MENU:=1 --- a/package/kexec-tools/kexec-config.in +++ b/package/kexec-tools/kexec-config.in @@ -2,7 +2,7 @@ config KEXEC_TOOLS_TARGET_NAME string prompt Target name for kexec kernel if PACKAGE_kexec-tools - default EXTRA_TARGET_ARCH_NAME if TARGET_ps3 + default EXTRA_TARGET_ARCH_NAME if powerpc64 default ARCH help Defines the target type of the kernels that kexec deals --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -165,6 +165,7 @@ sub target_config_features(@) { /cpiogz/ and $ret .= \tselect USES_CPIOGZ\n; /fpu/ and $ret .= \tselect HAS_FPU\n; /ramdisk/ and $ret .= \tselect USES_INITRAMFS\n; + /powerpc64/ and $ret .= \tselect powerpc64\n; } return $ret; } --- a/target/Config.in +++ b/target/Config.in @@ -100,6 +100,9 @@ config powerpc select BIG_ENDIAN bool +config powerpc64 + bool + config sh3 bool --- a/target/linux/ps3/Makefile +++ b/target/linux/ps3/Makefile @@ -11,6 +11,7 @@ BOARD:=ps3 BOARDNAME:=Sony PS3 Game Console MAINTAINER:=Geoff Levand geoffrey.lev...@am.sony.com SUBTARGETS=petitboot +FEATURES+=powerpc64 LINUX_VERSION:=2.6.28.10 --- a/target/linux/ps3/petitboot/target.mk +++ b/target/linux/ps3/petitboot/target.mk @@ -1,5 +1,5 @@ BOARDNAME:=Petitboot -FEATURES:=fpu ramdisk +FEATURES+=fpu ramdisk define Target/Description Build Petitboot bootloader --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -13,7 +13,7 @@ menuconfig TOOLCHAINOPTS menuconfig EXTRA_TARGET_ARCH bool prompt Enable an extra toolchain target architecture if TOOLCHAINOPTS - default y if TARGET_ps3 || TARGET_pxcab + default y if powerpc64 || TARGET_pxcab default n help Some builds may require a 'biarch' toolchain. This option @@ -23,7 +23,7 @@ menuconfig EXTRA_TARGET_ARCH config EXTRA_TARGET_ARCH_NAME string - default powerpc64 if TARGET_ps3 || TARGET_pxcab + default powerpc64 if powerpc64 || TARGET_pxcab prompt Extra architecture name if EXTRA_TARGET_ARCH help Specify the cpu name (eg powerpc64 or x86_64) of the @@ -31,7 +31,7 @@ menuconfig EXTRA_TARGET_ARCH config EXTRA_TARGET_ARCH_OPTS string - default -m64 if TARGET_ps3 || TARGET_pxcab + default -m64 if powerpc64 || TARGET_pxcab prompt Extra architecture compiler options if EXTRA_TARGET_ARCH help If you're specifying an addition target architecture, --- a/toolchain/gcc/Config.in +++ b/toolchain/gcc/Config.in @@ -6,7 +6,7 @@ choice default GCC_VERSION_4_2_4 if TARGET_avr32 default GCC_VERSION_4_2_4 if TARGET_ppc40x default GCC_VERSION_4_2_4 if TARGET_ppc44x - default GCC_VERSION_4_3_3 if TARGET_ps3_petitboot + default GCC_VERSION_4_3_3 if powerpc64 default GCC_VERSION_4_3_3 if TARGET_pxcab default GCC_VERSION_4_3_3 if TARGET_etrax default GCC_VERSION_4_3_3 if TARGET_coldfire --- a/toolchain/gcc/Config.version +++ b/toolchain/gcc/Config.version @@ -52,7 +52,7 @@ if !TOOLCHAINOPTS default y if TARGET_ppc44x
[OpenWrt-Devel] [patch 8/8] kexec-tools: Remove the unused file kexec.sh
Signed-off-by: Geoff Levand geoffrey.lev...@am.sony.com --- package/kexec-tools/files/kexec.sh |5 - 1 file changed, 5 deletions(-) --- a/package/kexec-tools/files/kexec.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -. /etc/functions.sh -cmdline=$(cat /proc/cmdline) -kernel=$(find_mtd_part kernel) -kexec -l $kernel --command-line=$cmdline ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch 7/8] kexec-tools: Make link /sbin/kexec for compatability with other distros
Signed-off-by: Geoff Levand geoffrey.lev...@am.sony.com --- package/kexec-tools/Makefile |3 +++ 1 file changed, 3 insertions(+) --- a/package/kexec-tools/Makefile +++ b/package/kexec-tools/Makefile @@ -71,6 +71,9 @@ define Package/kexec-tools/install $(PKG_INSTALL_DIR)/usr/sbin/kexec \ $(1)/usr/sbin +# make a link for compatability with other distros + $(INSTALL_DIR) $(1)/sbin + ln -s /usr/sbin/kexec $(1)/sbin/kexec endef $(eval $(call BuildPackage,kexec-tools)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch] udhcpc: Pass all events to udhcpc.user
Petitboot and maybe other apps need to know when the dhcp lease is lost. Move the udhcpc.user call to send it all udhcpc events. Signed-off-by: Geoff Levand geoffrey.lev...@am.sony.com --- package/base-files/files/usr/share/udhcpc/default.script |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/package/base-files/files/usr/share/udhcpc/default.script +++ b/package/base-files/files/usr/share/udhcpc/default.script @@ -126,9 +126,9 @@ for ifc in $interfaces; do setup_interface ifup ;; esac - - # user rules - [ -f /etc/udhcpc.user ] . /etc/udhcpc.user done +# user rules +[ -f /etc/udhcpc.user ] . /etc/udhcpc.user + exit 0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [RFC 2/3] udev: Update udev from 106 to 139
From: Geoff Levand geoffrey.lev...@am.sony.com Update the udev package from udev-106 to udev-139. The udev package no longer provides separate udev utilities like udevtrigger and udevsettle. These have been incorporated into the udev admin program udevadm. The init scripts have been updated to use udevadm where appropriate. The udevtrigger sub package has been replaced with a udevadm package. The udevextras sub package has been replaced with config options to the udev package. Udev now recommends using the directory '/lib/udev/devices' to initialize the '/dev' directory at startup. I setup the preinit script to check for '/lib/udev/devices', and copy it to '/dev/ if it is found, then to conditionally setup /dev the old way with mknod etc. Signed-off-by: Geoff Levand geoffrey.lev...@am.sony.com --- I put my name there as the udev package maintainer. If anyone would like to take that role, please let me know. package/base-files/files/etc/preinit | 12 - package/udev/Makefile| 171 +++ package/udev/files/20-input-grouping.rules |9 - package/udev/patches/001-no_debug.patch | 22 -- package/udev/patches/002-udevtrigger_no_config.patch | 12 - package/udev/patches/003-portability.patch | 51 - package/udev/patches/010-udev-commit-2236dda.diff| 27 +++ package/udev/udev-config.in | 77 package/udev/udevextras-config.in| 57 -- 9 files changed, 212 insertions(+), 226 deletions(-) --- a/package/base-files/files/etc/preinit +++ b/package/base-files/files/etc/preinit @@ -40,15 +40,19 @@ elif [ -x /sbin/hotplug2 ]; then elif [ -x /sbin/udevd ]; then mount -n -t tmpfs -o mode=0755 udev /dev - /sbin/udevd --daemon - /sbin/udevtrigger - /sbin/udevsettle + [ -d /lib/udev/devices ] cp -af /lib/udev/devices/* /dev/ + [ -c /dev/console ] || mknod -m 0600 /dev/console c 5 1 + [ -c /dev/null ] || mknod -m 0666 /dev/null c 1 3 + /sbin/udevd --daemon --resolve-names=never + /sbin/udevadm trigger + /sbin/udevadm settle M0=/dev/pty/ptmx M1=/dev/pty/ptmx HOTPLUG= fi -mkdir -p /dev/pts /dev/shm +[ -d /dev/pts ] || mkdir -p /dev/pts +[ -d /dev/shm ] || mkdir -p /dev/shm mount devpts /dev/pts -t devpts # the shell really doesn't like having stdin/out closed --- a/package/udev/Makefile +++ b/package/udev/Makefile @@ -1,101 +1,130 @@ -# +# # Copyright (C) 2006-2008 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id$ include $(TOPDIR)/rules.mk PKG_NAME:=udev -PKG_VERSION:=106 +PKG_VERSION:=139 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=...@kernel/linux/utils/kernel/hotplug/ -PKG_MD5SUM:=320ccd2d0f4540d10e021bafa14f8985 +PKG_MD5SUM:=7e705e237d29734c77bc26f6ccbc4594 include $(INCLUDE_DIR)/package.mk +PKG_INSTALL=1 + define Package/udev - SECTION:=utils - CATEGORY:=Utilities - DEPENDS:=...@linux_2_6 - TITLE:=Dynamic device management subsystem - URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html + SECTION:=base + CATEGORY:=Base system + TITLE:=Dynamic device management subsystem + URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html + DEPENDS:=+udevadm endef define Package/udev/description - udev provides a dynamic device directory containing only the files for - actually present devices. It creates or removes device node files in - the /dev directory, or it renames network interfaces. -endef - -define Package/udevtrigger -$(call Package/udev) - SECTION:=base - CATEGORY:=Base system - TITLE:=Small utility to request kernel devices events for coldplug -endef - -define Package/udevextras -$(call Package/udev) - TITLE:=Utilities for udev scripts, for general device discovery - MENU:=1 -endef - -define Package/udevextras/config - source $(SOURCE)/udevextras-config.in -endef - -UDEV_ALL_EXTRAS=ata_id cdrom_id dasd_id edd_id scsi_id path_id usb_id volume_id -UDEV_EXTRAS=$(strip $(foreach e, $(UDEV_ALL_EXTRAS), \ - $(if $(CONFIG_UDEVEXTRAS_$(e)),extras/$(e - -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - CROSS_COMPILE=$(TARGET_CROSS) \ - STRIP=/bin/true \ - OPTFLAGS=$(TARGET_CFLAGS) \ - DESTDIR=$(PKG_INSTALL_DIR) \ - INSTALL=install -c \ - EXTRAS=$(UDEV_EXTRAS) \ - VOLUME_ID_STATIC=true \ - all install + udev allows Linux users to have a dynamic /dev directory and it + provides the ability to have persistent device names. endef -define Package/udev/install - install -d -m0775 $(1)/etc/udev - $(CP) $(PKG_INSTALL_DIR)/etc/udev/* $(1)/etc/udev/ - install -d -m0775 $(1
[OpenWrt-Devel] [RFC 1/3] uclibc: Fix ppoll 5th arg
From: Geoff Levand geoffrey.lev...@am.sony.com This is a backport from uclibc-0.9.31. Add the missing 5th arg to the ppoll syscall. Fixes the uclibc error that ppoll returns -EINVAL. Signed-off-by: Geoff Levand geoffrey.lev...@am.sony.com --- toolchain/uClibc/patches/300-fix-ppoll.diff | 39 1 file changed, 39 insertions(+) --- /dev/null +++ b/toolchain/uClibc/patches/300-fix-ppoll.diff @@ -0,0 +1,39 @@ + +It will match kernel's sigset_t starting from 0.9.31. + +Please try attached patch. +-- +vda + +diff -d -urpN uClibc.0/libc/sysdeps/linux/common/ppoll.c uClibc.1/libc/sysdeps/linux/common/ppoll.c +--- uClibc.0/libc/sysdeps/linux/common/ppoll.c uClibc.1/libc/sysdeps/linux/common/ppoll.c +@@ -17,6 +17,7 @@ +Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. */ + ++#include signal.h + #include sys/syscall.h + #include sys/poll.h + +@@ -26,9 +27,9 @@ + + # define __NR___libc_ppoll __NR_ppoll + static inline +-_syscall4(int, __libc_ppoll, struct pollfd *, fds, ++_syscall5(int, __libc_ppoll, struct pollfd *, fds, + nfds_t, nfds, const struct timespec *, timeout, +- const __sigset_t *, sigmask); ++ const __sigset_t *, sigmask, size_t, sigsetsize) + + int + ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, +@@ -43,7 +44,7 @@ + timeout = tval; + } + +- return __libc_ppoll(fds, nfds, timeout, sigmask); ++ return __libc_ppoll(fds, nfds, timeout, sigmask, _NSIG / 8); + } + libc_hidden_def(ppoll) + -- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [RFC 3/3] hotplug2: Update hotplug2-0.9 to use udev-139
From: Geoff Levand geoffrey.lev...@am.sony.com The udev package no longer provides a seperate udevtrigger utility. Add a hotplug2 patch '130-update-for-udev-139.patch' that makes hotplug2-0.9 use 'udevadm trigger'. Also, move the hotplug2 dependency on udevadm from the top level target.mk to the hotplug2 Makefile. Signed-off-by: Geoff Levand geoffrey.lev...@am.sony.com --- include/target.mk |2 package/hotplug2/Makefile |3 - package/hotplug2/patches/130-update-for-udev-139.patch | 37 + 3 files changed, 40 insertions(+), 2 deletions(-) --- a/include/target.mk +++ b/include/target.mk @@ -18,7 +18,7 @@ DEFAULT_PACKAGES.router:=dnsmasq iptable # Additional packages for Linux 2.6 ifneq ($(KERNEL),2.4) - DEFAULT_PACKAGES += udevtrigger hotplug2 + DEFAULT_PACKAGES += hotplug2 endif # Add device specific packages --- a/package/hotplug2/Makefile +++ b/package/hotplug2/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=hotplug2 PKG_VERSION:=0.9 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://isteve.bofh.cz/~isteve/hotplug2 @@ -24,6 +24,7 @@ define Package/hotplug2 VERSION:=0.9+r102-$(PKG_RELEASE) TITLE:=Dynamic device management subsystem for embedded systems URL:=http://isteve.bofh.cz/~isteve/hotplug2/ + DEPENDS:=+udevadm endef define Package/hotplug2/description --- /dev/null +++ b/package/hotplug2/patches/130-update-for-udev-139.patch @@ -0,0 +1,37 @@ +The udev package no longer provides a seperate udevtrigger utility. +Patch hotplug2 to use 'udevadm trigger'. + +--- a/hotplug2.c b/hotplug2.c +@@ -504,8 +504,6 @@ end_rules: + signal(SIGCHLD, sighandler); + + if (coldplug) { +- if (coldplug_command == NULL) +- coldplug_command = UDEVTRIGGER_COMMAND; + coldplug_p = fork(); + switch (coldplug_p) { + case FORK_ERROR: +@@ -514,7 +512,10 @@ end_rules: + goto exit; + break; + case 0: +- execlp(coldplug_command, coldplug_command, NULL); ++ if (!coldplug_command) ++ execlp(UDEVTRIGGER_COMMAND, UDEVTRIGGER_COMMAND, trigger, NULL); ++ else ++ execlp(coldplug_command, coldplug_command, NULL); + ERROR(coldplug,Coldplug exec ('%s') failed: %s., coldplug_command, strerror(errno)); + goto exit; + break; +--- a/hotplug2.h b/hotplug2.h +@@ -54,7 +54,7 @@ + #define ACTION_REMOVE 1 + #define ACTION_UNKNOWN-1 + +-#define UDEVTRIGGER_COMMAND /sbin/udevtrigger, /sbin/udevtrigger ++#define UDEVTRIGGER_COMMAND /sbin/udevadm + + #define FORK_CHILD0 + #define FORK_ERROR-1 -- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] rebooting from a kernel on external storage
Hi, Brian J. Murrell wrote: I wonder what the feasibility is of instead of putting a linux kernel in the kernel portion of the flash image and essentially what's an initrd in the filesystem portion (because remember, all the / in the flash image does for me is mount USB storage on /), putting a simple boot loader that can load the kernel from the USB storage based filesystem. It's worth recognizing and mentioning that perhaps this boot loader could actually be a full linux kernel and a very small / that simply kexecs a new kernel from the USB storage once it's mounted at /. I wonder how portable kexec is amongst the processors Linux runs on. This is close to what we do for the PS3 game console (powerpc64). We use an initramfs so have a single (kernel + filesystem) image that is put into flash. We use petitboot for the UI. It can load kernels via nfs, http, tftp, usb mass storage, etc. It also understands how to use the info returned from the dhcp server to load a kernel. We have an ncurses petitboot UI also that can be used over telnet, but it is being re-worked currently and has not been committed to the OpenWrt repo yet. The whole of petitboot is being reworked and that rework will provide better support for other platforms. http://ozlabs.org/~jk/projects/petitboot/ http://git.infradead.org/ps3/petitboot-multiple-ui-patches.git -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [patch] Vim configuration
On 07/13/2008 02:11 AM, Michael Geddes wrote: Fixes to vimrc file to avoid some errors. Signed-off-by: Michael Geddes michael at frog dot wheelycreek dot net --- Index: files/vimrc.full === --- files/vimrc.full (revision 11372) +++ files/vimrc.full (working copy) @@ -1,15 +1,15 @@ -set showcmd Show (partial) command in status line. -set showmatch Show matching brackets. -set ignorecase Do case insensitive matching -set incsearch Incremental search -set autowrite Automatically save before commands like :next -and :make -set nocompatible Use Vim defaults instead of 100% vi compatibility + vim: sts=2 sw=2 et +set showcmdShow (partial) command in status line. +set showmatch Show matching brackets. +set ignorecase Do case insensitive matching +set incsearch Incremental search +set autowrite Automatically save before commands like :next and :make +set nocompatible Use Vim defaults instead of 100% vi compatibility set backspace=indent,eol,start more powerful backspacing -set autoindent always set autoindenting on -set linebreak Don't wrap words by default -set textwidth=0 Don't wrap lines by default -set rulershow the cursor position all the time +set autoindent always set autoindenting on +set linebreak Don't wrap words by default +set textwidth=0Don't wrap lines by default +set ruler show the cursor position all the time Seems like more that just error fixes. How much does this increase the size of the binary? -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] git server down?
Has the git server been moved? nslookup gives me this: Host nbd.name not found: 3(NXDOMAIN) -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] telnetd and ctrl-c trouble
Hi, I have telnetd setup to get started through the init scripts, but when I connect, Cntl-C won't kill a hung process. If I kill and restart telnetd (from the console) then Cntl-C works OK from the telnet session. It seems as though process control is not available when started through the init scripts. Any ideas? -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] What is the correct way of submit packages
joerg jungermann wrote: Hi ! I'd like to ask how is the correct way to submit new packages for the feeds repository. I do this because i've sent some patches via this mailing list, and they are not added yet. I received no comments. Its about the isdnutils and asterisk14_chan_capi patches. I can only guess why this so, i think because of some troubles in building these packages or some formal failures. But I don't know if know one tells. It sounds like you need to be more persistent. First, you should have found out who the proper maintainer is, and sent your submissions to them, with a CC to the ML. If the maintainer takes no action in a reasonable amount of time, you should contact that maintainer again directly, in the same thread as the original mail, and again with a CC to the ML asking them to take action. Regarding testing, if your work is not popular, then you need to try to ask people specifically to test it. -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] How to make a usb GPS work
Massimiliano Marcon wrote: Hello, I'm trying to make a usb GPS (Garmin18) work with a linksys wrtsl54gs. I'm running on it whiterussian 0.9. I installed the packages kmod-usb-serial and kmod-usb-serial-pl2303, now as soon as I connect it to the usb port I see it as /dev/usb/tts/0, and dmesg says: usbserial.c: Generic converter detected usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs) So in theory I should be able to invoke a cat /dev/usb/tts/0 and see something, instead I don't see anything. If i run gpsd, the daemon which get data from a gps device I don't get any information as well. Any idea about this issue? This is not specific to OpenWRT. You need to use the garmin driver garmin_gps. It emulates a serial device. Look for it using the lsmod command. You need to send the device a command before it will send back data, so a cat will not work. -Geoff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel