Re: PICDEM FS USB Bootloader under FreeBSD

2008-04-28 Thread Hans Petter Selasky
On Saturday 26 April 2008, Xiaofan Chen wrote: On Sat, Apr 26, 2008 at 12:49 AM, Hans Petter Selasky [EMAIL PROTECTED] wrote: Hi, 1) Try to get debugging from USB instead of OHCI. sysctl hw.usb.ohci.debug=0 sysctl hw.usb.debug=15 Retry. Maybe this is a stupid question

Re: PICDEM FS USB Bootloader under FreeBSD

2008-04-28 Thread Xiaofan Chen
On Mon, Apr 28, 2008 at 4:37 PM, Hans Petter Selasky [EMAIL PROTECTED] wrote: Maybe this is a stupid question but how do I compile ugen only and not the whole kernel? You can get ugen alone by using loading the ugen module: kldload ugen kldunload ugen I know this one. Actually my

Re: PICDEM FS USB Bootloader under FreeBSD

2008-04-25 Thread Hans Petter Selasky
Hi, 1) Try to get debugging from USB instead of OHCI. sysctl hw.usb.ohci.debug=0 sysctl hw.usb.debug=15 Retry. 2) Patch /sys/dev/usb/ugen.c Change all lines looking like the following, that are not in a function named xxx_callback: sce-read_stall = 1; sce-write_stall = 1; Into:

Re: PICDEM FS USB Bootloader under FreeBSD

2008-04-25 Thread Hans Petter Selasky
On Friday 25 April 2008, Xiaofan Chen wrote: On Tue, Oct 16, 2007 at 9:34 PM, Xiaofan Chen [EMAIL PROTECTED] wrote: On 10/13/07, Xiaofan Chen [EMAIL PROTECTED] wrote: On 10/13/07, Hans Petter Selasky [EMAIL PROTECTED] wrote: This does not work either with 7.0-Release and the HPS USB

Re: PICDEM FS USB Bootloader under FreeBSD

2008-04-25 Thread Xiaofan Chen
On Sat, Apr 26, 2008 at 5:54 AM, Hans Petter Selasky [EMAIL PROTECTED] wrote: On Friday 25 April 2008, Xiaofan Chen wrote: This does not work either with 7.0-Release and the HPS USB stack. I will update to the latest SVN version of the HPS stack and see if the situation will improve. The

Re: PICDEM FS USB Bootloader under FreeBSD

2008-04-25 Thread Xiaofan Chen
On Sat, Apr 26, 2008 at 12:46 PM, Xiaofan Chen [EMAIL PROTECTED] wrote: On Sat, Apr 26, 2008 at 11:50 AM, Xiaofan Chen [EMAIL PROTECTED] wrote: 2) Patch /sys/dev/usb/ugen.c Change all lines looking like the following, that are not in a function named xxx_callback:

Re: PICDEM FS USB Bootloader under FreeBSD

2008-04-24 Thread Xiaofan Chen
On Tue, Oct 16, 2007 at 9:34 PM, Xiaofan Chen [EMAIL PROTECTED] wrote: On 10/13/07, Xiaofan Chen [EMAIL PROTECTED] wrote: On 10/13/07, Hans Petter Selasky [EMAIL PROTECTED] wrote: I think that the write STALLED. You can check this by turning on debugging on the OHCI controller by:

Re: PICDEM FS USB Bootloader under FreeBSD

2007-10-16 Thread Xiaofan Chen
On 10/13/07, Xiaofan Chen [EMAIL PROTECTED] wrote: On 10/13/07, Hans Petter Selasky [EMAIL PROTECTED] wrote: I think that the write STALLED. You can check this by turning on debugging on the OHCI controller by: systctl hw.usb.ohci.debug=15 Replace ohci by ehci or uhci if you are using

Re: PICDEM FS USB Bootloader under FreeBSD

2007-10-13 Thread Xiaofan Chen
On 10/13/07, Hans Petter Selasky [EMAIL PROTECTED] wrote: I think that the write STALLED. You can check this by turning on debugging on the OHCI controller by: systctl hw.usb.ohci.debug=15 Replace ohci by ehci or uhci if you are using such controllers. Strange today reading seems to work. I

PICDEM FS USB Bootloader under FreeBSD

2007-10-12 Thread Xiaofan Chen
I am trying to get the PICDEM FS USB demo board working under FreeBSD. There are two libusb based application for it which work under Linux and Windows. I am now trying to get the bootloader working first. It is not working. Possibly this is again a firmware bug related issue but I would like to

Re: PICDEM FS USB Bootloader under FreeBSD

2007-10-12 Thread Hans Petter Selasky
On Friday 12 October 2007, Xiaofan Chen wrote: I am trying to get the PICDEM FS USB demo board working under FreeBSD. There are two libusb based application for it which work under Linux and Windows. I am now trying to get the bootloader working first. It is not working. Possibly this is again