NXP library kernel panic before enter main.c

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

NXP library kernel panic before enter main.c

2,047件の閲覧回数
bolong
Contributor I

請問如果我們希望用ethernet line ipv4連接board,跟電腦做BSD sockets packets access, 請問我們該用哪個sample的config?

另外我們需要在進去main前先做CONFIG_NET_CONFIG_AUTO_INIT=y的net driver config嗎?

因為目前我們用WEIKENG INDUSTRY CO., LTD.Allen Yu建議的(zephyr\samples\net\sockets\echo)的sample會因為找不到device造成kernel panic position is NET_ASSERT(iface) in net_if_is_up(), 但是我們driver有照spec Auto Zephyr BSP 0.9.0 User Manual for S32R41/SW32R41_AZ_2.7.2_0.9.0_D2208加上Ethernet support gmac driver還需要另外設定add device嗎?

剛進入net_if_get_default()時_net_if_list_start =_net_if_list_end是正常的嗎?

如果只需要使用ipv4是否可以關掉有關ipv6 config?

請盡速回復或Microsoft Teams視訊會議教我們怎麼做, 謝謝!

ps: 我們是用S32R41AAEVB, Debug zephyr.elf on board by S32DS3.5, A53 mcu

BoLong

benson.chen@cubtek.com

 
0 件の賞賛
返信
2 返答(返信)

2,026件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

This is English forum. Please post your questions in English.

Here is automatic translate trough google, may not be accurate:

 

May I ask if we want to use the ethernet line ipv4 to connect to the board and do BSD sockets packets access with the computer, which sample config should we use?

In addition, do we need to do net driver config with CONFIG_NET_CONFIG_AUTO_INIT=y before entering main?

Because currently we use the sample suggested by WEIKEENG INDUSTRY CO., LTD. Allen Yu (zephyr\samples\net\sockets\echo) will cause the kernel panic position is NET_ASSERT(iface) in net_if_is_up() because the device cannot be found, but we The driver has the spec Auto Zephyr BSP 0.9.0 User Manual for S32R41/SW32R41_AZ_2.7.2_0.9.0_D2208 plus Ethernet support gmac driver, do I need to set add device additionally?

Is it normal that _net_if_list_start = _net_if_list_end when just entering net_if_get_default()?

If you only need to use ipv4, can you turn off the relevant ipv6 config?

Please reply as soon as possible or teach us how to do it in Microsoft Teams video conferencing, thank you!

ps: We are using S32R41AAEVB, Debug zephyr.elf on board by S32DS3.5, A53 mcu

Best regards,

Peter

0 件の賞賛
返信

2,003件の閲覧回数
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Please use zephyr\samples\net\sockets\echo for testing BSD sockets function. It wiil echo what you send via TCP.
To run this sample successfully, prj.conf (samples\net\sockets\echo\prj.conf) should add a configuration: CONFIG_NET_L2_ETHERNET=y. See the attachment.
CONFIG_NET_CONFIG_AUTO_INIT is not needed for this project.
IPV6 configuration can turn off if not used.

Plesase see the link for the detail about socket.
https://docs.zephyrproject.org/3.2.0/connectivity/networking/api/sockets.html

 

Saludos,

Alejandro

0 件の賞賛
返信