From owner-freebsd-mips@FreeBSD.ORG Thu Apr 8 20:53:50 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 497ED1065673 for ; Thu, 8 Apr 2010 20:53:50 +0000 (UTC) (envelope-from smeagle@bsdler.de) Received: from hell.bsdler.de (hell-fe0.v6.bsdler.de [IPv6:2001:780:0:19::1]) by mx1.freebsd.org (Postfix) with ESMTP id BE1E78FC13 for ; Thu, 8 Apr 2010 20:53:49 +0000 (UTC) Received: from hell.nonstopviolence.de (localhost [127.0.0.1]) by hell.bsdler.de (Postfix) with ESMTP id 4BEDFB83E for ; Thu, 8 Apr 2010 22:53:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at bsdler.de Received: from hell.bsdler.de ([127.0.0.1]) by hell.nonstopviolence.de (hell.bsdler.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 47cTndIjM6jD for ; Thu, 8 Apr 2010 22:53:45 +0200 (CEST) Received: from kiste.lan.terror.local (p4FF0A935.dip.t-dialin.net [79.240.169.53]) by hell.bsdler.de (Postfix) with ESMTPSA id A1B73B83A for ; Thu, 8 Apr 2010 22:53:45 +0200 (CEST) Received: from [172.17.21.80] (brain.lan.terror.local [172.17.21.80]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by kiste.lan.terror.local (Postfix) with ESMTPS id DA5AB4AC1C for ; Thu, 8 Apr 2010 22:53:44 +0200 (CEST) From: Florian Kruegl To: freebsd-mips@freebsd.org Content-Type: text/plain; charset="ASCII" Date: Thu, 08 Apr 2010 22:52:38 +0200 Message-ID: <1270759958.39790.18.camel@brain.lan.terror.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: panic on NAT over PPPoE X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: smeagle@bsdler.de List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2010 20:53:50 -0000 Hi, I get panics when using pf based nat over netgraph based pppoe links its not happening without netgraph nor without nat. mpd5.5 is used for client and was also used as pppoe server to reproduce the panic. pinky:head# svn info Path: . URL: svn://svn.freebsd.org/base/head Repository Root: svn://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 206117 Node Kind: directory Schedule: normal Last Changed Author: jkim Last Changed Rev: 206117 Last Changed Date: 2010-04-02 23:04:31 +0000 (Fri, 02 Apr 2010) ------------------------[ pf.conf ]------------------------ ext_if="ng0" int_if="arge1" set skip on lo scrub in nat on $ext_if from !($ext_if) -> ($ext_if:0) block in pass out pass quick on $int_if no state antispoof quick for { lo $int_if } ------------------------[ pf.conf ]------------------------ ------------------------[ console ]------------------------ panic: TX packet address unaligned KDB: enter: panic [ thread pid 11 tid 100032 ] Stopped at kdb_enter+0x50: lui at,0x805a db> bt Tracing pid 11 tid 100032 td 0xc0c894c0 db_trace_thread+30 (?,?,?,?) ra 800a7a50 sp c7a0d118 sz 24 800a7934+11c (0,?,ffffffff,?) ra 800a7444 sp c7a0d130 sz 32 800a70b0+394 (?,?,?,?) ra 800a75d4 sp c7a0d150 sz 168 db_command_loop+78 (?,?,?,?) ra 800a9ca8 sp c7a0d1f8 sz 24 800a9ba0+108 (?,?,?,?) ra 8021a28c sp c7a0d210 sz 424 kdb_trap+10c (?,?,?,?) ra 8047bcb0 sp c7a0d3b8 sz 32 trap+10fc (?,?,?,?) ra 80473168 sp c7a0d3d8 sz 176 MipsKernGenException+10c (0,a,805c8fe4,2) ra 8021a4e4 sp c7a0d488 sz 200 kdb_enter+50 (?,?,?,?) ra 801df8a0 sp c7a0d550 sz 24 panic+f8 (?,3f1c013,c7a0d5c0,a093e450) ra 804945a8 sp c7a0d568 sz 40 804940c4+4e4 (?,?,?,?) ra 802ac09c sp c7a0d590 sz 144 if_start+14 (?,?,?,?) ra 802af858 sp c7a0d620 sz 24 802af670+1e8 (?,?,?,?) ra 802bf608 sp c7a0d638 sz 48 ether_output_frame+6c (?,c0ce8c00,?,?) ra 8031f23c sp c7a0d668 sz 24 8031f100+13c (?,?,?,?) ra 8031c71c sp c7a0d680 sz 32 8031c640+dc (?,?,0,?) ra 8031b324 sp c7a0d6a0 sz 112 ng_snd_item+690 (?,?,?,?) ra 8032a5f8 sp c7a0d710 sz 48 8032a450+1a8 (?,?,?,?) ra 8031c71c sp c7a0d740 sz 80 8031c640+dc (?,?,0,?) ra 8031b324 sp c7a0d790 sz 112 ng_snd_item+690 (?,?,?,?) ra 8032e26c sp c7a0d800 sz 48 8032e0d8+194 (?,?,?,?) ra 8031c71c sp c7a0d830 sz 48 8031c640+dc (?,?,0,?) ra 8031b324 sp c7a0d860 sz 112 ng_snd_item+690 (?,?,?,?) ra 80326b94 sp c7a0d8d0 sz 48 80326a8c+108 (?,?,?,?) ra 80327030 sp c7a0d900 sz 48 80326fa4+8c (?,?,?,?) ra 80327cd8 sp c7a0d930 sz 336 80327c34+a4 (?,?,?,?) ra 80327e50 sp c7a0da80 sz 32 80327da4+ac (?,?,?,?) ra 80327f8c sp c7a0daa0 sz 32 80327f24+68 (?,?,?,?) ra 80328090 sp c7a0dac0 sz 24 8032805c+34 (?,?,?,?) ra 8031c71c sp c7a0dad8 sz 24 8031c640+dc (?,?,0,?) ra 8031b324 sp c7a0daf0 sz 112 ng_snd_item+690 (?,?,?,?) ra 80322770 sp c7a0db60 sz 48 80322670+100 (?,?,?,?) ra 80322b40 sp c7a0db90 sz 40 8032283c+304 (?,?,?,?) ra 8034c9b8 sp c7a0dbb8 sz 64 ip_output+bd8 (c0f96600,?,?,1) ra 8034749c sp c7a0dbf8 sz 104 ip_forward+3ac (?,?,?,?) ra 80348ed4 sp c7a0dc60 sz 96 ip_input+808 (c0f96600,?,?,?) ra 802c2ff8 sp c7a0dcc0 sz 48 netisr_dispatch_src+cc (?,?,?,?) ra 802c342c sp c7a0dcf0 sz 56 netisr_dispatch+14 (?,?,?,?) ra 802bf0b0 sp c7a0dd28 sz 24 ether_demux+1e0 (?,c0f96600,?,?) ra 802bf584 sp c7a0dd40 sz 32 802bf1c8+3bc (?,c0f96600,?,?) ra 804934b8 sp c7a0dd60 sz 40 804932f0+1c8 (?,?,?,?) ra 80494dd4 sp c7a0dd88 sz 64 80494c8c+148 (?,?,?,?) ra 801aad30 sp c7a0ddc8 sz 40 intr_event_execute_handlers+240 (?,?,?,?) ra 801acd08 sp c7a0ddf0 sz 48 801acc4c+bc (?,?,?,?) ra 801a775c sp c7a0de20 sz 48 fork_exit+a0 (?,?,?,?) ra 80480ba0 sp c7a0de50 sz 48 fork_trampoline+10 (?,?,?,?) ra 0 sp c7a0de80 sz 0 pid 11 ------------------------[ console ]------------------------ From owner-freebsd-mips@FreeBSD.ORG Fri Apr 9 06:07:48 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A8FF106566B for ; Fri, 9 Apr 2010 06:07:48 +0000 (UTC) (envelope-from gonzo@launchpad.bluezbox.com) Received: from launchpad.bluezbox.com (launchpad.bluezbox.com [195.137.202.161]) by mx1.freebsd.org (Postfix) with ESMTP id 0FDF18FC0C for ; Fri, 9 Apr 2010 06:07:46 +0000 (UTC) Received: from [24.87.53.93] (helo=[192.168.1.133]) by launchpad.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O07NU-000O7w-LB; Fri, 09 Apr 2010 06:07:44 +0000 Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Oleksandr Tymoshenko In-Reply-To: <1270759958.39790.18.camel@brain.lan.terror.local> Date: Thu, 8 Apr 2010 23:07:35 -0700 Content-Transfer-Encoding: 7bit Message-Id: <6D6D4516-E706-4406-AB35-C9AC0C3A8CC6@bluezbox.com> References: <1270759958.39790.18.camel@brain.lan.terror.local> To: smeagle@bsdler.de X-Mailer: Apple Mail (2.1078) Sender: gonzo@launchpad.bluezbox.com X-Spam-Level: --- X-Spam-Report: -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.5 AWL AWL: From: address is in the auto white-list Cc: freebsd-mips@freebsd.org Subject: Re: panic on NAT over PPPoE X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 06:07:48 -0000 On 2010-04-08, at 1:52 PM, Florian Kruegl wrote: > Hi, > > I get panics when using pf based nat over netgraph based pppoe links > its not happening without netgraph nor without nat. .. skipped.. > panic: TX packet address unaligned r206405 by nwhitehorn@ should fix it. Please, update and test. -- gonzo From owner-freebsd-mips@FreeBSD.ORG Fri Apr 9 10:40:18 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0308F1065670 for ; Fri, 9 Apr 2010 10:40:18 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id B53618FC08 for ; Fri, 9 Apr 2010 10:40:17 +0000 (UTC) Received: from gw ([192.168.10.10] helo=terran) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1O0BZY-0005k3-To for mips@freebsd.org; Fri, 09 Apr 2010 13:36:25 +0300 Date: Fri, 9 Apr 2010 13:41:13 +0300 From: Alexandr Rybalko To: mips@freebsd.org Message-Id: <20100409134113.6c3b52f1.ray@dlink.ua> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: BCM5354 status (D-Link DIR-320) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 10:40:18 -0000 Hi, If anyone is interested, completed work on a big chat DIR-320 with the profile of IPSec Firmware available here http://www.dlink.ua/files/products/ftp/pub/Router/DIR-320/firmware/A1/FreeBSD_D-Link_DIR-320_ipsec-router_9.0.2.img Description read here http://wiki.ddteam.net/wiki.cgi?page=DIR-320+FreeBSD Many thing's have not yet ready, but the device may already serve as IPSec router. And all this in the 4M flash memory. WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-mips@FreeBSD.ORG Fri Apr 9 13:19:14 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9747C106566C for ; Fri, 9 Apr 2010 13:19:14 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 416938FC22 for ; Fri, 9 Apr 2010 13:19:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o39D8Ftf062611; Fri, 9 Apr 2010 07:08:17 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 09 Apr 2010 07:08:20 -0600 (MDT) Message-Id: <20100409.070820.604481356037000254.imp@bsdimp.com> To: ray@dlink.ua From: "M. Warner Losh" In-Reply-To: <20100409134113.6c3b52f1.ray@dlink.ua> References: <20100409134113.6c3b52f1.ray@dlink.ua> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mips@freebsd.org Subject: Re: BCM5354 status (D-Link DIR-320) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 13:19:14 -0000 In message: <20100409134113.6c3b52f1.ray@dlink.ua> Alexandr Rybalko writes: : Hi, : : If anyone is interested, completed work on a big chat DIR-320 with the profile of IPSec : Firmware available here : http://www.dlink.ua/files/products/ftp/pub/Router/DIR-320/firmware/A1/FreeBSD_D-Link_DIR-320_ipsec-router_9.0.2.img : Description read here http://wiki.ddteam.net/wiki.cgi?page=DIR-320+FreeBSD : Many thing's have not yet ready, but the device may : already serve as IPSec router. : And all this in the 4M flash memory. Wow! That's really cool! So many different profiles. And all in 4MB of flash. I'm impressed. Warner From owner-freebsd-mips@FreeBSD.ORG Fri Apr 9 13:39:51 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C10BA106564A for ; Fri, 9 Apr 2010 13:39:51 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 7D6EF8FC21 for ; Fri, 9 Apr 2010 13:39:51 +0000 (UTC) Received: from gw ([192.168.10.10] helo=terran) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1O0ENK-00065c-C0; Fri, 09 Apr 2010 16:35:58 +0300 Date: Fri, 9 Apr 2010 16:40:53 +0300 From: Alexandr Rybalko To: "M. Warner Losh" Message-Id: <20100409164053.4d797ca9.ray@dlink.ua> In-Reply-To: <20100409.070820.604481356037000254.imp@bsdimp.com> References: <20100409134113.6c3b52f1.ray@dlink.ua> <20100409.070820.604481356037000254.imp@bsdimp.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: mips@freebsd.org Subject: Re: BCM5354 status (D-Link DIR-320) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 13:39:51 -0000 On Fri, 09 Apr 2010 07:08:20 -0600 (MDT) "M. Warner Losh" wrote: >> In message: <20100409134113.6c3b52f1.ray@dlink.ua> >> Alexandr Rybalko writes: >> : Hi, >> : >> : If anyone is interested, completed work on a big chat DIR-320 with the profile of IPSec >> : Firmware available here >> : http://www.dlink.ua/files/products/ftp/pub/Router/DIR-320/firmware/A1/FreeBSD_D-Link_DIR-320_ipsec-router_9.0.2.img >> : Description read here http://wiki.ddteam.net/wiki.cgi?page=DIR-320+FreeBSD >> : Many thing's have not yet ready, but the device may >> : already serve as IPSec router. >> : And all this in the 4M flash memory. >> >> Wow! That's really cool! So many different profiles. And all in 4MB >> of flash. I'm impressed. >> >> Warner Thanks, Warner. I remember You are terminate your work on DIR-615, maybe time to continue? :) I prepare small source tree expansion for making possible compile firmware`s in main source tree. here it is http://my.ddteam.net/hg/BASE/file/35877b576562/head/release/boards/ (with small changes to other files, like /Makefile, /Makefile.inc,/share/mk/bsd.wn.mk etc. ) Have some small problems: 1. need to change `config` behavior to make possible store kernel configs not in arch/conf dir. In my plains one device may have 4-5 different profiles ipsec,openvpn,wifi etc with different configs, so if we store all of this into arch/conf we be have long-long list of config/hints files. Two files per profile X 4-5 Profiles per device X 5-10 devices on same chip X 20-30 chips on same family X 4-8 family per platform = 2 * 5 * 10 * 30 * 8 = 24000 files :))))))) 2. How to dial with external utilities like mkisofs, oldest lzma and so on? If it mkisofs we can install it from ports or pkg_add, but for CFE in my device we need very old lzma that produce output different from newest versions. WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-mips@FreeBSD.ORG Sat Apr 10 21:34:52 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87926106566B for ; Sat, 10 Apr 2010 21:34:52 +0000 (UTC) (envelope-from smeagle@bsdler.de) Received: from hell.bsdler.de (hell-fe0.v6.bsdler.de [IPv6:2001:780:0:19::1]) by mx1.freebsd.org (Postfix) with ESMTP id 1837B8FC08 for ; Sat, 10 Apr 2010 21:34:51 +0000 (UTC) Received: from hell.nonstopviolence.de (localhost [127.0.0.1]) by hell.bsdler.de (Postfix) with ESMTP id 2FE7CB83E; Sat, 10 Apr 2010 23:34:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at bsdler.de Received: from hell.bsdler.de ([127.0.0.1]) by hell.nonstopviolence.de (hell.bsdler.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wsYG1U6W8+X1; Sat, 10 Apr 2010 23:34:43 +0200 (CEST) Received: from kiste.lan.terror.local (p5DD1C9FA.dip.t-dialin.net [93.209.201.250]) by hell.bsdler.de (Postfix) with ESMTPSA id 6C6BCB83A; Sat, 10 Apr 2010 23:34:43 +0200 (CEST) Received: from [172.17.21.80] (brain.lan.terror.local [172.17.21.80]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by kiste.lan.terror.local (Postfix) with ESMTPS id 640AF4AC1C; Sat, 10 Apr 2010 23:34:42 +0200 (CEST) From: Florian Kruegl To: Oleksandr Tymoshenko In-Reply-To: <6D6D4516-E706-4406-AB35-C9AC0C3A8CC6@bluezbox.com> References: <1270759958.39790.18.camel@brain.lan.terror.local> <6D6D4516-E706-4406-AB35-C9AC0C3A8CC6@bluezbox.com> Content-Type: text/plain; charset="ASCII" Date: Sat, 10 Apr 2010 23:33:37 +0200 Message-ID: <1270935217.39790.20.camel@brain.lan.terror.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: panic on NAT over PPPoE X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: smeagle@bsdler.de List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2010 21:34:52 -0000 Hi, On Thu, 2010-04-08 at 23:07 -0700, Oleksandr Tymoshenko wrote: > r206405 by nwhitehorn@ should fix it. Please, update and test. > > problem is fixed regards