OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Kernel Panic with MacOS X 10.3.5 solved
dhns
post Aug 13 2004, 11:07 AM
Post #1





Group: Members
Posts: 699
Joined: 26-February 04
From: near Munich, Germany
Member No.: 2,043



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
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
Go to the top of the page
 
+Quote Post
dhns
post Aug 13 2004, 11:11 AM
Post #2





Group: Members
Posts: 699
Joined: 26-February 04
From: near Munich, Germany
Member No.: 2,043



And here a description why I think it works now:

Here is the panic.log
CODE
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
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
Go to the top of the page
 
+Quote Post
Chaos
post Aug 14 2004, 05:50 PM
Post #3





Group: Members
Posts: 197
Joined: 11-August 04
From: BC, Canada
Member No.: 4,255



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?
Go to the top of the page
 
+Quote Post
dhns
post Aug 15 2004, 07:51 AM
Post #4





Group: Members
Posts: 699
Joined: 26-February 04
From: near Munich, Germany
Member No.: 2,043



QUOTE(Chaos @ Aug 15 2004, 02:50 AM)
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
Go to the top of the page
 
+Quote Post
Chaos
post Aug 15 2004, 11:35 AM
Post #5





Group: Members
Posts: 197
Joined: 11-August 04
From: BC, Canada
Member No.: 4,255



QUOTE(dhns @ Aug 15 2004, 08:51 AM)
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?
Go to the top of the page
 
+Quote Post
qaz2
post Aug 17 2004, 07:01 AM
Post #6





Group: Members
Posts: 6
Joined: 16-August 04
Member No.: 4,305



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?
Go to the top of the page
 
+Quote Post
ganoe
post Aug 19 2004, 07:15 AM
Post #7





Group: Members
Posts: 65
Joined: 31-January 04
Member No.: 1,607



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?
Go to the top of the page
 
+Quote Post
dhns
post Sep 1 2004, 05:06 AM
Post #8





Group: Members
Posts: 699
Joined: 26-February 04
From: near Munich, Germany
Member No.: 2,043



QUOTE(ganoe @ Aug 19 2004, 04:15 PM)
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
Go to the top of the page
 
+Quote Post
dhns
post Sep 8 2004, 09:21 AM
Post #9





Group: Members
Posts: 699
Joined: 26-February 04
From: near Munich, Germany
Member No.: 2,043



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
Go to the top of the page
 
+Quote Post
ganoe
post Sep 21 2004, 07:43 AM
Post #10





Group: Members
Posts: 65
Joined: 31-January 04
Member No.: 1,607



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2014 - 01:39 AM