In this document covers OKMX8MQ platform system Settings, including the LOGO change, since the launch of electricity program Settings, Uboot menu selection screen, TF card burning to add environment variables, such as the source image, etc., please download the user data provided fly ling official,
A, Logo change
U fly ling iMX8MQ development board - the boot stage can be displayed on LCD and the LOGO image, if you want to change the LOGO please replace:
OKMX8MQ - Linux - SDK/images/boot/logo. The BMP
Requirements for 24 bits BMP format pictures, a resolution of 1024 x600,
Second, since the launch of electricity application Settings
Here is introduced a way of using systemd to configure any boot from the initiator's method,
For the convenience of user testing, we the default load at system startup autorun systemd service. The service, in the
./lib/systemd/system/autorun sevice
Can see the configuration file:
Users can put his boot from rev application in script/etc/autorun. Sh, so as to realize boot from kai,
The Description of parameter represents the service Description (printing) in boot terminal, ExecStart parameter represents the absolute path to the execution of the script, the default is/etc/autorun. Sh file (the user can modify),
If we start the service cannot meet the demand, also can add systemd services, the following example,
Will iMX8MQ development board on the electric start, in the terminal iMX8MQ development board into the/home/root/directory, execute the following command to create a script file, and modify the permissions:
$echo '#!/bin/sh '& gt;>/home/root/helloworld. Sh
$echo 'GST - play - 1.0/home/forlinx/audio/test. The mp3' & gt;>/home/root/helloworld. Sh
$chmod 777/home/root/helloworld. Sh
Into the "/lib/systemd/system/" directory, and create a helloworld. Service files, command is as follows:
$CD/lib/systemd/system
$vi. The helloworld service
The contents of the file is as follows:
[Unit]
Description=helloworld
After=basic. Service X.s ervice thermal - zone - init. Service
[Service]
ExecStart=/home/root/helloworld. Sh
[Install]
WantedBy=multi - user. Target
The Description of a line should be written to the service name, ExecStart need to write to the absolute path to the executable file,
After the save, execute the following command in terminal:
$systemctl - f the enable/lib/systemd/system/helloworld. Service
At this time can will take effect since the launch of the newly added service, restart imx8MQ development board, the program can be run automatically, in default of the audio can be heard the audio output,
Three, display the desktop at the top of the status bar
By default, weston desktop status bar at the top of the display time information was set to hide, if you need the display, can be set according to the following method,
If there is a full-screen application according to demand, can be modified according to the following method, hide the status bar at the top development board to electricity, enter the following command in the terminal iMX8MQ development board, open the configuration file of weston:
$vi/etc/XDG/weston/weston. Ini
Modify the file content is as follows:
[shell]
Locking=false
The panel - position=top
Four, the Uboot menu select screen
IMX8MQ development board, the serial port debugging terminal input any key, enter uboot menu options, options and capabilities can be set through the menu system,
Press SPACE to abort autoboot in 1 seconds
# # forlinx params set menu...
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
0: reboot
1: the exit to the shell
2: MIPI7 - lcdif
3: MIPI7 - DCSS
4: HDMI
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Button 0: restart the development board;
Button 1: enter the command line mode;
Button 2: choose the display screen for the 7 inch MIPI (1024 x600) display controller using LCDIF;
Button 3: choose the Display screen for the 7 inch MIPI (1024 x600) show that the Controller using the Display Controller.
Keys 4: select screen for HDMI output,
Note: MIPI7 - DCSS USES the device tree ok8mq evk - DCSS - MIPI7. DTB, MIPI7 lcdif and HDMI using the device tree ok8mq - evk. DTB,
Five, TF card burning to add environment variables
When users use TF card burning, you can add a name in the TF card for env. Ini text, add the environment variables within the text, text to add environment variables need to be in accordance with the "environment variable name=environment variable value" of the format to add, every behavior of the environment variable, in the process of burning, burning program according to the reading environment variables, conform to the format of the environment variables will be appended to the default environment variables,
, after the completion of burning iMX8MQ development board at the time of the first time you start will default environment variables and additional environment variables are written to a storage medium, if additional environment variables and mirror the built-in environment variable name, the same will overwrite the original environment variable values,
Example 1: additional environment variables and mirror the default environment variables with the same name, such as adding the environment variable newenv=123456
Environment variable can add a new environment variable newenv=123456,
Example 2: additional environment variables and mirror the default environment variable names are the same, the value of the additional environment variables will replace the original value, such as the default in mirror bootdelay=1, the additional environment variables in bootdelay=3, is the ultimate values of environment variables bootdelay 3, replace the default environment variable values in the mirror,
Related products:
CodePudding user response:
The original link: https://www.forlinx.com/article_view_598.html