Help - Search - Members - Calendar
Full Version: Ajzaurususb Patch For Openmoko
OESF Forums > General Forums > Desktop Operating Systems Issues > Mac Issues
dhns
not yet completely tested since the OpenMoko must be flashed first with a new rootfs - and the tools are not yet available for MacOS X.

But it is clear that AJZaurusUSB up to 0.5.1 will need this patch to know the OpenMoko device
CODE
Before rebooting (!) add this to /System/Library/Extensions/AJZaurusUSB.kext/Contents/Info.plist

 <key>OpenMoko</key>
 <dict>
     <key>CFBundleIdentifier</key>
     <string>net.lucid-cake.driver.AJZaurusUSB</string>
     <key>IOClass</key>
     <string>net_lucid_cake_driver_AJZaurusUSB</string>
     <key>IOProbeScore</key>
     <string>90000</string>
     <key>IOProviderClass</key>
     <string>IOUSBDevice</string>
     <key>defaultIP</key>
     <string>192.168.0.202</string>
     <key>idProduct</key>
     <integer>20770</integer>
     <key>idVendor</key>
     <integer>5207</integer>
 </dict>


-- hns
koen
The upload util works fine on my mac
dhns
QUOTE(koen @ Aug 2 2007, 06:46 AM)
The upload util works fine on my mac
*

Is there a location to download a binary anywhere?
koen
QUOTE(dhns @ Aug 2 2007, 10:01 AM)
QUOTE(koen @ Aug 2 2007, 06:46 AM)
The upload util works fine on my mac
*

Is there a location to download a binary anywhere?
*



No, but the source is available.
dhns
QUOTE(koen @ Aug 2 2007, 11:09 AM)
QUOTE(dhns @ Aug 2 2007, 10:01 AM)
QUOTE(koen @ Aug 2 2007, 06:46 AM)
The upload util works fine on my mac
*

Is there a location to download a binary anywhere?
*



No, but the source is available.
*


And that is the issue - it does not compile out of the box.

-- hns
dhns
QUOTE(dhns @ Aug 2 2007, 12:54 PM)
And that is the issue - it does not compile out of the box.

-- hns
*

The compilation issue has been solved by patching the Makefile manually to link to Darwin Ports' libusb. Another issue is when no device is connected, that the code dereferences some NULL pointers and ends up in bus erros.

Now, there is the next issue:
CODE
MacBook-hns: hns$ ./dfu-util -a 5 -R -D 'openmoko-devel-image-fic-gta01-20070728081358.rootfs.jffs2'
dfu-util - (C) 2007 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

Opening USB Device 0x0000:0x0000...
Claiming USB DFU Runtime Interface...
Determining device status: state = appIDLE, status = 0
Device really in Runtime Mode, send DFU detach request...
Resetting USB...
error resetting after detach: usb_reset(ResetDevice): device not opened for exclusive access
Opening USB Device...
Found Runtime: [0x1457:0x5119] devnum=0, cfg=0, intf=0, alt=5, name="rootfs"
Claiming USB DFU Interface...
Setting Alternate Setting ...
Cannot set alternate interface: usb_set_altinterface: could not set alternate interface


-- hns
dhns
AJZaurusUSB 0.5.3 is available.

It fixes the Info.plist for OpenMoko and has a new scheme to determine the Ethernet MAC address (which was randomized on the OpenMoko on each reboot). Now, you should see in the System Settings / Network only one Interface per device type.

Please note that AJZaurusUSB can basically support multiple devices connected through USB - but since neither the Zaurus nor the OpenMoko provide a clear serial number, you can connect only one of each type. If you connect two Zaurus devices or two OpenMoko devices, they will be configured to the same IP address.

If someone has an idea how to read a unique ID from the USB interface, this could be improved.

-- hns
Mickeyl
Good work, thanks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.