ImX8MP Andorid 13 Static IP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ImX8MP Andorid 13 Static IP

3,853 Views
shiva141
Contributor II

Hi,

We are using imx8mp with Andorid 13 BSP (imx-android-13.0.0_1.2.0) ,We are not able to set static IP address for Ethernet

A) using UI  setting ->Network&internet->Internet->Ethernet-> Ethernet Configuration;We tried to set static IP we got "failed to save network" as response

during which logcat we observed  
EthConfDialog: mode static ip
09-18 08:42:45.119 907 907 I EthConfDialog: Static IP address =192.168.1.169

adblogcat during this observation is attached as ui_staticip.txt

 

B)we also  tried adb shell 

$ ifconfig eth1 dow
$ ip addr add 192.168.1.166 dev eth1
$ ifconfig eth1 up
static ip was not retained it got updated with dynamic IP adblogcat during this observation ethernet_static.txt

 

please share a method for setting static IP

IMX8MPLUS #Andorid 13

 

0 Kudos
Reply
3 Replies

3,766 Views
shiva141
Contributor II

 Hi,

https://community.nxp.com/t5/i-MX-Processors/How-to-set-static-IP-address-for-ethernet-interface-i-m...

please share ethernet.apk as mentioned in the above for setting static IP

0 Kudos
Reply

3,708 Views
shiva141
Contributor II

Hi,

We tried to build the  Ethernet
vendor/nxp-opensource/fsl_imx_demo/Ethernet/app/src/main/java/com/nxp/ethernet/ ; it looks its outdated for Android 13

We are not able to build it ;please share the latest Ethernet source or APK which support Andorid 13 

vendor/nxp-opensource/fsl_imx_demo/Ethernet/app/src/main/java/com/nxp/ethernet/LocalEthernetManager.java:121: error: cannot find symbol
return mEthernetManager.getAvailableInterfaces();
^
symbol: method getAvailableInterfaces()
location: variable mEthernetManager of type EthernetManager
vendor/nxp-opensource/fsl_imx_demo/Ethernet/app/src/main/java/com/nxp/ethernet/LocalEthernetManager.java:128: error: cannot find symbol
mEthernetManager.setConfiguration(DevName[0], mIpConfiguration);
^
symbol: method setConfiguration(String,IpConfiguration)
location: variable mEthernetManager of type EthernetManager
vendor/nxp-opensource/fsl_imx_demo/Ethernet/app/src/main/java/com/nxp/ethernet/LocalEthernetManager.java:191: error: cannot find symbol
mEthernetManager.setConfiguration(DevName[0], mIpConfiguration);
^
symbol: method setConfiguration(String,IpConfiguration)
location: variable mEthernetManager of type EthernetManager
vendor/nxp-opensource/fsl_imx_demo/Ethernet/app/src/main/java/com/nxp/ethernet/MainActivity.java:78: error: cannot find symbol
&& mEthernetManager.getAvailableInterfaces().length > 0;
^
symbol: method getAvailableInterfaces()
location: variable mEthernetManager of type EthernetManager
4 errors
11:50:02 ninja failed with: exit status 1

#### failed to build some targets (58 seconds) ####

0 Kudos
Reply