Thread (4 messages) 4 messages, 3 authors, 1999-12-22

Re: linux-embedded: which shell, termcap or ncurses ?

From: Scott Wood <hidden>
Date: 1999-12-21 21:33:27

Brendan Simon wrote:
I am trying to get a powerpc embedded system up and running.  I have
compiled the kernel and can mount a root filesystem using initrd or
nfs.  I now need to get a shell running so I can call shell scripts to
setup the IP addresses etc via ifconfig (is there any other way ?).

I got the latest version of bash(2.0.3) and ncurses(5.0).  Bash requires
termcap but apparently termcap is obsolete and is replaced by ncurses.
You can still use an earlier 1.x version of bash which is linked to
libtermcap.
It will be much smaller and you probably don't need much functionality in
your 
shell if you're just setting up networking and running simple scripts.
Has anyone cross-compiled a recent version of bash and ncurses ?  Are
they huge ?  Will they fit on a 4MB initrd image ?
My bash, from the yellowdog distro, stripped, is about 400k.
If you're worried about space, strip all your binaries and libraries, 
and look at possibly using a more minimal shell like ash.
Thanks,
Brendan Simon.
-- 
Scott Wood

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help