Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux: How to assign static IP address on OMAP L138 LCDK using LINUX OS

$
0
0

Tool/software: Linux

Hi there, I have managed to get OMAP-L138 SoC to boot the Linux on ARM core from uSD card. The Linux version is 4.9.28 

Is there a way to assign static IP address to the system?

I have changed the ip address and the details in "/etc/network/interface" file and after every reboot I need to send the following command to apply the static IP address "ifup eth0" 

Is there a way to add that command in some rcS file or add "/etc/init.d/networking restart" in some start up files?

Thanks in advance.

This is the Boot-up log:

output from Linux running on the target:

root@omapl138-lcdk:~# ifconfig
eth0 Link encap:Ethernet HWaddr D6:55:46:98:F7:32
inet addr:192.168.254.99 Bcast:192.168.254.255 Mask:255.255.255.0
inet6 addr: fdaa:bbcc:ddee:0:d455:46ff:fe98:f732%71/64 Scope:Global
inet6 addr: fe80::d455:46ff:fe98:f732%71/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3113 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:260738 (254.6 KiB) TX bytes:6763 (6.6 KiB)
Interrupt:33

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1%71/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:334 errors:0 dropped:0 overruns:0 frame:0
TX packets:334 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:25714 (25.1 KiB) TX bytes:25714 (25.1 KiB)

root@omapl138-lcdk:~# /etc/init.d/networking restart
Reconfiguring network interfaces... ifdown: interface lo not configured
ifdown: interface eth0 not configured
done.
root@omapl138-lcdk:~# virtio_rpmsg_bus virtio0: msg received with no recipient

root@omapl138-lcdk:~# ifconfig
eth0 Link encap:Ethernet HWaddr D6:55:46:98:F7:32
inet addr:192.168.254.92 Bcast:192.168.254.255 Mask:255.255.255.0
inet6 addr: fdaa:bbcc:ddee:0:d455:46ff:fe98:f732%71/64 Scope:Global
inet6 addr: fe80::d455:46ff:fe98:f732%71/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3313 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:276628 (270.1 KiB) TX bytes:7344 (7.1 KiB)
Interrupt:33

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1%71/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:334 errors:0 dropped:0 overruns:0 frame:0
TX packets:334 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:25714 (25.1 KiB) TX bytes:25714 (25.1 KiB)


Viewing all articles
Browse latest Browse all 17527

Trending Articles