1. Install the following packages
sudo apt-get install g++ libncurses5-dev sudo apt-get install libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi sudo apt-get install u-boot-tools install mtd-utils