openthread / ot-br-posix

OpenThread Border Router, a Thread border router for POSIX-based platforms.
https://openthread.io/
BSD 3-Clause "New" or "Revised" License
419 stars 232 forks source link

[openwrt] Fail in "Thread Harness Test" as a Thread Border Router. #1972

Open ycc100 opened 1 year ago

ycc100 commented 1 year ago

I built a OpenWRT FW for Qualcomm Maple board and ported the "ot-br-posix" for implementing the Thread Border Router.

The "Thread Border Router" function seems work well. But it got a lot of FAIL in "Thread Harness Test". Attached C_5_9_1-3.zip is the test report of Thread Harness Test Case "BR_1" "C_5_9_1".

Really appreciate if anyone can provide suggestions.

jdswensen commented 1 year ago

What configuration options are you compiling ot-br-posix with? It might be worth comparing what you are using to the reference implementation that is used for certification. Alternatively, given that you may be porting to a new board, it could be a kernel config issue.

ycc100 commented 1 year ago

Following are the ot-br-posix Makefile & the kernel config file I used :

ycc100 commented 1 year ago

The file "C_5_9_1_teraterm.log" [in C_5_9_1-3.zip] is otbr-agent log (run in foreground) .

There are several "Failed to update ipsets" in the log.

_otbr-agent[26301]: 00:01:47.621 [I] Platform------: Execute command ipset flush otbr-ingress-allow-dst-swap = 0 otbr-agent[26301]: 00:01:47.636 [I] Platform------: Execute command ipset flush otbr-ingress-deny-src-swap = -1 otbr-agent[26301]: 00:01:47.636 [I] Platform------: Got an error when executing command ipset flush otbr-ingress-deny-src-swap: No child process otbr-agent[26301]: 00:01:47.636 [W] Platform------: Failed to update ipsets: Failed__

I am not sure why such ipset Failed happen ? Really appreciate if anyone can provide some suggestions.