Ubuntu 12.04 OS

Ubuntu 12.04 OS User Manual


This manual provides users with a fast guide of Chipsee Industrial Computer (Abbreviate as IPC) about Ubuntu 12.04 OS development. Through this manual, users can quickly understand the hardware resources; users can build a complete compilation of Linux development environment; users can debug Ubuntu 12.04 OS via serial and Internet.










CS10600F070 CS12800F101


Prebuilt files for the various industrial PCs can be found in the OS Downloads.
Below are the links to the prebuilt files for each industrial PC model.

System Features




Kernel 3.14.52


Uboot 2015.04


Ubuntu 12.04 LTS


Python 2.7.9 / Python 3.4.0


Need to be installed by user






[linaro/linaro] or [linaro/root]


You will need to prepare the following items before you can start using the Prebuilt Files Package to re-flash the system.

Power Supply Unit (PSU) with the appropriate voltages, as follows:

  • The CS12800F101 product needs a 12V to 36V power adapter.

  • The CS10600F070 product needs a 6V to 36V power adapter.

You need to prepare the Power Adapter by yourself

Hardware Requirements

  • Chipsee Industrial PC

  • PSU according to the instructions above

  • USB-to-serial or other serial cable for debugging

  • USB A-A cable (used only if the hardware configured as OTG)

  • Windows 7 PC

  • Mini-B USB OTG Cable

  • TF Card (at least 4GB) and card reader

Software Requirements

  • Ubuntu 12.04 OS Prebuilt Files Package (from the link above)

  • MFGTools

  • QT4.8.4 for Linux

Getting Started and Tests


Throughout this section, the user can use both the pre-built Ubuntu 12.04 image files and the MFGTools software to burn files to the system, boot system and perform necessary software and hardware test.

Downloading images

Boot Switch Configuration

CS-IMX6 has a boot configuration select switch, as shown on the figure below. You can use the boot select switch to change between three modes, namely:

  • TF Card

  • eMMC Boot

  • Download


Figure 261: Boot Mode Setup

Table 56 Boot Configuration Selection

SW Mode





TF Card
















The user can use both the pre-built Ubuntu 12.04 image files and the MFGTools software to download new images to the system, boot system and perform necessary software and hardware test.

Prebuilt Files Package

You can get the Prebuilt Files Package for each model from links mentioned at the beginning of this documentation. You can also get the Prebuilt Files Package from the DVD in /Ubuntu 12.04/Prebuilds folder. However, it may be outdated so always compare the versions (the last number in the filename is the release date).

The prebuilt package has the following content:

Table 57 Prebuilt Files Package




TF Card boot dtb file


TF Card boot bootloader


TF Card boot kernel file


TF Card boot logo file


TF Card boot rootFS


Shell tools to make bootable TF Card


Simple guidelines


Boot Switch Config Figure


RootFS in target eMMC


Bootloader in target eMMC


Kernel file in target eMMC


Kernel file with frame-buffer


Dtb file in target eMMC


Dtb file with frame-buffer


Logo file in eMMC


Shell tool to download images to eMMC


  • The default zImage and imx6q-sabresd.dtb files support ‘keep the logo from uboot to kernel’ but don’t support framebuffer.

  • We also provide zImage_framebuffer and imx6q-eisd.dtb_framebuffer file versions that support the framebuffer function but do not support the ‘keep the logo from uboot kernel’ feature. If you need the framebufer, just rename these two files to zImage and imx6q-eisd.dtb.

Downloading Images by using MFGTool

The MFGTools can be used to download images into a target device. It is a quick and easy tool for downloading images.

Before downloading images with the MFGTools, set the boot switch to download mode. (refer to Boot Switch Configuration above)

Configuring MFGTool

To configure MFGTool, follow these steps:

  • Untar Mfgtools-K3035-Vx.x.zip file.

  • Open the extracted folder Mfgtools-K3035-Vx.x and edit cfg.ini file.

    Figure 262: Extracted Folder

  • In the cfg.ini file, ensure the name variable is set to Ubuntu-SabreSD-eMMC, as shown on the figure below.

    Figure 263: Cfg.ini file


    The default uImage disable the Frame buffer function. If you want to use Frame buffer, please rename the uImage_has_console to uImage to replace the default uImage.

