You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by "Lee, Lup Yuen" <lu...@appkaki.com> on 2023/10/06 01:02:41 UTC
[Article] NuttX on Star64 JH7110: TFTP Timeout in U-Boot Bootloader
For folks booting NuttX with U-Boot TFTP on Star64 JH7110 SBC (or
VisionFive2):
U-Boot might show frequent TFTP Timeouts. This article talks about our fix
for the TFTP Timeouts:
(1) First we throttled our TFTP Server to send packets slower. (Which made
it worse)
(2) Next we reduced the TFTP Timeout Duration in our server. (Nope doesn’t
work)
(3) But when we send every TFTP Data Packet twice, the problem mysteriously
disappears!
(4) NuttX now boots over the network in 20 seconds. (Previously 4 minutes)
(5) We verified this with 2 TFTP Servers: Linux and macOS
Details here: https://lupyuen.codeberg.page/articles/tftp2.html
Lup
Re: [Article] NuttX on Star64 JH7110: TFTP Timeout in U-Boot Bootloader
Posted by "Lee, Lup Yuen" <lu...@appkaki.com>.
Thanks Alan! Actually it's an issue inside the U-Boot Bootloader, because
this TFTP Timeout happens in U-Boot while downloading the NuttX Image.
I'm checking whether we could add an option to the TFTP Server (rs-tftpd)
so that it will send Duplicate Data Packets:
https://github.com/altugbakan/rs-tftpd/issues/5
Lup
On Fri, Oct 6, 2023 at 9:42 PM Alan C. Assis <ac...@gmail.com> wrote:
> Very nice Lup!
>
> Fortunately you found an workaround solution.
>
> I suggest you to open an issue in the NuttX's github, because the root
> cause of this issue could be hidden in the network stack.
>
> BR,
>
> Alan
>
> On 10/5/23, Lee, Lup Yuen <lu...@appkaki.com> wrote:
> > For folks booting NuttX with U-Boot TFTP on Star64 JH7110 SBC (or
> > VisionFive2):
> >
> > U-Boot might show frequent TFTP Timeouts. This article talks about our
> fix
> > for the TFTP Timeouts:
> >
> > (1) First we throttled our TFTP Server to send packets slower. (Which
> made
> > it worse)
> >
> > (2) Next we reduced the TFTP Timeout Duration in our server. (Nope
> doesn’t
> > work)
> >
> > (3) But when we send every TFTP Data Packet twice, the problem
> mysteriously
> > disappears!
> >
> > (4) NuttX now boots over the network in 20 seconds. (Previously 4
> minutes)
> >
> > (5) We verified this with 2 TFTP Servers: Linux and macOS
> >
> > Details here: https://lupyuen.codeberg.page/articles/tftp2.html
> >
> > Lup
> >
>
Re: [Article] NuttX on Star64 JH7110: TFTP Timeout in U-Boot Bootloader
Posted by "Alan C. Assis" <ac...@gmail.com>.
Very nice Lup!
Fortunately you found an workaround solution.
I suggest you to open an issue in the NuttX's github, because the root
cause of this issue could be hidden in the network stack.
BR,
Alan
On 10/5/23, Lee, Lup Yuen <lu...@appkaki.com> wrote:
> For folks booting NuttX with U-Boot TFTP on Star64 JH7110 SBC (or
> VisionFive2):
>
> U-Boot might show frequent TFTP Timeouts. This article talks about our fix
> for the TFTP Timeouts:
>
> (1) First we throttled our TFTP Server to send packets slower. (Which made
> it worse)
>
> (2) Next we reduced the TFTP Timeout Duration in our server. (Nope doesn’t
> work)
>
> (3) But when we send every TFTP Data Packet twice, the problem mysteriously
> disappears!
>
> (4) NuttX now boots over the network in 20 seconds. (Previously 4 minutes)
>
> (5) We verified this with 2 TFTP Servers: Linux and macOS
>
> Details here: https://lupyuen.codeberg.page/articles/tftp2.html
>
> Lup
>