1. extract ncurses-5.9 2. cd ncurses 3. exchange config.sub (just add foolos) and add +x 4. put termios.h in sysroot/usr/include/sys 5. ./configure --host=i686-foolos --without-tests 6. make