It is useful to be able to get a terminal on your target device. This page lists some options for this. Instructions assume Ubuntu Lucid and a 115200 serial link. Also you should be using a serial null modem cable. USB Serial DongleThis is a common way of getting a serial port on a computer. See TRENDnet USB to Serial converter for example.ser2netThis is a convenient tool which allows you to 'telnet' into your board over a serial link. These instructions assume you are using a single USB serial dongle (/dev/ttyUSB0) but you can also use a real serial port (/dev/ttyS0) if you like. If you have an FTDI serial device providing serial access then it will use /dev/ttyACM0.sudo apt-get install ser2netEdit /etc/ser2net.conf and add this line: To disconnect, press Ctrl-\ then Ctrl-D. screenScreen is a useful tool for maintaining connections which you can switch between easily. It is often used to run a long-running job such that you can logout, then later login, reconnect and check progress. You can also use screen to get a serial link: screen -t 'ttyUSB0 115200 8n1' /dev/ttyUSB0 115200,-ixoff,-ixonReset the machine and U-Boot should start printing to your terminal. For help, use Ctrl-A Ctrl-?. To disconnect, press Ctrl-A Ctrl-D and to quit the session Ctrl-A Ctrl-\ minicomMinicom is a terminal program, intended for use with a modem, thatworks well as an intermediary to any remote system connect through a serial port. One big advantage of minicom is that it allows one to easily capture text into a file. Minicom InstallationTo install minicom, execute the following sudo apt-get install minicomMinicom Configuration sudo minicom -sThe configuration is done through a simple menu system. Use the options below for a basic working configuration. Select 'Serial Port Setup' using the arrow keys; press <Enter> Select 'A': enter the name of your serial port. (ex: /dev/ttyUSB0) Select 'E': select 'E' (115200), then 'Q' (8N1) Set 'Hardware Flow Control' to 'No. Set 'Software Flow Control' to 'No'. Press <Enter>; this brings you back to the main menu (titled '[configuration]') Select 'Save setup as dfl'; press <Enter>. Select 'Exit from Minicom'; press <Enter>.ExecutionMinicom needs access to the configured serial port. This means youeither need to change the permissions on that port to allow your normal user to access the port in read/write mode, or run using 'sudo'. sudo minicomMinicom commandsAll commands are prefixed with <Ctrl-A>, which will be abbreviatedC-a.
sshOnce you have network access, and assuming you are using a test build, you can use ssh to connect to your target.ssh chronos@192.168.2.3(password test0000) |
