zephyriot / zep-jira14

0 stars 0 forks source link

Arduino_101 doesn't response ipv4 ping request after enable ipv4 #1318

Closed nashif closed 7 years ago

nashif commented 7 years ago

Reported by jiequan wu:

Configuration

x86 Bug detailed description =================== Arduino_101 doesn't response ipv4 ping request after enable ipv4 Steps to Reproduce ================== 2. cd samples/net/echo_server 3. Enable ipv4 and disable ipv6 prj_arduino_101.conf: CONFIG_NET_IPV4=y CONFIG_NET_IPV6=n 4. make pristine && make BOARD=arduino_101 flash 5. Connect Arduino to the LAN with ENC28J60 6. Set ipv4 address on Ubuntu $ sudo ifconfig eth1 192.0.2.2 7. open serial port 8. ping 192.0.2.1 Expected Result ============= Arduino_101 can response ipv4 ping request after enable echo_server ipv4 Actual Result ========== Arduino_101 doesn't response ipv4 ping request after enable echo_server ipv4 (Imported from Jira ZEP-1444)
nashif commented 7 years ago

by Andrei Laperie:

Tomasz, please investigate

nashif commented 7 years ago

by Tomasz Bursztyka:

That's a duplicate of: GH-1238

nashif commented 7 years ago

by Andrei Laperie:

duplicate of GH-1238

nashif commented 7 years ago

by jiequan wu:

I test echo_server ipv4 is ok.(commit id :8053024752a72e2f0553f556c4ca2aea1883b01d && branch:net)

nashif commented 7 years ago

by Mark Linkmeyer:

Correcting the priority field

nashif commented 7 years ago

by jiequan wu:

The latest commit on master branch(commit id: e4aa74125c), this issue reproduces. And on v1.7.0 branch is ok. Maybe some patchs are missing in master branch.

nashif commented 7 years ago

by Tomasz Bursztyka:

Sounds like a bug on enc28j60 ethernet driver. At least the test works perfectly fine on frdm k64f board

nashif commented 7 years ago

by Ravi kumar Veeramally:

I have tried it and it works. Sample arduino_101.conf doesn't have static IP address assigned or even dhcpv4 not enabled. So I tried with following changes in conf file +CONFIG_NET_SAMPLES_IP_ADDRESSES=y +CONFIG_NET_SAMPLES_MY_IPV4_ADDR="192.0.2.1" +CONFIG_NET_SAMPLES_PEER_IPV4_ADDR="192.0.2.2"

and in steps to reproduce you have to add route sudo ip route add 192.0.2.0/24 dev eth1 check with route command does route for eth1 exists or not. Then IPv4 ping works.

nashif commented 7 years ago

by Tomasz Bursztyka:

Please verify

nashif commented 7 years ago

by jiequan wu:

The latest commit (commit id: 9d0c020a9bc4) on master branch. It's fine.