Xun uses Yocto file system to develop QT file system for i.MX6ULL Terminator

Article Directory
1 Use of external storage devices (U disk, TF card)
2 Network configuration
3 Touch test
4 Screen brightness (backlight)


All the test programs in this section require the development board to have a Qt environment to run. The file system we provide is tailored by Yocto. Later, we will organize a separately transplanted qt system. It is convenient for users to transplant third-party software. If the user's file system is not our factory version, please refer to the previous programming chapter to reprogram the factory file system. To start the development board, you need to enter the login name: root, no password by default.

1 Use of external storage devices (U disk, TF card)
We often use U disk TF card copy programs when testing qt programs. Yocto system will automatically mount when using these devices, which is very convenient. Here we require the drive letter partition format to be FAT32.
First start the development board, we insert the U disk into the USB interface, there will be printed information as shown in Figure 1.1.
Insert picture description here

Then use the command "df" to view the directory automatically mounted on the U disk. Figure 1.2:
Insert picture description here

Then we use the command "cd /run/media/sda1/" to enter the U disk directory. As shown
in Figure 1.3: Insert the picture description here

In the same way, there will be corresponding printing information when TF card is inserted. Figure 1.4:
Insert picture description here

We use the command "df" to view the directory mounted on the corresponding partition.
Insert picture description here

Here we note that the "/dev/mmcblk1p1" device of the commercial-grade core board is a separate partition provided by emmc for the kernel device tree. Try not to use it. We use the command "ls /run/media/mmcblk1p1" to see the device tree kernel file. Figure 1.6:
Insert picture description here

2 Network configuration
Yocto automatically configures eth0 by default, and we start the development board. Connect the network cable to the Ethernet2 port, and there will be a printed message as shown in Figure 2.1.
Insert picture description here

We can use the command "ifconfig" to view the related configuration of eth0. As shown
in Figure 2.2: Insert the picture description here

The configuration file is /etc/network/interfaces, we use the command "vi /etc/network/interfaces" to open the configuration file. As shown
in Figure 2.3: Insert the picture description here

We can see that eth0 is dynamically allocated ip, which may cause the ip to change every time the device is started, as shown
in Figure 2.4: insert the picture description here

Here we modify eth1 to static ip and add the following code.

As shown
in Figure 2.5: Insert the picture description here

Save and exit after modification.
Here we use the command "/etc/init.d/networking restart" to restart the network service. As shown
in Figure 2.6: Insert picture description here

After it takes effect, use the command "ifconfig" to view the configuration of eth1.
Insert picture description here

Then we use the command "ping -I 192.168.1.120 www.baidu.com" to specify eth1 to ping Baidu. As shown
in Figure 2.8: Insert the picture description here

3 Touch test
After the first start of the programming file system, we will first run the five-point touch calibration program "ts_calibrate". If the test point is accidentally clicked wrong during the calibration process, you can use the command "rm -rf /etc/ "pointercal" deletes the coordinate file. As shown
in Figure 3.1: Insert the picture description here

Use the command "reboot" to restart and recalibrate. Or use the command "ts_calibrate" to recalibrate directly. As shown
in Figure 3.2: Insert the picture description here

Then we can use the command "ts_test" to test the touch. As shown
in Figure 3.3: insert the picture description here

This program will print the coordinate information on the terminal, and the screen effect is shown
in Figure 3.4: Insert the picture description here

4 Screen brightness (backlight)
users can adjust the backlight through the console command after the file system is started. The reference command is as follows.
(1) Turn off the screen backlight:
echo 0> /sys/devices/platform/backlight/backlight/backlight/brightness
(2) Make the screen display backlight:
echo 6> /sys/devices/platform/backlight/backlight/backlight/brightness
( 3) Maximize the screen brightness:
echo 7> /sys/devices/platform/backlight/backlight/backlight/brightness
Modify the screen brightness by modifying the value of the screen backlight brightness file, the maximum value is 7. The specific value can be changed by users according to their needs.

 

Guess you like

Origin blog.csdn.net/mucheni/article/details/113882527