[U-Boot] Network Packet Buffers: raspberrypi: variable uchar *net_rx_packets[PKTBUFSRX] in net/net.c

Simon Glass sjg at chromium.org
Sun Apr 22 20:15:04 UTC 2018


Hi Duncan,

On 17 April 2018 at 12:59, Duncan Hare <dh at synoia.com> wrote:
> Simon
>
> Is it possible to modify the network driver for the raspberry pi to use
> the buffer pool defined in net.c?
>
> It appears to have a single buffer, defined in the driver.
>
> In addition the buffer pool should be defined in memory outside the
> u-boot image. With the current definition is the buffer pool a
> part of the u-boot image?

Are you referring to the USB driver? If so, which one? Normally the buffers
are in BSS if they are not allocated with malloc(). So the buffers are not
in the U-Boot image in flash, but do take up space in RAM at run-time after
relocation.

Regards,
Simon


More information about the U-Boot mailing list