Hi,
I am using imx6 solo(Android version 4.3.3) and Freescale application to set a static IP for Ethernet. But on power on off the static IP gets rest to 0. Also if I remove my cat-5 cable the IP get reset. How to retain static IP on both conditions i.e. on power cycle also on removing cat-5 cable. If there is any patch by which I can integrate these into my system will be great .
Thanks in advance.
I am still waiting for the solution . Please can anyone help me out.
Thanks but after above command also same problem is there . Ip still get reset.
Hi Anupam
Can you try below command:
=> ifconfig eth0 192.168.1.100
Regards,
Aravinth
Hi Anupam,
Don't add it as separate environment. You have one bootargs environment. In that you add the ipaddr.
Regards,
Aravinth
Dear aravinth,
Thanks can you please elaborate a little how to add the command . It will be great help .
Thanks in advance.
Hi Anupam,
For example :
This is your boorargs,
bootargs=console=ttymxc0,115200 androidboot.console=ttymxc0 consoleblank=0 vmalloc=400M init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32
In this above bootargs you add you ip address like below:
setenv bootargs "console=ttymxc0,115200 androidboot.console=ttymxc0 consoleblank=0 vmalloc=400M init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 ipaddr=192.168.1.100"
If you add like this it may work.
Regards,
Aravinth
Can you try this!!
setenv bootargs "console=ttymxc0,115200 vmalloc=400M init=/init video=mxcfb0:dev=lcd,CLAA-WVGA,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=10M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M no_console_suspend=1 calibration androidboot.serialno=241a11d4e315d480 ipaddr=192.168.1.100"
Hi Anupam,
Can you add this below line in bootargs environment.
ipaddr=192.168.1.100
Regards,
Aravinth
You can set static IP address with the command like this:
ifup eth0 192.168.1.2 255.255.255.0
Here 192.168.1.2 is the address and 255.255.255.0 is the mask.
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Dear victor,
please find the attached screen shot
Best Regards,
Anupam Nalgundwar
+91 7083532302
Anacle Systems India Pvt Ltd
S26-S27, Destination Centre 1,
2nd Floor, Nanded City,
Pune: - 411041
Please consider the environment before printing this email.
This electronic message transmission contains information from Anacle Systems Pte Ltd which may be confidential or privileged. Recipients should not file copies of this e-mail with publicly accessible records. The information is intended to be for the use of the individual(s) named above. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of the contents of this message is prohibited.
Thanks victor,
I have tried to stop in u-boot and passed the above mentioned command .But still it get reset at power cycle.