IMX6ULL study notes (1) - building environment, compiling and programming

1. Build the environment

1.1 Install VMware


Official website download: https://customerconnect.vmware.com/en/downloads/info/slug/desktop_end_user_computing/vmware_workstation_pro/16_0
Baidu network disk: https://pan.baidu.com/s/1oN7H81GV0g6cD9zsydg6vg Extraction code: mrn9
Ali cloud disk : https://www.aliyundrive.com/s/bLRLG49hSJq

1.2 Install Ubuntu


Official website download: https://ubuntu.com/download/desktop
Aliyun mirror: http://mirrors.aliyun.com/ubuntu-releases/Baidu
network disk: https://pan.baidu.com/s/1LzE– l-5k7PLQWhIp-ktBw Extraction code: 347p

1.3 Install the serial port driver

1.4 Install the serial port tool

baud rate 115200

1.5 File transfer between Ubuntu and Windows

1.5.1 Install VMware Tools or open-vm-tools

It is possible to copy and paste common files from Windows to Ubuntu.

1.5.2 Install FileZilla

When we need to transfer large data files from Windows to Ubuntu, we cannot transfer them through VMware Tools, otherwise it will cause errors in the VM tools. At this time, we need a third-party software to transfer large data files.

Official website download: https://www.filezilla.cn/download
Baidu network disk: https://pan.baidu.com/s/1WxcKjbYzMUv0qjAZDDmYlAPassword : jshn

  • Enable FTP service under Ubuntu
    sudo apt-get install vsftpd

  • Wait for the software to be installed automatically. After the installation is complete, use the VI command to open /etc/vsftpd.conf. The command is as follows:
    sudo vi /etc/vsftpd.conf

  • After opening the vsftpd.conf file, find the following two lines, enter i to edit, press Esc, and enter ": and wq" to save:

    local_enable=YES
    write_enable=YES
    
  • Open the FTP write permission, make sure there is no "#" in front of the above two lines, if there is any, cancel it, as shown in the figure after completion:

  • After modification, use the following command to restart the FTP service:
    sudo /etc/init.d/vsftpd restart

  • Use FileZilla to connect to Ubuntu's FTP server:

1.6 File transfer between Ubuntu and development board

View IMX6ULL study notes (3) - mount NFS network file system

1.7 Install the cross compiler

View IMX6ULL study notes (4) - install and use the cross-compilation toolchain

2. Compile

2.1 U-Boot compilation

View IMX6ULL study notes (5) - get and compile U-Boot

3. Burning

3.1 Mirror burn

View IMX6ULL study notes (2) - burn image through SD card

3.2 U-Boot programming

View IMX6ULL study notes (6) - Burn U-Boot through USB OTG (MfgTool tool)
View IMX6ULL study notes (7) - Start U-Boot through SD card


• Written by Leung on September 1, 2022

• Reference: [Wildfire] Linux Foundation and Application Development Practical Guide - Based on i.MX6ULL Series

Guess you like

Origin blog.csdn.net/qq_36347513/article/details/126644730