i.MX28: How to set up a SSH connection to EVK board

Showing results for 
Search instead for 
Did you mean: 

i.MX28: How to set up a SSH connection to EVK board

NXP Employee
NXP Employee

This page will guide you to setup a SSH connection to i.MX28 EVK board using BSP L2.6.35_1.1.0_130130.

1. Add required package "openssh" & "dhcp"

By default, minimal profile is selected and package "openssh" will not build. To add this package:


$ ltib -m config

and select

Package list  --->

    [*] dhcp

        [*] Include DHCP server

        [*] Include DHCP client support

    [*] openssh

Then rebuild the LTIB to update the kernel and root fs.

2. Set the current date time

Once the board up, the date is reset to 1970 Jan 1. You need to set the current date time to the board to facilitate the SSH connection. Otherwise SSH will prompt you the password is expired and close the connection. (Unfortunately, the board cannot keep the RTC after power is removed and you need to set the current time every time after boot)

$ date

Thu Jan  1 00:00:55 UTC 1970

$ date -s "2014-04-30 09:35"

Wed Apr 30 09:35:00 UTC 2014

3. Set a valid user password

By default, there is no password for the user "root". All SSH connection will be rejected unless a valid password has setup to the user. Use the "passwd" to set a valid password.

$ passwd

4. Start SSH server

You need to start SSH server so the the i.MX28 can listen to any SSH client connection. To start the SSH server

$ cd /etc/rc.d/init.d

$ ./sshd start

If you want to start the SSH server automatically when boot up, please edit "/etc/rc.d/rc.conf" and add "sshd" to arguments "all_services" & "all_services_r".

5. Turn on the Ethernet

There are 2 ethernet ports on i.MX28 EVK board. The lower one is "eth0" and the upper one is "eth1". Plug in your ethernet cable to the lower "eth0" port and start the ethernet by

$ ifconfig eth0 up 

eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=0:00, irq=-1)

PHY: 0:00 - Link is Up - 100/Full

$ dhclient

Internet Systems Consortium DHCP Client V3.0.3b1

Copyright 2004-2005 Internet Systems Consortium.

All rights reserved.

For info, please visit http://www.isc.org/products/DHCP

Listening on Socket/eth0

Sending on   Socket/eth0

Sending on   Socket/fallback

DHCPDISCOVER on eth0 to port 67 interval 8


DHCPREQUEST on eth0 to port 67


/sbin/dhclient-script: line 26: [: too many arguments

/sbin/dhclient-script: line 35: [: too many arguments

bound to XX.XXX.X.XX -- renewal in 147024 seconds.

Now, the i.MX28 board has connected to your network and it should have an IP address.

6. Open SSH connection

Using the IP address obtained in step 5, you can open a SSH client and connect to the i.MX28 EVK board readily!

$ ssh root@XX.XXX.X.XX

root@XX.XXX.X.XX's password:

If you have got "RSA host key for XX.XXX.X.XX has changed and you have requested strict checking. Host key verification failed" error, the PC has identified it is a different ssh host but using the same IP address. To get rid of this error, type command "ssh-keygen -R XX.XXX.X.XX" to remove the relevant key aoosciated with this IP in your PC.

Tags (2)
0 Kudos
0 Replies