[OpenWrt-Devel] PCengines APU2c2 running openwrt

2017-01-03 Thread Derek Werthmuller
Looking to upgrade to the PCengines APU2c2 from the Lamobo R1 (Banana Pi
router board).  There is a wiki page for the APU2 with limited information
https://wiki.openwrt.org/toh/pcengines/apu2:

Anyone with experience running Openwrt Trunk or CC on this platform send me
some advice on the hardware?  Quality Wireless adapter that supports softap
mode? Dual band would be nice.
The wle200nx is listed with the APU2c2, this any good?

Looking to run this as a home router with extras (squid,clamav, sguidguard,
suricata)  The Lamobo is just about powerful enough, with just about enough
RAM, but no good wireless (only USB 2.0 based adapters).
Cheers
   Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] procd remote logging on a scheduled basis -capabilities and documentation

2016-02-08 Thread Derek Werthmuller
I'm interested in pushing logs from the openwrt (CC) forward proxy
server(apache) to a central syslog server that is out on the Internet using
TLS security once per day.  I think this is possible with syslog-ng, but
can't find enough detail about the new capabilities in procd.  And would
like to use built in capabilities if possible.
The proxy server logs are in a file that I would want to have sent to the
central server once or twice a day, when bandwidth is more available.
I tried building syslog-ng but get lots of libtoolize messages.  Is there
another openwrt tool that will accomplish this?
Perhaps one of those json parsers can process the file and upload to a
syslog server.
Cheers
   Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Patch 210-dnssec-improve-timestamp-heuristic.patch fails when building DNSMASQ-full

2015-09-18 Thread Derek Werthmuller
Not sure why building dnsmasq-full on cc 15.05 for sunxi this patch Patch
210-dnssec-improve-timestamp-heuristic.patch fails.  If I remove that patch
the build continues successfully, but don't want to miss a patch that
should be there. I believe that I'm using the dnsmasq 2.7.5 from
https://dev.openwrt.org/browser/trunk/package/network/services/dnsmasq

Thanks
Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [DRAFT PATCH] Uboot patch -Sunxi BPI-R1 not building a bootable image

2015-09-03 Thread Derek Werthmuller
Over the past week since the kernel version moved to the 4.x series, new
built images are not bootable.  With the serial console connected it seems
that its not completing Uboot properly.  This is the only output.
U-Boot SPL 2015.07 (Sep 02 2015 - 20:52:15)
DRAM: 1024 MiB
CPU: 91200Hz, AXI/AHB/APB: 3/2/2

The following ticket seems to have a patch for it.
https://dev.openwrt.org/ticket/20387

I've created a diff patch from this patch to patch the mmc.c in the uboot
code, but I don't know where in the patch tree the uboot patches go, so I
can't test the patch.  Following is the patch.
I have not tested this patch.

--- ./a/drivers/mmc/mmc.c2015-09-02 20:48:01.877739304 -0400
+++ ./b/drivers/mmc/mmc.c2015-09-02 20:51:33.131214983 -0400
@@ -920,8 +920,10 @@
 err = sd_switch(mmc, SD_SWITCH_CHECK, 0, 1,
 (u8 *)switch_status);

-if (err)
-return err;
+if (err) {
+printf("unable to switch SD_HIGHSPEED: %d\n", err);
+return 0;
+}

 /* The high-speed function is busy.  Try again */
 if (!(__be32_to_cpu(switch_status[7]) & SD_HIGHSPEED_BUSY))

Cheers
   Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Snort version bump 2.9.7.2 to 2.9.7.3

2015-05-23 Thread Derek Werthmuller
Signed-off-by:Derek Werthmuller thewerth...@gmail.com



diff -rupN a/Makefile b/Makefile
--- a/Makefile2015-05-22 22:13:00.458081167 -0400
+++ b/Makefile2015-05-22 22:18:58.695857500 -0400
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=snort
-PKG_VERSION:=2.9.7.2
+PKG_VERSION:=2.9.7.3
 PKG_RELEASE:=2

 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.snort.org/downloads/snort/ \
 @SF/$(PKG_NAME)
-PKG_MD5SUM:=b01e9964827394c39194a0147bc15705
+PKG_MD5SUM:=839e648607fd32726b2f7965134bf0a4

 PKG_BUILD_DEPENDS:=librpc
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)




Cheers
- Derek

 By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or

(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or

(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.

(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Snort upgrade from 2.9.7.2 - 2.9.7.3

2015-05-22 Thread Derek Werthmuller
Relevant Makefile changes; New version seems to build fine.

PKG_VERSION:=2.9.7.3
PKG_RELEASE:=3

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.snort.org/downloads/snort/
PKG_MD5SUM:=839e648607fd32726b2f7965134bf0a4


Thanks
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Question on compiling a wifi driver getting: CONFIG_CFG80211 nor CONFIG_CFG80211_MODULE is defined in kernel

2015-05-13 Thread Derek Werthmuller
I'm trying to compile a vendor open source driver under the latest trunk.
My package Makefile has
DEPENDS:= +wireless-tools @USB_SUPPORT +kmod-cfg80211 +kmod-mac80211 but
I'm still getting this CONFIG_CFG80211 nor CONFIG_CFG80211_MODULE is
defined in kernel.

Looking into the .config file I don't see CFG80211 listed anywhere.  I
suspect since the cfg80211 is compiled as a module it doesn't show up in
.config and therefore the build process doesn't see the cfg80211 components
it needs. What is the recommended method to make the cfg80211 components
available so the driver build process can find it?   Is it via
TARGET_CPPFLAGS and the like?  Are there other drivers that are built that
need to reference the cfg80211 files in this way?

Thanks
   Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Recommendation how to build wireless drivers from the raspberrypi kernel source tree

2015-04-26 Thread Derek Werthmuller
I'm interested in trying to build the rtl8192cu drivers found in the
raspberrypi kernel source tree. These drivers are modified versions of the
realtek provided open source.
https://github.com/raspberrypi/linux/tree/rpi-3.18.y/drivers/net/wireless/rtl8192cu
It seems that they have disabled the stock kernel drivers for the rtlwifi
and enabled the realtek open source drivers into rpi kernel.  From what I
read the realtek open source drivers tend to work better in AP mode.

I understand a bit how to modify the Kconfig files to exclude the old
rtlwifi and enable the new rtl8192cu drivers, in the
/drivers/net/wireless/rtl8192cu/ directories.  How ever that is with the
kernel source is already downloaded.  And not sure how to preceed from
there.  How do I configure the module so that make menuconfig finds it and
pulls in the values so its selected to build?

Is there a suggested way for me to test this build out?  Ay web links for
documents that would help me make build changes to test out this different
driver source?   I would suspect that this is common with other people who
are developing drivers run in to a similar issue.

Thanks
Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Submitting PATCH for rtl8192cu HTmode deadlock

2015-04-08 Thread Derek Werthmuller
In reference to bug # 18539
https://dev.openwrt.org/ticket/18539#comment:4
The deadlock appears that when the adapter is in AP mode and client
negotiates into the HT modes.  I don't know if this effects the adapter
used in client modes.  But without the patch the adapter is not usable in
ap mode.  This adapter is integrated in the sunxi based bpi-r1 board.
I'd be interested in conversations to get this adapter up to some level of
802.11n HT mode.

The below patch I'd like to submit for evaluation for inclusion.
Cheers
   Derek


DEBUGing and patch done by sbrown
Comment (by sbrown):

 I found that the problem only occurs at HT rates.

 After looking at some more wireshark output, the problem seems to be
 that the aggregation sessions deadlock when a second one starts before
 the first one completes. That would explain why it only occurs in HT
 mode.

 The sequence on the air before the deadlock is:

 STA-AP block ack req
 STA-AP ping req
 AP-STA block ack resp
 AP-STA ping resp
 AP-STA block ack req
 STA-AP block ack resp

 The sequence on the air after the deadlock is:

 AP-STA block ack req
 STA-AP block ack req
 AP-STA block ack resp
 STA-AP block ack resp
 STA-AP ping req
 ...
 STA-AP ping req (repeats)

 If I disable aggregation in the driver with the attached patch, the
 problem goes away with a performance loss.

 {{{
  diff -rupN a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c
b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c
--- a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c2015-04-03
07:10:19.343543253 -0400
+++ b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c2015-04-03
07:11:51.323999358 -0400
@@ -59,7 +59,9 @@ static int rtl92cu_init_sw_vars(struct i
 {
 struct rtl_priv *rtlpriv = rtl_priv(hw);
 int err;
-
+ /* disable aggregation until the deadlock is fixed */
+hw-flags = ~IEEE80211_HW_AMPDU_AGGREGATION;
+
 rtlpriv-dm.dm_initialgain_enable = true;
 rtlpriv-dm.dm_flag = 0;
 rtlpriv-dm.disable_framebursting = false;

 }}}
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Guidance using @BUILD_NLS for full iconv support ?

2015-03-20 Thread Derek Werthmuller
I'm building a new package Suricata 2.0.7 that sees to need the full iconv
support.  The stubs don't seem to be enough. I've included @BUILD_NLS in
the make file but I'm still getting a configure error:
checking iconv.h usability... no
checking iconv.h presence... yes
configure: WARNING: iconv.h: present but cannot be compiled
configure: WARNING: iconv.h: check for missing prerequisite headers?
configure: WARNING: iconv.h: see the Autoconf documentation
configure: WARNING: iconv.h: section Present But Cannot Be Compiled
configure: WARNING: iconv.h: proceeding with the compiler's result
checking for iconv.h... no
configure: error: iconv.h not found ...


Any ideas/ Guidance?
   Cheers
 Derek


Here is the relevant makefile.
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk

define Package/suricata
  SECTION:=net
  CATEGORY:=Network
  SUBMENU:=Web Servers/Proxies
  TITLE:=Suricata
  URL:=http://www.openinfosecfoundation.org
  DEPENDS:=@BUILD_NLS +libpcre +pcre +libtool +libnetfilter-queue +libpcap
+libn
et +libyaml +zlib +libcap +libnids +libnet0 +libopenssl +libnfnetlink
+libmagic
+libcap $(ICONV_DEPENDS)
  MENU:=1
endef


HOST_CONFIGURE_ARGS += CFLAGS=-fno-stack-protector

TARGET_CFLAGS += $(FPIC) -lpthread -fno-stack-protector \

MAKE_FLAGS += \
EXTRALIBS=$(ICONV_LDFLAGS) -L$(STAGING_DIR)/usr/lib -liconv

TARGET_CPPFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-fno-stack-prote
ctor

CONFIGURE_ARGS += \
--disable-gccprotect \
--enable-nfqueue \
$(if $(ICONV_FULL),--with-libiconv=gnu) \
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] ICONV ICONV_SET_TRANSLITERATE issue in trying to port suricata to openwrt

2015-03-02 Thread Derek Werthmuller
I'm working on porting suricata to openwrt and have run into an issue with
iconv.  It seems that there are different ways to invoke the ICONV
libraries.
Those porting suricata to freebsd had the same problem and error.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196720  From their patch
it looks like they were able to invoke iconv with

iconv:translit vs its default method

Is there a similar configuration method for openwrt Makefiles?

THe following is the error message I get while compiling.

htp_transcoder.c: In function 'htp_transcode_params':
htp_transcoder.c:68:5: warning: implicit declaration of function 'iconvctl'
[-Wimplicit-function-declaration]
 iconvctl(cd, ICONV_SET_TRANSLITERATE, iconv_param);
 ^
htp_transcoder.c:68:18: error: 'ICONV_SET_TRANSLITERATE' undeclared (first
use in this function)
 iconvctl(cd, ICONV_SET_TRANSLITERATE, iconv_param);
  ^
htp_transcoder.c:68:18: note: each undeclared identifier is reported only
once for each function it appears in
htp_transcoder.c:70:18: error: 'ICONV_SET_DISCARD_ILSEQ' undeclared (first
use in this function)
 iconvctl(cd, ICONV_SET_DISCARD_ILSEQ, iconv_param);
  ^
make[7]: *** [htp_transcoder.lo] Error 1



Relevant section of my Makefile
#
# Copyright (C) 2007-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# compiler need libyaml-dev

include $(TOPDIR)/rules.mk

PKG_NAME:=suricata
PKG_VERSION:=2.0.6
PKG_RELEASE:=1
PKG_MAINTAINER:=Derek W thewerthfam@gmailcom
PKG_LICENSE:=GPLv2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
# PKG_SOURCE:=
http://www.openinfosecfoundation.org/download/suricata-2.0.6.tar.gz
#PKG_SOURCE_URL:=http://www.openinfosecfoundation.org/download/
#PKG_MD5SUM:=14bfb3adc184d4da321c93ed9abae500
PKG_SOURCE_URL:=../suricata-2.0.6.tar.gz
PKG_MD5SUM:=fd0ade58b6f5d25c7446e1f1d07d1edf

PKG_INSTALL:=1

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk

define Package/suricata
  SECTION:=net
  CATEGORY:=Network
  SUBMENU:=Web Servers/Proxies
  TITLE:=Suricata
  URL:=http://www.openinfosecfoundation.org
  DEPENDS:=+libpcre +pcre +libtool +libnetfilter-queue +libpcap +libnet
+libyaml +zlib +libcap +libnids +libnet0 +libopenssl +libnfnetlink
$(ICONV_DEPENDS) $(INTL_DEPENDS) +libintl-full +libmagic +libcap
  MENU:=1
endef

TARGET_CPPFLAGS += \
-I$(STAGING_DIR)/usr/lib/ \
-I$(STAGING_DIR)/usr/include \
-I$(ICONV_PREFIX)/include \
-I$(INTL_PREFIX)/include \
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \

#-I$(ICONV_PREFIX)/include \
#-I$(INTL_PREFIX)/include \


TARGET_LDFLAGS += \
-L$(STAGING_DIR)/usr/lib/ \
-L$(ICONV_PREFIX)/lib \
-L$(INTL_PREFIX)/lib \


#-L$(ICONV_PREFIX)/lib \
#-L$(INTL_PREFIX)/lib \


#TARGET_CFLAGS += $(FPIC) -D_DEFAULT_SOURCE  \

TARGET_CFLAGS += $(FPIC) \

MAKE_FLAGS +=\
CFLAGS=$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) \
LDFLAGS=$(TARGET_LDFLAGS) \
ICONV_LIBS=-liconv $(if $(INTL_FULL),-lintl) \

#ICONV_LIBS=-liconv \

MAKE_VARS +=\
PREFIX=$(STAGING_DIR)/usr \
ICONV_PREFIX=$(ICONV_PREFIX) \
INTL_PREFIX=$(INTL_PREFIX) \

CONFIGURE_ARGS += \
--enable-nfqueue \
$(if $(ICONV_FULL),--with-libiconv=gnu) \

#INTL_PREFIX=$(INTL_PREFIX) \

#define Build/Configure
#$(call Build/Configure/Default, \
#--enable-nfqueue \
#CPPFLAGS=$(TARGET_CPPFLAGS) \
#CXXFLAGS=$(TARGET_CFLAGS) \
#LDFLAGS=$(TARGET_LDFLAGS) \
#)
#endef

#define Build/Compile
#$(MAKE) -C $(PKG_BUILD_DIR) \
#LDFLAGS=$(TARGET_LDFLAGS) \
#all install
#endef

define Package/suricata/install
$(INSTALL_DIR) $(1)/usr/sbin
endef

$(eval $(call BuildPackage,suricata))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] /sys/class/ieee80211 is empty on the allwinner bananna pu

2014-10-21 Thread Derek Werthmuller
Working trying to understand why one USB wifi card wiil work while another
will not.  Both wifi drivers are present.
lsmod shows the drivers loaded but no device is created and the entry in
/sys/class/ieee80211 is empty.

Don't see an entry on /sys/devices either.
CHAOS CALMER (Bleeding Edge, r43010)
 -
 -
root@OpenWrt:~# lsmod |grep rtl
cfg80211  222019  2 rtlwifi
compat  1370  4 rtl8192cu
mac80211  366364  3 rtl8192cu
rtl8192c_common32945  1 rtl8192cu
rtl8192cu  58333  0
rtl_usb 8131  1 rtl8192cu
rtlwifi47470  3 rtl8192cu
root@OpenWrt:~# wifi

Any direction would be appreciated.
Cheers
 Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Missing target sunxi in BB RC[x] series?

2014-09-08 Thread Derek Werthmuller
Looking to build BB RC3 for a few of the AllWinnerA20 processor boards, but
I don't see them as a target on make menuconfig page? Am I missing
something?

Also don't see any pre-built images for BB for any of these platforms.  I
can understand if they were removed from the RC series since they may not
be ready for production quite yet and need to stay in trunk.  I havn't
looked in trunk since BB RC branched.

Cheers

 Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] AllWinner/sunxi platform support status

2014-07-26 Thread Derek Werthmuller
I'm looking at using one of the sunxi targets over the rpi for more ram and
cpu power.
The primary candidate is the Bannana Pi and the cubiboards.  Using the A20
processor.  For my application I need the Ethernet and USB features to be
stable.

ANyone use either of these platforms and can make a recommendation?
Openwrt works well on?... quality of the hardware?..  Both cores
recognized.?  Potential longevity of the product/community behind them.

I see both of these system in trunk
http://downloads.openwrt.org/snapshots/trunk/sunxi/
So I assume that they both build, and boot to some level of functionality.

Thanks
   Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] mempool support question for building software

