Skip to content

Setting up software tool chain

psachin edited this page Dec 13, 2012 · 2 revisions

Setting up software tool chain

  • Steps to set up on software side

    1. Get an ubuntu 12.04 machine (any other distro will do, but we have tested on this version of ubuntu)

    2. Download and install Codesourcery cross-compiler from this page, find Download the GNU/Linux Release in ARM processor section, click on link and fill up the form. From link in your email choose the most recent version of toolchain, download the IA32 GNU/Linux Installer version

    3. Download .bin file, make it executable and run it from terminal. Follow the instructions given on the prompt(dash related) and allow GUI installer to copy toolchain to your preferred location. Update the Codesourcery bin directory in your $PATH so that bash can find the binaries

    4. You can alternatively install gcc-arm-linux-gnueabihf instead of Codesourcery cross-compiler, we will use Codesourcery toolchain in rest of this documentation

      sudo apt-get install gcc-arm-linux-gnueabihf
      cpp-arm-linux-gnueabihf
      
    5. Install dependencies for kernel compilation

      apt-get install build-essential dpkg-dev kernel-wedge make
      automake checkinstall git u-boot-tools
      
    6. You may also need adb to extract script.bin from Android's nanda partition and qemu-user-static to install packages in chrooted linux. We will get back to this later. To install adb you can either install entire android-sdk or can you may download binary directly from this link Please make the adb binary executable. And to install qemu-user-static just issue the command

      sudo apt-get install qemu-user-static
      
    7. If you are using x86_64 bit ubuntu then to run adb you must install

      sudo apt-get install ia32-libs-multiarch
      
    8. If you have serial console (Rx, Tx) lines from the board/tablet, then to view console output install minicom (optional)

      sudo apt-get install minicom
      
    9. To setup minicom, connect Aakash's serial port(one which you have soldered out from the board) to your linux machine using suitable level shifter

      sudo minicom -s
      

      and

      • Set the correct serial device(eg. /dev/ttyUSBx)
      • Set BPS to 115200 8N1
      • Hardware flow control to NO
      • Software flow control to NO

      Save the setting as default and exit. From next time when you connect serial console device from Aakash to your ubuntu machine and run

      sudo minicom
      

    N.B: The above serial port setup and minicom are totally optional and will not be discussed later. Please search on web for more details.

Clone this wiki locally