Author Topic: Ajzaurususb Patch For Openmoko  (Read 12615 times)

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Ajzaurususb Patch For Openmoko
« on: August 01, 2007, 09:12:31 pm »
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: [Select]
Before rebooting (!) add this to /System/Library/Extensions/AJZaurusUSB.kext/Contents/Info.plist

  OpenMoko
  
      CFBundleIdentifier
      net.lucid-cake.driver.AJZaurusUSB
      IOClass
      net_lucid_cake_driver_AJZaurusUSB
      IOProbeScore
      90000
      IOProviderClass
      IOUSBDevice
      defaultIP
      192.168.0.202
      idProduct
      20770
      idVendor
      5207
  

-- hns
« Last Edit: August 01, 2007, 09:13:09 pm by dhns »
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Ajzaurususb Patch For Openmoko
« Reply #1 on: August 02, 2007, 01:46:28 am »
The upload util works fine on my mac
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Ajzaurususb Patch For Openmoko
« Reply #2 on: August 02, 2007, 06:01:18 am »
Quote
The upload util works fine on my mac
[div align=\"right\"][a href=\"index.php?act=findpost&pid=165643\"][{POST_SNAPBACK}][/a][/div]
Is there a location to download a binary anywhere?
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Ajzaurususb Patch For Openmoko
« Reply #3 on: August 02, 2007, 06:09:43 am »
Quote
Quote
The upload util works fine on my mac
[div align=\"right\"][a href=\"index.php?act=findpost&pid=165643\"][{POST_SNAPBACK}][/a][/div]
Is there a location to download a binary anywhere?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=165653\"][{POST_SNAPBACK}][/a][/div]

No, but the source is available.
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Ajzaurususb Patch For Openmoko
« Reply #4 on: August 02, 2007, 07:54:35 am »
Quote
Quote
Quote
The upload util works fine on my mac
[div align=\"right\"][a href=\"index.php?act=findpost&pid=165643\"][{POST_SNAPBACK}][/a][/div]
Is there a location to download a binary anywhere?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=165653\"][{POST_SNAPBACK}][/a][/div]

No, but the source is available.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=165654\"][{POST_SNAPBACK}][/a][/div]
And that is the issue - it does not compile out of the box.

-- 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
Ajzaurususb Patch For Openmoko
« Reply #5 on: August 02, 2007, 03:00:39 pm »
Quote
And that is the issue - it does not compile out of the box.

-- hns
[div align=\"right\"][a href=\"index.php?act=findpost&pid=165657\"][{POST_SNAPBACK}][/a][/div]
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: [Select]
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
« Last Edit: August 02, 2007, 05:23:03 pm 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
Ajzaurususb Patch For Openmoko
« Reply #6 on: August 10, 2007, 11:09:35 am »
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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Ajzaurususb Patch For Openmoko
« Reply #7 on: August 12, 2007, 08:55:30 am »
Good work, thanks.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.