Re: Flashing Om2008.8 rootfs under Windows is *LONG*
Andrew Chu wrote: Hi Abdel, Actually, the patch is what is compiled into the 0.1+svn beta version of dfu-util for Win32 on projects.openmoko.org. I'm assuming that that is the version that everyone here is using? Yes for me at least. I also am using WinXP SP2 as Benedikt Schindler on these replies is using as well. For the others who experience long flash times on Windows XP, are you also using SP2? I am using Intel Core2 6420 @ 2.13GHz with 3GB of RAM, and USB 2.0 controller. Here: Intel Core2 Duo E4500 @ 2.20GHz with 2GB of RAM, and USB 2.0 controller. My system was Vista but I just upgraded to Vista SP1 and the duration is about the same. I guess the other question is, who else can flash rootfs in under 20 minutes using dfu-util for Win32? What are your configurations (version of Windows (including Service Pack), type of processor, amount of RAM, USB controller version)? Hopefully we can find a commonality among those that experience the long flash times and among those that do not. I suspect a problem with libusb on Vista. Abdel. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Flashing Om2008.8 rootfs under Windows is *LONG*
On Tue, Sep 2, 2008 at 8:55 AM, Andrew Chu [EMAIL PROTECTED] wrote: Thanks for the feedback that the dfu-util for Win32 is that much slower on Vista. I wasn't aware of that. The changes I made to the dfu-util source code were minimal but they could use a code review (I've posted the diff below). On Windows XP, I've never had to wait more than 20 minutes to flash the rootfs so the issue might be related to Windows Vista, or LibUSB-Win32 on Vista, but unfortunately, I do not have Windows Vista so I cannot debug. If anyone has the same issue on Windows XP, I would like to hear about it. I'm using Windows XP with 512 MB RAM on my laptop. rootfs flashing takes between 1-2 hours IIRC. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Flashing Om2008.8 rootfs under Windows is *LONG*
Nishit Dave wrote: On Tue, Sep 2, 2008 at 8:55 AM, Andrew Chu [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks for the feedback that the dfu-util for Win32 is that much slower on Vista. I wasn't aware of that. The changes I made to the dfu-util source code were minimal but they could use a code review (I've posted the diff below). On Windows XP, I've never had to wait more than 20 minutes to flash the rootfs so the issue might be related to Windows Vista, or LibUSB-Win32 on Vista, but unfortunately, I do not have Windows Vista so I cannot debug. If anyone has the same issue on Windows XP, I would like to hear about it. I'm using Windows XP with 512 MB RAM on my laptop. rootfs flashing takes between 1-2 hours IIRC. Hello Andrew, Just for completeness, my system is an Intel double core with 2GB RAM and Vista. Flashing takes also between 1 and 2 hours. I'll try your patch if I manage to install a mingw environment. Or, if you have it compiled, I'd gladly avoid this installation :-) Abdel. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Flashing Om2008.8 rootfs under Windows is *LONG*
Nishit Dave wrote: I'm using Windows XP with 512 MB RAM on my laptop. rootfs flashing takes between 1-2 hours IIRC. I'm using Windows XP with 1280 MB RAM on my laptop (Centrino 1.7 GHz). rootfs flashing takes 1h15 . ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Flashing Om2008.8 rootfs under Windows is *LONG*
Laptop / winXP SP2 i just need 10 minutes and i think this is normal for 60MB via usb 1.0 yves mahe schrieb: Nishit Dave wrote: I'm using Windows XP with 512 MB RAM on my laptop. rootfs flashing takes between 1-2 hours IIRC. I'm using Windows XP with 1280 MB RAM on my laptop (Centrino 1.7 GHz). rootfs flashing takes 1h15 . ___ 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: Flashing Om2008.8 rootfs under Windows is *LONG*
Benedikt Schindler wrote: Laptop / winXP SP2 i just need 10 minutes and i think this is normal for 60MB via usb 1.0 Usb 1.1 can offer up to 1.5 MB/s so ideally 60MB should be transferred in 40 seconds. This is of course not counting the memory writing on the flash memory which could be slow. But 10 minutes looks also slow to me. Now imagine 2 hours... ;-) Abdel. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Flashing Om2008.8 rootfs under Windows is *LONG*
Hi Abdel, Actually, the patch is what is compiled into the 0.1+svn beta version of dfu-util for Win32 on projects.openmoko.org. I'm assuming that that is the version that everyone here is using? I also am using WinXP SP2 as Benedikt Schindler on these replies is using as well. For the others who experience long flash times on Windows XP, are you also using SP2? I am using Intel Core2 6420 @ 2.13GHz with 3GB of RAM, and USB 2.0 controller. I guess the other question is, who else can flash rootfs in under 20 minutes using dfu-util for Win32? What are your configurations (version of Windows (including Service Pack), type of processor, amount of RAM, USB controller version)? Hopefully we can find a commonality among those that experience the long flash times and among those that do not. Cheers, Andrew Abdelrazak Younes wrote: Nishit Dave wrote: On Tue, Sep 2, 2008 at 8:55 AM, Andrew Chu [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks for the feedback that the dfu-util for Win32 is that much slower on Vista. I wasn't aware of that. The changes I made to the dfu-util source code were minimal but they could use a code review (I've posted the diff below). On Windows XP, I've never had to wait more than 20 minutes to flash the rootfs so the issue might be related to Windows Vista, or LibUSB-Win32 on Vista, but unfortunately, I do not have Windows Vista so I cannot debug. If anyone has the same issue on Windows XP, I would like to hear about it. I'm using Windows XP with 512 MB RAM on my laptop. rootfs flashing takes between 1-2 hours IIRC. Hello Andrew, Just for completeness, my system is an Intel double core with 2GB RAM and Vista. Flashing takes also between 1 and 2 hours. I'll try your patch if I manage to install a mingw environment. Or, if you have it compiled, I'd gladly avoid this installation :-) Abdel. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
RE: Flashing Om2008.8 rootfs under Windows is *LONG*
It takes me about 20min with a recent quad core system, sp2. It takes slightly longer on a linux box with a lighter cpu. Maybe is mostly dependent on underlying usb. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Chu Sent: Tuesday, September 02, 2008 12:53 PM To: community@lists.openmoko.org Subject: Re: Flashing Om2008.8 rootfs under Windows is *LONG* Hi Abdel, Actually, the patch is what is compiled into the 0.1+svn beta version of dfu-util for Win32 on projects.openmoko.org. I'm assuming that that is the version that everyone here is using? I also am using WinXP SP2 as Benedikt Schindler on these replies is using as well. For the others who experience long flash times on Windows XP, are you also using SP2? I am using Intel Core2 6420 @ 2.13GHz with 3GB of RAM, and USB 2.0 controller. I guess the other question is, who else can flash rootfs in under 20 minutes using dfu-util for Win32? What are your configurations (version of Windows (including Service Pack), type of processor, amount of RAM, USB controller version)? Hopefully we can find a commonality among those that experience the long flash times and among those that do not. Cheers, Andrew Abdelrazak Younes wrote: Nishit Dave wrote: On Tue, Sep 2, 2008 at 8:55 AM, Andrew Chu [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks for the feedback that the dfu-util for Win32 is that much slower on Vista. I wasn't aware of that. The changes I made to the dfu-util source code were minimal but they could use a code review (I've posted the diff below). On Windows XP, I've never had to wait more than 20 minutes to flash the rootfs so the issue might be related to Windows Vista, or LibUSB-Win32 on Vista, but unfortunately, I do not have Windows Vista so I cannot debug. If anyone has the same issue on Windows XP, I would like to hear about it. I'm using Windows XP with 512 MB RAM on my laptop. rootfs flashing takes between 1-2 hours IIRC. Hello Andrew, Just for completeness, my system is an Intel double core with 2GB RAM and Vista. Flashing takes also between 1 and 2 hours. I'll try your patch if I manage to install a mingw environment. Or, if you have it compiled, I'd gladly avoid this installation :-) Abdel. ___ 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: Flashing Om2008.8 rootfs under Windows is *LONG*
On Mon, Sep 1, 2008 at 7:01 PM, Abdelrazak Younes [EMAIL PROTECTED] wrote: Hello, I wanted to share my experience with FR and Windows Vista. Well, that was just a first time user experience :-) Abdel. You haven't even tried backing it up. Try and see how long *that* takes. They say it is much, much better with the Linux port of DFU-util (or rather, something is very very wrong with the Windows port). ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Flashing Om2008.8 rootfs under Windows is *LONG*
Nishit Dave wrote: On Mon, Sep 1, 2008 at 7:01 PM, Abdelrazak Younes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, I wanted to share my experience with FR and Windows Vista. Well, that was just a first time user experience :-) Abdel. You haven't even tried backing it up. Try and see how long *that* takes. They say it is much, much better with the Linux port of DFU-util (or rather, something is very very wrong with the Windows port). OK, thanks for the info. Abdel. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Flashing Om2008.8 rootfs under Windows is *LONG*
On Mon, Sep 1, 2008 at 12:57 PM, Abdelrazak Younes [EMAIL PROTECTED] wrote: snip You haven't even tried backing it up. Try and see how long *that* takes. They say it is much, much better with the Linux port of DFU-util (or rather, something is very very wrong with the Windows port). snip I use Vista on my day-to-day working computer. With the FreeRunner it's faster to boot to an Ubuntu live CD and work on the FreeRunner and reboot in Vista for my regular work. I can flash the device a couple of times and experiment with QTopia and OM 2008.8 in the time is would take me to just flash the rootfs for either of those. I think the dfu for windows would benefit from some work. I tried running Ubunto in a VMWare virtual machine but couldn't get a good connection to the FreeRunner. V ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Flashing Om2008.8 rootfs under Windows is *LONG*
Thanks for the feedback that the dfu-util for Win32 is that much slower on Vista. I wasn't aware of that. The changes I made to the dfu-util source code were minimal but they could use a code review (I've posted the diff below). On Windows XP, I've never had to wait more than 20 minutes to flash the rootfs so the issue might be related to Windows Vista, or LibUSB-Win32 on Vista, but unfortunately, I do not have Windows Vista so I cannot debug. If anyone has the same issue on Windows XP, I would like to hear about it. Andrew Index: main.c === --- main.c (revision 4594) +++ main.c (working copy) @@ -26,8 +26,10 @@ #include getopt.h #include usb.h #include errno.h +#ifndef __MINGW32__ #include byteswap.h #include endian.h +#endif #include dfu.h #include usb_dfu.h @@ -37,6 +39,10 @@ #include config.h #endif +#ifdef __MINGW32__ +#define sleep(seconds) Sleep((seconds)*1000) +#endif + #ifdef HAVE_USBPATH_H #include usbpath.h #endif @@ -579,6 +585,20 @@ /* FIXME: check if the selected device really has only one */ +#ifdef __MINGW32__ + int configuration = dif-configuration; + + if (configuration == 0) { + dif-configuration = 1; + } + printf(Setting Configuration %u...\n, dif-configuration); + if (usb_set_configuration(dif-dev_handle, dif-configuration) 0) { + fprintf(stderr, Cannot set configuration: %s\n, usb_strerror()); + exit(1); + } + dif-configuration = configuration; +#endif + printf(Claiming USB DFU Runtime Interface...\n); if (usb_claim_interface(_rt_dif.dev_handle, _rt_dif.interface) 0) { fprintf(stderr, Cannot claim interface: %s\n, usb_strerror()); @@ -700,12 +720,18 @@ exit(1); } -#if 0 +#ifdef __MINGW32__ + int configuration = dif-configuration; + + if (configuration == 0) { + dif-configuration = 1; + } printf(Setting Configuration %u...\n, dif-configuration); if (usb_set_configuration(dif-dev_handle, dif-configuration) 0) { fprintf(stderr, Cannot set configuration: %s\n, usb_strerror()); exit(1); } + dif-configuration = configuration; #endif printf(Claiming USB DFU Interface...\n); if (usb_claim_interface(dif-dev_handle, dif-interface) 0) { Index: sam7dfu.c === --- sam7dfu.c (revision 4594) +++ sam7dfu.c (working copy) @@ -20,6 +20,11 @@ #define O_BINARY 0 #endif +#ifdef __MINGW32__ +#define sleep(seconds) Sleep((seconds)*1000) +#define usleep(microseconds) Sleep((microseconds)/1000) +#endif + int sam7dfu_do_upload(struct usb_dev_handle *usb_handle, int interface, int xfer_size, const char *fname) { Index: usb_dfu.h === --- usb_dfu.h (revision 4594) +++ usb_dfu.h (working copy) @@ -12,6 +12,13 @@ #include sys/types.h +#ifdef __MINGW32__ +#include stdint.h +#define u_int8_t uint8_t +#define u_int16_t uint16_t +#define u_int32_t uint32_t +#endif + #define USB_DT_DFU0x21 struct usb_dfu_func_descriptor { Vinc Duran wrote: On Mon, Sep 1, 2008 at 12:57 PM, Abdelrazak Younes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: snip You haven't even tried backing it up. Try and see how long *that* takes. They say it is much, much better with the Linux port of DFU-util (or rather, something is very very wrong with the Windows port). snip I use Vista on my day-to-day working computer. With the FreeRunner it's faster to boot to an Ubuntu live CD and work on the FreeRunner and reboot in Vista for my regular work. I can flash the device a couple of times and experiment with QTopia and OM 2008.8 in the time is would take me to just flash the rootfs for either of those. I think the dfu for windows would benefit from some work. I tried running Ubunto in a VMWare virtual machine but couldn't get a good connection to the FreeRunner. V ___ 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: Flashing Om2008.8 rootfs under Windows is *LONG*
Try virtualbox. I don't think VMware server has native usb support. VirtualBox however supports any USB device AFAIK -Nick Vinc Duran wrote: On Mon, Sep 1, 2008 at 12:57 PM, Abdelrazak Younes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: snip You haven't even tried backing it up. Try and see how long *that* takes. They say it is much, much better with the Linux port of DFU-util (or rather, something is very very wrong with the Windows port). snip I use Vista on my day-to-day working computer. With the FreeRunner it's faster to boot to an Ubuntu live CD and work on the FreeRunner and reboot in Vista for my regular work. I can flash the device a couple of times and experiment with QTopia and OM 2008.8 in the time is would take me to just flash the rootfs for either of those. I think the dfu for windows would benefit from some work. I tried running Ubunto in a VMWare virtual machine but couldn't get a good connection to the FreeRunner. V ___ 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: Flashing Om2008.8 rootfs under Windows is *LONG*
FWIW, I have a laptop with 2gig ram and the host if Windows XP. I know I know, but for work that's what I need. So I use the free http://virtualbox.org and run a virtualized Ubuntu on my Windows XP SP3 box, but I'm sure it is fine in Vista also. That way one does not have to shutdown one or the other. However to be honest I have not yet bothered to setup usb connect to my FR this way (just lazy) as it so happens to be actually easier to plug it into one of my other machines on my home network which runs ubuntu natively and I just ssh across to the other machine that way. YMMV cheers Denis On Tue, Sep 2, 2008 at 7:57 AM, Vinc Duran [EMAIL PROTECTED] wrote: On Mon, Sep 1, 2008 at 12:57 PM, Abdelrazak Younes [EMAIL PROTECTED] wrote: snip You haven't even tried backing it up. Try and see how long *that* takes. They say it is much, much better with the Linux port of DFU-util (or rather, something is very very wrong with the Windows port). snip I use Vista on my day-to-day working computer. With the FreeRunner it's faster to boot to an Ubuntu live CD and work on the FreeRunner and reboot in Vista for my regular work. I can flash the device a couple of times and experiment with QTopia and OM 2008.8 in the time is would take me to just flash the rootfs for either of those. I think the dfu for windows would benefit from some work. I tried running Ubunto in a VMWare virtual machine but couldn't get a good connection to the FreeRunner. V ___ 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