Author Topic: Kernel Panic with MacOS X 10.3.5 solved  (Read 8339 times)

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Kernel Panic with MacOS X 10.3.5 solved
« on: August 13, 2004, 03:07:22 pm »
Dear all Mac's:

I have figured out how to solve the issue with MacOS X 10.3.5 running into kernel panic when removing the Zaurus from the cradle.

The issue appears to be a new Ethernet over USB driver provided by Apple called AppleUSBCDCECM. It appears to be intended to run DSL modems connected through USB.

You have to issue the following commands in a MacOS X Terminal window:

Code: [Select]
cd /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns
sudo mv AppleUSBCDCECMControl.kext AppleUSBCDCECMControl.kextoff
sudo mv AppleUSBCDCECMData.kext AppleUSBCDCECMData.kextoff

AND REBOOT!

Then, make sure that AJZaurusUSB is installed and everything should work fine again.

In case you have a Modem using this driver... You have bad luck and must decide between the Modem and the Zaurus.

-- hns
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Kernel Panic with MacOS X 10.3.5 solved
« Reply #1 on: August 13, 2004, 03:11:08 pm »
And here a description why I think it works now:

Here is the panic.log
Code: [Select]
tail -50 /Library/Logs/panic.log

Unresolved kernel trap(cpu 0): 0x300 - Data access DAR=0x0000000000000000 PC=0x0000000000468E50
Latest crash info for cpu 0:
   Exception state (sv=0x24D1E500)
      PC=0x00468E50; MSR=0x00009030; DAR=0x00000000; DSISR=0x40000000; LR=0x0047E270; R1=0x1204BA00; XCP=0x0000000C (0x300 - Data access)
      Backtrace:
         0x0047E9B4 0x0047E270 0x00425AE0 0x004258A0 0x00266BB4 0x00425914 0x0041E1D0 0x00253758
         0x00265688 0x00253D00 0x00253364 0x00246694 0x00246658
      Kernel loadable modules in backtrace (with dependencies):
         com.apple.driver.AppleUSBCDCECMData(3.0.0)@0x47c000
            dependency: com.apple.iokit.IOUSBFamily(2.1.1)@0x44b000
            dependency: com.apple.iokit.IONetworkingFamily(1.4.0)@0x41a000
         com.apple.iokit.IONetworkingFamily(1.4.0)@0x41a000
Proceeding back via exception chain:
   Exception state (sv=0x24D1E500)
      previously dumped as "Latest" state. skipping...
   Exception state (sv=0x24AA8000)
      PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)

Kernel version:
Darwin Kernel Version 7.5.0:
Thu Aug  5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC


panic(cpu 0): 0x300 - Data access
Latest stack backtrace for cpu 0:
      Backtrace:
         0x000836E4 0x00083BC8 0x0001EDA4 0x00090C60 0x0009406C
Proceeding back via exception chain:
   Exception state (sv=0x24D1E500)
      PC=0x00468E50; MSR=0x00009030; DAR=0x00000000; DSISR=0x40000000; LR=0x0047E270; R1=0x1204BA00; XCP=0x0000000C (0x300 - Data access)
      Backtrace:
         0x0047E9B4 0x0047E270 0x00425AE0 0x004258A0 0x00266BB4 0x00425914 0x0041E1D0 0x00253758
         0x00265688 0x00253D00 0x00253364 0x00246694 0x00246658
      Kernel loadable modules in backtrace (with dependencies):
         com.apple.driver.AppleUSBCDCECMData(3.0.0)@0x47c000
            dependency: com.apple.iokit.IOUSBFamily(2.1.1)@0x44b000
            dependency: com.apple.iokit.IONetworkingFamily(1.4.0)@0x41a000
         com.apple.iokit.IONetworkingFamily(1.4.0)@0x41a000
   Exception state (sv=0x24AA8000)
      PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)

Kernel version:
Darwin Kernel Version 7.5.0:
Thu Aug  5 19:26:16 PDT 2004; root:xnu/xnu
*********
showing the crash in com.apple.driver.AppleUSBCDCECMData

Here a list of all USB drivers on MacOS X 10.3.5 (can someone with 10.3.4 please submit his results?)
Code: [Select]
ls -ld /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSB*

drwxr-xr-x  3 root  wheel  102  6 Aug 05:54 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDC.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 05:54 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCACMControl.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 05:54 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCACMData.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 04:31 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCDriver.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 05:54 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCECMControl.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 05:54 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCECMData.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 04:31 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCEthernet.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 05:54 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCWMCControl.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 05:54 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCWMCData.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 04:31 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBComposite.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 04:31 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBEHCI.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 04:31 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBHub.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 04:31 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBMergeNub.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 04:31 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBOHCI.kext
drwxr-xr-x  3 root  wheel  102  6 Aug 04:31 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBOpticalMouse.kext

-- hns
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

Chaos

  • Full Member
  • ***
  • Posts: 197
    • View Profile
    • http://zaurus.duelmonsters.ca
Kernel Panic with MacOS X 10.3.5 solved
« Reply #2 on: August 14, 2004, 09:50:13 pm »
Whoa, I just noticed something. I'm using 10.3.5, and I've been creating a ROM on my Linux box today. I realized that I've been USING THE CRADLE to get the ROM image files on my Z's CF card from OS X. And NO crash. NO problems. It JUST works. Very odd.

All the system.long has in it relating to teh Zaurus being plugged in is...

Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        0        1 Enumerating configurations ...
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        0        0   Config found
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        0        0     Interface found
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        9        4       bLength, bDescriptorType
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        0        0       bInterfaceNumber, bAlternateSetting
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        3        0       bNumEndpoints
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        2        a       bInterfaceClass, bInterfaceSubClass
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        0        4       bInterfaceProtocol, iInterface
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        2        a org_lucidcake_driver_AJZaurusUSB::initDevice - Interface class and sub class
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB: Ethernet address 34:30:30:30:30:00

No problems. I have the kext files that you listed as needing to be moved, but they just aren't an issue for me. Some difference with using a 5600 instead of a 5500 maybe?
Sorry. I just don't have the time...

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Kernel Panic with MacOS X 10.3.5 solved
« Reply #3 on: August 15, 2004, 11:51:10 am »
Quote
Whoa, I just noticed something. I'm using 10.3.5, and I've been creating a ROM on my Linux box today. I realized that I've been USING THE CRADLE to get the ROM image files on my Z's CF card from OS X. And NO crash. NO problems. It JUST works. Very odd.

All the system.long has in it relating to teh Zaurus being plugged in is...

Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        0        1 Enumerating configurations ...
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        0        0   Config found
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        0        0     Interface found
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        9        4       bLength, bDescriptorType
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        0        0       bInterfaceNumber, bAlternateSetting
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        3        0       bNumEndpoints
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        2        a       bInterfaceClass, bInterfaceSubClass
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        0        4       bInterfaceProtocol, iInterface
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB:        2        a org_lucidcake_driver_AJZaurusUSB::initDevice - Interface class and sub class
Aug 14 18:44:30 localhost kernel: org_lucidcake_driver_AJZaurusUSB: Ethernet address 34:30:30:30:30:00

No problems. I have the kext files that you listed as needing to be moved, but they just aren't an issue for me. Some difference with using a 5600 instead of a 5500 maybe?
Yes, maybe! I am not experienced with the details of the USB protocols but I assume that devices are identifying themselves. And there might be a mismatch for the 5500G with something else.

And another idea: if there are two drivers for the same device class it might depend on unknown factors which one gets access. And if it is the AJZaurusUSB first - then it should be ok.

Let's see if others report the same issue. I have filed a Bug Report at Apple.

-- Nikolaus
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

Chaos

  • Full Member
  • ***
  • Posts: 197
    • View Profile
    • http://zaurus.duelmonsters.ca
Kernel Panic with MacOS X 10.3.5 solved
« Reply #4 on: August 15, 2004, 03:35:53 pm »
Quote
Yes, maybe! I am not experienced with the details of the USB protocols but I assume that devices are identifying themselves. And there might be a mismatch for the 5500G with something else.

