openthread / ot-reference-release

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TREL enabling failed in NCS 1.3 Build

shouvik-grl opened this issue · comments

We are trying to make a NCS build with the TREL functionality.

For that we added the TREL flag CONFIG_OPENTHREAD_RADIO_LINK_TREL_ENABLE=y in the config/ncs/overlay-cli-1_3.conf and config/ncs/overlay-rcp-1_3.conf files

During the 1.3 build we are getting error (Error log attached).
TRELBuildErrorLog.zip

The command for the build we are using is: REFERENCE_PLATFORM=ncs REFERENCE_RELEASE_TYPE=1.3 IN_CHINA=0 ./script/make-reference-release.bash

@shouvik-grl if You remove CONFIG_OPENTHREAD_RADIO_LINK_TREL_ENABLE=y from config/ncs/overlay-cli-1_3.conf the configs should be fine.

@canisLupus1313 After removing CONFIG_OPENTHREAD_RADIO_LINK_TREL_ENABLE=y from config/ncs/overlay-cli-1_3.conf . we are getting a new error, attaching the error log with this.
TREL_BUILD_LOG_ERROR.zip

@sam-grl do You mean this warning?

/OTBR_Images/ShouvikTry/TRELBuild/ot-reference-release/ncs/zephyr/modules/openthread/platform/./openthread-core-zephyr-config.h:292: warning: "OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE" redefined
  292 | #define OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE

Because I can see that both CLI and RCP samples building process was successful.

@canisLupus1313
OTBR image (Pi image) building process was unsuccessful.
We tried 3 times and every time got same issue.

@shouvik-grl This looks like problems with internet connectivity.

Get:2 http://archive.raspberrypi.org/debian buster/main armhf python-pip-whl all 18.1-5+rpt1 [1591 kB]
Err:1 http://raspbian.mirror.net.in/raspbian/raspbian buster/main armhf libcurl3-gnutls armhf 7.64.0-4+deb10u5
  Connection failed [IP: 103.195.68.3 80]
Err:3 http://raspbian.mirror.net.in/raspbian/raspbian buster/main armhf liberror-perl all 0.17027-2
  Connection failed [IP: 103.195.68.3 80]
Err:4 http://raspbian.mirror.net.in/raspbian/raspbian buster/main armhf git-man all 1:2.20.1-2+deb10u8
  Connection failed [IP: 103.195.68.3 80]
Err:5 http://raspbian.mirror.net.in/raspbian/raspbian buster/main armhf git armhf 1:2.20.1-2+deb10u8
  Connection failed [IP: 103.195.68.3 80]
Get:6 http://archive.raspberrypi.org/debian buster/main armhf python3-pip all 18.1-5+rpt1 [171 kB]
Err:7 http://raspbian.mirror.net.in/raspbian/raspbian buster/main armhf python3-lib2to3 all 3.7.3-1
  Connection failed [IP: 103.195.68.3 80]
Err:8 http://raspbian.mirror.net.in/raspbian/raspbian buster/main armhf python3-distutils all 3.7.3-1
  Connection failed [IP: 103.195.68.3 80]
Fetched 1762 kB in 3s (525 kB/s)
E: Failed to fetch http://raspbian.mirror.net.in/raspbian/raspbian/pool/main/c/curl/libcurl3-gnutls_7.64.0-4+deb10u5_armhf.deb  Connection failed [IP: 103.195.68.3 80]
E: Failed to fetch http://raspbian.mirror.net.in/raspbian/raspbian/pool/main/libe/liberror-perl/liberror-perl_0.17027-2_all.deb  Connection failed [IP: 103.195.68.3 80]
E: Failed to fetch http://raspbian.mirror.net.in/raspbian/raspbian/pool/main/g/git/git-man_2.20.1-2+deb10u8_all.deb  Connection failed [IP: 103.195.68.3 80]
E: Failed to fetch http://raspbian.mirror.net.in/raspbian/raspbian/pool/main/g/git/git_2.20.1-2+deb10u8_armhf.deb  Connection failed [IP: 103.195.68.3 80]
E: Failed to fetch http://raspbian.mirror.net.in/raspbian/raspbian/pool/main/p/python3-stdlib-extensions/python3-lib2to3_3.7.3-1_all.deb  Connection failed [IP: 103.195.68.3 80]
E: Failed to fetch http://raspbian.mirror.net.in/raspbian/raspbian/pool/main/p/python3-stdlib-extensions/python3-distutils_3.7.3-1_all.deb  Connection failed [IP: 103.195.68.3 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
+ cleanup
+ set +e
++ losetup -j /tmp/raspbian/raspbian.img --output NAME -n

On my site those are downloaded without a problem can You verify that you are able to update raspbian? Maybe you some proxy or firewall issues?

@canisLupus1313 Thanks for your support

We changed the mirror server from India to Oxford server and after that the, build was successful. [TREL Flag is ON]

But TREL related commands are not working.

I can see a new PR,
Is it related to TREL also?

TRELCommandErr
Screenshot 2023-04-12 165625

@shouvik-grl can you try to dirty hack and in file ot-br-posix/third_party/openthread/CMakeLists.txt change line

set(OT_TREL ${OTBR_TREL} CACHE BOOL "enable TREL" FORCE)

to

set(OT_TREL ON CACHE BOOL "enable TREL" FORCE)

To get TREL enabled you could also try to update the OTBR_OPTIONS, by changing -DOT_TREL=ON to -DOTBR_TREL=ON @shouvik-grl

@canisLupus1313 and @sunytt Thanks for your suggestions, These changes worked Perfectly.