From: Matteo Guglielmi <Matteo.Guglielmi@dalco.ch>
To: Harm Berntsen <harm.berntsen@nedap.com>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>
Subject: Re: tftp time outs
Date: Wed, 8 Sep 2021 09:27:31 +0000 [thread overview]
Message-ID: <c66090230dc14745b25f2772aae26704@dalco.ch> (raw)
In-Reply-To: <cafeb273d710d87a5dd05edeff694ada8520e203.camel@nedap.com>
I've added the two variables to my u-boot script before calling tftpboot:
echo "Downloading kernel..."
setenv tftpblocksize 512
setenv tftptimeout 10000
tftpboot ${ramdisk_addr_r} ${tftp_prefix}/${snap_dir}/${kernel_filename}
but that did not help:
Downloading kernel...
Using ethernet@7d580000 device
TFTP from server 10.123.123.1; our IP address is 10.123.123.201
Filename 'rpi/conf/e4-5f-01-0f-0a-d8/snap/vmlinuz'.
Load address: 0x2700000
Loading: T #T T T #T T ################################################ 8 MiB
130.9 KiB/s
done
as you can see, while I'm pinging the nic of the raspberry I get a lot of time
outs and as soon as I stop pinging it, the download process goes on smoothly.
U-boot version is:
U-Boot 2021.07 (Sep 08 2021 - 11:13:19 +0200)
________________________________
From: Harm Berntsen <harm.berntsen@nedap.com>
Sent: Wednesday, September 8, 2021 9:37:15 AM
To: Matteo Guglielmi
Cc: u-boot@lists.denx.de
Subject: Re: tftp time outs
Great to hear U-Boot is helping you :). For documentation I go to the
documentation included in the source code (doc subfolder) and the
source code itself.
When CONFIG_NET_TFTP_VARS is enabled you can overwrite the compiled
settings with the environment variables (see net/tftp.c in the source
code).
I have no experience with boot.cmd files but it looks like you will
need the setenv variant :).
-----Original Message-----
From: Matteo Guglielmi <Matteo.Guglielmi@dalco.ch>
To: Harm Berntsen <harm.berntsen@nedap.com>
Cc: u-boot@lists.denx.de <u-boot@lists.denx.de>
Subject: Re: tftp time outs
Date: Tue, 07 Sep 2021 12:51:37 +0000
Hi Harm,
thanks for the suggestion.
I have this set in my .config file
for the compilation of u-boot:
CONFIG_TFTP_BLOCKSIZE=1468
CONFIG_TFTP_WINDOWSIZE=1
I'm also using a custom boot.cmd
file... should I instead just put
your vars in it like this:
tftpblocksize=512
tftptimeout=10000
or like this:
setenv tftpblocksize 512
setenv tftptimeout 10000
?
I'm still new to u-boot even though
I could make it do exactly what I
needed... extremely useful to boot
my cluster of raspberry pis 4 b with
individual kernel options each.
PS:
Any good book around on u-boot?
Good doc seems so difficult to get.
Thank you!
________________________________
From: Harm Berntsen <harm.berntsen@nedap.com>
Sent: Tuesday, September 7, 2021 10:12:45 AM
To: Matteo Guglielmi
Cc: u-boot@lists.denx.de
Subject: Re: tftp time outs
Hi Matteo,
Which version of U-Boot are you using?
Try setting the following environment variables:
tftpblocksize=512
tftptimeout=10000
-- Harm
-----Original Message-----
From: Matteo Guglielmi <Matteo.Guglielmi@dalco.ch>
To: u-boot@lists.denx.de <u-boot@lists.denx.de>
Subject: tftp time outs
Date: Sun, 05 Sep 2021 13:49:46 +0000
Dear All,
I've noticed that when u-boot is downloading
files from a tftp server (e.g. vmlinuz, initrd
etc.) it starts to time out quite heavily
"##T #T #T..." if I simply ping the NIC of
the raspberry 4b on which it's running.
Thanks for any comment or suggestion on this
behavior.
next prev parent reply other threads:[~2021-09-08 9:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-05 13:49 tftp time outs Matteo Guglielmi
2021-09-07 8:12 ` Harm Berntsen
2021-09-07 12:51 ` Matteo Guglielmi
2021-09-08 7:37 ` Harm Berntsen
2021-09-08 9:27 ` Matteo Guglielmi [this message]
2021-09-08 12:05 ` Harm Berntsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c66090230dc14745b25f2772aae26704@dalco.ch \
--to=matteo.guglielmi@dalco.ch \
--cc=harm.berntsen@nedap.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox