Jump to content

AppleVIAATA over 4gb RAM bug solved (at least i believe so)! JMicron and AppleNForceATA at development


  • Please log in to reply
569 replies to this topic

#1
slashack

slashack

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 203 posts
  • Gender:Male
  • Location:Buenos Aires, Argentina
Last update: 11/12/2008

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 prompt
2: make a dump with ioreg -l > dump.txt
3: 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 Working
AppleVIAATA: v0.2 Working
AppleNForceATA: v0.1 Working (?). Some may have issues with DVD drives. Some may have issues with voodoo kernel
AppleATIATA: 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.

Downloads:

All the kexts here!

#2
Portos61

Portos61

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
  • Gender:Male
  • Location:Roma
I have the same problem, desktop freeze, and i decide to remove this kext. Now this problem is solved and I reinstall it.

Thanks :D


P.S.: Why the file dimension is more less than original and there isn't the "Resources" dir ?

#3
mitch_de

mitch_de

    InsanelyMacaholic

  • Retired
  • 2,902 posts
  • Gender:Male
  • Location:Stuttgart / Germany
Would be fine if someone tries that for JMICRON.kext also .

#4
slashack

slashack

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 203 posts
  • Gender:Male
  • Location:Buenos Aires, Argentina

Would be fine if someone tries that for JMICRON.kext also .

Is there any source code? What version are you using?

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.

#5
martinkou

martinkou

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts
I've installed your fixed extension - it works. No more crashes.

#6
SisXtian

SisXtian

    InsanelyMac Protégé

  • Members
  • Pip
  • 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.

iATKOS v2.0i Leopard 10.5.2

GA-P35-DS3L Mobo
8GB RAM (OSX recognizes all of it)
Core 2 Quad Intel processor
NVidia quadro FX 370
30GB Western Digital IDE Master HDD (running OSX)
80GB Seagate Barracuda 7200.10 IDE Slave HDD (running Windows XP)
Intel ICH9 Serial ATA storage controller


Let me know if there's any other info needed. Thanks for any help.

#7
slashack

slashack

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 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.

#8
mitch_de

mitch_de

    InsanelyMacaholic

  • Retired
  • 2,902 posts
  • Gender:Male
  • Location:Stuttgart / Germany
Hi, the max RAM using IDE is 3 GB or only 2 GB ?
I will have 4 GB soon and will set at boottime by kernelflag to a max 3072 .
Is that correct or is the max (for no problems) 2048 ?

#9
psychonaut

psychonaut

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
Thanks. Works perfect. No locks ups at all so far.

#10
SisXtian

SisXtian

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
It was the IDE. I actually just used a IDE-to-SATA adapter I had laying around. Plugged the IDE into my mobo SATA port. No more panics. Thanks for the help!

#11
adusak

adusak

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts
  • Gender:Male
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

Attached Files

  • Attached File  1.jpg   641.85KB   345 downloads
  • Attached File  2.jpg   540.88KB   219 downloads
  • Attached File  dump.txt   235.23KB   72 downloads
  • Attached File  3.jpg   578.07KB   157 downloads


#12
slashack

slashack

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 203 posts
  • Gender:Male
  • Location:Buenos Aires, Argentina

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


Thanks! Thats the same issue, ill try and correct it today or tomorrow. Wait for my post.

#13
Embio

Embio

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 976 posts
;):D nothing like progress! thanks mate

#14
rfuilrez

rfuilrez

    InsanelyMac Protégé

  • Members
  • PipPip
  • 51 posts
I would like to say, that I will wait patiently for your modified JMicron.kext, and if you would like you have a tester in me :wacko:

#15
Volcacius

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?

#16
slashack

slashack

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 203 posts
  • Gender:Male
  • Location:Buenos Aires, Argentina

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.

#17
adusak

adusak

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts
  • Gender:Male

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.

I just installed your kexts using the kexthelper and after restart my PATA hdd is not found and when the system boots with -v there is no reference to jmicron as it always was with the original kext.

#18
slashack

slashack

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 203 posts
  • Gender:Male
  • Location:Buenos Aires, Argentina

I just installed your kexts using the kexthelper and after restart my PATA hdd is not found and when the system boots with -v there is no reference to jmicron as it always was with the original kext.


Can you post your old JMicron kext Info.plist? Try booting with -v -f debug=0x100
The driver is not loading for some reason.

#19
adusak

adusak

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts
  • Gender:Male
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"

#20
rfuilrez

rfuilrez

    InsanelyMac Protégé

  • Members
  • PipPip
  • 51 posts

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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy