if_alloc() page fault, VirtualBox + VIMAGE

Monthadar Al Jaberi monthadar at gmail.com
Tue Feb 1 14:59:25 UTC 2011


On Tue, Feb 1, 2011 at 3:49 PM, John Baldwin <jhb at freebsd.org> 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 <bsd.kmod.mk>
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 <bsd.kmod.mk>

>
> --
> John Baldwin
>

Thnx Bjoern, I will check the mailing list

br

-- 
//Monthadar Al Jaberi


More information about the freebsd-net mailing list