Skip to content

Users Guide Board connectivity

scs edited this page Jul 19, 2012 · 6 revisions

Table of Contents

IP Address

Out of the box, leanXcam comes with a preconfigured fixed IP address:

 Address:      192.168.1.10
 Network Mask: 255.255.255.0

The address can be changed in the U-Boot environment variables

Console access

There are two options to log into a running Linux and execute commands.

Login

The uClinux on the board is configured as single-user operating system. Thus only the root-account exists and the login information for all services is:

Login: root

Password: oscar

Telnet

Telnet is the easiest way to connect to Linux, since it requires no password. Both Linux as well as the DOS console in Windows feature a telnet client. Connecting from your host machine thus can be done on both platforms with:

 >$ telnet Board-IP

To terminate a connection simply type

 >$ exit

Secure Shell (SSH)

The secure shell provides a real login on the leanXcam and thus requires a username and password. Since the Linux is compiled as a single-user operating system, the only user is root. Under Linux you can connect from your host machine with:

 $ ssh root@<board-address>

When asked for the password, enter:

 oscar

To terminate the remote connection again type:

 $ exit

More tips on SSH, like how to open a shell on your board without typing a password, can be found in the SSH section

Serial interface (UART)

The serial interface provides access to the root shell of the Linux running on the camera, or to the U-Boot console. Alternatively it can be used to save a board with corrupted flash contents by booting over UART. Details on how to get access to the serial port of the camera are explaind here.

Terminal configuration

  • Baudrate: 115200 Bit/s
  • Data bits: 8
  • Stop bits: 1
  • Flow Control: None

Tools

  • Linux: minicom
  • Windows: Hyperterminal

Changing the default baud rate

Modify the baud rate specified in the U-Boot environment variable bootargs, e.g. to change it to 57600 type:

 fw_setenv bootargs "root=/dev/mtdblock0 rw console=ttyBF0,57600"

Be sure not to make a typo or change anything else, since the content of this variable is quite critical during boot.

I2C (Inter-Integrated Circuit)

The pins required to attach I2C slave devices to the camera are available over one of the pin headers (see ''leanXcam Hardware Manual''). When knowing the address of the slave, communicating with it can then be done by reading and writing from/to the /dev/i2c-0 device node, which represents the I2C adapter on the Blackfin.

This is demonstrated by this code sample, contributed by Team Kiwijoghurt: i2c.c.

File transfer

There are a number of possibilities to transfer files from and to the board

TFTP

The TFTP protocol works over UDP and can, with a correctly configured U-Boot image, also be used to boot a Linux image lying on the host machine over the network. The Linux on the board features a TFTP client and there exist free TFTP servers for the Windows host machine. As the VirtualBox Linux image resides behind a NAT, the board can not directly access a server running in Linux. See this section for instructions on how to install a TFTP server and use TFTP on your camera.

FTP

The preinstalled Linux image contains an FTP server that allows access to the whole root file system. It can be accessed with the FTP client of your choice.

  • Username: root
  • Password: oscar
Without a specialized FTP client, a connection from your host machine can be opened with ftp server-address in both DOS and Linux.

Secure Copy (SCP)

The board features an SSH server as well as client. Because the Linux host runs in the VirtualBox it cannot be accessed directly from outside. Therefore the scp connection should be initiated from the host machine. To copy a file to the board, type:

 scp local-path root@board-address:remote-path

To get a file from the board, type:

 scp root@board-address:remote-path local-path

The password that has to be supplied is the root password (same as for SSH access).

Micro-SD Card

Micro-SD cards are supported since the uClinux version v2.0. A detailed description how to use such a card can be found in the uClinux Users Guide.

Clone this wiki locally