MuxPi setup for DUT¶
This manual will teach you how to configure MuxPi to allow interfacing with DUT using UART or Ethernet connection.
First of all, you need to connect to the MuxPi:
$ ssh root@192.168.0.2
Set up DHCP server on eth1¶
Most embedded Linux distributions are looking for DHCP server thus below settings should be desired for most situations.
Set up eth1 interaface:
# vim /etc/network/interfaces.d/eth1
And populate it with the following:
auto eth1 allow-hotplug eth1 iface eth1 inet static address 192.168.69.1 netmask 255.255.255.0
Install isc-dhcp-server:
# apt-get install isc-dhcp-server
Note
You might need to set up a gateway to have internet access on the MuxPi. For Ubuntu see this manual [1].
Then you should set the interface which will be dhcp server:
# vim /etc/default/isc-dhcp-server
Adjust lines at the bottom of the file as below:
INTERFACESv4="eth1" #INTERFACESv6=""
Configure iscp-dhcp-server to always assign the same address:
# vim /etc/dhcp/dhcpd.conf
To always assign the same address:
subnet 192.168.69.0 netmask 255.255.255.0 { range 192.168.69.10 192.168.69.10; }
Now after booting the device, you should be able to connect to it using a protocol understood by both MuxPi and DUT.
Connect using UART¶
Set terminal options for the DUT serial connection by running
stty
command with appropriate settings:# stty -F /dev/ttyS1 115200 cs8 -cstopb -parenb
Note
You need to adjust setting in the command above to fit your UART connection
Warning
This setting is temporary.
Connect to the device using your tool of choice:
# screen /dev/ttyS1 115200 # minicom -b 115200 -D /dev/ttyUSB0
Note
Adjust the baud rate accordingly.
[1] | https://help.ubuntu.com/community/Internet/ConnectionSharing#Ubuntu_Internet_Gateway_Method_.28iptables.29 |