[OpenWrt-Devel] [PATCH] update usbutils to version 002
Update to version 002, also adds dependencies on librt and libpthread --- Signed-of-by: Maarten Bezemer Index: utils/usbutils/Makefile === --- utils/usbutils/Makefile (revision 26243) +++ utils/usbutils/Makefile (working copy) @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2010 OpenWrt.org +# Copyright (C) 2007-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usbutils -PKG_VERSION:=001 +PKG_VERSION:=002 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils -PKG_MD5SUM:=40398698053f9f735550117322430e57 +PKG_MD5SUM:=39e38263ba45690fbad41f248f207d32 PKG_INSTALL:=1 @@ -22,7 +22,7 @@ define Package/usbutils SECTION:=utils CATEGORY:=Utilities - DEPENDS:=+libusb-1.0 +zlib + DEPENDS:=+libusb-1.0 +zlib +librt +libpthread TITLE:=USB devices listing utilities URL:=http://www.linux-usb.org/ endef___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] block-mount add missing directory
Fixes warning of missing /lib/functions/fsck directory during boot. Happens when no scripts are installed in this directory (ie when e2fsck is not enabled) --- Signed-of-by: Maarten Bezemer Index: package/block-mount/Makefile === --- package/block-mount/Makefile (revision 26245) +++ package/block-mount/Makefile (working copy) @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # Copyright 2010 Vertical Communications # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ PKG_NAME:=block-mount PKG_VERSION:=0.1.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 include $(INCLUDE_DIR)/package.mk @@ -51,6 +51,7 @@ $(INSTALL_DIR) $(1)/etc/config $(INSTALL_DATA) ./files/fstab.config $(1)/etc/config/fstab $(INSTALL_DIR) $(1)/lib/functions + $(INSTALL_DIR) $(1)/lib/functions/fsck $(INSTALL_DATA) ./files/mount.sh $(1)/lib/functions/ $(INSTALL_DATA) ./files/fsck.sh $(1)/lib/functions/ $(INSTALL_DATA) ./files/block.sh $(1)/lib/functions/ ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] coreutils-uptime not working?
Has coreutils-uptime ever worked? I recently tried turning it on: root@OpenWrt:~# uptime uptime: couldn't get boot time: No such file or directory root@OpenWrt:~# root@OpenWrt:~# who root@OpenWrt:~# users root@OpenWrt:~# And evidently who and users are also broken, since root on the console should be showing up. Just to make sure that it wasn't a problem with root on console not writing out a wtmp record, I also tried logging in via ssh and repeating the experiment... Same result. This is a build of Saturday's svn trunk. -Philip ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1] cs5535 driver no longer in drivers/char/ as of 2.6.38
The Geos target (and probably others, like net5501) need to grab the new cs5535 gpio driver. Signed-off-by: Philip Prindeville phil...@redfish-solutions.com --- Index: target/linux/x86/geos/target.mk === --- target/linux/x86/geos/target.mk (revision 26239) +++ target/linux/x86/geos/target.mk (working copy) @@ -1,8 +1,13 @@ BOARDNAME:=Traverse Geos FEATURES:=squashfs jffs2 ext4 pci usb gpio +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.38)),1) + GEOS_GPIO:=gpio-cs5535-new +else + GEOS_GPIO:=gpio-cs5535 +endif DEFAULT_PACKAGES += kmod-ata-via-sata \ kmod-crypto-hw-geode kmod-crypto-ocf \ -kmod-gpio-cs5535 kmod-gpio-nsc \ +kmod-$(GEOS_GPIO) kmod-gpio-nsc \ kmod-wdt-geode kmod-hwmon-core kmod-hwmon-lm90 \ kmod-8139cp kmod-solos-pci \ kmod-i2c-core kmod-i2c-gpio \ @@ -23,6 +28,6 @@ Build firmware images for Traverse Geos board endef -define KernelPackage/gpio-cs5535/install - sed -i -r -e 's// mask=$(CS5535_MASK)/' $(1)/etc/modules.d/??-gpio-cs5535 +define KernelPackage/$(GEOS_GPIO)/install + sed -i -r -e 's// mask=$(CS5535_MASK)/' $(1)/etc/modules.d/??-$(GEOS_GPIO) endef ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] block-extroot and firmware updating/flashing
Hello, I am using block-extroot for my external USB disk. It all works nice most of the time. Only time it breaks, is after updating/flashing the routers firmware. I have been looking for the reason and I found that the scripts are comparing /.extroot.md5sum with /tmp/overlay/etc/extroot.md5sum After flashing the firmware /.extroot.md5sum is changed and thus does not match to the version on the disk, resulting in the disk getting mounted on /tmp/overlay-disabled After removing the extroot.md5sum file on the external disk, the root mounting during boot works again. My question is: Why is this behavior present? And it is a good solution to remove the extroot.md5sum during the firstboot stage? Or is another way recommended? Thanks, Maarten ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/3] solos-pci: Don't display pseudo-header when dumping packet contents
The 8 bytes of struct pkt_hdr immediately before a AAL5 frame should not be included as part of the packet contents hex dump. Signed-off-by: Philip Prindeville phil...@redfish-solutions.com --- --- a/drivers/atm/solos-pci.c.orig 2011-03-19 12:19:06.0 -0600 +++ b/drivers/atm/solos-pci.c 2011-03-19 12:45:18.0 -0600 @@ -697,7 +697,7 @@ void solos_bh(unsigned long card_arg) size); } if (atmdebug) { - dev_info(card-dev-dev, Received: device %d\n, port); + dev_info(card-dev-dev, Received: port %d\n, port); dev_info(card-dev-dev, size: %d VPI: %d VCI: %d\n, size, le16_to_cpu(header-vpi), le16_to_cpu(header-vci)); @@ -1025,8 +1025,15 @@ static uint32_t fpga_tx(struct solos_car /* Clean up and free oldskb now it's gone */ if (atmdebug) { + struct pkt_hdr *header = (void *)oldskb-data; + int size = le16_to_cpu(header-size); + + skb_pull(oldskb, sizeof(*header)); dev_info(card-dev-dev, Transmitted: port %d\n, port); + dev_info(card-dev-dev, size: %d VPI: %d VCI: %d\n, +size, le16_to_cpu(header-vpi), +le16_to_cpu(header-vci)); print_buffer(oldskb); } ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/3] solos-pci: Don't duplicate atm common code
net/atm/common.c already includes the same function as atm_dev_release_vccs(); don't duplicate it. Signed-off-by: Philip Prindeville phil...@redfish-solutions.com --- --- linux-2.6.37/drivers/atm/solos-pci.c.orig 2011-03-20 01:42:22.0 -0600 +++ linux-2.6.37/drivers/atm/solos-pci.c2011-03-20 14:23:26.0 -0600 @@ -165,7 +165,6 @@ static uint32_t fpga_tx(struct solos_car static irqreturn_t solos_irq(int irq, void *dev_id); static struct atm_vcc* find_vcc(struct atm_dev *dev, short vpi, int vci); static int list_vccs(int vci); -static void release_vccs(struct atm_dev *dev); static int atm_init(struct solos_card *, struct device *); static void atm_remove(struct solos_card *); static int send_command(struct solos_card *card, int dev, const char *buf, size_t size); @@ -384,7 +383,7 @@ static int process_status(struct solos_c /* Anything but 'Showtime' is down */ if (strcmp(state_str, Showtime)) { atm_dev_signal_change(card-atmdev[port], ATM_PHY_SIG_LOST); - release_vccs(card-atmdev[port]); + atm_dev_release_vccs(card-atmdev[port]); dev_info(card-dev-dev, Port %d: %s\n, port, state_str); return 0; } @@ -837,28 +836,6 @@ static int list_vccs(int vci) return num_found; } -static void release_vccs(struct atm_dev *dev) -{ -int i; - -write_lock_irq(vcc_sklist_lock); -for (i = 0; i VCC_HTABLE_SIZE; i++) { -struct hlist_head *head = vcc_hash[i]; -struct hlist_node *node, *tmp; -struct sock *s; -struct atm_vcc *vcc; - -sk_for_each_safe(s, node, tmp, head) { -vcc = atm_sk(s); -if (vcc-dev == dev) { -vcc_release_async(vcc, -EPIPE); -sk_del_node_init(s); -} -} -} -write_unlock_irq(vcc_sklist_lock); -} - static int popen(struct atm_vcc *vcc) { --- a/net/atm/common.c.orig 2011-01-04 17:50:19.0 -0700 +++ b/net/atm/common.c 2011-03-20 15:22:59.0 -0600 @@ -252,6 +252,7 @@ void atm_dev_release_vccs(struct atm_dev } write_unlock_irq(vcc_sklist_lock); } +EXPORT_SYMBOL(atm_dev_release_vccs); static int adjust_tp(struct atm_trafprm *tp, unsigned char aal) { --- a/include/linux/atmdev.h.orig 2011-01-04 17:50:19.0 -0700 +++ b/include/linux/atmdev.h2011-03-20 15:25:08.0 -0600 @@ -443,6 +443,7 @@ void atm_dev_signal_change(struct atm_de void vcc_insert_socket(struct sock *sk); +void atm_dev_release_vccs(struct atm_dev *dev); /* * This is approximately the algorithm used by alloc_skb. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/3] solos-pci: Don't delete PVCs on carrier transitions
Don't delete the PVC set up by br2684ctl for nasX when carrier flaps. Signed-off-by: Philip Prindeville phil...@redfish-solutions.com --- --- a/drivers/atm/solos-pci.c.orig 2011-03-20 15:27:40.0 -0600 +++ b/drivers/atm/solos-pci.c 2011-03-20 16:32:11.0 -0600 @@ -382,8 +382,10 @@ static int process_status(struct solos_c /* Anything but 'Showtime' is down */ if (strcmp(state_str, Showtime)) { atm_dev_signal_change(card-atmdev[port], ATM_PHY_SIG_LOST); +#if 0 atm_dev_release_vccs(card-atmdev[port]); +#endif dev_info(card-dev-dev, Port %d: %s\n, port, state_str); return 0; } ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel