Requirements:
Use case:
This settings is useful when you don't have DHCP server available or for some reason you can't connect EVB into existing network - like on this scenario:
Procedure:
Setup static IP address on your PC machine - (Windows 7) click on Start -> Control Panel -> Network and Sharing center. On the left side click on "Change adapter settings"
Select network interface connected to EVB ( Local area connection ) and choose "Internet protocol Version 4 (TCP/IPv4)" option and click on Properties button.
Select "Use the Following IP address" radio button and enter IP address for PC side of network connection and click on OK button.
Turn on EVB and connect to EVB via serial link using putty or any other terminal (115200 baud, 8N1). Login as the root user. Edit network interfaces configuration file by command vi /etc/network/interfaces and modify (press INS key to switch vi editor to edit mode) the file by the way as shown on next screenshot. Set IP address from range of your PC machine network settings.
Save new settings by :w command (press ESC key to switch vi editor to command mode) and exit from vi by :q command. Restart network by command
/etc/init.d/networking restart
Check the IP address by command ifconfig and try ping to your PC machine.
Troubleshooting:
I did to ping test on 28899 and 29288 EVB.
28899 EVB can ping or connect to PC, but 29288 EVB can not ping(BSP is working good).
the BSP is in the S32DS_VIsion_v2.0 folder, because my project need to vision sdk libs(apex, opencv, isp, etc...)
the Auto Linux BSP 17 is working(ping and connect to PC on 29288EVB), but i need other BSP.
how can i fix it?
thanks
Hi,
unfortunately I don't have 29288 EVB for test. What is output of ifconfig ? Did you check the eth0 boot log ( dmesg | grep eth )?
Jiri
Hi
IP setting value(192.168.1.10) is same both 28899 EVB and 29288 EVB(192.168.1.10).
I attached logs.
root@s32v234evb:~# dmesg|grep eth [ 1.221150] fec 40032000.ethernet eth0: registered PHC device 0 [ 6.138140] fec 40032000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=-1) [ 6.151118] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 8.138745] fec 40032000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off [ 8.147470] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready |
root@s32v234evb:~# ifconfig eth0 Link encap:Ethernet HWaddr 00:1b:c3:12:34:22 inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21b:c3ff:fe12:3422/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:648 (648.0 B) |
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. From 192.168.1.10 icmp_seq=1 Destination Host Unreachable From 192.168.1.10 icmp_seq=2 Destination Host Unreachable From 192.168.1.10 icmp_seq=3 Destination Host Unreachable From 192.168.1.10 icmp_seq=4 Destination Host Unreachable |
thanks.
Hi,
sorry for delay. Did you solve your issue? It looks that the destination - 192.168.1.1 is not connected or the IP address (assume that this is your PC machine IP address) is not configured properly.
Jiri