Re: [U-Boot] NetRxPackets

2011-01-19 Thread Vitaly Kuzmichev
Hi Marcel, Marcel wrote: >> Not sure that branch is anything up to date > > hmmm. What branch is best to work on for this code ? If someone sends USB-CDC patches they usually are applied into master branch of u-boot-usb.git repository: http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot/u-boot-us

Re: [U-Boot] NetRxPackets

2011-01-18 Thread Marcel
On Tuesday, January 18, 2011 11:53:38 pm Wolfgang Denk wrote: > Dear Marcel, > > In message <201101182337.32274.korg...@home.nl> you wrote: > > > Hint: have a look at "net/net.c". > > > > I found that, but it doesn't make sense to me. I'll read it again and > > hopefully it makes sense to me than

Re: [U-Boot] NetRxPackets

2011-01-18 Thread Marcel
On Tuesday, January 18, 2011 11:54:22 pm Reinhard Meyer wrote: > Dear Marcel, > > >> Well,you're supposed to do some basic code reading yourself. > > > > Of course. It's always the idea to post a question after reading for some > > time. It either means I don't understand the code, the code reall

Re: [U-Boot] NetRxPackets

2011-01-18 Thread Wolfgang Denk
Dear Marcel, In message <201101182337.32274.korg...@home.nl> you wrote: > > > Hint: have a look at "net/net.c". > > I found that, but it doesn't make sense to me. I'll read it again and > hopefully it makes sense to me than. Anyway, my knowledge of the ethernet > part > in u-boot is limited a

Re: [U-Boot] NetRxPackets

2011-01-18 Thread Reinhard Meyer
Dear Marcel, >> Well,you're supposed to do some basic code reading yourself. > > Of course. It's always the idea to post a question after reading for some > time. It either means I don't understand the code, the code really doesn't > work or I did miss the most important part in the documents. I gu

Re: [U-Boot] NetRxPackets

2011-01-18 Thread Marcel
Hi Wolfgang, > > Nobody ? > > Well,you're supposed to do some basic code reading yourself. Of course. It's always the idea to post a question after reading for some time. It either means I don't understand the code, the code really doesn't work or I did miss the most important part in the docu

Re: [U-Boot] NetRxPackets

2011-01-18 Thread Wolfgang Denk
Dear Marcel, In message <201101182208.33651.korg...@home.nl> you wrote: > > > Anyone have an idea how NetRxPackets is allocated ? > > Nobody ? Well,you're supposed to do some basic code reading yourself. > req->buf = (u8 *) NetRxPackets[0]; > > This is returning an non existing buffer for some

Re: [U-Boot] NetRxPackets

2011-01-18 Thread Marcel
On Tuesday, January 18, 2011 01:15:25 am Marcel wrote: > Hi, > > ether.c contains the following code : > > req->buf = (u8 *) NetRxPackets[0]; > req->length = size; > req->complete = rx_complete; > > retval = usb_ep_queue(dev->out_ep, req, gfp_flags); > > > My USB contr