SCTP support for Jetson TX2


I am trying to run a software that uses SCTP socket communication on a recently purchased Jetson TX2 board. However, it does not work as the SCTP socket creation fails. I installed libsctp library and headers but it looks like the kernel does not have support for SCTP.

Could someone please tell if the kernel on Jetson TX2 has support for SCTP or if it is disabled, how to enable it.

Many thanks in advance.

Best Regards,

I cannot tell for your case, but you can check which features are enabled in your running kernel with:

<b>gunzip -c /proc/config.gz | grep SCTP</b>
# CONFIG_IP_SCTP is not set

Only the two first ones are available, as modules, you may load these with:

sudo modprobe nf_conntrack_proto_sctp nf_nat_proto_sctp

If it is not enough for your case, you would have to build a new kernel enabling missing features.


Thank you very much for replying. I also found that my kernel has only the those two modules as you mentioned and I loaded them with modprobe and checked with lsmod.

However, after that even if the sctp socket creation does not fail now, but sctp_recvmsg() gives error for “Bad file descriptor”. So, I may need to install the missing modules and build the kernel.

As I have never built kernel on the Jetson, could you please share some guidance or links on how to enable the missing features and build the kernel.

Many thanks in advance.

Best Regards.

You can find many useful articles on JetsonHacks such as building kernel.

However, not sure this will fix your issue.
Is your code tested on another platform ?
You may also try this client/server example.

I have a similar issue, and building a kernel without some clear instructions is quite beyond my knowledge :(

What is the reason the SCTP has been left out? This really causes me some trouble at the moment…


Hi, Ralph, did you success to enable SCTP on TX2 finally?