Skip to content

net: fix SBE1V1K TFTP behind Qualcomm PPE ACL - #6

Open
zhouzhiwen2000 wants to merge 1 commit into
YYH2913:sbe1v1kfrom
zhouzhiwen2000:fix/sbe1v1k-lwip-tftp-acl
Open

net: fix SBE1V1K TFTP behind Qualcomm PPE ACL#6
zhouzhiwen2000 wants to merge 1 commit into
YYH2913:sbe1v1kfrom
zhouzhiwen2000:fix/sbe1v1k-lwip-tftp-acl

Conversation

@zhouzhiwen2000

@zhouzhiwen2000 zhouzhiwen2000 commented Jul 24, 2026

Copy link
Copy Markdown

Summary

  • install the Qualcomm PPE TFTP ACL exception whenever tftpboot is enabled
  • add a local-port binding API to the lwIP TFTP client
  • honor tftpsrcp in the U-Boot lwIP TFTP wrapper so the client port matches the PPE ACL

Problem

The NSS/PPE setup allows DHCP ports 67 and 68, then drops all remaining UDP traffic. The TFTP exception was guarded by the undefined CONFIG_TFTP_PORT symbol, so it was never installed.

This board uses the lwIP network stack, whose TFTP client selected an ephemeral UDP port and ignored tftpsrcp. TFTP RRQs reached the server, but OACK and DATA responses were dropped by PPE before reaching EDMA.

Validation

  • make sbe1v1k_chainloader_defconfig
  • make CROSS_COMPILE=aarch64-linux-gnu- -j8
  • packaged the stock-compatible chainloader FIT successfully
  • extracted the FIT U-Boot payload and compared it byte-for-byte with u-boot.bin
  • verified the 4 MiB partition image contains the FIT followed only by zero padding
  • git diff --check

Hardware validation passed on an SBE1V1K: the rebuilt chainloader successfully completed a TFTP transfer through the Qualcomm PPE/EDMA path.

The Qualcomm NSS driver drops unmatched UDP traffic and only installs its TFTP exception behind the undefined CONFIG_TFTP_PORT symbol. With the lwIP network stack, the client also ignores tftpsrcp and selects an ephemeral port, so TFTP replies never reach EDMA.

Install the ACL whenever tftpboot is enabled and teach the lwIP client to bind the tftpsrcp port selected by the NSS driver.

Validated with the sbe1v1k_chainloader_defconfig build and chainloader FIT packaging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant