Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-03 Thread Eric W. Biederman
Peter Stuge <[EMAIL PROTECTED]> writes: > On Fri, Dec 01, 2006 at 04:02:03PM -0700, Eric W. Biederman wrote: >> >> Sure, I will send it out shortly. I currently have a working >> >> user space libusb thing (easy, but useful for my debug) >> > >> > Hm - for driving which end? >> >> Either. The s

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-03 Thread Peter Stuge
On Fri, Dec 01, 2006 at 04:02:03PM -0700, Eric W. Biederman wrote: > >> Sure, I will send it out shortly. I currently have a working > >> user space libusb thing (easy, but useful for my debug) > > > > Hm - for driving which end? > > Either. The specific device we are talking about doesn't care.

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-03 Thread Eric W. Biederman
Greg KH <[EMAIL PROTECTED]> writes: > On Fri, Dec 01, 2006 at 10:55:48AM -0800, Lu, Yinghai wrote: >> -Original Message- >> From: Greg KH [mailto:[EMAIL PROTECTED] >> >> >I can do that in about 15 minutes if you give me the device ids for the >> >usb debug device that you wish to have. >

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-03 Thread Eric W. Biederman
Stefan Reinauer <[EMAIL PROTECTED]> writes: > * Segher Boessenkool <[EMAIL PROTECTED]> [061203 13:42]: >> On LPC, yes -- or 0.5us or something like that. On ISA it's >> a lot faster, on PCI too -- better do 20 or so outb's to be >> safe. > > The value's actually something we have been using as a

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-03 Thread Stefan Reinauer
* Segher Boessenkool <[EMAIL PROTECTED]> [061203 13:42]: > On LPC, yes -- or 0.5us or something like that. On ISA it's > a lot faster, on PCI too -- better do 20 or so outb's to be > safe. The value's actually something we have been using as a rule of thumb while doing outb to port 80. Don't thin

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-03 Thread Segher Boessenkool
you could use io delay, one outb uses roughly 1us iirc. On LPC, yes -- or 0.5us or something like that. On ISA it's a lot faster, on PCI too -- better do 20 or so outb's to be safe. Or use a *real* timer instead, you'll have to abstract this for portability anyway... Segher - To unsubscribe

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-03 Thread Stefan Reinauer
* Eric W. Biederman <[EMAIL PROTECTED]> [061203 12:51]: > > BTW in kernel earlyprintk or prink, you could use > > read_pci_config/write_pci_config before PCI system is loaded. > > Yep thanks that seems to be working. Now I just need > to find an early delay and I can try this mess out! you could

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-03 Thread Eric W. Biederman
yhlu <[EMAIL PROTECTED]> writes: > On 12/2/06, Eric W. Biederman <[EMAIL PROTECTED]> wrote: >> Please yank the direct out of the filename if you are making something >> like this out of it. That was my note I was going direct to hardware >> which is pretty much assumed if you are in LinuxBIOS. >

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-02 Thread yhlu
On 12/2/06, Eric W. Biederman <[EMAIL PROTECTED]> wrote: Please yank the direct out of the filename if you are making something like this out of it. That was my note I was going direct to hardware which is pretty much assumed if you are in LinuxBIOS. Yes, I adapted the code to used in LinuxBIO

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-02 Thread Eric W. Biederman
"Lu, Yinghai" <[EMAIL PROTECTED]> writes: > Thanks for the code. > > In LinuxBIOS, > I put usbdevice_direct.c in lib/, and call it from usb2_init in > mcp55_usb2.c > > Got > "No device in debug port" > > Waiting for cable, hope to get that cable next Tuesday. > > Will create usbdebug_direct_conso

RE: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Lu, Yinghai
Thanks for the code. In LinuxBIOS, I put usbdevice_direct.c in lib/, and call it from usb2_init in mcp55_usb2.c Got "No device in debug port" Waiting for cable, hope to get that cable next Tuesday. Will create usbdebug_direct_console.c in console/ for linuxbios_ram code. also usbdebug_direct_s

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Eric W. Biederman
Greg KH <[EMAIL PROTECTED]> writes: > On Fri, Dec 01, 2006 at 10:55:48AM -0800, Lu, Yinghai wrote: >> -Original Message- >> From: Greg KH [mailto:[EMAIL PROTECTED] >> >> >I can do that in about 15 minutes if you give me the device ids for the >> >usb debug device that you wish to have. >

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Eric W. Biederman
Peter Stuge <[EMAIL PROTECTED]> writes: > On Fri, Dec 01, 2006 at 02:15:24PM -0700, Eric W. Biederman wrote: >> Right. For LinuxBIOS not a problem for earlyprintk in the kernel >> somethings might need to be refactored. The challenge in the >> kernel is we don't know at build to how to do a pci_

RE: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Lu, Yinghai
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 1:15 PM Peter Stuge <[EMAIL PROTECTED]> writes: >> On Fri, Dec 01, 2006 at 11:19:16AM -0800, Greg KH wrote: >>> Well, earlyprintk will not work, as you need PCI up and running. >> >> Not

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Peter Stuge
On Fri, Dec 01, 2006 at 02:15:24PM -0700, Eric W. Biederman wrote: > Right. For LinuxBIOS not a problem for earlyprintk in the kernel > somethings might need to be refactored. The challenge in the > kernel is we don't know at build to how to do a pci_read_config... > > The other hard part early

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Eric W. Biederman
Peter Stuge <[EMAIL PROTECTED]> writes: > On Fri, Dec 01, 2006 at 11:19:16AM -0800, Greg KH wrote: >> Well, earlyprintk will not work, as you need PCI up and running. > > Not all of it though. LinuxBIOS will probably do just enough PCI > setup to talk to the EHCI controller and use the debug port

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Peter Stuge
On Fri, Dec 01, 2006 at 11:19:16AM -0800, Greg KH wrote: > Well, earlyprintk will not work, as you need PCI up and running. Not all of it though. LinuxBIOS will probably do just enough PCI setup to talk to the EHCI controller and use the debug port _very_ soon after power on. > And I have some c

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Greg KH
On Fri, Dec 01, 2006 at 10:55:48AM -0800, Lu, Yinghai wrote: > -Original Message- > From: Greg KH [mailto:[EMAIL PROTECTED] > > >I can do that in about 15 minutes if you give me the device ids for the > >usb debug device that you wish to have. > > >Or you can also use the generic usb-ser

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Greg KH
On Fri, Dec 01, 2006 at 08:04:26PM +0100, Peter Stuge wrote: > On Fri, Dec 01, 2006 at 10:41:23AM -0800, Greg KH wrote: > > On Fri, Dec 01, 2006 at 10:26:19AM -0800, Lu, Yinghai wrote: > > > Anyone is working on creating one usb_serial_driver for USB debug > > > device without using host debug port

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Peter Stuge
On Fri, Dec 01, 2006 at 10:41:23AM -0800, Greg KH wrote: > On Fri, Dec 01, 2006 at 10:26:19AM -0800, Lu, Yinghai wrote: > > Anyone is working on creating one usb_serial_driver for USB debug > > device without using host debug port? > > I can do that in about 15 minutes if you give me the device id

RE: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Lu, Yinghai
-Original Message- From: Greg KH [mailto:[EMAIL PROTECTED] >I can do that in about 15 minutes if you give me the device ids for the >usb debug device that you wish to have. >Or you can also use the generic usb-serial driver today just fine with >no modification. Have you had a problem w

Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Greg KH
On Fri, Dec 01, 2006 at 10:26:19AM -0800, Lu, Yinghai wrote: > -Original Message- > From: Lu, Yinghai > > >To my understanding, you don't need to waiting for Eric's code. > >You can use the cable on two systems without debug port support. > >So just extend the program to make it can write

RE: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device

2006-12-01 Thread Lu, Yinghai
-Original Message- From: Lu, Yinghai >To my understanding, you don't need to waiting for Eric's code. >You can use the cable on two systems without debug port support. >So just extend the program to make it can write the data too. Greg, Anyone is working on creating one usb_serial_drive