From owner-freebsd-net@FreeBSD.ORG Tue Feb 1 17:50:06 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7E961065674; Tue, 1 Feb 2011 17:50:06 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id 7B1638FC1A; Tue, 1 Feb 2011 17:50:06 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id D569541C735; Tue, 1 Feb 2011 18:50:05 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id 6IxdfJLSg2z4; Tue, 1 Feb 2011 18:50:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id 6505F41C733; Tue, 1 Feb 2011 18:50:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id C25F64448F3; Tue, 1 Feb 2011 17:48:09 +0000 (UTC) Date: Tue, 1 Feb 2011 17:48:09 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Monthadar Al Jaberi In-Reply-To: Message-ID: <20110201174653.Y43179@maildrop.int.zabbadoz.net> References: <201102010949.07643.jhb@freebsd.org> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org, John Baldwin Subject: Re: if_alloc() page fault, VirtualBox + VIMAGE X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2011 17:50:06 -0000 On Tue, 1 Feb 2011, Monthadar Al Jaberi wrote: > On Tue, Feb 1, 2011 at 3:49 PM, John Baldwin wrote: >> On Tuesday, February 01, 2011 9:38:16 am Monthadar Al Jaberi wrote: >>> Hi, >>> >>> I am running FreeBSD Current (201010) as guest in VirtualBox on an >>> Ubuntu 10.04. FreeBSD is compiled with VIMAGE option. >>> >>> I loaded a module (my own) that calls if_alloc(IFT_IEEE80211), but I >>> get a panic: >> >> Did you compile your module with VIMAGE enabled? > > How do I check that? My makefile is: > > # Note: It is important to make sure you include the > makefile after declaring the KMOD and SRCS variables. > .PATH: ${.CURDIR}/wtap_hal > > # Declare Name of kernel module > KMOD = wtap > > # Enumerate Source files for kernel module > SRCS = if_wtap_module.c if_wtap.c if_medium.c hal.c > > # Include kernel module makefile > .include > >> >> -- >> John Baldwin >> > > Thnx Bjoern, I will check the mailing list Never mind; I was clearly not awake enough. The patch etc. is for virtualbox on a FreeBSD with VIMAGE. But people will be able to help you with your module there as well if it's related to a VIMAGE kernel. /bz -- Bjoern A. Zeeb You have to have visions! Going to jail sucks -- All my daemons like it! http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html