Copy Image To Android Directory

Follow these steps to copy image to Linux directory:

  • Copy the images from prebuilt-xxx/emmc-flash/emmc/ to Mfgtools-K3035-Vx.x\Profiles\Linux\OS Firmware\files\ubuntu directory. Copy the logo file to Mfgtools-K3035-Vx.x\Profiles\MX6Q Linux Update\OS Firmware\files\logo directory and rename it to logo.bmp.


Figure 264: Prepare Images

Using MFGTool
  1. Connect a USB OTG cable from a Windows PC to the USB OTG port on the IPC.

  2. Change the boot select configuration to 0 1 1 0, as shown on the figure below.

    Figure 265: Boot Switch Config

  3. Connect a 12V-2A power adapter to the IPC and power ON.

  4. On your Windows PC, open the Mfgtools-Rel-XXX_XXXXXX_MX6Q_UPDATER_VXX directory and run the MfgTool2.exe file, as shown on the figure below.

    Figure 266: Run MfgTools2.exe file


    Figure 267: Prepare to start


    If you get a message saying No Device Connected, check the USB-OTG cable to ensure it is ready.


    Figure 268: The USB-OTG cable is not connected correctly.

  5. Click on Start button to download the Image.

    Figure 269: Downloading Images


    If you are using a Window 7 PC, you will receive a prompt that asks you to format the disk. Please ignore or cancel it.


    Figure 270: Cancel format disk

  6. When the process is complete, you click the Stop button to stop downloading Image and exit.

    Figure 271: Download Image is finished

Downloading Images by using the TF card

Follow the steps below to download images onto the eMMC by using the TF Card:

  1. Copy the Prebuilt Files Package to a Linux environment (such as Ubuntu 14.04).

  2. Insert the SD card into your computer. If you are using virtual machines, please ensure the SD card is mounted to the Linux operating system.

  3. Confirm the SD card mount point, /dev/sdX,(e.g., /dev/sdc or /dev/sdb, be sure to use the right one). In a Linux system, you can use the command below to find out what X is.
    $ sudo fdisk –l
  4. Copy the prebuilt-imxv1-csXXXXXfXXXvX-android6-emmc-YYYYMMDD.tar.gz to somewhere(such as $HOME) on the Ubuntu PC.

  5. Extract the prebuilt-imxv1-csXXXXXfXXXvX-android6-emmc-YYYYMMDD.tar.gz
    $ tar -xzvf prebuilt-imxv1-csXXXXXfXXXvX-android6-emmc-YYYYMMDD.tar.gz
  6. Go to the folder
    $ cd prebuilt-imxv1-csXXXXXfXXXvX-android6-emmc-YYYYMMDD
  7. Use the following command to flash the Ubuntu 12.04 OS to the SD card
    $ sudo ./mksdcard.sh --device /dev/sd<?>


    • sd<?> means the SD card mount point, (e.g., /dev/sdc or /dev/sdb) in Ubuntu system.

    • The recommended SD card should be Sandisk Class4 level SD card or above.

  8. The bootable SD Card is now ready. Power OFF the industrial PC and insert the SD Card.

  9. Set the switch S1 to TF card boot mode. (refer to Boot Switch Configuration above)

  10. Connect the industrial PC to PC via COM1. Power ON the IPC.

  11. After 20 minutes, if the LED on industrial PC stays lit, flashing is completed. Using COM1, you can also find this message >>>>>>> eMMC Flashing Completed <<<<<<< which indicates that the system image was downloaded correctly to the eMMC.

  12. Power OFF and set the switch S1 to eMMC boot mode. (refer to Boot Switch Configuration above)

Booting Ubuntu OS and Test


If you want to use root, use this command: $ sudo passwd root

The first time you start Ubuntu 12.04 OS on the industrial PC will take a little time. But after the first time, Ubuntu 12.04 OS will start quickly. It is a successful start if you see the Ubuntu 12.04 OS desktop such as the one shown in the figure below:


Figure 272: Ubuntu 12 Desktop Screen

