How to Program the OS on MYS-6ULX and Set Development Environment

Document created by Kiddy Xu on Aug 16, 2018
Version 1Show Document
  • View in full screen mode

Measuring only 70mm by 55mm, the MYS-6ULX designed by MYIR is a high-performance low-cost Single Board Computer (SBC) specially designed for industry and Internet of Things (IoT) applications. It is based on NXP i.MX 6UL/6ULL processor family which features the most efficient ARM Cortex-A7 core and can operate at speeds up to 528 MHz.

The MYS-6ULX Single Board Computer supports Yocto and Debian OS. Here we take Debian OS as an example.

 

The programming procedure:

  1.      Prepare an SD card. Open the image file of OS “mys6ull-debian8.rootfs.sdcard” with Win32Disk Imager, then program it into the SD card.
  2.      Power on the MYS-6ULX board. Insert the SD card to the slot, set the dip switch to 0101. Connect the serial port cable and USB power cable to the board, then power on the board.
  3.      Login in the system. The user name is root and the pass word is 123456. View the system information with command cat/etc/issue, the system version is Debian8 as shown below, which means the OS has been programmed into the SD card successfully.

The develop environment I work on PC is Ubuntu VMS, ARMGCC compiler is needed to be installed in the Ubuntu VMS. We can check if the compiler is available with instruction arm-linux-gnueabihf-gcc–v. Ubuntu16 comes with a 5.4 version compiler as below:

We need to install a compiler if the system doesn’t come with one. The toolkit MYIR provided contains that compiler. Open the folder 03-Tools\Toolchain, there is a package named

“gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf.tar.xz”.

Copy this package into a folder of VMS and use commands below to extract it.

xz -dgcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf.tar.xz

tar -xfgcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf.tar

 

We would have a file named gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf after unpacking, then use instruction below to set the compiler:

export PATH= $PATH:$DEV_ROOT/\gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin

exportCROSS_COMPILE=arm-linux-gnueabihfexport

ARCH=arm

View the compiler version again, the information printed on the screen should be:

We can see the compiler version is 4.9.3. Then all the settings of develop environment has been completed.

Attachments

    Outcomes