And another idea: if there are two drivers for the same device class it might depend on unknown factors which one gets access. And if it is the AJZaurusUSB first - then it should be ok.
Yes, devices do identify themselves when plugged in. I remeber a Linux tool called USBView. Unfortunatly when I install it on my Linux box it seems to think I don't have USB support in my kernel (which I do - I use a USB Wireless adapter for internet on it), or I'd get the device info for my 5600 that way.

I'm not very familiar with OS X system layout yet (more used to Linux), but do you know if OS X has an equivalent to Linux's /proc anywhere?
Sorry. I just don't have the time...

qaz2

  • Newbie
  • *
  • Posts: 6
    • View Profile
Kernel Panic with MacOS X 10.3.5 solved
« Reply #5 on: August 17, 2004, 11:01:01 am »
I've renamed the two kexts, and I no longer get a panic on disconnecting, but I now get panics while idle seemingly at random.

Quote
*********

Tue Aug 17 09:12:19 2004


panic(cpu 0): A driver releasing a(n) IOUSBInterface has corrupted the registry

Latest stack backtrace for cpu 0:
      Backtrace:
         0x000836E4 0x00083BC8 0x0001EDA4 0x0028DF10 0x0027C104 0x0027CF68 0x00079AB4 0x00021668
         0x0001BCE8 0x0001C0F0 0x00094358 0x00000000
Proceeding back via exception chain:
   Exception state (sv=0x2D625280)
      PC=0x900074C8; MSR=0x0000F030; DAR=0x0029D894; DSISR=0x40000000; LR=0x90007018; R1=0xBFFFEC70; XCP=0x00000030 (0xC00 - System call)

Kernel version:
Darwin Kernel Version 7.5.0:
Thu Aug  5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC


*********

Could this have anything to do with the Zaurus USB driver?

ganoe

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://
Kernel Panic with MacOS X 10.3.5 solved
« Reply #6 on: August 19, 2004, 11:15:40 am »
I'm having the same problem.  Does renaming the AppleUSBCDCECMData driver work or do panics still occur after the change?  This thread discusses the 10.3.5 update and the AppleUSBCDCECMData driver is either new or updated.  There is likely some kind of incompatible interaction between it and the Zaurus driver.

http://forums.appleinsider.com/showthread....&threadid=45071


Has anyone checked with Andreas (author of the Zaurus driver) about this issue?

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Kernel Panic with MacOS X 10.3.5 solved
« Reply #7 on: September 01, 2004, 09:06:55 am »
Quote
Does renaming the AppleUSBCDCECMData driver work or do panics still occur after the change?

At least fo me it worked without idle issues after renaming - but I have used my own recompiled version of AJZaurusUSB (with Xcode 1.5 on 10.3.5 so it should use the latest interfaces).

Quote
Has anyone checked with Andreas (author of the Zaurus driver) about this issue?
I have discussed shortly with Andreas and he is now aware with the problems.
I have recommended to fix what I think is a bug in the driver and it now does no longer freeze the USB connection after sleep mode of either the Powerbook or the Zaurus. Andreas had some equipment issues so I did not get a response yet.

I have also filed a bug report with Apple - but no response so far.

-- hns
« Last Edit: September 01, 2004, 09:09:19 am by dhns »
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Kernel Panic with MacOS X 10.3.5 solved
« Reply #8 on: September 08, 2004, 01:21:56 pm »
Here a copy from ADC News #412

Quote
----------------------------------------
HARDWARE
----------------------------------------
[3] New Release: USB Debug Kit for Mac OS X 10.3.5

USB Debug Kit for Mac OS X 10.3.5 enables you to log USB activity.
The kit includes the USB Prober application and the usblogger
terminal tool for monitoring USB activity.
http://developer.apple.com/hardware/usb/

This might help with future problems...

-- hns
« Last Edit: September 08, 2004, 01:24:20 pm by dhns »
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

ganoe

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://
Kernel Panic with MacOS X 10.3.5 solved
« Reply #9 on: September 21, 2004, 11:43:57 am »
There is a new 0.2.7 release of the driver online that is supposed to provide a fix for the problem.

http://www.lucid-cake.net/osx_zaurus_usb/index_en.html