2010-03-17 07:32:43 minicom can't run on blackfin?
david wang (CHINA)
Message: 87324
Hi,
I compiled minicom2.3 and ncurses lib in our blackfin uClinux-dist. But when I running the minicom in my bf527 board, I got below error message, what's the problem may be? Thanks!
root:/var> ./minicom -s
minicom: WARNING: configuration file not found, using defaults
No termcap entry for linux
root:/var> version
kernel: Linux release 2.6.28.10-ADI-2009R1.1-svn1, build #147 Wed Mar 17 19:30:31 CST 2010
toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release svn-1, build #141 Wed Mar 17 19:29:55 CST 2010
root:/var>
BTW, when I build ncurses lib, I got a compile message ,
done
make[2]: Entering directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib/ncurses'
romfs-inst.sh -e CONFIG_FMT_USE_FDPIC_ELF /home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/staging/usr/lib/libncurses.so.5 /lib/
mkdir -p /home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/romfs/usr/share/terminfo
tic -x -s -e linux,vt100,vt220,xterm -o /home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/romfs/usr/share/terminfo/ ncurses-5.7/misc/terminfo.src
Entries that will be compiled:
1:linux
2:vt100
3:vt220
4:xterm
Sorry, -e can't be used without -I or -C
make[2]: *** [romfs] Error 1
make[2]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib/ncurses'
make[1]: *** [romfs] Error 2
make[1]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib'
make: *** [romfs.subdirs] Error 1
[wangyixin@svnhost uClinux-dist-2009R1.1-RC4]$
I insert an -I before -e in the ncurses Makefile ,and pass the comile, I don't know if that was the resean.
romfs:
$(ROMFSINST) -e CONFIG_FMT_USE_FDPIC_ELF $(STAGEDIR)/usr/lib/libncurses.so.5 /lib/
mkdir -p $(ROMFSDIR)/usr/share/terminfo
tic -x -s -I -e $(NCURSES_TERMS) -o $(ROMFSDIR)/usr/share/terminfo/ $(VER)/misc/terminfo.src
$(ROMFSINST) -d $(STAGEDIR)/usr/bin/tset /usr/bin/tset
$(ROMFSINST) -s tset /usr/bin/reset
QuoteReplyEditDelete
2010-03-17 11:00:26 Re: minicom can't run on blackfin?
Mike Frysinger (UNITED STATES)
Message: 87331
the -I/-C error is because your host machine sucks apparently. a simple 6MB malloc failed on it (see the big-core test in ncurses).
if ncurses isnt installing properly, then you cant really expect things to work on the board.
using -I or -C will not work. fix your build system so that the big-core test passes.
QuoteReplyEditDelete
2010-03-17 23:22:36 Re: minicom can't run on blackfin?
david wang (CHINA)
Message: 87357
Thanks! Can you tell me how to fix the big-core problem of my host? I'm using a Redhat Enterprise 4.1. I gooled the internet, and find a option of --disable-big-core of ncures, how to make it work when we build the target?
QuoteReplyEditDelete
2010-03-17 23:58:14 Re: minicom can't run on blackfin?
Mike Frysinger (UNITED STATES)
Message: 87359
install more ram or upgrade your distro or read the config.log in the host ncurses build dir to find out why it's failing
the problem isnt with the cross-compiling for the Blackfin target