Re: [RFC v2 00/16] barebox picotcp integration (2015.07.19)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 20, 2015 at 01:06:49PM +0300, Antony Pavlov wrote:
> On Mon, 20 Jul 2015 09:10:13 +0200
> Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> wrote:
> 
> > Hi Antony,
> > 
> > On Sun, Jul 19, 2015 at 11:07:07PM +0300, Antony Pavlov wrote:
> > > I have just published latest picotcp-enabled barebox.
> > > Please see my 20150719.picotcp branch in my github barebox repo
> > > (https://github.com/frantony/barebox/tree/20150719.picotcp).
> > > 
> > > This version is based on the latest barebox-next and picotcp v1.5.0
> > > (there is also picotcp v1.5.1, but is has no interested
> > > for barebox changes since v1.5.0).
> > > 
> > > 
> > > Changes since 2015.07.15 (see http://lists.infradead.org/pipermail/barebox/2015-June/024174.html):
> > > 
> > >     * net: UDP API changed to satisfy the picotcp integration needs;
> > >     * nfs, tftp and dns subsystems have no picotcp-related stuff anymore.
> > >     * netconsole works on top of picotcp with no additional changes.
> > > 
> > > 
> > > Here are some notes:
> > > 
> > >   1. just now tftp/nfs file transfer on top of picotcp is slower than
> > >      the same transfer on top of legacy network stack;
> > > 
> > >   2. there is no $<current network interface> anymore,
> > >      so dhcp, tftp and ifup commands don't work on top of picotcp.
> > >      The ifconfig command is used for network interfaces setup.
> > > 
> > >      N.B. There is an old patch for dhcp support on top of picotcp
> > >         https://github.com/frantony/barebox/commit/94021b6d7bb933cd50b7ea9e2c55725b5c404205
> > > 
> > >   3. The picoping command is used insted of traditional ping command.
> > 
> > First of all I applied patches 1-4 to next.
> 
> Sascha!
> 
> Please comment patches 5-7!
> 
> Probably these patches will be changed in the next picotcp integration patchseries version,
> but your comment on them could be very beneficial.

>From looking at them they are ok. I haven't found the place where you
allocate packets now, but please make sure they are aligned for dma
accesses, i.e. use net_alloc_packet(). Otherwise this happens:

eth0: Transmit data not aligned: c0416acc!

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux