[openbeosnetteam] Re: Driver...again...

> David wrote:
> > Well my development has ground to a screaming halt this morning
> > after the driver stopped being loaded. It's all installed but
> > won't load itself and so the stack won't run as kernel mode.
> > <sigh> This started happening about a week ago
>
> It should be the STAY_LOADED symbol set to 1, I guess.
> The driver, compiled that way, won't unload from kernel
> (or be reloaded by devfs on image modification) until you close the
internal
> open() he made on himself to stay loaded.
> Asking him to stop/unload is necessary in this mode.

I'm actually NOT using the stay loaded stuff as I found that it won't unlaod
itself and given I've been making changes to the driver I'd rather have it
not keep loaded.

> Sorry, I should have add echo "stop" > /dev/net/stack in the
> Makefile install target.

Yep, but as it doesn't work anyways...

> BTW, as all kernel modules are still using the B_KEEP_LOADED flags,
> STAY_LOADED can't works

Yes, I did wonder about this :)

> > normally a make clean && make install followed by a reboot
> > fixes it, but not this time :(
>
> If not even a reboot don't make the driver loading again, something
> is really broken in init_driver(). Or deeper.

That's what i thought. I need maybe 3 reboots to get it to load :(

david



Other related posts: