r***@gmail.com
2006-08-28 04:04:24 UTC
Hi there,
First of all, this messgae is cross-posted in both
comp.sys.mac.programmer.misc and comp.lang.forth.mac.
I am writing the FCode driver for some storage adapter
for PPC Mac. Some work has been done so far that Mac
OSX can install into the volume of the adapter. However,
after system reboots, the BUSY LED of the adapter flashs
for like 5 seconds(lots of data have been read) and system
just hangs. Apple logo is shown then but not the spinner,
and system fan starts full-speed running after a few
seconds. The adapter firmware side is checked; All issued
commands are completed normally, and they are all from
FCode driver, not any one from encapsulated runtime driver.
The kernel panic messages looks like this. (with boot-args
flag -v)
standard timeslicing quantum is 10000 us
vm_page_bootstrap: 122540 free pages
mig_table_max_displ = 70
Added extension "comp.xxxxx.xxxxxx"(vendor name)from archive.
^^^^^^^^^^^^^^ is runtime driver loaded ok??? ^^^^^^^^^^^^^^^
Can't find vtable 10AppleMacIO in (memory-resident kernel)
kld can't map kernel fileerror mapping module file
comp.apple.driver.AppleMacRISC4PE
Can't map comp.apple.driver.AppleMacRISC4PE in preparation for loading
:
blah blah
:
The following points are concerned.
1. Since the documentation for Mac specific open firmware driver
writing is either incomplete or out of date, some mandatory
methods might not be [fully] implemented. I have referenced
the FCode drivers of other vendors' adapters(by "see" UI
command) and some docs/sample codes, but I can't find any
critical methods missing in my driver.
2. Is it possible the transition between FCode driver and the
encapsulated runtime driver is not smooth in some way? Since
OSX can install in the first time, I am not sure if this is
really an issue.
So is there any way to debug in such situation? Or any good
documentation/expert out there?
Thanks in advance for any help!
KC
First of all, this messgae is cross-posted in both
comp.sys.mac.programmer.misc and comp.lang.forth.mac.
I am writing the FCode driver for some storage adapter
for PPC Mac. Some work has been done so far that Mac
OSX can install into the volume of the adapter. However,
after system reboots, the BUSY LED of the adapter flashs
for like 5 seconds(lots of data have been read) and system
just hangs. Apple logo is shown then but not the spinner,
and system fan starts full-speed running after a few
seconds. The adapter firmware side is checked; All issued
commands are completed normally, and they are all from
FCode driver, not any one from encapsulated runtime driver.
The kernel panic messages looks like this. (with boot-args
flag -v)
standard timeslicing quantum is 10000 us
vm_page_bootstrap: 122540 free pages
mig_table_max_displ = 70
Added extension "comp.xxxxx.xxxxxx"(vendor name)from archive.
^^^^^^^^^^^^^^ is runtime driver loaded ok??? ^^^^^^^^^^^^^^^
Can't find vtable 10AppleMacIO in (memory-resident kernel)
kld can't map kernel fileerror mapping module file
comp.apple.driver.AppleMacRISC4PE
Can't map comp.apple.driver.AppleMacRISC4PE in preparation for loading
:
blah blah
:
The following points are concerned.
1. Since the documentation for Mac specific open firmware driver
writing is either incomplete or out of date, some mandatory
methods might not be [fully] implemented. I have referenced
the FCode drivers of other vendors' adapters(by "see" UI
command) and some docs/sample codes, but I can't find any
critical methods missing in my driver.
2. Is it possible the transition between FCode driver and the
encapsulated runtime driver is not smooth in some way? Since
OSX can install in the first time, I am not sure if this is
really an issue.
So is there any way to debug in such situation? Or any good
documentation/expert out there?
Thanks in advance for any help!
KC