MakerLab, Department of Computer Science, HKU

Developing Application For MIPS Debian 8.1 By Cross-compiling and Using IDE

This article proposes an easy way to develop application written in C/C++ for running on MIPS Debian 8.1 platform by cross-compiling in Netbeans IDE environment. The target board is IOT+ board which embedded an Ingenic jz4780 MIPS processor. The host machine is running Ubuntu 14.04 LTE.

Software Requirement On Host Platfrom:

NetBeans 8 IDE with C/C++ Plugins Dowload here
Sourcery CodeBench Lite for MIPS GNU/Linux cross-compiler  Dowload here
Debian 8.1 MIPS image for IOT+  Dowload here

 

Target platform: IOT+ Board

Specification:

  • MIPS Dual core CPU 1.2G Hz - Ingenic jz4780
  • HDMI up to 2K
  • 3 x USB 2.0 socket
  • 2 x 10/100 BaseT Ethernet socket 
  • WiFi built-in
  • SD card socket for system boot
  • RAM 1G DDR3, NAND memory 4G
  • GPIO, SPI, I2C, ADC, UART, JTAG sensors/interface
  • Header footprint for camera connection
  • Powered from 5V power

Firstly, on the host platform, dump the Debian 8.1 MIPS image to uSD and insert into the PC on USB port. It should be mounted automatically ,assume it is on

 /media/user/rootfs

As a root user, run the following commands to create the symbolic links 

$ ln -s /media/user/rootfs/lib/mipsel-linux-gnu	/lib
$ ln -s /media/user/rootfs/usr/lib/mipsel-linux-gnu /usr/lib

Next uncompressing the Sourcery CodeBench Lite compiler tool chain "mips-2015.11-32-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2" to /opt, assume the destination folder is "mips-2015.11". The absolute installation path will be

/opt/mips-2015.11

The path /media/user/rootfs and /opt/mips-2015.11 will be needed on setting up Netbeans IDE. Now, following below articles on adding Sourcery CodeBench Lite compiler to Netbean IDE and see how to write C/C++ programs for cross-compiling.

Title Hits
Adding Sourcery CodeBench Lite Compiler to Netbean IDE Hits: 1910
Hello World Written in C Hits: 1485
Hello World Written in C++ Hits: 1588
A Demo Program - Driving RC Servo Hits: 1280
  • You are here:  
  • Home
  • Writing and cross-compiling C/C++ programs for MIPS platform

Main Menu

  • Home
  • Maker Talks
  • Enquiry
  • About Us

Makes

  • Making Webbox
  • Hexapod FYP Project
    • Project Details
  • Making Cute USB Speakers
  • Raspberry Pi 3D Printed Vision Enabled Wi-Fi Quadruped Robot
  • Drawing Robot and Selfie Smart Phone App
  • Starrley - 12 DOF Hexapod Robot

Things to Make

  • ED-209 Programming Challenge
  • BugBot - Makes Him Smarter
  • Smart Phone Controlled Omni-directional Wheel Driven Robot
  • Smartphone Driven Pan/Tilt Security IP Cam Surveillance System
  • Smartphone Powered Pan/Tilt Shooting Turret and Mobile Target
  • Pick and Place Game App for 3D Printed Robotic Arm
  • 3D printed Robot Dog Walking on Terrain for STEM education

Wiki

  • Developing embedded application
  • Writing and cross-compiling C/C++ programs for MIPS platform
  • Sketchup Make for 3D Modelling
  • Raspberry Pi Project Shield
  • Using NetBeans IDE to Develop ROS packages
  • Mapping Network Drive Over SSH in Windows
  • A Friendly Approach for Remote Linux Programming
  • Lite Graphical User Interface to Access Remote Linux Server Over SSH

Back to Top

© 2022 MakerLab, Department of Computer Science, HKU