NeoCon
From Openmoko
(note main feature) |
(Exchg bootloader with U-Boot) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | '''neocon''' is a handy serial console utility (not only) for [[ | + | '''neocon''' is a handy serial console utility (not only) for [[U-Boot]]. |
'''neocon''' has a few graving advantages over some other terminal apps: | '''neocon''' has a few graving advantages over some other terminal apps: | ||
− | * You don't have to be <code>root</code> to access <code>/dev/ttyACM0</code> with '''neocon'''. | + | * You don't have to be <code>root</code> to access <code>/dev/ttyACM0</code> with '''neocon'''. Being a member of the <code>dialout</code> group should give you sufficient privileges. |
− | * by specifying a delay on keyboard input(as shown below), '''neocon''' will allow you to paste commands directly from clipboard without making [[ | + | * by specifying a delay on keyboard input(as shown below), '''neocon''' will allow you to paste commands directly from clipboard without making [[U-Boot]] choke on it. |
− | * '''neocon''' can be started without <code>/dev/ttyACM0</code> being available. It will automatically connect as soon as you start [[ | + | * '''neocon''' can be started without <code>/dev/ttyACM0</code> being available. It will automatically connect as soon as you start [[U-Boot]] on the Neo: |
− | The main feature of neocon is actually that you can give it a list | + | The main feature of '''neocon''' is actually that you can give it a list |
of devices and it will pick one that works, e.g., | of devices and it will pick one that works, e.g., | ||
Line 15: | Line 15: | ||
~n | ~n | ||
− | This is useful for dynamically allocated devices, such as ttyUSBn | + | This is useful for dynamically allocated devices, such as <code>ttyUSBn</code> |
− | or ttyACMn. You can of course also use them with other communication | + | or <code>ttyACMn</code>. You can of course also use them with other communication |
programs - there's certainly no shortage of them - but then you have | programs - there's certainly no shortage of them - but then you have | ||
to handle reconnects manually. | to handle reconnects manually. | ||
Line 26: | Line 26: | ||
==Usage== | ==Usage== | ||
− | To connect to the [[ | + | To connect to the [[U-Boot]] use |
./neocon -t 30 /dev/ttyACM0 | ./neocon -t 30 /dev/ttyACM0 | ||
− | To quit neocon type: | + | To quit '''neocon''' type: |
~. | ~. | ||
Line 36: | Line 36: | ||
An alternative to {{PAGENAME}} is [[picocom]]. | An alternative to {{PAGENAME}} is [[picocom]]. | ||
− | [[Category: | + | [[Category:Middleware]] |
+ | [[Category:Bootloaders]] | ||
[[Category:USB]] | [[Category:USB]] |
Latest revision as of 10:42, 10 February 2012
neocon is a handy serial console utility (not only) for U-Boot.
neocon has a few graving advantages over some other terminal apps:
- You don't have to be
root
to access/dev/ttyACM0
with neocon. Being a member of thedialout
group should give you sufficient privileges. - by specifying a delay on keyboard input(as shown below), neocon will allow you to paste commands directly from clipboard without making U-Boot choke on it.
- neocon can be started without
/dev/ttyACM0
being available. It will automatically connect as soon as you start U-Boot on the Neo:
The main feature of neocon is actually that you can give it a list of devices and it will pick one that works, e.g.,
# neocon /dev/ttyUSB{0,1,2}
If you don't like the one it picked, you can switch to the next with
~n
This is useful for dynamically allocated devices, such as ttyUSBn
or ttyACMn
. You can of course also use them with other communication
programs - there's certainly no shortage of them - but then you have
to handle reconnects manually.
[edit] Installation
Download the source from http://svn.openmoko.org/developers/werner/neocon/ to a directory of your choice and build neocon by issuing
make
[edit] Usage
To connect to the U-Boot use
./neocon -t 30 /dev/ttyACM0
To quit neocon type:
~.
An alternative to NeoCon is picocom.