2014-06-26 Thread Derek Werthmuller
I'll try heading down this road, thanks for the advice.  I believe that
mempool is not required.  And can be turned off.  My Impression is that
there is a significant speed boost using mempool.  This is my rather
uninformed assessment.  The application I'm working on building is clamd,
.98.1 works on the brck2708 platform but takes 10 minutes to allocate 300
MB ram to hold the signatures. I'll have to talk with the clamav group
to get a true assessment on why startup takes so long.



On Wed, Jun 25, 2014 at 2:36 PM, Florian Fainelli flor...@openwrt.org
wrote:

 2014-06-25 4:54 GMT-07:00 Derek Werthmuller thewerth...@gmail.com:
  After some research I've determined the header files I'm looking for are
  kernel header files.  They are part of the memory management /memory
  allocation section.  The package I'm trying to build uses mempool.h for
  faster memory allocation.
  Any help or advice on how to get the kernel to export these header files?

 This is a poor portability decision to rely on a Linux header that is
 not even exported. If we had to export mempool.h, this would be yet
 another patch that we had to maintain in OpenWrt because nobody would
 be accepting that upstream.

 Please find a way to work with the upstream authors of your package so
 that:

 a) they use a custom memory allocator that does not rely on mempool.h
 to be available if the standard C library malloc() implemenation is
 not fast enough (there are standard ways to implement a custom memory
 allocator)
 b) they provide a configure script switch and compile time switch that
 allows turning off the mempool.h dependency entirely

  Cheers
  Derek
 
 
  On Fri, Jun 6, 2014 at 6:53 PM, Florian Fainelli flor...@openwrt.org
  wrote:
 
  2014-06-06 15:35 GMT-07:00 Derek Werthmuller thewerth...@gmail.com:
   I'm trying to build a new version of clamav for the brcm2708 platform
   and
   have some questions about the new build dependencies for the latest
   version
   of clamav 98.3.  98.1 built OK and didn't use openssl.
  
   The configure portion of the build is asking about mempool support.
   output snip
   
   checking for sysctlbyname... no
   configure: ** mempool support disabled (mmap not available or not
   usable)
   ..
   mempool.h is found in the -I$(BUILD_DIR)/linux-3.10.36/mm  directory.
   I've
   included the directory path in the Target_cpplfags, like below.  Is
 this
   the
   right way to do this?
 
  This is not the right way to do this, you should not include Linux
  kernel headers directly that have not been voluntarily exported.
 
  The kernel exports some header files for use by user-programs from its
  include/uapi/ directory. Those kernel headers are staged by the
  toolchain build process in staging_dir/toolchain-*/usr/include/linux.
 
  mempool.h does not appear to be in the headers exported for uapi, so I
  am not sure this is referring to the same mempool.h header file, it
  could be either some external library, or some internal header that
  does not get properly included.
 
   As the make file will obviously be out of date soon
   as a new kernel version is used.
  
   TARGET_CPPFLAGS += \
   -I$(STAGING_DIR)/usr/include \
   -I$(STAGING_DIR)/usr/include/openssl \
   -I$(STAGING_DIR)/usr/include/crypto \
   -I$(STAGING_DIR)/usr/include/libxml2 \
   -I$(STAGING_DIR)/usr/lib \
   -I$(TOOLCHAIN_DIR)/include \
   -I$(BUILD_DIR)/linux-3.10.36/mm \
  
   Thanks for the advice in advance.
  
   Cheers
  Derek
  
   ___
   openwrt-devel mailing list
   openwrt-devel@lists.openwrt.org
   https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
  
 
  --
  Florian
 
 
 
  ___
  openwrt-devel mailing list
  openwrt-devel@lists.openwrt.org
  https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
 

 --
 Florian

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] make is not completing on custom package, ipkg-install not created, How do I get very detailed make output?

