if_alloc() page fault, VirtualBox + VIMAGE
Bjoern A. Zeeb
bzeeb-lists at lists.zabbadoz.net
Tue Feb 1 17:50:06 UTC 2011
On Tue, 1 Feb 2011, Monthadar Al Jaberi wrote:
> 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
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!
<ks> Going to jail sucks -- <bz> All my daemons like it!
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html
More information about the freebsd-net
mailing list