Re: FreeBSD / dfu-util
> have you got libusb somewhere? OSX needs it too, btw .. according to google libusb is available via fink. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
Hello, On Wed, Jul 23, 2008 at 10:20 PM, Jay Vaughan <[EMAIL PROTECTED]> wrote: > > have you got libusb somewhere? OSX needs it too, btw .. libusb is available in ports on FreeBSD: http://www.freshports.org/devel/libusb/ HTH -- Regards, Torfinn Ingolfsen ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
Thanks for the replies everyone. Yes, I was booting up; I wasn't reading carefully enough I guess :( --- but it doesn't really matter from the looks of it, seeing as how one can't flash from fbsd yet anyway. As far as libusb goes, it's in the FreeBSD ports tree (I think it was devel/libusb) Best Regards, Ben Cadieux ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
> Here are the binaries (for both 6.3 and 7.0) I managed to build: > http://www.heesakkers.info/showandtell/dfu/ have you got libusb somewhere? OSX needs it too, btw .. ; -- Jay Vaughan ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
Op Tuesday 22 July 2008 19:45:20 schreef Ben Cadieux: > I notice some comments in there with regards to FBSD, so maybe it does > work and I'm screwing something up :) > Here are the binaries (for both 6.3 and 7.0) I managed to build: http://www.heesakkers.info/showandtell/dfu/ They manage to list the device, but not flash the device, because dfu-util needs to call usb_reset, which isn't implemented on BSD. I posted a question on freebsd-usb about this and the only response so far is: "The official USB stack has no IOCTL for this. What you can do is to turn off the port power on the HUB manually, using an USB control request." http://lists.freebsd.org/pipermail/freebsd-usb/2008-July/005212.html I don't know how to hack this properly. Simply removing the usb_reset call did not work (naturally). ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
On Wed, Jul 23, 2008 at 10:51 AM, Andrew Burgess <[EMAIL PROTECTED]> wrote: > > Back in the GUI? > This sounds like you booted all the way which is incorrect. > I made the same mistake and there was another post here that also made > that mistake. The wiki is correct but easy to misread. I'll fix it. > > You need to be >>at the boot menu<< on the FR to run dfu-util. > In addition, if you wait long enough on the NAND/NOR u-boot screen the Freerunner shuts down again. I boot into NOR u-boot and then issue the command: sudo ./dfu-util --list This lists the "available devices", of which there should only be one. If you've waited too long, it will say no devices are available. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
On 7/22/08, Ben Cadieux <[EMAIL PROTECTED]> wrote: > > it might be a stupid comment, but have you booted the freerunner in NOR? > > > > Yes, I held AUX while turning on, got the boot menu with [NOR] next to > it and booted up. I assume everything went okay. I wasn't expecting > to be back in the GUI and using the phone as usual, but that's how it > is. Back in the GUI? This sounds like you booted all the way which is incorrect. I made the same mistake and there was another post here that also made that mistake. The wiki is correct but easy to misread. I'll fix it. You need to be >>at the boot menu<< on the FR to run dfu-util. Apologies if I misunderstood you (I'm good at that) Andrew Burgess ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
> Which FreeBSD version and arch (i386? amd64?) 6.3-STABLE for i386 - I've tried on two machines. My home machine is 7.0 -- I'll have to try it when I'm home. > Did you just follow the OS X procedure, or something else? Actually I followed the Linux instructions and then noticed I got the same errors as OS/X so used that little patch. If anyone's curious, yes I'm running as rood, and yes usbdevs shows the device, and...yes it works with USB networking. I'll let you know how 7.0 goes, thanks Torfinn. Best Regards, Ben Cadieux ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
Hello, On Tue, Jul 22, 2008 at 7:37 PM, Ben Cadieux <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I got dfu-util to compile using the OSX patch for endian.h & byteswap.h. Which FreeBSD version and arch (i386? amd64?) Did you just follow the OS X procedure, or something else? > developers of something unrelated to be ported to FBSD...is there > anyone that would like to take a crack at this? Well I could help out with testing and bug-finding at least. i have both amd64 and i386 FreeBSD machines. They normally run FreeBSD 7.0-stable, but can also run FreeBSD 6.3-stable if needed. Ideally, I would like to be able to run both dfu-util and the Openmoko development environment under FreeBSD. Just because it sjuold be possible. :-) HTH -- Regards, Torfinn Ingolfsen ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
> it might be a stupid comment, but have you booted the freerunner in NOR? > Yes, I held AUX while turning on, got the boot menu with [NOR] next to it and booted up. I assume everything went okay. I wasn't expecting to be back in the GUI and using the phone as usual, but that's how it is. Best Regards, Ben Cadieux ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
I've tracked down a little more. In main.c, in the function list_dfu_interfaces(void) around line ~310...The USB tree is being walked, and 4 devices are detected (root hubs?). However, the for(dev = usb_bus->devices;.) loop never executes. dev = usb_bus -> devices doesn't seem to return anything ever. I've been poking around usbdevs.c, a FreeBSD command that returns USB hubs and their devices, to see what's being done differently, but haven't gotten anywhere so far. Best Regards, Ben Cadieux ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
it might be a stupid comment, but have you booted the freerunner in NOR? On Tue, Jul 22, 2008 at 7:45 PM, Ben Cadieux <[EMAIL PROTECTED]> wrote: > I notice some comments in there with regards to FBSD, so maybe it does > work and I'm screwing something up :) > > > > On Tue, Jul 22, 2008 at 10:37 AM, Ben Cadieux <[EMAIL PROTECTED]> wrote: >> Hi Everyone, >> >> I got dfu-util to compile using the OSX patch for endian.h & byteswap.h. >> >> Unfortunately, -l lists no USB devices. I've tried using the --device >> parameter, but that doesn't seem to help --- dfu-util sticks to its >> guns that there are no DFU compatible devices. >> >> I'm going to be setting up a FBSD box at some point to give some >> developers of something unrelated to be ported to FBSD...is there >> anyone that would like to take a crack at this? >> >> Best Regards, >> Ben Cadieux >> > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: FreeBSD / dfu-util
I notice some comments in there with regards to FBSD, so maybe it does work and I'm screwing something up :) On Tue, Jul 22, 2008 at 10:37 AM, Ben Cadieux <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I got dfu-util to compile using the OSX patch for endian.h & byteswap.h. > > Unfortunately, -l lists no USB devices. I've tried using the --device > parameter, but that doesn't seem to help --- dfu-util sticks to its > guns that there are no DFU compatible devices. > > I'm going to be setting up a FBSD box at some point to give some > developers of something unrelated to be ported to FBSD...is there > anyone that would like to take a crack at this? > > Best Regards, > Ben Cadieux > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
FreeBSD / dfu-util
Hi Everyone, I got dfu-util to compile using the OSX patch for endian.h & byteswap.h. Unfortunately, -l lists no USB devices. I've tried using the --device parameter, but that doesn't seem to help --- dfu-util sticks to its guns that there are no DFU compatible devices. I'm going to be setting up a FBSD box at some point to give some developers of something unrelated to be ported to FBSD...is there anyone that would like to take a crack at this? Best Regards, Ben Cadieux ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community