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

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Ajzaurususb Patch For Openmoko
dhns
post Aug 1 2007, 05:12 PM
Post #1





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



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
Go to the top of the page
 
+Quote Post
koen
post Aug 1 2007, 09:46 PM
Post #2





Group: Members
Posts: 1,014
Joined: 4-January 05
From: Enschede, The Netherlands
Member No.: 6,107



The upload util works fine on my mac
Go to the top of the page
 
+Quote Post
dhns
post Aug 2 2007, 02:01 AM
Post #3





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



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?
Go to the top of the page
 
+Quote Post
koen
post Aug 2 2007, 02:09 AM
Post #4





Group: Members
Posts: 1,014
Joined: 4-January 05
From: Enschede, The Netherlands
Member No.: 6,107



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.
Go to the top of the page
 
+Quote Post
dhns
post Aug 2 2007, 03:54 AM
Post #5





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



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





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



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
Go to the top of the page
 
+Quote Post
dhns
post Aug 10 2007, 07:09 AM
Post #7





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



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
Go to the top of the page
 
+Quote Post
Mickeyl
post Aug 12 2007, 04:55 AM
Post #8





Group: Members
Posts: 1,497
Joined: 12-November 03
From: Germany
Member No.: 907



Good work, thanks.
Go to the top of the page
 
+Quote Post

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

 



RSS Lo-Fi Version Time is now: 30th October 2014 - 04:14 AM