Re: USB Mass Storage Device with HPS Stack

2008-04-30 Thread Hans Petter Selasky
On Wednesday 30 April 2008, Xiaofan Chen wrote: On Wed, Apr 30, 2008 at 3:59 AM, Hans Petter Selasky [EMAIL PROTECTED] wrote: Maybe you can get my USB stack working on your PIC board? It now supports the Device Side aswell as the host side! See usbd_handle_request in:

Re: USB Mass Storage Device with HPS Stack

2008-04-30 Thread Xiaofan Chen
On Thu, May 1, 2008 at 12:30 AM, Hans Petter Selasky [EMAIL PROTECTED] wrote: Try and find out. I know that many structures can be optimized for minimal memory usage. Currently I reserve space for 128 USB devices and 32 endpoints and interfaces. If you reduce those numbers then you will save

Re: USB Mass Storage Device with HPS Stack

2008-04-29 Thread Xiaofan Chen
On Tue, Apr 29, 2008 at 3:01 PM, Hans Petter Selasky [EMAIL PROTECTED] wrote: If umass is in the kernel you need to rebuild. Else you kldunload umass. I managed to crash the system again when playing with kldload umass and kldunload umass. But maybe the backtrace does not make much sense, to

Re: USB Mass Storage Device with HPS Stack

2008-04-29 Thread Xiaofan Chen
On Tue, Apr 29, 2008 at 7:59 PM, Xiaofan Chen [EMAIL PROTECTED] wrote: One more MP3 player which works under Windows XP and Linux but not FreeBSD 7.0-Release with HPS stack. [EMAIL PROTECTED] ~]# dmesg ... umass1: vendor 0x10d6 USB 2.0(HS) Flash Disk, class 0/0, rev 2.00/1.00, addr 3 on usb2

Re: USB Mass Storage Device with HPS Stack

2008-04-29 Thread Hans Petter Selasky
On Saturday 26 April 2008, Xiaofan Chen wrote: http://sourceforge.net/projects/pic18fusb Hi, This source code is not USB standard compliant and it is not good! For example: //Clear feature void clear_feature(void){ parity.msdi_parity = 0; //reset ep1 in parity UEP1bits.EPSTALL

Re: USB Mass Storage Device with HPS Stack

2008-04-29 Thread Hans Petter Selasky
On Tuesday 29 April 2008, Xiaofan Chen wrote: On Tue, Apr 29, 2008 at 7:59 PM, Xiaofan Chen [EMAIL PROTECTED] wrote: One more MP3 player which works under Windows XP and Linux but not FreeBSD 7.0-Release with HPS stack. Probably your device needs a quirk. --HPS

Re: USB Mass Storage Device with HPS Stack

2008-04-29 Thread Xiaofan Chen
On Wed, Apr 30, 2008 at 3:59 AM, Hans Petter Selasky [EMAIL PROTECTED] wrote: Maybe you can get my USB stack working on your PIC board? It now supports the Device Side aswell as the host side! See usbd_handle_request in:

Re: USB Mass Storage Device with HPS Stack

2008-04-28 Thread Xiaofan Chen
On Mon, Apr 28, 2008 at 4:35 PM, Hans Petter Selasky [EMAIL PROTECTED] wrote: Then try to mount again. You can also try loading ata-usb instead of umass. ata-usb will query the disk size regularly. Hmm, I do not see any thing similar to ata-usb module in the kernel and I can

Re: USB Mass Storage Device with HPS Stack

2008-04-26 Thread Xiaofan Chen
On Sat, Apr 26, 2008 at 5:49 AM, Hans Petter Selasky [EMAIL PROTECTED] wrote: On Friday 25 April 2008, Xiaofan Chen wrote: I've got a free USB flash disk from National Semiconductor. It may be the so-called U3 device since it comes up as a CDROM and a removable USB drive. The removable

Re: USB Mass Storage Device with HPS Stack

2008-04-26 Thread Xiaofan Chen
On Sat, Apr 26, 2008 at 3:19 PM, Xiaofan Chen [EMAIL PROTECTED] wrote: Since I have some other mass storage device and it seems the latest HPS stack works fine with the normal ones (Kingston Data Traveler 256MB, IMation 1GB Flash Drive and Nokia 6280 with 1GB MicroSD card in storage mode)