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.

PROCESSOR-SDK-J721E: Why tap0 service(a72) can not ping ethfw(r5)

Part Number: PROCESSOR-SDK-J721E

Hi TI:
We want to use ethfw and vision app at the same time.

We enable BUILD_ENABLE_ETHFW?=yes

and add TAP service in linux(A72)

We use journalctl -u launch_tap.service command

:

Mar 23 07:49:32 ti-j72xx systemd[1]: Started Shell script to initialize the TAP device, launch the TAP user-space application and fetch IP address>
Mar 23 07:49:33 ti-j72xx bash[249]: Discovered Bufpool Base Address at 0xac200000 from device tree
Mar 23 07:49:33 ti-j72xx bash[249]: And the Bufpool region length is 0x01e00000
Mar 23 07:49:33 ti-j72xx bash[249]: Discovered Queue Base Address at 0xac000000 from device tree
Mar 23 07:49:33 ti-j72xx bash[249]: And the Queue region length is 0x00200000
Mar 23 07:49:33 ti-j72xx bash[249]: ------------------------------------------------
Mar 23 07:49:33 ti-j72xx bash[249]: Selected Configuration:
Mar 23 07:49:33 ti-j72xx bash[249]: ------------------------------------------------
Mar 23 07:49:33 ti-j72xx bash[249]: TAP Device name tap0
Mar 23 07:49:33 ti-j72xx bash[249]: RX Queue Id 2
Mar 23 07:49:33 ti-j72xx bash[249]: TX Queue Id 3
Mar 23 07:49:33 ti-j72xx bash[249]: Maximum number of queues 4
Mar 23 07:49:33 ti-j72xx bash[249]: Queue Base 0xac000000
Mar 23 07:49:33 ti-j72xx bash[249]: Queue Len 0x00200000
Mar 23 07:49:33 ti-j72xx bash[249]: Polling interval 1000
Mar 23 07:49:33 ti-j72xx bash[249]: Maximum number of bufpools 4
Mar 23 07:49:33 ti-j72xx bash[249]: Bufpool base 0xac200000
Mar 23 07:49:33 ti-j72xx bash[249]: Bufpool len 0x01e00000
Mar 23 07:49:33 ti-j72xx bash[249]: TX Bufpool ID 2
Mar 23 07:49:33 ti-j72xx bash[249]: TAP IP
Mar 23 07:49:33 ti-j72xx bash[249]: TAP MAC 00:01:02:04:05:06
Mar 23 07:49:33 ti-j72xx bash[249]: MAX TX 64
Mar 23 07:49:33 ti-j72xx bash[249]: MAX RX 64
Mar 23 07:49:33 ti-j72xx bash[249]: ------------------------------------------------
Mar 23 07:49:33 ti-j72xx bash[732]: Opened TAP Device successfully
Mar 23 07:49:33 ti-j72xx bash[732]: Queue Mapping Succeeded
Mar 23 07:49:33 ti-j72xx bash[732]: Bufpool Mapping Succeeded
Mar 23 07:49:33 ti-j72xx bash[732]: Assigned Queue Handles
Mar 23 07:49:33 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:33 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[249]: Fetching IP address from DHCP server
Mar 23 07:49:34 ti-j72xx bash[732]: Waiting for queue initialization
Mar 23 07:49:34 ti-j72xx bash[797]: udhcpc: started, v1.33.1
Mar 23 07:49:35 ti-j72xx bash[732]: Waiting for queue initialization

We create a bridge to tap0 IP 192.168.1.201

Command:

/usr/sbin/brctl addbr tapbridge
/usr/sbin/brctl addif tapbridge tap0
/bin/ifconfig tap0 192.168.1.201

Then ping failed:

root@ti-j72xx:~# ping 192.168.1.200
PING 192.168.1.200 (192.168.1.200) 56(84) bytes of data.
From 192.168.1.201 icmp_seq=1 Destination Host Unreachable
From 192.168.1.201 icmp_seq=2 Destination Host Unreachable
From 192.168.1.201 icmp_seq=3 Destination Host Unreachable
From 192.168.1.201 icmp_seq=4 Destination Host Unreachable

Any suggestions?