Difference between revisions of "Kermit"
From ArmadeusWiki
(→Usage) |
m |
||
Line 1: | Line 1: | ||
− | Kermit is a serial line terminal emulator that allows you to take control of your board through the RS232 line. With it you can have access to the Linux console of your | + | Kermit is a serial line terminal emulator that allows you to take control of your board through the RS232 line. With it you can have access to the U-Boot/Linux console of your APF without needing to connect a keyboard/screen to the board. ([http://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/ For more informations on remote console]) |
==Installation== | ==Installation== | ||
Line 10: | Line 10: | ||
==Configuration== | ==Configuration== | ||
− | * Edit/Create .kermrc file in your $HOME directory and fill it with: | + | * Edit/Create ''.kermrc'' file in your ''$HOME/'' directory and fill it with: |
set line /dev/ttyS0 | set line /dev/ttyS0 | ||
set speed 115200 | set speed 115200 | ||
Line 23: | Line 23: | ||
set window 5 | set window 5 | ||
set transmit linefeed on | set transmit linefeed on | ||
− | * In this example, we assume that your serial port is ttyS0 (first serial port). Change this to | + | * In this example, we assume that your serial port is ''/dev/ttyS0'' (first serial port). Change this to the appropriate value if necessary. For example if you use an ''USB <-> Serial'' converter then serial port would surely be named like that: ''/dev/ttyUSB0'' |
− | + | * If your ''USB <-> Serial'' converter doesn't seem to work, run the ''dmesg'' command. You should read [http://ubuntuforums.org/archive/index.php/t-392791.html this thread] if you see some disconnection data like this : | |
− | + | ||
[ 2445.568000] usb 1-1.4: new full speed USB device using uhci_hcd and address 22 | [ 2445.568000] usb 1-1.4: new full speed USB device using uhci_hcd and address 22 | ||
... | ... | ||
Line 31: | Line 30: | ||
[ 2446.964000] ftdi_sio 1-1.4:1.0: device disconnected | [ 2446.964000] ftdi_sio 1-1.4:1.0: device disconnected | ||
− | * | + | * Check that you have read/write rights on ''/dev/ttyS0'' (ie your serial port): your user ID (here julien) should be part of the serial port access group (here dialout): |
− | + | <pre class="host> | |
− | + | $ ls -al /dev/ttyS0 | |
− | + | crw-rw---- 1 root dialout 4, 64 2009-05-15 14:56 /dev/ttyS0 | |
− | + | $ id | |
+ | uid=1000(julien) gid=1000(julien) groupes=4(adm),20(dialout),... | ||
+ | </pre> | ||
==Usage== | ==Usage== | ||
* To launch it: | * To launch it: | ||
+ | <pre class="host> | ||
$ kermit -c | $ kermit -c | ||
+ | </pre> | ||
+ | * If you get an error message such: | ||
+ | <pre class="host> | ||
+ | /dev/ttyS0 | ||
+ | ?SET SPEED has no effect without prior SET LINE | ||
+ | </pre> | ||
+ | then recheck that you have read/write rights on the serial port. | ||
* To switch from terminal mode to command mode: | * To switch from terminal mode to command mode: | ||
CTRL + \ then c | CTRL + \ then c |
Revision as of 16:40, 15 May 2009
Kermit is a serial line terminal emulator that allows you to take control of your board through the RS232 line. With it you can have access to the U-Boot/Linux console of your APF without needing to connect a keyboard/screen to the board. (For more informations on remote console)
Contents
Installation
On *Ubuntu / Debian
$ sudo apt-get install ckermit
or use Synaptic graphical package manager.
On Fedora
# rpm -q ckermit
Configuration
- Edit/Create .kermrc file in your $HOME/ directory and fill it with:
set line /dev/ttyS0 set speed 115200 set carrier-watch off set handshake none set flow-control none robust set file type bin set file name lit set rec pack 1000 set send pack 1000 set window 5 set transmit linefeed on
- In this example, we assume that your serial port is /dev/ttyS0 (first serial port). Change this to the appropriate value if necessary. For example if you use an USB <-> Serial converter then serial port would surely be named like that: /dev/ttyUSB0
- If your USB <-> Serial converter doesn't seem to work, run the dmesg command. You should read this thread if you see some disconnection data like this :
[ 2445.568000] usb 1-1.4: new full speed USB device using uhci_hcd and address 22 ... [ 2446.964000] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 [ 2446.964000] ftdi_sio 1-1.4:1.0: device disconnected
- Check that you have read/write rights on /dev/ttyS0 (ie your serial port): your user ID (here julien) should be part of the serial port access group (here dialout):
$ ls -al /dev/ttyS0 crw-rw---- 1 root dialout 4, 64 2009-05-15 14:56 /dev/ttyS0 $ id uid=1000(julien) gid=1000(julien) groupes=4(adm),20(dialout),...
Usage
- To launch it:
$ kermit -c
- If you get an error message such:
/dev/ttyS0 ?SET SPEED has no effect without prior SET LINE
then recheck that you have read/write rights on the serial port.
- To switch from terminal mode to command mode:
CTRL + \ then c
- To switch from command mode to terminal mode:
C-Kermit>c then ENTER
- To quit:
Switch in command mode C-Kermit>q then ENTER
Usefull tips
- Download a file via serial in U-Boot :
BIOS> loadb <Ctrl-\>c kermit> send filename