Online can find a lot of minicom transplant documents, I also do, write this document is to solve some of the web based on the compilation process and the use of problems.
1, download minicom (http://alioth.debian.org/projects/minicom/) and ncurses (http://directory.fsf.org/project/ncurses/) source code.
Minicom compilation requires the use of the ncurses library, so compile NCurse first
2, compile ncurses, create m.sh under the source code directory, and give executable permission, the file content is as follows:
#!/bin/sh
pwd= ' pwd '
Export path= $PATH:/home/toolchains/arm-2009q1/bin
Export CC=ARM-NONE-LINUX-GNUEABI-GCC
./configure CC=ARM-NONE-LINUX-GNUEABI-GCC \
--prefix=${pwd}/. /target \
--host=arm-linux \
Cppflags=-i/home/toolchains/arm-2009q1/arm-none-linux-gnueabi/include \
Ldflags=-l/home/toolchains/arm-2009q1/arm-none-linux-gnueabi/lib
Make
Make install
Note: My cross-compilation tool is under/HOME/TOOLCHAINS/ARM-2009Q1
The library generated after executing m.sh is under the Code directory sibling directory target
3, compile minicom, create m.sh under the source code directory, and give executable permission, the file content is as follows:
#!/bin/sh
pwd= ' pwd '
Export path= $PATH:/home/toolchains/arm-2009q1/bin
#./configure CC=ARM-NONE-LINUX-GNUEABI-GCC--prefix=${pwd}/. /target--host=arm-linux cppflags=-i${pwd}/. /.. /ncurse/target/include ldflags=-l/home/toolchains/arm-2009q1/lib ldflags=-l${pwd}/. /.. /ncurse/target/lib--enable-cfg-dir=/etc/minicom/
Make
Make install
Note: My cross-compilation tool under/HOME/TOOLCHAINS/ARM-2009Q1, the NCurse library file directory needs to be modified according to the actual situation
The library generated after executing m.sh is under the Code directory sibling directory target
4, copy the minicom executable file to the Development Board above use.
Problem:
1. Hint no termcap entry for vt102 error
Echo $TERM on the Development Board, prompting vt102
Locate the Linux (Ubuntu 10.04) directory on your PC/lib/terminfo/v directory and file to the Development Board Usr/share/terminfo, and set the environment variables on the board Terminfo=/usr/share/terminfo , Command for Export terminfo=/usr/share/terminfo
2. Unable to exit minicom on the Development Board
The input ctrl-a will exit the host's minicom without exiting the board, and the minicom source code must be modified to resolve the problem.
Modify minicom Source code directory under/SRC/RWCONF.C, find struct param mpars[] in the definition of {"^a", 0, "Escape-key"} items, I changed to "^b"
3. Unable to save configuration file
Create a/etc/minicom folder and give read and write access to it
All modified source code and VT102 documents can be downloaded at the following address:
http://download.csdn.net/detail/cokewei/5022355
Minicom porting and modifying no termcap entry for vt102 and unable to exit the problem (GO)