On May 19, 2005, at 6:08 AM, gautam kotwal wrote:
I m working on Mac 10..3 graphic driver
The problem is that when I load my Kext and then restart my computer
it restarts normally but again just after restarting I again restart
my system without doing anything it crashes
Can anyone tell me what could be the problem the second time when I
m restarting?
Well, there's not a lot of detail here to go on. I assume when you
say it crashes that you mean a kernel panic. (If it's an app crashing
then that's different.) If so you will need to go through the steps
to properly debug this (pawing through the modules involved and the
backtrace). You will likely need to get the proper kernel debug kit
for the exact version you are using. And you may need to do 2-machine
debugging.
The best resource I've found for these things is "Understanding and
Debugging Kernel Panics" found at
------------------------------------------------------------------------
ADC Home > Reference Library > Technical Notes > Darwin > Kernel
Assuming a direct link will work...
<http://developer.apple.com/technicalnotes/Darwin/idxKernel-date.html>
The only idea I have from your description is that when you manually
load your kext it's happening very late in the startup process (well,
actually after startup but that's why it's "very" late...) but when
it loads during boot it's probably happening much earlier. This could
alter how (or which) subordinate connections the rest of the kernel
and other kexts make to yours. It may be that there's an IOKit
instance (a nub perhaps) that should be retained but is not.
That's not a lot of help, I know, but it's the only idea I can come
up with without the panic log. Take a look at the Apple docs and see
where it leads you.
Good luck.
-Mike