* [U-Boot] Network Packet Buffers: raspberrypi: variable uchar *net_rx_packets[PKTBUFSRX] in net/net.c
@ 2018-04-17 18:59 Duncan Hare
2018-04-22 20:15 ` Simon Glass
0 siblings, 1 reply; 3+ messages in thread
From: Duncan Hare @ 2018-04-17 18:59 UTC (permalink / raw)
To: u-boot
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?
Thanks
Duncan Hare
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Network Packet Buffers: raspberrypi: variable uchar *net_rx_packets[PKTBUFSRX] in net/net.c
2018-04-17 18:59 [U-Boot] Network Packet Buffers: raspberrypi: variable uchar *net_rx_packets[PKTBUFSRX] in net/net.c Duncan Hare
@ 2018-04-22 20:15 ` Simon Glass
2018-04-23 2:54 ` Duncan Hare
0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2018-04-22 20:15 UTC (permalink / raw)
To: u-boot
Hi Duncan,
On 17 April 2018 at 12:59, Duncan Hare <dh@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Network Packet Buffers: raspberrypi: variable uchar *net_rx_packets[PKTBUFSRX] in net/net.c
2018-04-22 20:15 ` Simon Glass
@ 2018-04-23 2:54 ` Duncan Hare
0 siblings, 0 replies; 3+ messages in thread
From: Duncan Hare @ 2018-04-23 2:54 UTC (permalink / raw)
To: u-boot
From: Simon Glass <sjg@chromium.org>
To: Duncan Hare <dh@synoia.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>; U-Boot Mailing List <u-boot@lists.denx.de>
Sent: Sunday, April 22, 2018 1:15 PM
Subject: Re: Network Packet Buffers: raspberrypi: variable uchar *net_rx_packets[PKTBUFSRX] in net/net.c
Hi Duncan,
>On 17 April 2018 at 12:59, Duncan Hare <dh@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.
Do not recall the filename of the driver.
>Regards,
>Simon
Hi Simon
Ethernet driver. But it might also be the usb driver . I don't know the detail at that level of the raspberry soc.
 Duncan Hare
714 931 7952
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-23 2:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-17 18:59 [U-Boot] Network Packet Buffers: raspberrypi: variable uchar *net_rx_packets[PKTBUFSRX] in net/net.c Duncan Hare
2018-04-22 20:15 ` Simon Glass
2018-04-23 2:54 ` Duncan Hare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox