quarta-feira, 20 de junho de 2018

Using microcom from busybox to connect to a serial device

In order to use microcom from busybox, issue:

microcom -s 9600 /dev/ttyAMA1

where -s sets the baudrate and /dev/ttyAMA1 sets the used device.

Break character is crtl+x 

terça-feira, 12 de junho de 2018

Changing IP address in a ArmV7l 3.18.20 embedded Linux distribution

To change the ip address in a ArmV7l 3.18.20 embedded Linux distro, follow these commands:
  1. In the embedded equip, check the inferface name using ifconfig. If you're changing the cabled interface, it should be named as eth0;
  2. Change the ip address with: sudo ifconfig eth0 192.168.201.105 netmask 255.255.255.0. Change the ip and netmask as needed;
  3. Display (route -n) and copy the gateway address of a computer with internet connection;
  4. Add the gateway to the device under configuration by using sudo route add default gw 192.168.201.253 eth0;
  5. Test the connection via ping google.com
Same steps, but line commands only:
  1. ifconfig
  2. ifconfig eth0 192.168.201.175 netmask 255.255.255.0
  3. (in the configured device) route -n
  4. route add default gw 192.168.201.253 eth0
  5. ping google.com
Connection via telnet is: telnet 192.168.201.175, root, 1