AnsweredAssumed Answered

Does Linux kernel for i.mx6q support  socket network programming?

Question asked by shijun zhao on Sep 13, 2018
Latest reply on Sep 16, 2018 by igorpadykov

I'm using i.mx6q sabresd board, and the Linux kernel is downloaded from here: GitHub - MrVan/linux: Linux kernel source tree . 

The problem is that the linux network socket seems don't work. When I write an application to create a socket, it is blocked. The network is ok,  as the ping works well.


Following is the code I want to create a socket. However, it is blocked, and doesn't run.

//Create socket
sock = socket(AF_INET, SOCK_STREAM, 0);
if (sock < 0){
printf("Could not create socket");