2014-06-26 Thread Derek Werthmuller
Building clamd for the raspberry openwrt platform.  Compiles and looks to
finish the linking phases fine but then get a few [all-recursive] Errors.

Running the make with V=99 or V=s and need more details to see what's going
on.

Here is the last few lines in the make output.  Seems that the binaries are
created, but the PKG_INSTALL_DIR is not created yet.  Can't tell if or what
library I'm missing here.


make[5]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/clambc'
Making all in unit_tests
make[5]: Entering directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/unit_tests'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/unit_tests'
make[5]: Entering directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[5]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[2]: ***
[/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/.built]
Error 2
make[2]: Leaving directory
`/home/derek/development/openwrt/package/network/services/clamav'
make[1]: *** [package/network/services/clamav/compile] Error 2
make[1]: Leaving directory `/home/derek/development/openwrt'
make: *** [package/clamav/compile] Error 2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] mempool support question for building software

2014-06-25 Thread Derek Werthmuller
After some research I've determined the header files I'm looking for are
kernel header files.  They are part of the memory management /memory
allocation section.  The package I'm trying to build uses mempool.h for
faster memory allocation.
Any help or advice on how to get the kernel to export these header files?
Cheers
Derek


On Fri, Jun 6, 2014 at 6:53 PM, Florian Fainelli flor...@openwrt.org
wrote:

 2014-06-06 15:35 GMT-07:00 Derek Werthmuller thewerth...@gmail.com:
  I'm trying to build a new version of clamav for the brcm2708 platform and
  have some questions about the new build dependencies for the latest
 version
  of clamav 98.3.  98.1 built OK and didn't use openssl.
 
  The configure portion of the build is asking about mempool support.
  output snip
  
  checking for sysctlbyname... no
  configure: ** mempool support disabled (mmap not available or not
  usable)
  ..
  mempool.h is found in the -I$(BUILD_DIR)/linux-3.10.36/mm  directory.
  I've
  included the directory path in the Target_cpplfags, like below.  Is this
 the
  right way to do this?

 This is not the right way to do this, you should not include Linux
 kernel headers directly that have not been voluntarily exported.

 The kernel exports some header files for use by user-programs from its
 include/uapi/ directory. Those kernel headers are staged by the
 toolchain build process in staging_dir/toolchain-*/usr/include/linux.

 mempool.h does not appear to be in the headers exported for uapi, so I
 am not sure this is referring to the same mempool.h header file, it
 could be either some external library, or some internal header that
 does not get properly included.

  As the make file will obviously be out of date soon
  as a new kernel version is used.
 
  TARGET_CPPFLAGS += \
  -I$(STAGING_DIR)/usr/include \
  -I$(STAGING_DIR)/usr/include/openssl \
  -I$(STAGING_DIR)/usr/include/crypto \
  -I$(STAGING_DIR)/usr/include/libxml2 \
  -I$(STAGING_DIR)/usr/lib \
  -I$(TOOLCHAIN_DIR)/include \
  -I$(BUILD_DIR)/linux-3.10.36/mm \
 
  Thanks for the advice in advance.
 
  Cheers
 Derek
 
  ___
  openwrt-devel mailing list
  openwrt-devel@lists.openwrt.org
  https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
 

 --
 Florian

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] mempool support question for building software

2014-06-06 Thread Derek Werthmuller
I'm trying to build a new version of clamav for the brcm2708 platform and
have some questions about the new build dependencies for the latest version
of clamav 98.3.  98.1 built OK and didn't use openssl.

The configure portion of the build is asking about mempool support.
output snip

checking for sysctlbyname... no
configure: ** mempool support disabled (mmap not available or not
usable)
..
mempool.h is found in the -I$(BUILD_DIR)/linux-3.10.36/mm  directory.  I've
included the directory path in the Target_cpplfags, like below.  Is this
the right way to do this?  As the make file will obviously be out of date
soon as a new kernel version is used.

TARGET_CPPFLAGS += \
-I$(STAGING_DIR)/usr/include \
-I$(STAGING_DIR)/usr/include/openssl \
-I$(STAGING_DIR)/usr/include/crypto \
-I$(STAGING_DIR)/usr/include/libxml2 \
-I$(STAGING_DIR)/usr/lib \
-I$(TOOLCHAIN_DIR)/include \
-I$(BUILD_DIR)/linux-3.10.36/mm \

Thanks for the advice in advance.

Cheers
   Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] CPUfreq kernel driver for the raspberry platform?

2014-04-24 Thread Derek Werthmuller
I'm using the latest trunk version and trying to use the dynamic cpu
frequency turbo mode.  I've got the config.txt setup.   I see that there
is a cpufreq-driver patch file, but it seems that its for the brcm2835
platform.  Brcm2708 = Raspberry A, brcm2835 = Raspberry B ?.   However all
the builds I've done with openwrt selecting the raspberry pi platform have
created brcm2708 images.   All the images have worked OK, so perhaps its
just the wrong bin directory name?  .bin/brcm2708

Question: how do I compile in the cpufreq driver for the raspberry?

Is the brcm2708 image correct for the Raspberry B model?

Cheers
 Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Uploading new image to the brcm2708 platform via web interface possible?

2014-04-06 Thread Derek Werthmuller
On other platforms you can do a wget of a new image to the /tmp partition
and run a mtd or sysupgrade wait for it to finish and reboot and now you
have a new os and setup.
Would this work on the brcm2708 platform?  Maybe not on the current
filesystem layout, but what if /tmp was its own partition large enough to
hold a copy of the fat and ext4 file systems?

I'd like to be able to replace the os with latest from trunk with out doing
the sdcard shuffle.
Cheers
  Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Previous VIPS patch not longer available on the brcm2708 platform?

2014-03-25 Thread Derek Werthmuller
In 2012 a patch was added for the brcm2708 build platform to use hardware
floating point.
Looks like the patch was committed too.
https://lists.openwrt.org/pipermail/openwrt-devel/2012-July/016028.html

-mfpu=vfp-   enables use of hardware floating point
instructions. (in patch already)
-mfloat-abi=hard   -   makes calling hardware floating point more efficient.

Can this patch be added back in? I would like to be able to take
advantage of the floating point hardware. I wonder if the patch was
not included in the 12.09 tree?

Quick search didn't reveal any reasons why it might have been removed.

Thanks

 Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Problem linking libs in Developing a Makefile for mod security

2014-02-28 Thread Derek Werthmuller
I'm working on a makefile for mod security to work with nginx.  I've build
the makefile based on other makefiles and the recommendations.

Having problems having nginx build make use of mod security I started
looking at the details of the mod security build.   I trying to check the
mod security build to make sure that it has the libs linked properly.

Checking the library linking with :
~/development/openwrt/staging_dir/toolchain-arm_arm1176jzf-s+vfp_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/bin$
./arm-openwrt-linux-ld
/home/user/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/modsecurity-apache_2.7.7/ipkg-install/usr/lib/standalone.so
and I get a bunch of these warnings:
./arm-openwrt-linux-ld: warning: libpcre.so.0, needed by
/home/user/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/modsecurity-apache_2.7.7/ipkg-install/usr/lib/standalone.so,
not found (try using -rpath or -rpath-link)

Any advice much appreciated.


Here is the makefile

#
# Copyright (C) Derek W
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
#

include $(TOPDIR)/rules.mk

PKG_NAME:=modsecurity
PKG_VERSION:=2.7.7
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-apache_$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.modsecurity.org/tarball/2.7.7/
PKG_MD5SUM:=5383c59ecc6990c870386627f67e7216

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-apache_$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install

PKG_BUILD_PARALLEL:=0
PKG_BUILD_DEPENDS:=util-linux
PKG_INSTALL:=1

PKG_FIXUP = libtool

include $(INCLUDE_DIR)/package.mk

define Package/modsecurity
  SECTION:=net
  DEPENDS:=+apache +apr +libpcre +apr-util +libxml2 +pcre +libiconv-full
+libiconv +libcurl +expat $(ICONV_DEPENDS) $(INTL_DEPENDS) +lua \
  CATEGORY:=Network
  TITLE:=Modsecurity
  URL:=http://www.modsecurity.org/download/
  MENU:=1
endef

TARGET_CFLAGS += $(FPIC)
#TARGET_CPPFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE
TARGET_CPPFLAGS += \
-I$(STAGING_DIR)/usr/include/libxml2 \
-I$(STAGING_DIR)/usr/include/apache \
-I$(STAGING_DIR)/usr/include/apr-1 \
#-I$(STAGING_DIR)/usr/lib/pkgconfig \
#-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \

#TARGET_LDFLAGS += \
#-L$(STAGING_DIR)/usr/lib \
#-L$(ICONV_PREFIX)/lib \
#-L$(INTL_PREFIX)/lib \
#-Wl,-rpath=$(STAGING_DIR)/usr/lib \
#-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \

EXTRA_LDFLAGS += $(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib

TARGET_LDFLAGS += \
-L$(STAGING_DIR)/usr/lib/ \
-s -rpath-link=$(STAGING_DIR)/usr/lib/ \
-Wl,-rpath=$(STAGING_DIR)/usr/lib/ \
-L$(ICONV_PREFIX)/lib \
-L$(INTL_PREFIX)/lib \
-L$(BUILD_DIR)/curl-7.33.0 -lcurl \
-L$(BUILD_DIR)/libxml2-2.7.8 \
-L$(STAGING_DIR)/usr/include/apache \
-L$(STAGING_DIR)/usr/include/apr-1 \


MAKE_VARS +=\
ICONV_PREFIX=$(ICONV_PREFIX) \
INTL_PREFIX=$(INTL_PREFIX) \

#CONFIGURE_VARS += \
#INCLUDES=$(BUILD_DIR)/httpd-2.2.26/include/ \

define Build/Configure
$(PKG_BUILD_DIR)/autogen.sh
$(call Build/Configure/Default,\
--with-apxs=$(STAGING_DIR)/usr/sbin/apxs \
--enable-standalone-module \
--disable-apache2-module \
--disable-mlogc \
--enable-verbose-output \
--enable-strict-compile \
--libdir=$(STAGING_DIR)/usr/lib \
--with-apr=$(STAGING_DIR)/usr/bin/apr-1-config \
--with-apu=$(STAGING_DIR)/usr/bin/apu-1-config \
--with-pcre=$(STAGING_DIR)/usr/bin/pcre-config \
--with-libxml=$(STAGING_DIR)/usr/bin/xml2-config \
--with-cc-opt=$(TARGET_CPPFLAGS) \
LDFLAGS=$(TARGET_LDFLAGS) \
)
endef
#   --with-gnu-ld \

#   CPPFLAGS=-I$(BUILD_DIR)/libxml2-2.7.8/include \
# -I$(BUILD_DIR)/apr-util-1.3.12/include -I$(BUILD_DIR)/apr-1.4.5/include \
# -I$(BUILD_DIR)/usr/include -I$(STAGING_DIR)/usr/lib \
# -I$(STAGING_DIR)/usr/include/apache \

define Build/Compile
$(call Build/Compile/Default)
endef

#define Build/Compile
#$(MKDIR) -p $(PKG_INSTALL_DIR)
#$(MAKE) -C $(PKG_BUILD_DIR) -Llib \
#CC=$(TARGET_CC) \
#DESTDIR=$(PKG_INSTALL_DIR) \
#HOST_CPU=$(PKGARCH) \
#all install
#endef

define Package/modsecurity/InstallDev
$(INSTALL_DIR) $(PGK_BUILD_DIR)/usr/lib
$(CP) $(BUILD_DIR)/apr-util-1.3.12/include/apr_buckets.h
$(PGK_BUILD_DIR)/modsecurity-apache_2.7.7/nginx/modsecurity/
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_BIN) $(PGK_BUILD_DIR)standalone.so $(1)/usr/include
endef

define Package/modsecurity/install
$(INSTALL_DIR) $(PGK_BUILD_DIR)/usr/lib
endef

$(eval $(call BuildPackage,modsecurity))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel