This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: CPSW9G cannot use static IP in QNX

Part Number: TDA4VM
Other Parts Discussed in Thread: CSD

CPSW9G cannot use static IP in QNX,CPSW2G is normal, and the use of the camera APP proves that there is no problem with IPC communication.

When static IP is used, the following error occurs

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
U-Boot SPL 2020.01-g3c9ebdb87d (Jan 25 2021 - 04:06:36 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
Reading on-board EEPROM at 0x50 failed 1
Trying to boot from MMC1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
init_env from device 17 not supported!
Starting ATF on ARM64 core...
NOTICE: BL31: v2.3():07.01.00.006-dirty
NOTICE: BL31: Built : 03:49:38, Jan 25 2021
U-Boot SPL 2020.01-g3c9ebdb87d (Jan 25 2021 - 04:02:01 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
Reading on-board EEPROM at 0x50 failed 1
Trying to boot from MMC1
U-Boot 2020.01-g3c9ebdb87d (Jan 25 2021 - 04:02:01 +0000)
SoC: J721E SR1.0
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

How can I solve this problem?Thank you.

  • By the way ,the SDK is v7.2.

    Note in the log: in log

    Fullscreen
    1
    2
    3
    cpsw_start:1060 packet length 42, protocol is 255 txFreeCnt 128
    Jan 01 00:00:39.322 io_pkt_v6_hc.81939 slog 0 IPv4 address: 192:168:3:165
    Jan 01 00:00:39.323 io_pkt_v6_hc.81939 slog 0 Assertion @ Line: 1155 in /cscd/zcjiang/cspspace/v7216/ra_QNX/psdkqa/../ethfw/ethremotecfg/client/src/cpsw_proxy.c: msg->res.retVal == ENET_SOK : failed !!!
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    in vision_app_init.sh.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    [MCU2_0] 26.227811 s: Function:CpswProxyServer_attachHandlerCb,HostId:0,CpswType:6
    [MCU2_0] 26.228305 s: Function:CpswProxyServer_allocMacHandlerCb,HostId:0,Handle:a27250a0,CoreKey:38acb7e6
    [MCU2_0] 34.948214 s: Function:CpswProxyServer_allocTxHandlerCb,HostId:0,Handle:a27250a0,CoreKey:38acb7e6
    [MCU2_0] 34.953097 s: Function:CpswProxyServer_allocRxHandlerCb,HostId:0,Handle:a27250a0,CoreKey:38acb7e6
    [MCU2_0] 34.953492 s: Function:CpswProxyServer_ioctlHandlerCb,HostId:0,Handle:a27250a0,CoreKey:38acb7e6, Cmd:1010401,InArgsLen:0, OutArgsLen:4
    [MCU2_0] 34.974926 s: Function:CpswProxyServer_ioctlHandlerCb,HostId:0,Handle:a27250a0,CoreKey:38acb7e6, Cmd:1010201,InArgsLen:24, OutArgsLen:4
    [MCU2_0] 34.976923 s: Function:CpswProxyServer_registerMacHandlerCb,HostId:0,Handle:a27250a0,CoreKey:38acb7e6, MacAddress:70:ff:76:1d:92:c1, FlowIdx:172, FlowIdxOffset:0
    [MCU2_0] 34.977167 s: Cpsw_ioctlInternal: CPSW: Registered MAC address.ALE entry:16, Policer Entry:2
    [MCU2_0] 44.107563 s: Function:CpswProxyServer_registerIpv4MacHandlerCb,HostId:0,Handle:a27250a0,CoreKey:38acb7e6, MacAddress:70:ff:76:1d:92:c1 IPv4Addr:192.168.3.165
    [MCU2_0] 44.107898 s: Failed to add Static ARP Entry
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi,

    The QNX CPSW9G virtual driver can only be configured for dynamic IP address, since the corresponding EthFW switch firmware running on R5 is configured for the same.

    Suggest trying connecting CPSW9G port to the network that has the DHCP server running and try below:

    io-pkt-v6-hc -d cpsw9g
    if_up -p an0
    dhclient -nw an0

    Thanks.

  • Hi,

    You can refer the thread - https://e2e.ti.com/support/processors-group/processors/f/processors-forum/982011/tda4vm-how-to-set-static-ip-on-psdk-7-2 to see how to configure static IP for EthFw.

    Please note, this will require you to rebuild the EthFw.

    After, this change, we would be able to set static IP for the CPSW9G driver from QNX A72 side.

    Thanks.