Hongmeng system experience experience Hongmeng system on IMX6ULL

Chapter One Experience Hongmeng System on IMX6ULL

Please download the following file first, which contains the programming software:
https://gitee.com/weidongshan/openharmony_for_imx6ull/repository/archive/master.zip

The official code of Hongmeng kernel Liteos-a currently only supports HiSilicon chips. As the first batch of developers, I moved to Huawei for more than a month and successfully transplanted Liteos-a on 100ASK_IMX6ULL.

This article will let everyone experience Liteos-a first, and will release tutorials, videos, and source code later.

Baiwen.com has developed a flashing software: 100ask_imx6ull_flashing_tool. Its interface is as follows: To
Insert picture description here
use this software, you only need a USB cable to connect the computer and the USB OTG port of the development board, and you can experience the Hongmeng system by clicking a button.

1.1 Familiar with the 100ASK_IMX6ULL start switch

1.1.1 Full-featured version

The full-featured version of 100ask_imx6ull supports three startup methods: USB, EMMC, and SD/TF card. Before using the latter two boot methods, you need to program the system on EMMC or SD/TF card first.

There is a table drawn on the back of the board to show how to set these three methods. The table is as follows:

BOOT CFG

BOOT SW1(LCD_DATA5) SW2(LCD_DATA11) SW3(BOOT_MODE0) SW4(BOOT_MODE1)
EMMC OFF OFF ON OFF
SD ON ON ON OFF
USB X X OFF ON

The schematic diagram of the settings of these three boot modes is as follows:
Insert picture description here
The USB boot mode is mainly used to program the system.
Note: When set to USB boot, SD/TF card cannot be inserted first.

1.1.2 MINI EMMC version

Baiwen.com IMX6ULL EMMC version supports three boot methods: USB, EMMC, and SD/TF card. Before using the latter two boot methods, you need to program the system on EMMC or SD/TF card first.
There is a table drawn on the back of the board to show how to set these three methods. The table is as follows:

BOOT SW1(LCD_DATA5) SW2(LCD_DATA11) SW3(BOOT_MODE0) SW4(BOOT_MODE1)
EMMC OFF OFF ON OFF
SD ON ON ON OFF
USB X X OFF ON

The schematic diagram of the settings of these three boot modes is as follows:
Insert picture description here
The USB boot mode is mainly used to program the system.
Note: When set to USB boot, SD/TF card cannot be inserted first.

1.2 Install the driver

After downloading "100ask_imx6ull burning tool v4.zip", unzip it to get the following directory:
Insert picture description here
Run the program in the picture above.

1.2.2 Connect USB OTG cable

First set the development board to USB boot mode, connect 2 USB cables, and power on the development board.

(1) Full-function version wiring method
Insert picture description here
(2) MINI EMMC version wiring method
Insert picture description here

1.2.3 Install the USB driver of IMX6ULL

When downloading or programming the program via USB, you need to connect the OTG port of the development board to the computer with a USB cable. Generally, the driver is installed automatically. When the green light of the programming software is not on, it is very likely that the driver has not been installed properly. At this time, you need to install the driver manually.

  1. VMWARE may intercept USB devices and cause programming failure.
    If you run VMWARE, it will intercept USB devices, and there may be the following prompt:
    Insert picture description here
    To select "Connect to host", check "Remember my choice and do not ask again" .
    Maybe you accidentally clicked the wrong "Connect to Virtual Machine", that's okay. Disconnect "Freescale SE Blank 6ULL" or "Netchip USB download gadget" in the VMWARE menu, as shown in the following figure:
    Insert picture description here
  2. The USB driver is not installed automatically.
    When downloading or programming the program via USB, you need to connect the OTG port of the development board to the computer with a USB cable. The IMX6ULL development board will simulate two USB devices through this OTG port (simulation one after the other, not at the same time): "Freescale SE Blank 6ULL", "USB download gadget". Generally, the driver will be installed automatically. If the driver is not installed, you can download "zadig" to install the driver.
    Install the first driver: As long as the development board is set to USB boot (don't insert SD/TF card) and power on, the computer will recognize the "Freescale SE Blank 6ULL" device, and usually automatically install the driver for it.
    If the driver is not installed automatically (the "device is connected" green light is off), use zadig to install the libusb-win32 driver.
    First go to https://zadig.akeo.ie/ to download and run zadig, then refer to the figure below to install the driver:
    Insert picture description here
    Install the second driver: When the green light of "device connected" of the programming tool is on, you can click Click the "Run" button on the "version", then the computer will recognize the "USB download gadget" device, and usually install the driver for it automatically, as shown in the figure below:
    Insert picture description here
    If the driver is not installed automatically (the "firmware is running" green light is off) , First go to https://zadig.akeo.ie/ to download and run zadig, then refer to the following figure to install the driver:
    Insert picture description here
    if everything is normal, the 2 green lights of the burning tool will be on, as follows:
    Insert picture description here
    This means that all the drivers are installed Now, you can restart the development board, and you can refer to the following chapters to experience Hongmeng.

1.3 Where is the Hongmeng file

In the "100ask_imx6ull programming tool v4" directory,
Insert picture description here

1.4 One-click experience of Hongmeng: download to memory and run

1.4.1 One-click start

Set the development board to USB boot, connect 2 USB lines, install the driver, run the programming tool, click the button shown in the figure below, observe the serial port information, you can see that the board has booted into the Hongmeng system: the
Insert picture description here
serial port information is as follows :
Insert picture description here

1.4.2 Execute shell commands

Execute the help command, you can see the supported SHELL commands, as follows:
Insert picture description here

1.4.3 Execute GUI program of digital photo frame

Note: "./bin/digitpic" must be used, not the absolute path "/bin/digitpic"
Note: This GUI program is written by ourselves, which is ugly and has nothing to do with Hongmeng .
Insert picture description here
You can see on the board screen:
Insert picture description here

1.4.4 Exit the program

Execute the task command to determine the process number, and then execute "kill -9 PID" to kill the process, such as:
Insert picture description here

1.5 Automatically start Hongmeng at boot

Set the development board to USB boot, connect 2 USB lines, install the driver, and run the programming tool.

First, click the button
Insert picture description here
as shown in the figure below: Then set the default system, as shown in the figure below:
Insert picture description here
Finally, set it to EMMC to start, and then power on again to automatically enter the Hongmeng system.

Full text download
Technical Exchange Group (
Hongmeng Development/Linux/Embedded/Driver/Data Download) QQ Group: 869222007

Guess you like

Origin blog.csdn.net/thisway_diy/article/details/108665514