]> rtime.felk.cvut.cz Git - novaboot.git/commit
Reset u-boot download timeout with every '#'
authorMichal Sojka <michal.sojka@cvut.cz>
Sun, 3 Apr 2022 12:25:53 +0000 (14:25 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Sun, 3 Apr 2022 12:25:53 +0000 (14:25 +0200)
commit9c9a064e5b6a39f897d65eb76fe8b235694bbec5
tree4d02bb0a73b936aebd8ecb4a6488a5e498df5f9a
parent341d7ec4efdc334e1b938d6c722c21192e601ce0
Reset u-boot download timeout with every '#'

Previously, we used two consecutive hash characters, but it turned out
that a Raspberry Pi, on our network experiences few timeouts at the
beginning (see '#T ' sequences below) and there are never two
consecutive hashes before the timeout elapses.

    U-Boot> tftpboot ${kernel_addr_r} /rpi/kernel
    Using ethernet@7d580000 device
    TFTP from server 10.35.95.2; our IP address is 10.35.95.45
    Filename '/rpi/kernel'.
    Load address: 0x80000
    Loading: #T #T T T Kernel load: timeout at /home/wsh/.nix-profile/bin/novaboot line 1298, <> line 7.

Therefore, we reset the timeout after just a single hash. Now the
above example runs as shown below:

    U-Boot> tftpboot ${kernel_addr_r} /rpi/kernel
    Using ethernet@7d580000 device
    TFTP from server 10.35.95.2; our IP address is 10.35.95.45
    Filename '/rpi/kernel'.
    Load address: 0x80000
    Loading: #T #T T ################################################  45 MiB
             2 MiB/s
    done
novaboot