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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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

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.

111.png

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.15.png
  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.
  1. 12.jpg

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:

13.jpg

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:

14.jpg

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

Labels (1)
Comments

I have set up the development environment as mentioned. Could you explain how I could make an application to turn on/off GPIO_5 using Debian.

Thanks In Advance

Hi Prashan,
 
GPIO1_IO05 was originally used as the control pin for touch screen. 
If you use it for other purposes, the touchscreen cannot use or reconfigure a control pin for the touchscreen
You need to modify  the kernel source code file “/arch/arm/boot/dts/myb-y6ull-14x14.dts” as below 
Then compile and generate a new dtb file and programm it
 
Define GPIO in dts:
mys6ul01.jpg
Mask out the original usage
mys6ul02.jpg
Best regards,
Linda
No ratings
Version history
Last update:
‎08-16-2018 08:28 PM
Updated by: