Posted 23 September 2008 - 07:38 AM

Basically, the problem is when you have more than 3 gb of ram (some says 2.5 gb) and AppleVIAATA, JMicronATA, AppleNForceATA or AppleATIATA driver.

In my case, I've got 2 IDE HDD and when I upgraded to 4 gb of ram, my desktop started to freeze, or give kernel panics (AppleVIAATA).

After some hours of googling and looking for the driver to solve my issue, i finally made a custom driver that made it.

The problem was that AppleVIAATA driver used 32 bits addresses to make DMA. In an environment with 4 gb of ram, you need 64 bits addresses. I've rewritten some code so that this kext uses a kernel api which supports 64 bits.

I think the problem is solved. To generate kernel panics, i used Rember to test all memory, and while this was running, i started to browse mi IDE hdd. After rewriting the driver, i had no more panics!

FAQ:

1- DOES THIS MEAN THE BUG IS SOLVED? Old answer: NO! Need testing, i've finished 30 minutes ago and i couldn't test it as much as needed to say it works fine.New answer: It seems so.

2- IS IT A REPLACEMENT FOR APPLEVIAATA.KEXT?Old answer: NO! It only solved my IDE problems (I removed some PCIID from Info.plist)New answer: Yes, it is.

3- CAN I HAVE THE SOURCE CODE TO KEEP DEVELOPMENT?Old answer: YES! Just tell me where can i upload it (svn like google code) without any legal violation.New answer: There's a googlecode svn project here: darwin-ata. You may check out and get the source. If you want to be part of the development team (or whatever the name of the people who are trying to make this work is) just PM me. Try to add some info so i can check if u are going to benefit this development or not.

4- DO YOU KNOW HOW TO WRITE IN ENGLISH?Old answer: NO! I've done such an effort to write this post that i think i'm loosing my mind.New answer: I'm finishing my degree in computer sciences, not english, the answer is still NO.

5- WHAT KEXT SHOULD I DOWNLOAD?ONLY ANWSER: The ones that doesn't have the word DEBUG in their names.

6- WHY NOT DEBUG KEXTS?They are for DEBUGGING. Use them if and only if i tell u to do it. First warning.

7- HOW DO I REPORT A NON WORKING KEXT?1: boot with -v debug=0x100 at darwin prompt2: make a dump with ioreg -l > dump.txt3: after having a panic, take a picture of the screenshot (I need to read every character, so make sure the screen fits the picture)4: atach dump.txt and the picture of the screen into this topic and wait for my answer (sometimes other users might help)

8- I HAVE LOTS OF INFO DISPLAYED ON BOOT AND LOGS. LOTS AND LOTS OF INFO EVERY SECOND. WHAT'S GOING ON?RTFF. You've been warned.

If you need some help, or have some comments, or find some bugs, just post in this thread.

Here's what we've got so far:

JMicronATA: v0.6 WorkingAppleVIAATA: v0.2 WorkingAppleNForceATA: v0.1 Working (?). Some may have issues with DVD drives. Some may have issues with voodoo kernelAppleATIATA: v0.1 Not tested, waiting.

stmiller has compiled these kexts with Tiger (10.4.8) in case someone is using 10.4. He only tested AppleVIAATA.kext.

DON'T USE DEBUG KEXTS UNLESS I TELL YOU TO DO IT. This is the second and last warning.

Posted 25 September 2008 - 03:01 AM

I need some info (i don't have a JMicron ide controller to see what's happening) to see if the problem is more or less the same. If the cause is the same, i can fix try and fix it.

Is there anyone with a JMicron chipset that can send me a brief of what's happening? Start with -v debug=0x100 at darwin bootloader and send me a dump of the kernel panic or at least a photo of the screen.

Posted 27 September 2008 - 02:10 PM

Posted 02 October 2008 - 03:13 PM

SisXtian

InsanelyMac Protégé

Members

8 posts

I was hoping this would work for my system, but I may have screwed it up even more. At first I was trying -Dune-'s AppleIntelPIIXATA.kext and removing the AppleVIAATA.kext. This didn't solve my panic problem and so I tried this one. Now I have removed the JMicro.kext and I get a circle with a slash through it when I try to boot into OSX.

I've had my install of the iATKOS v2.0i Leopard 10.5.2 working for several months now. But from the beginning, it's given me a kernel panic whenever more than 2GB is saved out (like exporting video in Quicktime Pro). It's not that it has a problem with large files. I don't know if I need a new kext for the IDE controller or what. This panic does NOT show up when I transfer to an external firewire drive, though. I've transferred over 500GB to that drive in OSX. It's only when files are utilized by my OSX system drive (an IDE drive). I've done a lot of research about this problem, but I'm not really sure how to narrow down what's causing it on my system (memory issue, HDD issue, etc). I'm a little unsure about the process of using kexthelper, terminal, and rebuilding permissions, and what order all that needs to happen in order to insure that kexts are injected properly. It's all making my head spin.

Here are my hardware specs in hopes that someone can offer a suggestion for what I need to do.

Posted 02 October 2008 - 03:51 PM

slashack

InsanelyMac Geek

Members

203 posts

Gender:Male

Location:Buenos Aires, Argentina

I think your problem is the same as mine, but with other driver. My issue was that whenever osx used over 2/3 GB of ram and used an IDE drive, it crashed. How to test for this?
1- Boot with -v and debug=0x100. (At darwin bootloader when osx starts, press any key and at boot prompt type "-v debug=0x100" without quotes)
2- Run rember (its a little program to test memory, download it) and test all memory.
3- Wait a while till rember starts testing, and start trying to open files in your ide.
4- If it panics, send me a photo of the screen (u should see some text written)

Also, open a terminal and type ioreg -l > dump.txt and send me that file (dump.txt).

This could help you to determine if AppleVIAAta.kext or JMicron.kext are the problematic ones.

Posted 08 October 2008 - 02:34 AM

Posted 08 October 2008 - 01:49 PM

Volcacius

InsanelyMac Sage

Donators

461 posts

Gender:Male

Location:BG, Italy

AppleNForceATA.kext (http://forum.insanel...showtopic=77071) has exacly the same problem! It randomly freezes with 4gb and I always have to boot with maxmem=2048. I booted with debug=0x100 and saw that the error is related to this kext. Would love to use 4gb ram, do you think that it can be fixed?

Posted 08 October 2008 - 05:33 PM

Hi have problems with jmicron controller but only with my PATA drive SATA works fine. I get panic only if i use PATA drive and if i delete jmicron kext i dont see my PATA drive but i get no panics.

I include pictures of the screen and dump.txt

I think the problem is solved, test them and in case they don't work, send me more pictures (with the debugging kext). I cannot test them, i don't have that hw.

AppleNForceATA.kext (http://forum.insanel...showtopic=77071) has exacly the same problem! It randomly freezes with 4gb and I always have to boot with maxmem=2048. I booted with debug=0x100 and saw that the error is related to this kext. Would love to use 4gb ram, do you think that it can be fixed?

If the problem is the same as JMicron and AppleVIA, i can solve it, send me screen photos of your kernel panic booting with -v debug=0x100. Try to include the whole screen. In the first line you can see where the problem is. If the problem is using 32 bits addresses in stead of using 64 bit, i could try and fix it.

Posted 09 October 2008 - 02:51 AM

I will post the info.plist as soon as i can. But I payed extra attention during reboot and i saw some error i think it was couldn't alloc class="JmicronATAPIroot"

I can confirm this. I just installed the JMicronATA.kext and had the same issue at boot up. I'm going to try the Debug kext, and see if that gives the same error during boot up. I'll see if I can get a photo of it this time as well.