SD Test

The IPC supports SD card hot-plug. The figure below shows the message when you plug the SD card into IPC. The IPC will mounts the SD Card to /media/xxxx-xxxx directory.


Figure 273: Serial Message


Figure 274: SD Card

USB Flash Disk Test

The USB Flash Disk is like the SD Card. The IPC mounts the USB Flash Disk to /mnt/media_rw/ and /storage/ directory.


Figure 275: USB flash disk test


The SATA does not support hot-plug, but the Ubuntu 12.04 OS supports NTFS, EXT3, and FAT.


Figure 276: SATA test

Network Test

The network uses DHCP to get IP Addresses. You can get network access if you connect a LAN cable from the IPC to a router.
You can change the IP Address with this command.

# ifconfig eth0 down
# ifconfig eth0 192.168.xx.xxx up

Figure 277: Network Test

Sound Card Test

Please open an audio file in Rhythmbox to test the Sound.


Figure 278: Sound Test

Video Test

Please open a video file to test the Video.


Figure 279: Video Test


You can reference this document, IMX6Q U-boot Setting HDMI Output For Android.pdf, to learn about performing HDMI tests.


HDMI does not support hot-plug. The sound comes from the HDMI monitor, neither the speaker nor the headset on board.


You must ensure the IPC has an SDIO Wi-Fi module integrated before performing the Wi-Fi test. If the IPC has an SDIO Wi-Fi Module, you can connect to the Wi-Fi and open a browser to test.

Serial Test

There are five serial ports on the Chipsee IPC: 2 x RS232 and 3 x RS485 (can be customised). Refer to the table below for the available serial device nodes.

Table 58 Serial Ports Nodes on the System


Device Node

COM1(RS232, Debug)











If you use COM2(RS485), you can’t use Bluetooth because COM2(RS485) share pin with Bluetooth.

You can install the SecureCRT or Putty software on a Windows 7 PC to test the serial ports by following these steps:

  • Connect COM1 on industrial PC board to Windows 7 PC.

  • Run Serial Port API App to communicate with Windows 7 PC, as shown on the figure below.

CAN Test

Chipsee Industrial PC is equipped with two CAN busses (CAN1 and CAN2). Two devices can be interconnected. You can test the CAN buses by using the HT application but you must add one 120Ω resistor between CAN_H and CAN_L on one of the two Boards, as shown on the figure below.


Figure 280: CAN Connect


The Chipsee IPC does not mount the 120Ω matched resistor on all CAN signals by default.

Here are a few examples to test CAN by using CAN units

  • Install can-utils
    $ sudo apt install can-utils
  • Set the bit-rate to 50Kbits/sec with triple sampling using the following command (use ROOT user):
    $ sudo ip link set can0 type can bitrate 50000 triple-sampling on


    $ sudo canconfig can0 bitrate 50000 ctrlmode triple-sampling on
  • Bring up the device using the command:
    $ sudo ip link set can0 up


    $ sudo canconfig can0 start
  • Transfer packets
    • Transmit 8 bytes with standard packet id number as 0x10

    $ sudo cansend can0 -i 0x10 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88
    • Transmit 8 bytes with extended packet id number as 0x800

    $ sudo cansend can0 -i 0x800 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 - e
    • Transmit 20 8 bytes with extended packet id number as 0xFFFFF

    $ sudo cansend can0 -i 0xFFFFF 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 -e --loop=20
  • Receive data from CAN bus
    $ sudo candump can0
  • Bring down the device
    $ sudo ip link set can0 down


There are 8 GPIOs, 4 Output, and 4 Input, they are all isolated. You can control the output or input pin voltage by feeding the VDD_ISO suite voltage. The pin voltage should be from 5V to 24V. Refer to the tables below for a detailed port definition:

Table 59 CS80480F070 – V1.0 P11 Port

Pin Number

GPIO Number

















Table 60 CS12800F010 – V1.0 P28 Port

Pin Number

GPIO Number


















You need ROOT permissions to control GPIO.

Set gpio106 Output to high or low using this command

# echo  106  > /sys/class/gpio/export                //export gpio106
# echo  out  > /sys/class/gpio/gpio106/direction     //set gpio106 Output
# echo  1  > /sys/class/gpio/gpio106/value           //Set gpio106 high
# echo  0  > /sys/class/gpio/gpio106/value           //Set gpio106 low

Set gpio30 Input using this command

# echo  30  > /sys/class/gpio/export                  //export  gpio30
# echo  in  > /sys/class/gpio/gpio30/direction        //Set  gpio30 input

Un-export gpio30 using this command

# echo  30  > /sys/class/gpio/unexport                 //un-export  gpio30

Ubuntu 12.04 system debug in Windows

In this section, we will discover how to view the Ubuntu 12.04 system via the serial port and debug the system via USB OTG.
Also, we will discover how to install and uninstall applications via USB OTG.
The following operation is under the Windows 7 x64 environment, similar to other Windows platforms.

View Ubuntu 12.04 system via the serial port

Install the SecureCRT or Putty software on a Windows 7 PC to view the Ubuntu 12.04 system via the serial ports.
Follow these steps to view Ubuntu 12.04 system via the serial port:

  • Connect COM1 on the industrial PC board to Windows 7 PC.

  • Open the SecureCRT or Putty software on the Windows 7 PC and configure it as shown on the figure below.

    Figure 281: SecureCRT configuration

  • Power ON the industrial PC. You will see the serial output information as shown on the figure below.

    Figure 282: Serial output information

  • You can communicate with the system when system boot is complete.

QT development

In this chapter, you will learn how to set up the QT development environment, and develop the first QT application on Chipsee IPC boards.


  1. Download and install QT4.8.4 and QTCreator2.6.2.

Example — Develop a HelloWorld Program

  1. Use QtCreator to create a project, named HelloWorld, as shown on the figure below.

    Figure 283: Create Application

  2. Select IMX kits, as shown on the figure below.

    Figure 284: Kit Selection

  3. Use QMainWindow as the Base class, as shown on the figure below.

    Figure 285: Base Class

  4. Click the Design icon to add one label widget, as shown on the figure below.

    Figure 286: Add Label Widget

  5. Click on the Build icon to build app, as shown on the figure below.

    Figure 287: Build App

  6. Copy the Helloworld app from the /home/leave/qt-creator2.6.2/helloworld to the IPC board’s /home/root/ directory and use the following command to run it:
    # export DISPLAY=:0.0
    # ./HelloWorld

    Figure 288: Install app on IPC


    The command qmake -project, qmake, & make must be done on board, like above.

  7. Add a startup icon for helloworld.
    $ cd /usr/share/applications
    $ sudo vi helloworld.desktop
  8. Add the following content in the helloworld.desktop file, as shown on the figure below.
    [Desktop Entry]
    Exec=/home/linaro/Desktop/helloworld/helloworld %f   // the path of qt binary.
    Icon=/home/linaro/Desktop/helloworld/helloworld.png  // you can replace it by you own icon.

    Figure 289: Add app to desktop

  9. Locate the directory with app icon and copy it to the desktop, as shown on the figure below:

    Figure 290: Copy app icon


This document is provided strictly for informational purposes. Its contents are subject to change without notice. Chipsee assumes no responsibility for any errors that may occur in this document. Furthermore, Chipsee reserves the right to alter the hardware, software, and/or specifications set forth herein at any time without prior notice and undertakes no obligation to update the information contained in this document.

While every effort has been made to ensure the accuracy of the information contained herein, this document is not guaranteed to be error-free. Further, it does not offer any warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document, and no contractual obligations are formed either directly or indirectly by this document.

Despite our best efforts to maintain the accuracy of the information in this document, we assume no responsibility for errors or omissions, nor for damages resulting from the use of the information herein. Please note that Chipsee products are not authorized for use as critical components in life support devices or systems.

Technical Support

If you encounter any difficulties or have questions related to this document, we encourage you to refer to our other documentation for potential solutions. If you cannot find the solution you’re looking for, feel free to contact us. Please email Chipsee Technical Support at support@chipsee.com, providing all relevant information. We value your queries and suggestions and are committed to providing you with the assistance you require.