Re: [OpenWrt-Devel] [OpenWrt] 2.4Ghz limited to 50mW in DFS-ETSI
Ben is right, take a look at https://forum.openwrt.org/viewtopic.php?id=42197 In newer Openwrt versions the kernel modules are compiled to respect the reg-domain settings programmed in hardware. Kind regards ... sent from my iPhone Am 30.07.2015 um 17:11 schrieb Ben West b...@gowasabi.net: You can look up your respective country's spectrum regulations. It is possible prior versions OpenWRT didn't fully conform to each regulatory domain and were fixed in more recent versions (just as the converse is possible). For example, for the USA, here is a table of power limits for the 2.4GHz and 5GHz bands. Channels 36-48 are limited to 16dBm transmitter power. http://www.air802.com/fcc-rules-and-regulations.html On Thu, Jul 30, 2015 at 3:32 AM, Nicola von Thadden n...@vthadden.de wrote: Hi, I also thought to have used 20dBm or 23dBm in earlier releases (AA). Is there a way to find out to which txpower levels the 5Ghz transceiver is limited? I think the driver reads them out, maybe there is a way to print them on the cmd? But my main problem is the 17dBm on 2.4Ghz when setting DFS-ETSI countries. I don't think that it is a problem of the hardware but of the software parsing the regdom. Maybe there is a fixed limit of 17dBm on non-DFS channels, even when DFS is not required, which is not very useful. Does anyone have an idea where that could be set? My search in the source code had no results until now, where it could be. Thanks Nico On 07/29/2015 06:21 PM, Atanas Vladimirov wrote: https://dev.openwrt.org/ticket/20201 On BB I used 20dBm for both 2.4 and 5GHz on the same router. Sent with AquaMail for Android http://www.aqua-mail.com On 29 юли 2015 г. 18:40:10 Ben West b...@gowasabi.net wrote: This is what I observe running Barrier Breaker on UBNT M5 products, too. I believe the 17dBm limit is intentional, i.e. per regulation. The 30dBm tx power limit applies to channels 149 and above, I believe. Also (kind of off-topic): Do you know why 5Ghz channels 36-48 are forced to be 17dBm only on the WNDR3800? I found two possible explanations: either because of the factory calibration On Wed, Jul 29, 2015 at 10:25 AM, Gerald Matzka mgeral...@yahoo.de mailto:mgeral...@yahoo.de wrote: Well, it looks like the txpower of your wdnr3800 is limited to 17dBm because of the hardware reg-domain settings. Kind regards, ... sent from my iPhone Am 29.07.2015 um 10:43 schrieb Nicola von Thadden n...@vthadden.de mailto:n...@vthadden.de: Hi, I have this strange behaviour down below, for which I also opened a ticket because I think this should not be like that ;) Does anyone have an idea where the problem could originate from and how to fix it? Thanks Nico On 07/29/2015 12:37 AM, OpenWrt wrote: #20222: 2.4Ghz limited to 50mW in DFS-ETSI --+-- Reporter: nicoduck | Owner: developers Type: defect| Status: new Priority: normal| Milestone: Chaos Calmer (trunk) Component: kernel|Version: Trunk Keywords: wndr3800 | --+-- I have got a Netgear WNDR 3800 running with openwrt since quite a while. I now upgraded to the latest version (trunk) and wanted to use WLAN within the regulations here in Germany but also wanted to max out the output power (within the regulations). Switching the country to Germany limits the maximum output power to 17dBm, although it does show as being limited on 20dBm: root@OpenWrt:/# iwinfo wlan0 txpower 0 dBm ( 1 mW) 1 dBm ( 1 mW) 2 dBm ( 1 mW) 3 dBm ( 1 mW) 4 dBm ( 2 mW) 5 dBm ( 3 mW) 6 dBm ( 3 mW) 7 dBm ( 5 mW) 8 dBm ( 6 mW) 9 dBm ( 7 mW) 10 dBm ( 10 mW) 11 dBm ( 12 mW) 12 dBm ( 15 mW) 13 dBm ( 19 mW) 14 dBm ( 25 mW) 15 dBm ( 31 mW) 16 dBm ( 39 mW) * 17 dBm ( 50 mW) 18 dBm ( 63 mW) 19 dBm ( 79 mW) 20 dBm ( 100 mW) What I did: reset the device, flash it with various builts from trunk and try to figure out what was going on. I now modified my regdb and was able to isolate the source of the problem: country DE: DFS-ETSI # entries 279004 and 280006 (2400 - 2483.5 @ 40), (100 mW) # entry 303005 (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW # entries 304002 and 305002 (5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW # entries 308002, 309001
Re: [OpenWrt-Devel] [OpenWrt] 2.4Ghz limited to 50mW in DFS-ETSI
Well, it looks like the txpower of your wdnr3800 is limited to 17dBm because of the hardware reg-domain settings. Kind regards, ... sent from my iPhone Am 29.07.2015 um 10:43 schrieb Nicola von Thadden n...@vthadden.de: Hi, I have this strange behaviour down below, for which I also opened a ticket because I think this should not be like that ;) Does anyone have an idea where the problem could originate from and how to fix it? Thanks Nico On 07/29/2015 12:37 AM, OpenWrt wrote: #20222: 2.4Ghz limited to 50mW in DFS-ETSI --+-- Reporter: nicoduck | Owner: developers Type: defect| Status: new Priority: normal| Milestone: Chaos Calmer (trunk) Component: kernel|Version: Trunk Keywords: wndr3800 | --+-- I have got a Netgear WNDR 3800 running with openwrt since quite a while. I now upgraded to the latest version (trunk) and wanted to use WLAN within the regulations here in Germany but also wanted to max out the output power (within the regulations). Switching the country to Germany limits the maximum output power to 17dBm, although it does show as being limited on 20dBm: root@OpenWrt:/# iwinfo wlan0 txpower 0 dBm ( 1 mW) 1 dBm ( 1 mW) 2 dBm ( 1 mW) 3 dBm ( 1 mW) 4 dBm ( 2 mW) 5 dBm ( 3 mW) 6 dBm ( 3 mW) 7 dBm ( 5 mW) 8 dBm ( 6 mW) 9 dBm ( 7 mW) 10 dBm ( 10 mW) 11 dBm ( 12 mW) 12 dBm ( 15 mW) 13 dBm ( 19 mW) 14 dBm ( 25 mW) 15 dBm ( 31 mW) 16 dBm ( 39 mW) * 17 dBm ( 50 mW) 18 dBm ( 63 mW) 19 dBm ( 79 mW) 20 dBm ( 100 mW) What I did: reset the device, flash it with various builts from trunk and try to figure out what was going on. I now modified my regdb and was able to isolate the source of the problem: country DE: DFS-ETSI # entries 279004 and 280006 (2400 - 2483.5 @ 40), (100 mW) # entry 303005 (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW # entries 304002 and 305002 (5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW # entries 308002, 309001 and 310003 (5470 - 5725 @ 160), (500 mW), DFS # 60 gHz band channels 1-4, ref: Etsi En 302 567 (57000 - 66000 @ 2160), (40) Thas does not work and has the mentioned behaviour, 2.4Ghz is limited at 17dBm. It also does not depend on which values are set in the regulatory database for the 2.4Ghz channels, anything over 17dBm will be limited to 17dBm. running iw phy phy0 set txpower fixed 2000 gives no error but does not change it to 20dBm. Changing the value to anything below 17dBm works though. country DE: DFS-FCC # entries 279004 and 280006 (2400 - 2483.5 @ 40), (100 mW) # entry 303005 (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW # entries 304002 and 305002 (5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW # entries 308002, 309001 and 310003 (5470 - 5725 @ 160), (500 mW), DFS # 60 gHz band channels 1-4, ref: Etsi En 302 567 (57000 - 66000 @ 2160), (40) Thad does work. The only change to the entry above is DFS-FCC instead of DFS-ETSI. I can now select any powerlevel between 1 and 20dBm and it is also reported as being used: root@OpenWrt:/# iwinfo wlan0 txpower 0 dBm ( 1 mW) 1 dBm ( 1 mW) 2 dBm ( 1 mW) 3 dBm ( 1 mW) 4 dBm ( 2 mW) 5 dBm ( 3 mW) 6 dBm ( 3 mW) 7 dBm ( 5 mW) 8 dBm ( 6 mW) 9 dBm ( 7 mW) 10 dBm ( 10 mW) 11 dBm ( 12 mW) 12 dBm ( 15 mW) 13 dBm ( 19 mW) 14 dBm ( 25 mW) 15 dBm ( 31 mW) 16 dBm ( 39 mW) 17 dBm ( 50 mW) 18 dBm ( 63 mW) 19 dBm ( 79 mW) * 20 dBm ( 100 mW) I have no idea why but there seems to be a bug in the code parsing the DFS regulations, limiting 2.4Ghz to lot lower values than allowed. Changing it to DFS-FCC works for using the applicaple output power but does not seem to be in compliance which German law. Do you have an idea where the problem could be? I'm happy to try out more builds and future versions. Also (kind of off-topic): Do you know why 5Ghz channels 36-48 are forced to be 17dBm only on the WNDR3800? I found two possible explanations: either because of the factory calibration (is it possible to get them in a human readable form somehow? The hexdump is not really readable and I have not been able to find the code which pases them) or because these channels are considered as edge-channels and someone thought it would be safe to limit the power, to not disturb any other systems running on even lower channels. The latter explanation is kind of weird because it would make no sense to limit these 4 channels but no other ones. I find it especially strange because that is typically the job of regulatory authorities, to define those
[OpenWrt-Devel] Dirty Diamond
+1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Build ipk and make autostart?
Am 13.09.2014 um 08:48 schrieb Nguyễn Hồng Quân ng.hong.q...@gmail.com: Hello, When I package an application to ipk file, how do I make the application to automatically start? I already make the init script, which is supposed to install to /etc/init.d/ I tried add these lines to Makefile define Package/postinst /etc/init.d/puppysplash enable endef where puppysplash is the name of application. But after building the OpenWrt image with that application included, I didn't see the symlink in /etc/rc.d/ So, what is the right way to do? Take a look at http://wiki.openwrt.org/doc/devel/packages - section Package/postinst. Seems you forgot the #!/bin/sh Kind regards, GM Thanks -- *** * Nguyễn Hồng Quân* * Y!M: ng_hquan_vn* * Facebook: ng.hong.quan * * Web: quan.hoabinh.vn* *** ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH,packages] update lighttpd to 1.4.35
From: Gerald Matzka mgeral...@yahoo.de mgeral...@yahoo.de Hi, this patch updates lighttpd to 1.4.35 Signed-off-by: Gerald Matzka mgeral...@yahoo.de --- net/lighttpd/Makefile | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/net/lighttpd/Makefile b/net/lighttpd/Makefile index 8548dd2..326d9c0 100644 --- a/net/lighttpd/Makefile +++ b/net/lighttpd/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lighttpd -PKG_VERSION:=1.4.32 +PKG_VERSION:=1.4.35 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=http://download.lighttpd.net/lighttpd/releases-1.4.x -PKG_MD5SUM:=e5a6f57fc371a10646ff1a57056fa9c0 +PKG_MD5SUM:=c7ae774eab4cb7ac85e41b712f4ee9ba PKG_LICENSE:=BSD-3c PKG_LICENSE_FILES:=COPYING @@ -154,7 +154,7 @@ $(eval $(call BuildPlugin,alias,Directory alias,,10)) $(eval $(call BuildPlugin,auth,Authentication,,05)) $(eval $(call BuildPlugin,cgi,CGI,,10)) $(eval $(call BuildPlugin,cml,Cache Meta Language,,10)) -$(eval $(call BuildPlugin,compress,Compress output,+zlib,10)) +$(eval $(call BuildPlugin,compress,Compress output,+PACKAGE_lighttpd-mod-compress:zlib,10)) $(eval $(call BuildPlugin,evasive,Evasive,,10)) $(eval $(call BuildPlugin,evhost,Exnhanced Virtual-Hosting,,10)) $(eval $(call BuildPlugin,expire,Expire,,10)) @@ -162,10 +162,10 @@ $(eval $(call BuildPlugin,extforward,Extract client,,10)) $(eval $(call BuildPlugin,fastcgi,FastCGI,,10)) $(eval $(call BuildPlugin,flv_streaming,FLV streaming,,10)) $(eval $(call BuildPlugin,magnet,Magnet,,10)) -$(eval $(call BuildPlugin,mysql_vhost,Mysql virtual hosting,+libmysqlclient,10)) +$(eval $(call BuildPlugin,mysql_vhost,Mysql virtual hosting,+PACKAGE_lighttpd-mod-mysql_vhost:libmysqlclient,10)) $(eval $(call BuildPlugin,proxy,Proxy,,10)) -$(eval $(call BuildPlugin,redirect,URL redirection,+libpcre,10)) -$(eval $(call BuildPlugin,rewrite,URL rewriting,+libpcre,10)) +$(eval $(call BuildPlugin,redirect,URL redirection,+PACKAGE_lighttpd-mod-redirect:libpcre,10)) +$(eval $(call BuildPlugin,rewrite,URL rewriting,+PACKAGE_lighttpd-mod-rewrite:libpcre,10)) $(eval $(call BuildPlugin,rrdtool,RRDtool,,10)) $(eval $(call BuildPlugin,scgi,SCGI,,10)) $(eval $(call BuildPlugin,secdownload,Secure and fast download,,10)) @@ -173,8 +173,8 @@ $(eval $(call BuildPlugin,setenv,Environment variable setting,,10)) $(eval $(call BuildPlugin,simple_vhost,Simple virtual hosting,,10)) $(eval $(call BuildPlugin,ssi,SSI,+libpcre,10)) $(eval $(call BuildPlugin,status,Server status display,,10)) -$(eval $(call BuildPlugin,trigger_b4_dl,Trigger before download,+libpcre,10)) +$(eval $(call BuildPlugin,trigger_b4_dl,Trigger before download,+PACKAGE_lighttpd-mod-trigger_b4_dl:libpcre,10)) $(eval $(call BuildPlugin,userdir,User directory,,10)) $(eval $(call BuildPlugin,usertrack,User tracking,,10)) -$(eval $(call BuildPlugin,webdav,WebDAV,+libsqlite3 +libuuid +libxml2,10)) +$(eval $(call BuildPlugin,webdav,WebDAV,+PACKAGE_lighttpd-mod-webdav:libsqlite3 +PACKAGE_lighttpd-mod-webdav:libuuid +PACKAGE_lighttpd-mod-webdav:libxml2,10)) -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH,packages 1/2] update libdbi to 0.9.0
Signed-off-by: Gerald Matzka mgeral...@yahoo.de --- libs/libdbi/Makefile | 11 -- libs/libdbi/patches/001-no_docs.patch| 24 libs/libdbi/patches/002-no_cflags_override.patch | 45 -- 3 files changed, 8 insertions(+), 72 deletions(-) delete mode 100644 libs/libdbi/patches/001-no_docs.patch delete mode 100644 libs/libdbi/patches/002-no_cflags_override.patch diff --git a/libs/libdbi/Makefile b/libs/libdbi/Makefile index 398df7e..79d49c7 100644 --- a/libs/libdbi/Makefile +++ b/libs/libdbi/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libdbi -PKG_VERSION:=0.8.3 -PKG_RELEASE:=3 +PKG_VERSION:=0.9.0 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/libdbi -PKG_MD5SUM:=ca66db78d479cbfa727cf3245b5864ae +PKG_MD5SUM:=05e2ceeac4bc85fbe40de8b4b22d9ab3 PKG_FIXUP:=autoreconf PKG_INSTALL:=1 @@ -32,6 +32,11 @@ define Package/libdbi/description libdbi implements a database-independent abstraction layer in C. endef +CONFIGURE_ARGS += \ +--enable-shared \ +--enable-static \ + --disable-docs + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/dbi $(1)/usr/include/ diff --git a/libs/libdbi/patches/001-no_docs.patch b/libs/libdbi/patches/001-no_docs.patch deleted file mode 100644 index f290db1..000 --- a/libs/libdbi/patches/001-no_docs.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -urN libdbi-0.8.3/Makefile.am libdbi-0.8.3.new/Makefile.am libdbi-0.8.3/Makefile.am 2006-05-18 22:27:50.0 +0200 -+++ libdbi-0.8.3.new/Makefile.am 2009-01-09 00:06:34.0 +0100 -@@ -2,7 +2,7 @@ - - AUTOMAKE_OPTIONS = foreign dist-zip - --SUBDIRS = src include @docs_subdirs@ -+SUBDIRS = src include - - EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README README.win32 README.osx TODO NEWS libdbi.spec.in config.h.in Makefile.w32 autogen.sh drivers/example/AUTHORS drivers/example/Makefile.am drivers/example/README drivers/example/TODO drivers/example/.cvsignore drivers/example/dbd_example.c drivers/example/dbd_example.h drivers/example/dbd_example.sgml - -diff -urN libdbi-0.8.3/Makefile.in libdbi-0.8.3.new/Makefile.in libdbi-0.8.3/Makefile.in 2008-02-06 20:40:10.0 +0100 -+++ libdbi-0.8.3.new/Makefile.in 2009-01-09 00:06:28.0 +0100 -@@ -180,7 +180,7 @@ - sysconfdir = @sysconfdir@ - target_alias = @target_alias@ - AUTOMAKE_OPTIONS = foreign dist-zip --SUBDIRS = src include @docs_subdirs@ -+SUBDIRS = src include - EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README README.win32 README.osx TODO NEWS libdbi.spec.in config.h.in Makefile.w32 autogen.sh drivers/example/AUTHORS drivers/example/Makefile.am drivers/example/README drivers/example/TODO drivers/example/.cvsignore drivers/example/dbd_example.c drivers/example/dbd_example.h drivers/example/dbd_example.sgml - all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive diff --git a/libs/libdbi/patches/002-no_cflags_override.patch b/libs/libdbi/patches/002-no_cflags_override.patch deleted file mode 100644 index d903e64..000 --- a/libs/libdbi/patches/002-no_cflags_override.patch +++ /dev/null @@ -1,45 +0,0 @@ libdbi-0.8.3/configure.in 2014-03-06 14:04:14.708630767 -0800 -+++ libdbi-0.8.3/configure.in 2014-03-06 14:04:53.229096958 -0800 -@@ -32,42 +32,6 @@ - dnl Set some general compile options - dnl - --if test -z $GCC; then --case $host in --*-*-irix*) --if test -z $CC; then --CC=cc --fi --DEBUG=-g -signed --CFLAGS=-O2 -w -signed --PROFILE=-p -g3 -O2 -signed ;; --sparc-sun-solaris*) --DEBUG=-v -g --CFLAGS=-xO4 -fast -w -fsimple -native -xcg92 --PROFILE=-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc ;; --*) --DEBUG=-g --CFLAGS=-O --PROFILE=-g -p ;; --esac --else -- --case $host in --*-*-linux*) --DEBUG=-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -std=gnu99 --CFLAGS=-O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99 --PROFILE=-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99;; --sparc-sun-*) --DEBUG=-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99 --CFLAGS=-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99 --PROFILE=-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99 ;; --*) --DEBUG=-g -Wall -D__NO_MATH_INLINES -fsigned-char -std=gnu99 --CFLAGS=-O20 -D__NO_MATH_INLINES -fsigned-char -std=gnu99 --PROFILE=-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char -std=gnu99
[OpenWrt-Devel] [PATCH, packages 2/2] update libdbi-drivers to 0.9.0
Signed-off-by: Gerald Matzka mgeral...@yahoo.de --- libs/libdbi-drivers/Makefile | 14 +++--- .../patches/001_libsqlite3_fix.patch | 11 +++ 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 libs/libdbi-drivers/patches/001_libsqlite3_fix.patch diff --git a/libs/libdbi-drivers/Makefile b/libs/libdbi-drivers/Makefile index 8b5304f..4235835 100644 --- a/libs/libdbi-drivers/Makefile +++ b/libs/libdbi-drivers/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libdbi-drivers -PKG_VERSION:=0.8.3-1 -PKG_RELEASE:=1 +PKG_VERSION:=0.9.0 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/libdbi-drivers -PKG_MD5SUM:=4de79b323162a5a7652b65b608eca6cd +PKG_MD5SUM:=9f47b960e225eede2cdeaabf7d22f59f PKG_FIXUP:=autoreconf @@ -33,7 +33,7 @@ endef define Package/libdbi-drivers-mysql $(call Package/libdbi-drivers/default) - DEPENDS:=libdbi +libmysqlclient + DEPENDS:=libdbi +PACKAGE_libdbi-drivers-mysql:libmysqlclient TITLE:= libdbi-drivers-mysql endef @@ -43,7 +43,7 @@ endef define Package/libdbi-drivers-pgsql $(call Package/libdbi-drivers/default) - DEPENDS:=libdbi +libpq + DEPENDS:=libdbi +PACKAGE_libdbi-drivers-pgsql:libpq TITLE:= libdbi-drivers-pgsql endef @@ -53,7 +53,7 @@ endef define Package/libdbi-drivers-sqlite2 $(call Package/libdbi-drivers/default) - DEPENDS:=libdbi +libsqlite2 + DEPENDS:=libdbi +PACKAGE_libdbi-drivers-sqlite2:libsqlite2 TITLE:= libdbi-drivers-sqlite2 endef @@ -63,7 +63,7 @@ endef define Package/libdbi-drivers-sqlite3 $(call Package/libdbi-drivers/default) - DEPENDS:=libdbi +libsqlite3 + DEPENDS:=libdbi +PACKAGE_libdbi-drivers-sqlite3:libsqlite3 TITLE:= libdbi-drivers-sqlite3 endef diff --git a/libs/libdbi-drivers/patches/001_libsqlite3_fix.patch b/libs/libdbi-drivers/patches/001_libsqlite3_fix.patch new file mode 100644 index 000..1f7d2df --- /dev/null +++ b/libs/libdbi-drivers/patches/001_libsqlite3_fix.patch @@ -0,0 +1,11 @@ +--- libdbi-drivers-0.9.0/acinclude.m4 2011-02-20 00:02:39.0 +0100 libdbi-drivers-0.9.0.new/acinclude.m4 2014-01-19 13:05:27.0 +0100 +@@ -310,7 +310,7 @@ + AC_SEARCH_LIBS_VAR([sqlite3_exec], sqlite3, , , , SQLITE3_LIBS) + SQLITE3_LDFLAGS= + else +- SQLITE3_LIBS=-lsqlite ++ SQLITE3_LIBS=-lsqlite3 + SQLITE3_LDFLAGS=-L$ac_sqlite3_libdir + fi + -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [package] jfsutils - add new package
This patch adds journaled file system (JFS) utilities support. Signed-off-by: Gerald Matzkamgeral...@yahoo.de Index: package/utils/jfsutils/Makefile === --- package/utils/jfsutils/Makefile (revision 0) +++ package/utils/jfsutils/Makefile (revision 0) @@ -0,0 +1,78 @@ +# +# Copyright (C) 2006-2014 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:=jfsutils +PKG_VERSION:=1.1.15 +PKG_MD5SUM:=8809465cd48a202895bc2a12e1923b5d +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://jfs.sourceforge.net/project/pub + +include $(INCLUDE_DIR)/package.mk + +define Package/jfsutils/Default + URL:=http://jfsutils.sourceforge.net/ + SUBMENU:=Filesystem +endef + +define Package/jfsutils +$(call Package/jfsutils/Default) + SECTION:=utils + CATEGORY:=Utilities + TITLE:=JFS filesystem utilities + DEPENDS:=+libuuid +endef + +define Package/jfsutils/description + IBM's Journaled File System (JFS) for Linux + This package contains essential JFS filesystem utilities which consists of + jfs_fsck, jfs_mkfs, jfs_tune and most of the other core JFS filesystem utilities. +endef + +define Package/jfs-mkfs +$(call Package/jfsutils) + TITLE:=Utility for creating JFS filesystems +endef + +define Package/jfs-fsck +$(call Package/jfsutils) + TITLE:=Utilities for checking and repairing JFS filesystems +endef + +define Package/jfs-tune +$(call Package/jfsutils) + TITLE:=Utilitiy for tuning JFS filesystems +endef + +define Build/Compile + $(call Build/Compile/Default) + make -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) install +endef + +define Package/jfs-mkfs/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/jfs_mkfs $(1)/usr/sbin/ + ln -sf jfs_mkfs $(1)/usr/sbin/mkfs.jfs +endef + +define Package/jfs-fsck/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/jfs_fsck $(1)/usr/sbin/ + ln -sf jfs_fsck $(1)/usr/sbin/fsck.jfs +endef + +define Package/jfs-tune/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/jfs_tune $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,jfs-mkfs)) +$(eval $(call BuildPackage,jfs-fsck)) +$(eval $(call BuildPackage,jfs-tune)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [package] kernel: kmod-fs-jfs
Hi, This patch adds journaled file system (JFS) kernel module support. Signed-off-by: Gerald Matzkamgeral...@yahoo.de Index: package/kernel/linux/modules/fs.mk === --- package/kernel/linux/modules/fs.mk (revision 39185) +++ package/kernel/linux/modules/fs.mk (working copy) @@ -371,3 +371,21 @@ endef $(eval $(call KernelPackage,fs-xfs)) + + +define KernelPackage/fs-jfs + SUBMENU:=$(FS_MENU) + TITLE:=JFS filesystem support + KCONFIG:=CONFIG_JFS_FS + FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko + AUTOLOAD:=$(call AutoLoad,30,jfs,1) + $(call AddDepends/nls) +endef + +define KernelPackage/fs-jfs/description + Kernel module for JFS support +endef + +$(eval $(call KernelPackage,fs-jfs)) + + ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] strange behaviour of ubox/block-mount
Hi, I noticed a strange behaviour of the block command of the ubox/block-mount package. # block info /dev/sda1: UUID=f1937642-358f-4b3d-9e6f-54fa904a0708 LABEL=BOOT VERSION=1.0 TYPE=ext2 /dev/sda2: UUID=f3eded9b-8500-4a08-99f4-1697f7cc5ee1 LABEL=ROOT VERSION=1.0 TYPE=ext2 /dev/sdc1: UUID=7f646505-dc3b-471d-9ac3-f9b365ecf30e LABEL=DISK1 NAME=EXT_JOURNAL VERSION=1.0 TYPE=ext4 /dev/sdc1: UUID=7f646505-dc3b-471d-9ac3-f9b365ecf30e LABEL=DISK1 NAME=EXT_JOURNAL VERSION=1.0 TYPE=ext4 The sdc1 partition is listed twice!? Digging into the source code of ubox/block.c showed: static void cache_load(int mtd) { if (mtd) _cache_load(/dev/mtdblock*); _cache_load(/dev/mmcblk*); _cache_load(/dev/sd*); _cache_load(/dev/sdc*); _cache_load(/dev/hd*); _cache_load(/dev/md*); _cache_load(/dev/mapper/*); } Any purpose for cache_load /dev/sd* as well as /dev/sdc* or just a copy-paste issue?! GM ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] new package libdbi-drivers [RESENT]
Hello, As requested, resubmitted patch to add libdbi-drivers support for mysql, postgresql, sqlite and sqlite3 for the libdbi framework. Signed-off-by: Gerald Matzkamgeral...@yahoo.de Index: libdbi-drivers/Makefile === --- libdbi-drivers/Makefile(revision 0) +++ libdbi-drivers/Makefile(revision 0) @@ -0,0 +1,134 @@ +# +# Copyright (C) 2009-2012 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:=libdbi-drivers +PKG_VERSION:=0.8.3-1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/libdbi-drivers +PKG_MD5SUM:=4de79b323162a5a7652b65b608eca6cd + +include $(INCLUDE_DIR)/package.mk + +define Package/libdbi-drivers/default + SECTION:=libs + CATEGORY:=Libraries + TITLE:=libdbi-drivers + URL:=http://libdbi-drivers.sourceforge.net/ +endef + +define Package/libdbi-drivers/default/description + libdbi-drivers project provides the database-specific drivers for the libdbi framework +endef + +define Package/libdbi-drivers-mysql +$(call Package/libdbi-drivers/default) + DEPENDS:=libdbi +libmysqlclient + TITLE:= libdbi-drivers-mysql +endef + +define Package/libdbi-drivers-mysql2/description + libdbi-driver for mysql +endef + +define Package/libdbi-drivers-pgsql +$(call Package/libdbi-drivers/default) + DEPENDS:=libdbi +libpq + TITLE:= libdbi-drivers-pgsql +endef + +define Package/libdbi-drivers-pgsql/description + libdbi-driver for pgsql +endef + +define Package/libdbi-drivers-sqlite2 +$(call Package/libdbi-drivers/default) + DEPENDS:=libdbi +libsqlite2 + TITLE:= libdbi-drivers-sqlite2 +endef + +define Package/libdbi-drivers-sqlite2/description + libdbi-driver for sqlite2 +endef + +define Package/libdbi-drivers-sqlite3 +$(call Package/libdbi-drivers/default) + DEPENDS:=libdbi +libsqlite3 + TITLE:= libdbi-drivers-sqlite3 +endef + +define Package/libdbi-drivers-sqlite3/description + libdbi-driver for sqlite3 +endef + +CONFIGURE_ARGS += \ +--enable-shared \ +--disable-static \ +--disable-rpath \ +--disable-docs \ +--with-dbi-incdir=$(STAGING_DIR_HOST)/usr/include \ +--with-dbi-libdir=$(STAGING_DIR_HOST)/usr/lib + +ifneq ($(CONFIG_PACKAGE_libdbi-drivers-mysql),) +CONFIGURE_ARGS += \ +--with-mysql \ +--with-mysql-incdir=$(STAGING_DIR_HOST)/usr/include \ +--with-mysql-libdir=$(STAGING_DIR_HOST)/usr/lib +endif + +ifneq ($(SDK)$(CONFIG_PACKAGE_libdbi-drivers-pgsql),) +CONFIGURE_ARGS += \ +--with-pgsql \ +--with-pgsql-incdir=$(STAGING_DIR_HOST)/usr/include \ +--with-pgsql-libdir=$(STAGING_DIR_HOST)/usr/lib +endif + +ifneq ($(SDK)$(CONFIG_PACKAGE_libdbi-drivers-sqlite2),) +CONFIGURE_ARGS += \ +--with-sqlite \ +--with-sqlite-incdir=$(STAGING_DIR_HOST)/usr/include \ +--with-sqlite-libdir=$(STAGING_DIR_HOST)/usr/lib +endif + +ifneq ($(SDK)$(CONFIG_PACKAGE_libdbi-drivers-sqlite3),) +CONFIGURE_ARGS += \ +--with-sqlite3 \ +--with-sqlite3-incdir=$(STAGING_DIR_HOST)/usr/include \ +--with-sqlite3-libdir=$(STAGING_DIR_HOST)/usr/lib +endif + +define Package/libdbi-drivers-mysql/install +$(INSTALL_DIR) $(1)/usr/lib/dbd +$(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/mysql/.libs/libdbdmysql.so $(1)/usr/lib/dbd +endef + +define Package/libdbi-drivers-pgsql/install +$(INSTALL_DIR) $(1)/usr/lib/dbd +$(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/pgsql/.libs/libdbdpgsql.so $(1)/usr/lib/dbd +endef + +define Package/libdbi-drivers-sqlite2/install +$(INSTALL_DIR) $(1)/usr/lib/dbd +$(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/sqlite/.libs/libdbdsqlite.so $(1)/usr/lib/dbd +endef + +define Package/libdbi-drivers-sqlite3/install +$(INSTALL_DIR) $(1)/usr/lib/dbd +$(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/sqlite3/.libs/libdbdsqlite3.so $(1)/usr/lib/dbd +endef + + +#$(eval $(call BuildPackage,libdbi-drivers)) +$(eval $(call BuildPackage,libdbi-drivers-mysql)) +$(eval $(call BuildPackage,libdbi-drivers-pgsql)) +$(eval $(call BuildPackage,libdbi-drivers-sqlite2)) +$(eval $(call BuildPackage,libdbi-drivers-sqlite3)) + + ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] new package libdbi-drivers
Hello, This patch adds libdbi-drivers support for mysql, postgresql, sqlite and sqlite3 for the libdbi framework. Signed-off-by: Gerald Matzkamgeral...@yahoo.de Index: libdbi-drivers/Makefile === --- libdbi-drivers/Makefile(revision 0) +++ libdbi-drivers/Makefile(revision 0) @@ -0,0 +1,134 @@ +# +# Copyright (C) 2009-2012 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:=libdbi-drivers +PKG_VERSION:=0.8.3-1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/libdbi-drivers +PKG_MD5SUM:=4de79b323162a5a7652b65b608eca6cd + +include $(INCLUDE_DIR)/package.mk + +define Package/libdbi-drivers/default + SECTION:=libs + CATEGORY:=Libraries + TITLE:=libdbi-drivers + URL:=http://libdbi-drivers.sourceforge.net/ +endef + +define Package/libdbi-drivers/default/description + libdbi-drivers project provides the database-specific drivers for the libdbi framework +endef + +define Package/libdbi-drivers-mysql +$(call Package/libdbi-drivers/default) + DEPENDS:=libdbi +libmysqlclient + TITLE:= libdbi-drivers-mysql +endef + +define Package/libdbi-drivers-mysql2/description + libdbi-driver for mysql +endef + +define Package/libdbi-drivers-pgsql +$(call Package/libdbi-drivers/default) + DEPENDS:=libdbi +libpq + TITLE:= libdbi-drivers-pgsql +endef + +define Package/libdbi-drivers-pgsql/description + libdbi-driver for pgsql +endef + +define Package/libdbi-drivers-sqlite2 +$(call Package/libdbi-drivers/default) + DEPENDS:=libdbi +libsqlite2 + TITLE:= libdbi-drivers-sqlite2 +endef + +define Package/libdbi-drivers-sqlite2/description + libdbi-driver for sqlite2 +endef + +define Package/libdbi-drivers-sqlite3 +$(call Package/libdbi-drivers/default) + DEPENDS:=libdbi +libsqlite3 + TITLE:= libdbi-drivers-sqlite3 +endef + +define Package/libdbi-drivers-sqlite3/description + libdbi-driver for sqlite3 +endef + +CONFIGURE_ARGS += \ +--enable-shared \ +--disable-static \ +--disable-rpath \ +--disable-docs \ +--with-dbi-incdir=$(STAGING_DIR_HOST)/usr/include \ +--with-dbi-libdir=$(STAGING_DIR_HOST)/usr/lib + +ifneq ($(CONFIG_PACKAGE_libdbi-drivers-mysql),) +CONFIGURE_ARGS += \ +--with-mysql \ +--with-mysql-incdir=$(STAGING_DIR_HOST)/usr/include \ +--with-mysql-libdir=$(STAGING_DIR_HOST)/usr/lib +endif + +ifneq ($(SDK)$(CONFIG_PACKAGE_libdbi-drivers-pgsql),) +CONFIGURE_ARGS += \ +--with-pgsql \ +--with-pgsql-incdir=$(STAGING_DIR_HOST)/usr/include \ +--with-pgsql-libdir=$(STAGING_DIR_HOST)/usr/lib +endif + +ifneq ($(SDK)$(CONFIG_PACKAGE_libdbi-drivers-sqlite2),) +CONFIGURE_ARGS += \ +--with-sqlite \ +--with-sqlite-incdir=$(STAGING_DIR_HOST)/usr/include \ +--with-sqlite-libdir=$(STAGING_DIR_HOST)/usr/lib +endif + +ifneq ($(SDK)$(CONFIG_PACKAGE_libdbi-drivers-sqlite3),) +CONFIGURE_ARGS += \ +--with-sqlite3 \ +--with-sqlite3-incdir=$(STAGING_DIR_HOST)/usr/include \ +--with-sqlite3-libdir=$(STAGING_DIR_HOST)/usr/lib +endif + +define Package/libdbi-drivers-mysql/install +$(INSTALL_DIR) $(1)/usr/lib/dbd +$(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/mysql/.libs/libdbdmysql.so $(1)/usr/lib/dbd +endef + +define Package/libdbi-drivers-pgsql/install +$(INSTALL_DIR) $(1)/usr/lib/dbd +$(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/pgsql/.libs/libdbdpgsql.so $(1)/usr/lib/dbd +endef + +define Package/libdbi-drivers-sqlite2/install +$(INSTALL_DIR) $(1)/usr/lib/dbd +$(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/sqlite/.libs/libdbdsqlite.so $(1)/usr/lib/dbd +endef + +define Package/libdbi-drivers-sqlite3/install +$(INSTALL_DIR) $(1)/usr/lib/dbd +$(INSTALL_BIN) $(PKG_BUILD_DIR)/drivers/sqlite3/.libs/libdbdsqlite3.so $(1)/usr/lib/dbd +endef + + +#$(eval $(call BuildPackage,libdbi-drivers)) +$(eval $(call BuildPackage,libdbi-drivers-mysql)) +$(eval $(call BuildPackage,libdbi-drivers-pgsql)) +$(eval $(call BuildPackage,libdbi-drivers-sqlite2)) +$(eval $(call BuildPackage,libdbi-drivers-sqlite3)) + + ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel