[OpenWrt-Devel] [PATCH] package/libs/lzo: update version to 2.09
Updates lzo to version 2.09 and changes copyright to 2016. Signed-off-by: Daniel Engberg --- diff --git a/package/libs/lzo/Makefile b/package/libs/lzo/Makefile index 6a88a6f..d4e5e72 100644 --- a/package/libs/lzo/Makefile +++ b/package/libs/lzo/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2012 OpenWrt.org +# Copyright (C) 2006-2016 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:=lzo -PKG_VERSION:=2.08 +PKG_VERSION:=2.09 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/ -PKG_MD5SUM:=fcec64c26a0f4f4901468f360029678f +PKG_MD5SUM:=c7ffc9a103afe2d1bba0b015e7aa887f PKG_FIXUP:=autoreconf PKG_INSTALL:=1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] package/libs/libusb: Update to 1.0.20
Updates libusb to version 1.0.20 and changes copyright to 2016. Signed-off-by: Daniel Engberg --- diff --git a/package/libs/libusb/Makefile b/package/libs/libusb/Makefile index d2493fd..58536c0 100644 --- a/package/libs/libusb/Makefile +++ b/package/libs/libusb/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2010-2013 OpenWrt.org +# Copyright (C) 2010-2016 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:=libusb -PKG_VERSION:=1.0.19 +PKG_VERSION:=1.0.20 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/$(PKG_NAME) -PKG_MD5SUM:=f9e2bb5879968467e5ca756cb4e1fa7e +PKG_MD5SUM:=1d4eb194eaaa2bcfbba28102768c7dbf PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] package/utils/usbutils: Update USB IDs list
Updates USB IDs list to snapshot 2015-12-17 and changes copyright to 2016. Signed-off-by: Daniel Engberg --- diff --git a/package/utils/usbutils/Makefile b/package/utils/usbutils/Makefile index b1c058b..9b5470a 100644 --- a/package/utils/usbutils/Makefile +++ b/package/utils/usbutils/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2013 OpenWrt.org +# Copyright (C) 2007-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,14 +9,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usbutils PKG_VERSION:=007 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils PKG_MD5SUM:=a6bd63d5c44cebb717a960eae22a3ca9 -USB_IDS_VERSION:=2013-01-16 -USB_IDS_MD5SUM:=2a2344907b6344f0935c86efaf9de620 +USB_IDS_VERSION:=2015-12-17 +USB_IDS_MD5SUM:=8c091fdcdbc4e8e60a518d0148b0dad3 USB_IDS_FILE:=usb.ids.$(USB_IDS_VERSION).gz PKG_BUILD_PARALLEL:=1 @@ -36,7 +36,7 @@ endef define Download/usb_ids FILE:=$(USB_IDS_FILE) - URL:=http://mirror2.openwrt.org/sources + URL:=http://projects.pyret.net/dump/openwrt/distfiles MD5SUM:=$(USB_IDS_MD5SUM) endef $(eval $(call Download,usb_ids)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] package/libs/lzo: update version to 2.09 (repost)
Updates lzo to version 2.09 and changes copyright to 2016. Signed-off-by: Daniel Engberg --- diff --git a/package/libs/lzo/Makefile b/package/libs/lzo/Makefile index 6a88a6f..d4e5e72 100644 --- a/package/libs/lzo/Makefile +++ b/package/libs/lzo/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2012 OpenWrt.org +# Copyright (C) 2006-2016 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:=lzo -PKG_VERSION:=2.08 +PKG_VERSION:=2.09 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/ -PKG_MD5SUM:=fcec64c26a0f4f4901468f360029678f +PKG_MD5SUM:=c7ffc9a103afe2d1bba0b015e7aa887f PKG_FIXUP:=autoreconf PKG_INSTALL:=1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] package/libs/lzo: update version to 2.09
Updates lzo to version 2.09 and changes copyright to 2016. Signed-off-by: Daniel Engberg --- diff --git a/package/libs/lzo/Makefile b/package/libs/lzo/Makefile index 6a88a6f..d4e5e72 100644 --- a/package/libs/lzo/Makefile +++ b/package/libs/lzo/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2012 OpenWrt.org +# Copyright (C) 2006-2016 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:=lzo -PKG_VERSION:=2.08 +PKG_VERSION:=2.09 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/ -PKG_MD5SUM:=fcec64c26a0f4f4901468f360029678f +PKG_MD5SUM:=c7ffc9a103afe2d1bba0b015e7aa887f PKG_FIXUP:=autoreconf PKG_INSTALL:=1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] package/libs/libusb: Update to 1.0.20
Updates libusb to version 1.0.20 and changes copyright to 2016. Signed-off-by: Daniel Engberg --- diff --git a/package/libs/libusb/Makefile b/package/libs/libusb/Makefile index d2493fd..58536c0 100644 --- a/package/libs/libusb/Makefile +++ b/package/libs/libusb/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2010-2013 OpenWrt.org +# Copyright (C) 2010-2016 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:=libusb -PKG_VERSION:=1.0.19 +PKG_VERSION:=1.0.20 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/$(PKG_NAME) -PKG_MD5SUM:=f9e2bb5879968467e5ca756cb4e1fa7e +PKG_MD5SUM:=1d4eb194eaaa2bcfbba28102768c7dbf PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] package/utils/usbutils: Update USB IDs list to snapshot 2015-12-17
Updates USB IDs list to snapshot 2015-12-17 and changes copyright to 2016. Signed-off-by: Daniel Engberg --- diff --git a/package/utils/usbutils/Makefile b/package/utils/usbutils/Makefile index b1c058b..9b5470a 100644 --- a/package/utils/usbutils/Makefile +++ b/package/utils/usbutils/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2013 OpenWrt.org +# Copyright (C) 2007-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,14 +9,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usbutils PKG_VERSION:=007 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils PKG_MD5SUM:=a6bd63d5c44cebb717a960eae22a3ca9 -USB_IDS_VERSION:=2013-01-16 -USB_IDS_MD5SUM:=2a2344907b6344f0935c86efaf9de620 +USB_IDS_VERSION:=2015-12-17 +USB_IDS_MD5SUM:=8c091fdcdbc4e8e60a518d0148b0dad3 USB_IDS_FILE:=usb.ids.$(USB_IDS_VERSION).gz PKG_BUILD_PARALLEL:=1 @@ -36,7 +36,7 @@ endef define Download/usb_ids FILE:=$(USB_IDS_FILE) - URL:=http://mirror2.openwrt.org/sources + URL:=http://projects.pyret.net/dump/openwrt/distfiles MD5SUM:=$(USB_IDS_MD5SUM) endef $(eval $(call Download,usb_ids)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [ramips] Adjust image size limit for the D-Link DIR-860L B1
Currently the maximum image size defaults to 8Mbyte even though this model has 16Mbyte of flash memory. Tested and works on my device. Signed-off-by: Daniel Engberg --- diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 0cfb8fb..2590e2b 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -1085,6 +1085,7 @@ define Device/dir-860l-b1 DTS := DIR-860L-B1 IMAGES += factory.bin KERNEL := kernel-bin | patch-dtb | relocate-kernel | lzma | uImage lzma + IMAGE_SIZE := $(ralink_default_fw_size_16M) IMAGE/sysupgrade.bin := \ append-kernel | pad-offset 65536 64 | append-rootfs | \ seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \ ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] ramips: Disable the SD driver by default on MT7621
The SD driver has been a long and dragging issue on the MT7621 platforms as it hasn't worked for months resulting in unbootable devices. Until it's fixed, disable it in the default profiles. Reports / Discussed here: https://dev.openwrt.org/ticket/21392 https://dev.openwrt.org/ticket/21834 https://dev.openwrt.org/ticket/21995 https://forum.openwrt.org/viewtopic.php?id=59092 Signed-off-by: Daniel Engberg --- diff --git a/target/linux/ramips/mt7621/profiles/firefly.mk b/target/linux/ramips/mt7621/profiles/firefly.mk index bc50ab4..9797527 100644 --- a/target/linux/ramips/mt7621/profiles/firefly.mk +++ b/target/linux/ramips/mt7621/profiles/firefly.mk @@ -8,7 +8,7 @@ define Profile/FIREWRT NAME:=Firefly FireWRT PACKAGES:=\ - kmod-usb-core kmod-usb3 kmod-usb-hid kmod-sdhci-mt7620 \ + kmod-usb-core kmod-usb3 kmod-usb-hid \ kmod-ledtrig-usbdev endef diff --git a/target/linux/ramips/mt7621/profiles/misc.mk b/target/linux/ramips/mt7621/profiles/misc.mk index ee25b95..06a9d44 100644 --- a/target/linux/ramips/mt7621/profiles/misc.mk +++ b/target/linux/ramips/mt7621/profiles/misc.mk @@ -9,7 +9,7 @@ define Profile/PBR-M1 NAME:=PBR-M1 Device FEATURES+=rtc PACKAGES:=\ - kmod-usb-core kmod-usb3 kmod-usb-hid kmod-sdhci-mt7620 \ + kmod-usb-core kmod-usb3 kmod-usb-hid \ kmod-ledtrig-usbdev kmod-ata-core kmod-ata-ahci \ kmod-rtc-pcf8563 endef diff --git a/target/linux/ramips/mt7621/profiles/mqmaker.mk b/target/linux/ramips/mt7621/profiles/mqmaker.mk index ae35e7d..8acc116 100644 --- a/target/linux/ramips/mt7621/profiles/mqmaker.mk +++ b/target/linux/ramips/mt7621/profiles/mqmaker.mk @@ -9,7 +9,7 @@ define Profile/witi NAME:=MQmaker WiTi FEATURES+=rtc PACKAGES:=\ - kmod-usb-core kmod-usb3 kmod-usb-hid kmod-sdhci-mt7620 \ + kmod-usb-core kmod-usb3 kmod-usb-hid \ kmod-ledtrig-usbdev kmod-ata-core kmod-ata-ahci \ kmod-rtc-pcf8563 kmod-i2c-mt7621 endef diff --git a/target/linux/ramips/mt7621/profiles/zbt.mk b/target/linux/ramips/mt7621/profiles/zbt.mk index 07131d1..0073645 100644 --- a/target/linux/ramips/mt7621/profiles/zbt.mk +++ b/target/linux/ramips/mt7621/profiles/zbt.mk @@ -8,7 +8,7 @@ define Profile/ZBT-WG2626 NAME:=ZBT-WG2626 Device PACKAGES:=\ - kmod-usb-core kmod-usb3 kmod-sdhci-mt7620 \ + kmod-usb-core kmod-usb3 \ kmod-ledtrig-usbdev kmod-ata-core kmod-ata-ahci endef ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] package/utils/usbutils: Update USB IDs list and drop gzip compression
Change mirror to Github (Gentoo repo) and drop the gzip compression. Worst case there's a 4kbyte increase in size but most images ends up beign somewhere between 4-100kbyte smaller due to the lzma compression. Tested on ar71xx Signed-off-by: Daniel Engberg --- diff --git a/package/utils/usbutils/Makefile b/package/utils/usbutils/Makefile index 9b5470a..0457ded 100644 --- a/package/utils/usbutils/Makefile +++ b/package/utils/usbutils/Makefile @@ -9,15 +9,15 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usbutils PKG_VERSION:=007 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils PKG_MD5SUM:=a6bd63d5c44cebb717a960eae22a3ca9 -USB_IDS_VERSION:=2015-12-17 -USB_IDS_MD5SUM:=8c091fdcdbc4e8e60a518d0148b0dad3 -USB_IDS_FILE:=usb.ids.$(USB_IDS_VERSION).gz +USB_IDS_VERSION:=2016-03-03 +USB_IDS_MD5SUM:=273596b6ee101b1df454827cfa87dff8 +USB_IDS_FILE:=usb.ids PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 @@ -36,7 +36,7 @@ endef define Download/usb_ids FILE:=$(USB_IDS_FILE) - URL:=http://projects.pyret.net/dump/openwrt/distfiles + URL:=https://raw.githubusercontent.com/gentoo/hwids/d9e840aa3d5cedf5637d59ef0dc555c380a0e822/usb.ids MD5SUM:=$(USB_IDS_MD5SUM) endef $(eval $(call Download,usb_ids)) @@ -44,7 +44,7 @@ $(eval $(call Download,usb_ids)) define Build/Prepare $(Build/Prepare/Default) echo '#!/bin/sh' > $(PKG_BUILD_DIR)/update-usbids.sh.in - echo 'cp $(DL_DIR)/$(USB_IDS_FILE) usb.ids.gz' >> $(PKG_BUILD_DIR)/update-usbids.sh.in + echo 'gzip -9 -f -k $(DL_DIR)/$(USB_IDS_FILE)' >> $(PKG_BUILD_DIR)/update-usbids.sh.in endef define Package/usbutils/install ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v2] package/utils/usbutils: Update USB IDs list and drop gzip compression
Change mirror to Github (Gentoo repo) and drop the gzip compression. Worst case there's a 4kbyte increase in size but most images ends up beign somewhere between 4-100kbyte smaller due to the lzma compression. Tested on ar71xx Now contains the correct patch, sorry! Signed-off-by: Daniel Engberg --- diff --git a/package/utils/usbutils/Makefile b/package/utils/usbutils/Makefile index 9b5470a..7119a2a 100644 --- a/package/utils/usbutils/Makefile +++ b/package/utils/usbutils/Makefile @@ -9,15 +9,15 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usbutils PKG_VERSION:=007 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils PKG_MD5SUM:=a6bd63d5c44cebb717a960eae22a3ca9 -USB_IDS_VERSION:=2015-12-17 -USB_IDS_MD5SUM:=8c091fdcdbc4e8e60a518d0148b0dad3 -USB_IDS_FILE:=usb.ids.$(USB_IDS_VERSION).gz +USB_IDS_VERSION:=2016-03-03 +USB_IDS_MD5SUM:=273596b6ee101b1df454827cfa87dff8 +USB_IDS_FILE:=usb.ids PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 @@ -36,7 +36,7 @@ endef define Download/usb_ids FILE:=$(USB_IDS_FILE) - URL:=http://projects.pyret.net/dump/openwrt/distfiles + URL:=https://raw.githubusercontent.com/gentoo/hwids/d9e840aa3d5cedf5637d59ef0dc555c380a0e822 MD5SUM:=$(USB_IDS_MD5SUM) endef $(eval $(call Download,usb_ids)) @@ -44,14 +44,13 @@ $(eval $(call Download,usb_ids)) define Build/Prepare $(Build/Prepare/Default) echo '#!/bin/sh' > $(PKG_BUILD_DIR)/update-usbids.sh.in - echo 'cp $(DL_DIR)/$(USB_IDS_FILE) usb.ids.gz' >> $(PKG_BUILD_DIR)/update-usbids.sh.in endef define Package/usbutils/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsusb $(1)/usr/bin/ $(INSTALL_DIR) $(1)/usr/share - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids.gz $(1)/usr/share/ + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids $(1)/usr/share/ endef $(eval $(call BuildPackage,usbutils)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v3] package/utils/usbutils: Update USB IDs list and drop gzip compression
Change mirror to Github (Gentoo repo) and drop the gzip compression. Worst case there's about 4kbyte increase in size but most images ends up beign somewhere between 4-100kbyte smaller due to the lzma compression. Tested on ar71xx v2 Now contains the correct patch, sorry! v3 Turns out that the update-usbids.sh.in isn't executed at all... Signed-off-by: Daniel Engberg --- diff --git a/package/utils/usbutils/Makefile b/package/utils/usbutils/Makefile index 9b5470a..c1b82a9 100644 --- a/package/utils/usbutils/Makefile +++ b/package/utils/usbutils/Makefile @@ -9,15 +9,15 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usbutils PKG_VERSION:=007 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils PKG_MD5SUM:=a6bd63d5c44cebb717a960eae22a3ca9 -USB_IDS_VERSION:=2015-12-17 -USB_IDS_MD5SUM:=8c091fdcdbc4e8e60a518d0148b0dad3 -USB_IDS_FILE:=usb.ids.$(USB_IDS_VERSION).gz +USB_IDS_VERSION:=2016-03-03 +USB_IDS_MD5SUM:=273596b6ee101b1df454827cfa87dff8 +USB_IDS_FILE:=usb.ids PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 @@ -36,22 +36,24 @@ endef define Download/usb_ids FILE:=$(USB_IDS_FILE) - URL:=http://projects.pyret.net/dump/openwrt/distfiles + URL:=https://raw.githubusercontent.com/gentoo/hwids/d9e840aa3d5cedf5637d59ef0dc555c380a0e822 MD5SUM:=$(USB_IDS_MD5SUM) endef $(eval $(call Download,usb_ids)) define Build/Prepare $(Build/Prepare/Default) - echo '#!/bin/sh' > $(PKG_BUILD_DIR)/update-usbids.sh.in - echo 'cp $(DL_DIR)/$(USB_IDS_FILE) usb.ids.gz' >> $(PKG_BUILD_DIR)/update-usbids.sh.in + $(CP) $(DL_DIR)/$(USB_IDS_FILE) $(PKG_BUILD_DIR) endef +CONFIGURE_ARGS += \ + --disable-zlib + define Package/usbutils/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsusb $(1)/usr/bin/ $(INSTALL_DIR) $(1)/usr/share - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids.gz $(1)/usr/share/ + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids $(1)/usr/share/ endef $(eval $(call BuildPackage,usbutils)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH v3] package/utils/usbutils: Update USB IDs list and drop gzip compression
On 2016-04-17 15:12, Hauke Mehrtens wrote: > On 04/07/2016 08:50 AM, Daniel Engberg wrote: >> Change mirror to Github (Gentoo repo) and drop the gzip compression. >> Worst case there's about 4kbyte increase in size but most images ends up >> beign somewhere between 4-100kbyte smaller due to the lzma compression. >> >> Tested on ar71xx > > using the uncompressed version reduces the size when it is added to the > squasfs image, but what happens when it gets installed later to the the > overlay file system? > > Hauke > I haven't tested but the end result should be similar as according to the wiki the jffs2 filesystem also uses lzma compression. https://wiki.openwrt.org/doc/techref/filesystems#jffs2 //Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v4] package/utils/usbutils: Update USB IDs list and drop gzip compression
Change mirror to Github (Gentoo repo) and drop the gzip compression. Worst case there's about 4kbyte increase in size but most images ends up beign somewhere between 4-100kbyte smaller due to the lzma compression. Tested on ar71xx v2 Now contains the correct patch, sorry! v3 Turns out that the update-usbids.sh.in isn't executed at all... v4 Drop zlib dependency, pointed out by Hauke Mehrtens Signed-off-by: Daniel Engberg --- diff --git a/package/utils/usbutils/Makefile b/package/utils/usbutils/Makefile index 9b5470a..dc57155 100644 --- a/package/utils/usbutils/Makefile +++ b/package/utils/usbutils/Makefile @@ -9,15 +9,15 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usbutils PKG_VERSION:=007 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils PKG_MD5SUM:=a6bd63d5c44cebb717a960eae22a3ca9 -USB_IDS_VERSION:=2015-12-17 -USB_IDS_MD5SUM:=8c091fdcdbc4e8e60a518d0148b0dad3 -USB_IDS_FILE:=usb.ids.$(USB_IDS_VERSION).gz +USB_IDS_VERSION:=2016-03-03 +USB_IDS_MD5SUM:=273596b6ee101b1df454827cfa87dff8 +USB_IDS_FILE:=usb.ids PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 @@ -29,29 +29,31 @@ include $(INCLUDE_DIR)/package.mk define Package/usbutils SECTION:=utils CATEGORY:=Utilities - DEPENDS:=+libusb-1.0 +zlib +librt +libpthread + DEPENDS:=+libusb-1.0 +librt +libpthread TITLE:=USB devices listing utilities URL:=http://www.linux-usb.org/ endef define Download/usb_ids FILE:=$(USB_IDS_FILE) - URL:=http://projects.pyret.net/dump/openwrt/distfiles + URL:=https://raw.githubusercontent.com/gentoo/hwids/d9e840aa3d5cedf5637d59ef0dc555c380a0e822 MD5SUM:=$(USB_IDS_MD5SUM) endef $(eval $(call Download,usb_ids)) define Build/Prepare $(Build/Prepare/Default) - echo '#!/bin/sh' > $(PKG_BUILD_DIR)/update-usbids.sh.in - echo 'cp $(DL_DIR)/$(USB_IDS_FILE) usb.ids.gz' >> $(PKG_BUILD_DIR)/update-usbids.sh.in + $(CP) $(DL_DIR)/$(USB_IDS_FILE) $(PKG_BUILD_DIR) endef +CONFIGURE_ARGS += \ + --disable-zlib + define Package/usbutils/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsusb $(1)/usr/bin/ $(INSTALL_DIR) $(1)/usr/share - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids.gz $(1)/usr/share/ + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids $(1)/usr/share/ endef $(eval $(call BuildPackage,usbutils)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Meson/Ninja build system
Hi, I think the cmake.mk-link approach would be a good idea and given previous discussions the plan is afaik to pull in Ninja first and once that's confirmed working via CMake add support for Meson. Having a look at https://www.python.org/dev/peps/pep-0537/#lifespan it seems like a good idea to stick with 3.7? As for OpenWrt, there are already files with hard dependency of python3 dating back to 2015 doing a quick grep of the source tree. https://github.com/openwrt/openwrt/blob/master/scripts/dl_cleanup.py https://github.com/openwrt/openwrt/blob/master/scripts/flashing/eva_ramboot.py (added recently) CCed: Jan There are also upstream projects like wireless-db that doesn't compile/build cleanly with vanilla 2.7 https://github.com/openwrt/openwrt/pull/1521 Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] OpenWrt 19.03 plans
Hi, Is there any kind of "official" roadmap/checklist available what "needs" to be done? Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Meson/Ninja build system
On 2019-03-18 14:10, Petr Štetiar wrote: Daniel Engberg [2019-03-18 13:55:07]: Hi, Having a look at https://www.python.org/dev/peps/pep-0537/#lifespan it seems like a good idea to stick with 3.7? it's a PITA to demand versions which are not packaged in current versions of LTS Linux distros. Since Meson is a build system generator, I hope, that it's going to work with any Python 3 version, but can't find any details about Meson's Python version requirements. -- ynezz Some progress on this topic, 3.15 is pretty much the minimum version that's required if we're going to move to Python 3 despite having not having it in all available LTS releases (Debian 8 and RHEL 7 falls under this category). If anyone is interested the discussion is more or less continued here: https://github.com/openwrt/openwrt/pull/1937 Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] OpenWrt 19.03 plans
Hi, "ported properly" is rather vague, ipq* are the only "active" platforms the I would classify as troublesome and don't seem to be fixable in 4.14 within resonable time otherwise the list I compiled seems like a pretty resonable one? Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] mbedtls: update to version 2.16.1
Hi, Tested fine on ipq40xx, Linksys EA6350v3, OpenWrt master Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] mac80211: update to version 4.19.32-1
Hi, Tested fine on ipq40xx, Linksys EA6350v3, OpenWrt master Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/2] octeon: Deactivate MIPS O32 and N32 support
Hi, This patch seems to touch more things that just that... (4.19) +CONFIG_ARCH_HIBERNATION_POSSIBLE=y +CONFIG_ARCH_SUSPEND_POSSIBLE=y Both these are optional and no supported hardware have these capatibilities to my knowledge +CONFIG_HAVE_DEBUG_KMEMLEAK=y +CONFIG_HAVE_DEBUG_STACKOVERFLOW=y Why are these needed? +CONFIG_HAVE_IDE=y +CONFIG_HAVE_KVM=y +CONFIG_MIPS_EBPF_JIT=y These seems to be forced by the mips kernel config +CONFIG_ZLIB_INFLATE=y Where does this come from? In general I think we need to come up with a better way of handling kernel configs as many doesn't seem to be correct (see GitHub PRs) even though the kernel compiles and it's very hard to get a good overview not to mention maintain. Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Time to move on from 4.14 to 4.19?
Hi, I'm not sure what the current release roadmap is but since 19.X release seems to slipping perhaps it's time to move working targets to 4.19 as 4.14 has barely 6 months away before EoL status since there seems to be a rather strong opinion for "LTS" releases/branches? Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] octeon: Deactivate MIPS O32 and N32 support
On 2019-05-13 23:37, Hauke Mehrtens wrote: Hi Daniel, On 5/12/19 10:24 PM, Daniel Engberg wrote: Hi, This patch seems to touch more things that just that... (4.19) I did a "make kernel_oldconfig" to refresh the configuration. This was either not done when this configuration was added, the generic configuration changed or some new Kconfig options were added in the stable kernel. +CONFIG_ARCH_HIBERNATION_POSSIBLE=y +CONFIG_ARCH_SUSPEND_POSSIBLE=y Both these are optional and no supported hardware have these capatibilities to my knowledge They are automatically set because CONFIG_CAVIUM_OCTEON_SOC selects CONFIG_SYS_SUPPORTS_HOTPLUG_CPU if CONFIG_CPU_BIG_ENDIAN is set. +CONFIG_HAVE_DEBUG_KMEMLEAK=y +CONFIG_HAVE_DEBUG_STACKOVERFLOW=y Why are these needed? The architecture supports them, they are automatically selected. +CONFIG_HAVE_IDE=y +CONFIG_HAVE_KVM=y +CONFIG_MIPS_EBPF_JIT=y These seems to be forced by the mips kernel config +CONFIG_ZLIB_INFLATE=y Where does this come from? In general I think we need to come up with a better way of handling kernel configs as many doesn't seem to be correct (see GitHub PRs) even though the kernel compiles and it's very hard to get a good overview not to mention maintain. Yes I agree with you, when I looked at the kernel configuration of the at91 target for example there were many problems in there. It is also not really documented on how to do it correctly. Only defining the options which are really needed and using the defconfig for all of the others could also be an option, but I think we would miss to much stuff. Hauke Hi, I see, in the long run I think it might be a better idea to have a diff/patch file containing only variables with changed values compared to a vanilla platform config and perhaps have the refresh script generate a full copy of the kernel config before and after so it's easily available if you want look at it in more detail? It would also probably be easier to track mainline changes that way. Also, sorry for the late reply Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Use DHCP by default on single port devices
As per request, Fine as long as we fix mdns in some way? https://github.com/openwrt/openwrt/pull/1062 Not subscribed, so CC Best regards, Daniel Engberg ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Use DHCP by default on single port devices
Hi Levente Please have a look at the Github pull request. It doesn't affect "routers" (depending how you have want to look at it I guess) just devices with a single ethernet port and tries to make all consistent and convenient. Best regards, Daniel On 2018-08-27 16:54, Levente wrote: Can someone explain what is this all about? Why the default IP address is a problem? As far as I understand the router would use DHCP to get an IP address. Then a DHCP server is mandatory on the network? Thanks, Levente On Mon, Aug 27, 2018 at 4:01 PM Alberto Bursi wrote: On 8/27/2018 12:37 PM, Daniel Engberg wrote: > As per request, > > Fine as long as we fix mdns in some way? > > https://github.com/openwrt/openwrt/pull/1062 > > Not subscribed, so CC > > Best regards, > Daniel Engberg > > ___ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel I agree with the proposal as phrased in the mailing list. it's either mdns installed by default + dhcp so people can reach the device by writing "OpenWrt.local" or something in the browser or it has to stay static IP. Just going to DHCP without any other easy mean to reach the device will only be annoying. Devices with a single port and low flash can stay with static IP to save space imho. -Alberto ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Use DHCP by default on single port devices
Hi, I've added a PR for a small mDNS daemon https://github.com/openwrt/openwrt/pull/1339 The init.d script is hackish and has race condition issues, suggestions to improve it would be highly appreciated. For some reason it doesn't seem to work during boot up :/ Best regards, Daniel On 2018-08-27 16:00, Alberto Bursi wrote: On 8/27/2018 12:37 PM, Daniel Engberg wrote: As per request, Fine as long as we fix mdns in some way? https://github.com/openwrt/openwrt/pull/1062 Not subscribed, so CC Best regards, Daniel Engberg ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel I agree with the proposal as phrased in the mailing list. it's either mdns installed by default + dhcp so people can reach the device by writing "OpenWrt.local" or something in the browser or it has to stay static IP. Just going to DHCP without any other easy mean to reach the device will only be annoying. Devices with a single port and low flash can stay with static IP to save space imho. -Alberto ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] mvebu: fix the cortex-a9 fpu configure
Hi, You can try to push it again (needs modification) however... https://github.com/lede-project/source/pull/1211#issuecomment-319286867 The lazy way is to just to change to neon unless you have WRT1900v1 if you're building local builds. Best regards, Daniel Engberg ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Use binutils 2.31.1 by default
As per request, https://github.com/openwrt/openwrt/pull/1297 Longer tests with https://lists.openwrt.org/pipermail/openwrt-devel/2018-July/013394.html without issues Please cc as I'm not receiving emails from list by default Best regards, Daniel Engberg ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Use binutils 2.31.1 by default
As per request, https://github.com/openwrt/openwrt/pull/1297 Longer tests with https://lists.openwrt.org/pipermail/openwrt-devel/2018-July/013394.html without issues Not subscribed so please cc Best regards, Daniel Engberg ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] build: depend on host zip tool
Hi, Perhaps its worth considering adding bsdtar / libarchive (https://www.libarchive.org/) instead which handles various formats including zip (via zlib) and is still active? Another possible benefit would be that you would consolidate a few more tools into one. Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Add support for kernel 4.19
Hi Hauke! First of all, great work and also thanks to the others who contributed! I gave this a try on my Orange Pi PC (Allwinner H3) and it seems to run fine overall. Ethernet TX is a bit slow (~65mbit using iperf3) while RX does full line speed (~94mbit) more or less and USB also seems to work as it should. CONFIG_REGULATOR_SY8106A=y should probably be added to the kernel config as it's need to make cpufreq usable on this board. Looking at Armbian's repo we seem to lack a few kernel options which might be useful in regards of thermal performance/power consumption. CONFIG_ARM_CPUIDLE=y CONFIG_CPU_IDLE=y CONFIG_CPU_IDLE_MULTIPLE_DRIVERS=y CONFIG_CPU_IDLE_GOV_LADDER=y CONFIG_CPU_IDLE_GOV_MENU=y CONFIG_DT_IDLE_STATES=y For those using A64/H5 the Armbian repo contains quite a bit of patches which might be worth looking at. https://github.com/armbian/build/tree/master/patch/kernel/sunxi-dev It should also be noted that they're using https://github.com/megous/linux instead of mainline but it seems close to mainline in general. Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] build: depend on host zip tool
On 2018-12-03 23:05, Paul Oranje wrote: Op 3 dec. 2018, om 10:57 heeft Daniel Engberg het volgende geschreven: Hi, Perhaps its worth considering adding bsdtar / libarchive (https://www.libarchive.org/) instead which handles various formats including zip (via zlib) and is still active? Another possible benefit would be that you would consolidate a few more tools into one. On macOSX which has BSD tar the man pages states that it can extract ZIP files, but it not that it can *create* ZIP files. Perhaps a very old version? "tar -a -cf archive.zip source.c source.h" https://www.freebsd.org/cgi/man.cgi?query=bsdtar&sektion=1 Also listed as supported here: https://github.com/libarchive/libarchive/wiki/LibarchiveFormats Works fine on FreeBSD 11.2 (version string below) bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.2.3 bz2lib/1.0.6 Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] f2fs-tools: Update to 1.12.0
Hi, Duplicate, https://github.com/openwrt/openwrt/pull/1575 There's also some weird bug on Atheros MIPS (ath79 and ar71xx), more info on Github Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCHv2] f2fs-tools: Update to 1.12.0
Hi, I think we at least should wait until we get confirmation that patch #2 is working on real hardware (ar71xx for instance) as intended. Also, I'm not sure if it's your intention but the Github user offered to clean up the patch yet you went ahead(?) and I'm also not fond of the cutting in line behaviour. Anyhow, I'll drop the Github PR... Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Add support for kernel 4.19
On 2018-12-09 15:57, Hauke Mehrtens wrote: Hi Daniel, On 12/3/18 11:22 AM, Daniel Engberg wrote: Hi Hauke! First of all, great work and also thanks to the others who contributed! Thanks for testing this Daniel, The target code still needs some work, I only added this to test the generic code. I gave this a try on my Orange Pi PC (Allwinner H3) and it seems to run fine overall. Ethernet TX is a bit slow (~65mbit using iperf3) while RX does full line speed (~94mbit) more or less and USB also seems to work as it should. I used a Xunlong Orange Pi R1 (Allwinner H3) and got 94 Mbits/sec in RX and TX on both LAN ports (Allwinner MAC and Realtek USB MAC). CONFIG_REGULATOR_SY8106A=y should probably be added to the kernel config as it's need to make cpufreq usable on this board. Ok, I will add it. Looking at Armbian's repo we seem to lack a few kernel options which might be useful in regards of thermal performance/power consumption. CONFIG_ARM_CPUIDLE=y CONFIG_CPU_IDLE=y CONFIG_CPU_IDLE_MULTIPLE_DRIVERS=y CONFIG_CPU_IDLE_GOV_LADDER=y CONFIG_CPU_IDLE_GOV_MENU=y CONFIG_DT_IDLE_STATES=y I think there are still some pull requests open where people want to backport these features to 4.14, we should probably at least activate them in the kernel where they are available. For those using A64/H5 the Armbian repo contains quite a bit of patches which might be worth looking at. https://github.com/armbian/build/tree/master/patch/kernel/sunxi-dev It should also be noted that they're using https://github.com/megous/linux instead of mainline but it seems close to mainline in general. I think the non video parts are well supported in mainline by now, is there something particular interesting this this repository? Hauke Hi, Allwinner H5 SoCs are known to run very hot and they do quite easily overheat so it's probably a good idea to import cpufreq support otherwise there should at least be a warning at boot that it'll most likely overheat which in turn will cause a bad user experience. This also seems to plague the A64 SoC to some extent. There are also a few patches for nanopi boards which perhaps we should import? At least on my board any kind of cpufreq/power management seems to be disabled by default which might be a good idea to change? Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] config: enable some useful features on !SMALL_FLASH devices
Hi, KERNEL_AIO, KERNEL_FHANDLE and KERNEL_FANOTIFY makes sense _if_ you're using some kind of storage device however KERNEL_CGROUPS, config KERNEL_NAMESPACES, config KERNEL_LXC_MISC, KERNEL_SECCOMP_FILTER are very limited use cases to my knowledge and more or less only used on x86*? Keep in mind that 8Mbyte flash devices falls under the non tiny category and you don't have much space to begin with and far from everyone uses external storage devices on such devices which requires the kernel features mentioned. Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Cleanup in 4.19 generic kernel config?
Hi, After my attempt getting Linux 4.19 working for the Octeon target I started to look at the generic configuration for 4.19 and it seems that there are quite a bit of target specific options listed and potentially generating larger kernels than necessary. Given that some options are incorrect for certain targets I assume that they get overridden and/or ignored. Unless I misunderstand how the Linux kernel configuration works =y is equivalent to always compiled into kernel? I'm taking about this file by the way: https://github.com/openwrt/openwrt/blob/master/target/linux/generic/config-4.19 Should be set by target? Shouldn't coexist with CONFIG_64BIT as far as I can tell. CONFIG_32BIT=y ARM specific, should be set by target? CONFIG_ARM_CPU_TOPOLOGY=y CONFIG_ARM_DMA_MEM_BUFFERABLE=y CONFIG_ARM_GIC_MAX_NR=1 Target specific, no need to have it enabled by default and/or possibly at all? CONFIG_ATA_BMDMA=y CONFIG_ATA_SFF=y Seems to be defined by default? CONFIG_BLK_DEV_LOOP_MIN_COUNT=8 https://github.com/torvalds/linux/blob/master/drivers/block/Kconfig#L217 Should be set by target? CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT=3 Debug option - Adds unnecessary overhead? CONFIG_BRANCH_PROFILE_NONE=y https://cateee.net/lkddb/web-lkddb/BRANCH_PROFILE_NONE.html Should be set by target (ARM)? CONFIG_CACHE_L2X0_PMU=y Should be set by target, why is it enabled in 2019? CONFIG_CARDBUS=y Should be set by target (seems x86/64x specific)? CONFIG_DOUBLEFAULT=y Gets defined automatically based on target/platform? CONFIG_HZ=100 CONFIG_HZ_100=y Already default? CONFIG_IIO_CONSUMERS_PER_TRIGGER=2 https://cateee.net/lkddb/web-lkddb/IIO_CONSUMERS_PER_TRIGGER.html Why? CONFIG_ISDN=y CONFIG_JOLIET=y Should be set by target (ARM)? CONFIG_KERNEL_MODE_NEON=y Set Page_Size by target? CONFIG_PAGE_SIZE_4KB=y CONFIG_PPC_4K_PAGES=y Already default? CONFIG_PWRSEQ_EMMC=y https://cateee.net/lkddb/web-lkddb/PWRSEQ_EMMC.html Default 21 isn't enough? CONFIG_RCU_CPU_STALL_TIMEOUT=60 Needed for? CONFIG_RXKAD=y Obsolete? CONFIG_SLABINFO=y Shouldn't be default and/or platform specific? CONFIG_SND_X86=y Needed for? CONFIG_USB_ARMLINUX=y CONFIG_USB_BELKIN=y Platform specific? CONFIG_USB_OHCI_LITTLE_ENDIAN=y Platform specific? CONFIG_X86_SYSFB=y Best regads, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Cleanup in 4.19 generic kernel config?
On 2019-02-13 00:08, Rosen Penev wrote: On Sat, Feb 9, 2019 at 12:16 AM Daniel Engberg wrote: Hi, After my attempt getting Linux 4.19 working for the Octeon target I started to look at the generic configuration for 4.19 and it seems that there are quite a bit of target specific options listed and potentially generating larger kernels than necessary. Given that some options are incorrect for certain targets I assume that they get overridden and/or ignored. Unless I misunderstand how the Linux kernel configuration works =y is equivalent to always compiled into kernel? I'm taking about this file by the way: https://github.com/openwrt/openwrt/blob/master/target/linux/generic/config-4.19 Should be set by target? Shouldn't coexist with CONFIG_64BIT as far as I can tell. CONFIG_32BIT=y ARM specific, should be set by target? CONFIG_ARM_CPU_TOPOLOGY=y CONFIG_ARM_DMA_MEM_BUFFERABLE=y CONFIG_ARM_GIC_MAX_NR=1 Target specific, no need to have it enabled by default and/or possibly at all? CONFIG_ATA_BMDMA=y CONFIG_ATA_SFF=y Seems to be defined by default? CONFIG_BLK_DEV_LOOP_MIN_COUNT=8 https://github.com/torvalds/linux/blob/master/drivers/block/Kconfig#L217 Should be set by target? CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT=3 Debug option - Adds unnecessary overhead? CONFIG_BRANCH_PROFILE_NONE=y https://cateee.net/lkddb/web-lkddb/BRANCH_PROFILE_NONE.html Should be set by target (ARM)? CONFIG_CACHE_L2X0_PMU=y Should be set by target, why is it enabled in 2019? CONFIG_CARDBUS=y Should be set by target (seems x86/64x specific)? CONFIG_DOUBLEFAULT=y Gets defined automatically based on target/platform? CONFIG_HZ=100 CONFIG_HZ_100=y Already default? CONFIG_IIO_CONSUMERS_PER_TRIGGER=2 https://cateee.net/lkddb/web-lkddb/IIO_CONSUMERS_PER_TRIGGER.html Why? CONFIG_ISDN=y CONFIG_JOLIET=y Should be set by target (ARM)? CONFIG_KERNEL_MODE_NEON=y Set Page_Size by target? CONFIG_PAGE_SIZE_4KB=y CONFIG_PPC_4K_PAGES=y Already default? CONFIG_PWRSEQ_EMMC=y https://cateee.net/lkddb/web-lkddb/PWRSEQ_EMMC.html Default 21 isn't enough? CONFIG_RCU_CPU_STALL_TIMEOUT=60 Needed for? CONFIG_RXKAD=y Obsolete? CONFIG_SLABINFO=y Shouldn't be default and/or platform specific? CONFIG_SND_X86=y Needed for? CONFIG_USB_ARMLINUX=y CONFIG_USB_BELKIN=y Platform specific? CONFIG_USB_OHCI_LITTLE_ENDIAN=y Platform specific? CONFIG_X86_SYSFB=y Best regads, Daniel I've been running this with ramips for a few days. No issues to report. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel Hi, Thanks for giving it a try, hopefully someone we can make generic a little bit cleaner in the end. Since you tried it on ramips and going by this https://github.com/neheb/source/commit/500f88b54beb9399d1e4927fcd2d0fc59154dfe1 I'm going to assume that you tried this on 4.14? :-) Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] build: Activate ASLR PIE by default
Hi, PIE adds overhead (it can be quite a bit) both to binary size and performance during execution. There are usually discussions about kilobytes and this is well beyond that and space is still quite precious on 8/16Mbyte flash devices. Most target platforms are "slow" and have limited space to begin with, ASLR and PIE won't help. https://nebelwelt.net/publications/files/12TRpie.pdf Far from all supported platforms have NX-bit or equvalent which makes it as I understand it less effective? https://www.vusec.net/projects/anc/ Effectiveness using vanilla Linux kernel seems to be questionable? https://wiki.archlinux.org/index.php/security#Userspace_ASLR_comparison https://en.wikipedia.org/wiki/Grsecurity#PaX Interesting discussion about ASLR PIE in general here: http://lists.dragonflybsd.org/pipermail/users/2017-April/335158.html Debian seems to cherrypick applications https://wiki.debian.org/Hardening Perhaps the best solution wout be to provide two images, one with ASLR and one without? Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] OpenWrt 19.03 plans
Hi, Just a few things to take into consideration for 19.XX release Oversized ethernet frames on ipq806x causes crashes https://bugs.openwrt.org/index.php?do=details&task_id=2026 Overall ethernet performance on ipq806x isn't great, perhaps add a note in the release about it f2fs wonkyness on several (?) platforms? https://github.com/openwrt/openwrt/pull/1575 (scroll down) https://github.com/openwrt/openwrt/pull/1714 USB is half-broken on several devices (ath79) https://forum.openwrt.org/t/ath79-target-status/18614/27 (and below) TL-WDR4900 is currently broken https://github.com/openwrt/openwrt/pull/1773 Zyxel P-2812HNU-F is currently broken https://bugs.openwrt.org/index.php?do=details&task_id=2124 Mesh is broken using ath10k-ct? https://bugs.openwrt.org/index.php?do=details&task_id=2123 mac80211: rt2x00: fix crash on release_firmware https://patchwork.ozlabs.org/patch/1047485/ openssl: backport devcrypto changes from master https://patchwork.ozlabs.org/patch/1046426/ openssl: fix devcrypto engine md blocksize https://patchwork.ozlabs.org/patch/1046380/ Make sure NFS v3, v4 and client/server works on release https://bugs.openwrt.org/index.php?do=details&task_id=2105 Possible performance regressions regarding mt76 https://bugs.openwrt.org/index.php?do=details&task_id=2090 USB seems to be broken on WRT1900AC v1 https://bugs.openwrt.org/index.php?do=details&task_id=2091 syscall getrandom() hangs on Turris Omnia https://bugs.openwrt.org/index.php?do=details&task_id=1979 Worth considering: fstools: Disable lazy init for ext4 overlay https://github.com/openwrt/openwrt/pull/1847 ipset: size optimizations https://github.com/openwrt/openwrt/pull/1852 iputils: update to 20151218 (might be worth jumping to official repo?) https://github.com/openwrt/openwrt/pull/1804 package/libs/libevent: Update to 2.1.9-beta (get 2.1.9 in before branching) https://github.com/openwrt/openwrt/pull/1853 dropbear: bump to 2018.76 (just switch to master/head branch in worst case?) https://github.com/openwrt/openwrt/pull/915 Import the following and make default for ARC: toolchain: Update to GCC 8.3.0 https://github.com/openwrt/openwrt/pull/1846 toolchain/binutils: Add binutils 2.32 https://github.com/openwrt/openwrt/pull/1803 ath79: make TP-Link revision naming consistent https://patchwork.ozlabs.org/patch/1047544/ Might be risky? octeon: Generate writable and ext4 images for ERL https://github.com/openwrt/openwrt/pull/1813 (octeon:) Allow sysupgrade restore on ER https://patchwork.ozlabs.org/patch/1008841/ (octeon:) Evaluate board names in alphabetical order https://patchwork.ozlabs.org/patch/1008838/ There are quite many PRs and patches for adding devices which probably have to wait Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 0/6] buildsystem: Activate PIE ASLR for some packages
On 2019-10-27 18:44, Hauke Mehrtens wrote: This is a follow up patch on this discussion on the mailing list: https://patchwork.ozlabs.org/patch/1041647/ This allows to activate PIE only for some packages where we thing it is necessary and not only globally for all of them. Hauke Mehrtens (6): buildsystem: Make PIE ASLR option tristate dnsmasq: Activate PIE by default dropbear: Activate PIE by default hostapd: Activate PIE by default uhttpd: Activate PIE by default lantiq: Allow PKG_ASLR_PIE for DSL and voice drivers config/Config-build.in | 22 include/hardening.mk | 9 +++- package/kernel/lantiq/ltq-adsl/Makefile | 1 - package/kernel/lantiq/ltq-ifxos/Makefile | 1 - package/kernel/lantiq/ltq-tapi/Makefile | 1 - package/kernel/lantiq/ltq-vdsl-mei/Makefile | 2 -- package/kernel/lantiq/ltq-vdsl/Makefile | 1 - package/kernel/lantiq/ltq-vmmc/Makefile | 1 - package/network/config/ltq-vdsl-app/Makefile | 1 - package/network/services/dnsmasq/Makefile| 1 + package/network/services/dropbear/Makefile | 1 + package/network/services/hostapd/Makefile| 1 + package/network/services/uhttpd/Makefile | 1 + 13 files changed, 30 insertions(+), 13 deletions(-) I think ASLRs value needs to be evaluated especially due to the performance penalty (hostapd mainly in that regard) and not to forget size increase depending on for how long OpenWrt intends to keep 8Mbyte devices around as 4Mbyte devices are more or less unsupported by now. It's probably a better idea to only enable it on aarch64 and x86-64 where size isn't as much of a concern and where it probably(?) receives most exposure to avoid uncessary breakage. http://intx0x80.blogspot.com/2018/04/bypass-aslrnx-part-1.html https://svnweb.freebsd.org/base?view=revision&revision=343964 Might also be worth taking into consideration. Best regards, Daniel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel