[OpenWrt-Devel] Build problem: missing xt_layer7.h

2009-11-03 Thread Christian Jaeger
Hello

Am I on the correct list with this? I must say the websites are a bit unclear:

- http://openwrt.org/ does not mention "mailing" at all; it mentions
Developer, which I follow;
- https://dev.openwrt.org/ does not mention "mailing" either; it
mentions "contact", which I follow, but this then says "Send an email
to the internal developer mailing-list: openwrt-hackers [at] openwrt
[dot] org"; it doesn't say how to subscribe, and it's not clear what
"internal" means in the context of an opensource project.
- I then peruse the Search form (Google search) on http://openwrt.org/
for "mailing list" and finally find the lists on lists.openwrt.org

I suggest adding links to lists.openwrt.org from both of the above
websites (since neither of these sites are wikis, I guess that can't
do it myself).


On to the actual problem:

I'm trying to build openwrt from git
(875a24be1f84f391fe4e7f75c37c80e5804617e5,
svn://svn.openwrt.org/openwrt/tr...@18290).

I'm on Debian stable, but I've overridden gcc, g++,
x86_64-linux-gnu-gcc, x86_64-linux-gnu-g++ to gcc-4.4 and g++-4.4
respectively, since the Debian g++ 4.3.2 errored out early. Now I'm
fine up to:

chrisopen...@novo:~/src/openwrt$ make V=99
..
make[6]: Entering directory
`/home/chrisopenwrt/src/openwrt/build_dir/linux-brcm47xx/iptables-1.4.4/extensions'
mipsel-openwrt-linux-uclibc-gcc
-Wp,-MMD,./.libxt_layer7.o.d,-MT,libxt_layer7.o -D_LARGEFILE_SOURCE=1
-D_LARGE_FILES -D_FILE_OFFSET_BITS=64   -D_REENTRANT -Wall
-Waggregate-return -Wmissing-declarations   -Wmissing-prototypes
-Wredundant-decls -Wshadow -Wstrict-prototypes  -Winline -pipe
-DXTABLES_LIBDIR=\"/usr/lib/iptables\" -DXTABLES_INTERNAL
-I../include -I../include -I
/home/chrisopenwrt/src/openwrt/build_dir/linux-brcm47xx/linux-2.6.30.9/include
-I 
/home/chrisopenwrt/src/openwrt/build_dir/linux-brcm47xx/linux-2.6.30.9/include
-DNO_SHARED_LIBS=1 -D_INIT=libxt_layer7_init -Os -pipe -mips32
-mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float  -o
libxt_layer7.o -c libxt_layer7.c;
libxt_layer7.c:25:39: warning: linux/netfilter/xt_layer7.h: No such
file or directory
libxt_layer7.c:48: warning: 'struct xt_layer7_info' declared inside
parameter list
libxt_layer7.c:48: warning: its scope is only this definition or
declaration, which is probably not what you want
libxt_layer7.c: In function 'parse_protocol_file':
libxt_layer7.c:92: error: 'MAX_PROTOCOL_LEN' undeclared (first use in
this function)
..

chrisopen...@novo:~/src/openwrt$ find -name xt_layer7.h
chrisopen...@novo:~/src/openwrt$ g-grep -l xt_layer7.h
package/iptables/patches/1.4.4/002-layer7_2.17.patch
target/linux/generic-2.4/patches/602-netfilter_layer7_2.21.patch
target/linux/generic-2.6/patches-2.6.21/100-netfilter_layer7_2.21.patch
target/linux/generic-2.6/patches-2.6.21/101-netfilter_layer7_pktmatch.patch
target/linux/generic-2.6/patches-2.6.25/100-netfilter_layer7_2.21.patch
target/linux/generic-2.6/patches-2.6.25/101-netfilter_layer7_pktmatch.patch
target/linux/generic-2.6/patches-2.6.28/100-netfilter_layer7_2.21.patch
target/linux/generic-2.6/patches-2.6.28/101-netfilter_layer7_pktmatch.patch
target/linux/generic-2.6/patches-2.6.30/100-netfilter_layer7_2.21.patch
target/linux/generic-2.6/patches-2.6.30/101-netfilter_layer7_pktmatch.patch
target/linux/generic-2.6/patches-2.6.31/100-netfilter_layer7_2.21.patch
target/linux/generic-2.6/patches-2.6.31/101-netfilter_layer7_pktmatch.patch
target/linux/generic-2.6/patches-2.6.32/100-netfilter_layer7_2.21.patch
target/linux/generic-2.6/patches-2.6.32/101-netfilter_layer7_pktmatch.patch


The last commits with changes containing the string 'xt_layer7.h':

  commit 5f33b429e2ec7a5aa0f78cb1d96e22778c6ea5c3
  Author: kaloz 
  Date:   Tue Nov 3 10:49:27 2009 +

  add preliminary 2.6.32 support

  ..
  commit 24168b91595c0c5a9420c348c4c16e727e1aaa81
  Author: florian 
  Date:   Thu Oct 29 12:20:45 2009 +

  [kernel] remove support for 2.6.27, no target is using it anymore
  ..
  commit c3fd35e7800ae1f2dd3fa42ade850c948e4b18ea
  Author: mirko 
  Date:   Sat Aug 22 12:46:12 2009 +

  add generic patchset levelled up to 2.6.31-rc6


I've tried the following per https://forum.openwrt.org/viewtopic.php?id=17981 :

  diff --git a/package/iptables/Makefile b/package/iptables/Makefile
  index 1e32022..b1bb850 100644
  --- a/package/iptables/Makefile
  +++ b/package/iptables/Makefile
  @@ -248,6 +248,7 @@ TARGET_CPPFLAGS := \
  $(TARGET_CPPFLAGS)

   CONFIGURE_ARGS += \
  +   --enable-libipq \
  --enable-shared \
  --enable-static \
  --enable-devel \


but it doesn't change a thing, there's still no xt_layer7.h file
there, even after re-running make after "make clean". Well I've
noticed that "make clean" doesn't clean up so much so, maybe I'll have
to clean something manually? Otherwise, it would seem like the patch
that introduces the xt_layer7.h file isn't applied.

Thanks for your help,
Christian.

PS. there seems to be a problem with make -j2,

Re: [OpenWrt-Devel] WRAP board (x86-generic-pcengines wrap) boot problems

2009-11-03 Thread David A. Bandel
On Mon, Nov 2, 2009 at 18:18, Florian Fainelli  wrote:
> Hi David,
>
> 2009/11/3, David A. Bandel :
>> On Mon, Nov 2, 2009 at 12:44, Jo-Philipp Wich  wrote:
>>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA1
>>>
>>> Not sure whether same config is supposed to work. At least the rootfs
>>> partition name changed recently, my Wrap Board here works fine with an
>>> ext2 image and CONFIG_X86_GRUB_ROOTPART=/dev/sda2 .
>>
>> OK, tried again -- make distclean, then make package/symlinks (did a
>> minimal config), make menuconfig (added packages and I see the
>> /dev/sda2 entry vice /dev/hda2), build went well, but I still have:
>>
>> ata1.00: failed to IDENTIFY (device reports invalid type, err_mask=0x0)
>> block2mtd: error: cannot open device /dev/sda2
>
> It will not work because of those two lines before. Could you paste
> the message that is shown before the "failed to IDENTIFY"? Are you
> using some broken medium ?

scsi0 : sc1200
scsi1 : sc1200
ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
ata2: DUMMY
ata1.00: failed to IDENTIFY (device reports invalid type, err_mask=0x0)
Clocksource tsc unstable (delta = -474635714 ns)
ata1.00: failed to IDENTIFY (device reports invalid type, err_mask=0x0)
block2mtd: error: cannot open device /dev/sda2

Whether the medium is "broken" or not, I can't say, it's a Sharp 16Mb
CF disk that works fine if I load r-16637.

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
Visit my blog at: http://www.pananix.com/cgi-bin/blosxom
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Patch] Fix typo inittab

2009-11-03 Thread Mark Kelly

There is a typo in /etc/inittab for the second serial port. This patch
fixes that typo and allow logins from the second port.

Signed-off-by: Mark Kelly

Index: package/base-files/files/etc/inittab
===
--- package/base-files/files/etc/inittab (revision 18289)
+++ package/base-files/files/etc/inittab (working copy)
@@ -2,4 +2,4 @@
::shutdown:/etc/init.d/rcS K stop
tts/0::askfirst:/bin/ash --login
ttyS0::askfirst:/bin/ash --login
-tty1::askfirst:/bin/ash --login
+ttyS1::askfirst:/bin/ash --login

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


Re: [OpenWrt-Devel] [PATCH] Add beep package

2009-11-03 Thread L. Aaron Kaplan

This is sooo cool :) Thanks :)


On Nov 3, 2009, at 4:07 AM, Thomas Albers wrote:

This adds the "beep" program by Johnathan Nightingale, which plays  
beeps of chosen frequency and length through the PC speaker. It's  
quite useful to give feedback from within scripts.


Signed-off by: Thomas Albers 
Index: beep/Makefile
===
--- beep/Makefile   (revision 0)
+++ beep/Makefile   (revision 0)
@@ -0,0 +1,45 @@
+#
+# Copyright (C) 2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public  
License v2.

+# See /LICENSE for more information.
+#
+# This Makefile is a skeleton
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=beep
+PKG_VERSION:=1.2.2
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://johnath.com/beep/
+PKG_MD5SUM:=d541419fd7e5642952d7b48cbb40c712
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/beep
+  SECTION:=sound
+  CATEGORY:=Sound
+  TITLE:=beep
+  URL:=http://johnath.com/beep/README
+  DEPENDS:=+kmod-pcspkr
+endef
+
+define Package/beep/description
+   This program plays beeps through the PC speaker
+endef
+
+CONFIGURE_ARGS += \
+   --enable-static \
+   --enable-shared
+
+MAKE_FLAGS += \
+   CFLAGS="$(TARGET_CFLAGS)"
+
+define Package/beep/install
+   $(INSTALL_DIR) $(1)/usr/bin
+   $(INSTALL_BIN) $(PKG_BUILD_DIR)/beep $(1)/usr/bin
+endef
+
+$(eval $(call BuildPackage,beep))
___
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