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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,784件の閲覧回数
shijunzhao
Contributor III

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");
exit(0);
}

ラベル(3)
0 件の賞賛
返信
1 返信

1,680件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi shijun

according to attached Release Notes sect.2.1 New features nxp linux sources are located on

linux-imx - i.MX Linux kernel 

Supported functionality and drivers are described in attached Release Notes sect.3 BSP Supported Features

and Linux Manual.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信