Skip to content
Snippets Groups Projects
  1. May 03, 2024
  2. Apr 18, 2024
  3. Apr 16, 2024
  4. Apr 10, 2024
    • Sébastien Szymanski's avatar
      net: nfs: fix file handle length in NFSv3 · d2986567
      Sébastien Szymanski authored and Tom Rini's avatar Tom Rini committed
      The NFS protocol uses file handles to refer to file or directory.
      In NFSv2 file handles have a fixed size of 32 bytes.
      In NFSv3 file handles have a variable length up to 64 bytes. This is
      also true for the MOUNT protocol. [1]
      When the NFSv3 server replies with a file handle length > 32 bytes, U-Boot
      only copies 32 bytes of that file handle and the next LOOKUP Call fails:
      
      BIOS> nfs ${loadaddr} 192.168.1.51:/nfsroot/opos93dev-br/boot/Image
      Using ethernet@428a0000 device
      File transfer via NFS from server 192.168.1.51; our IP address is 192.168.1.133
      Filename '/nfsroot/opos93dev-br/boot/Image'.
      Load address: 0x80400000
      Loading: *** ERROR: File lookup fail
      
      done
      BIOS>
      
      Looking at this transfer in Wireshark, we can see that the server
      replies with the following file handle:
      
          length: 36
          [hash (CRC-32): 0x230ac67b]
          FileHandle: 0100070101005e000000000091763911f87c449fa73c298552db19ba0c9f60002980cfd2
      
      and U-Boot sends the following file handle in the next LOOKUP Call:
      
          length: 32
          [hash (CRC-32): 0x6314131b]
          FileHandle: 000000240100070101005e000000000091763911f87c449fa73c298552db19ba
      
      Fix this by using a variable length file handle for dirfh.
      
      [1] https://www.rfc-editor.org/rfc/rfc1813.html#page-106
      
      
      
      Fixes: b0baca98 ("net: NFS: Add NFSv3 support")
      Signed-off-by: default avatarSébastien Szymanski <sebastien.szymanski@armadeus.com>
      Tested-by: default avatarAndrew Davis <afd@ti.com>
      d2986567
  5. Mar 26, 2024
  6. Mar 07, 2024
  7. Jan 17, 2024
  8. Jan 09, 2024
  9. Dec 21, 2023
  10. Dec 19, 2023
  11. Nov 23, 2023
  12. Nov 18, 2023
  13. Nov 05, 2023
  14. Oct 18, 2023
  15. Sep 24, 2023
  16. Sep 22, 2023
  17. Sep 14, 2023
  18. Aug 22, 2023
  19. Jul 27, 2023
  20. Jul 16, 2023
  21. Jun 14, 2023
  22. May 13, 2023
    • Simon Glass's avatar
      bootstd: Rename distro and syslinux to extlinux · 79f66351
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      We use the terms 'distro' to mean extlinux but they are not really the
      same. 'Distro' could refer to any method of booting a distribution,
      whereas extlinux is a particular method.
      
      Also we sometimes use syslinux, but it is better to use the same term in
      all cases.
      
      Rename distro to syslinux and also update bootstd uses of syslinux to use
      extlinux instead.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      79f66351
  23. May 05, 2023
Loading