Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth Mac > Re: About FCode...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 127 of 159
Post > Topic >>

Re: About FCode driver

by Dennis Ruffer <druffer@[EMAIL PROTECTED] > Aug 28, 2006 at 09:48 AM

On 2006-08-28 00:04:24 -0400, roturier@[EMAIL PROTECTED]
 said:

> 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 appearance of the Apple logo means that Open Firmware has 
transfered control to the boot image.  The boot image has drawn the 
logo, but has not started to load the rest of the kernel yet.  In other 
words, your FCode driver has succeeded, and as your kernel panic 
messages below indicate, you are in the kernel.

The fans ramping up simply mean that no software is controlling them.  
The OF driver is no longer running and the OS driver hasn't been 
started.
> 
> 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 do***entation 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.

I'm not sure that this transition logic has ever been do***ented 
properly.  Most of the do***entation was written before OSX was 
introduced.
> 
> 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.

There is no definition for "smooth" here, only the adjustment of watch 
dog values to cover the transition time.
> 
> So is there any way to debug in such situation? Or any good
> do***entation/expert out there?

The are few people who know the pitfalls, and with the Intel 
transition, they are all doing something else now.
> 
> Thanks in advance for any help!
> 
> KC

DaR
 




 4 Posts in Topic:
About FCode driver
roturier@[EMAIL PROTECTED  2006-08-27 21:04:24 
Re: About FCode driver
Dennis Ruffer <druffer  2006-08-28 09:48:11 
Re: About FCode driver
roturier@[EMAIL PROTECTED  2006-08-29 19:37:25 
Re: About FCode driver
Dennis Ruffer <druffer  2006-08-31 22:21:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 16:46:29 CDT 2008.