当前位置:网站首页>NXP imx8mp learning records

NXP imx8mp learning records

2022-06-22 03:16:00 JanKin_ BY

1. With system imx8mp test

take 8mp micro USB Connect to the host computer , Connect the second serial port /dev/ttyUSB2,boot mood choice 0 0 1 0,115200 8  N 1 , Suggest using Minicom, Display as terminal ,root The password goes straight to the carriage .

https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf i.MX 8M Plus | Cortex-A53/M7 | NXP Semiconductors

rely on :

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm rsync curl
mkdir ~/imx-yocto-bsp
cd imx-yocto-bsp
mkdir  bin 
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/imx-yocto-bsp/bin/repo # download repo
chmod a+x ~/imx-yocto-bsp/bin/repo # to repo jurisdiction 
export PATH=~/imx-yocto-bsp/bin:$PATH # Set access 
cd ~/imx-yocto-bsp
git config --global user.name "Your Name"  # Random names 
git config --global user.email "Your Email" # E-mail is unlimited 
git config --list
./bin/repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-hardknott -m imx-5.10.35-2.0.0.xml
./bin/repo sync
######https://source.codeaurora.org/external/imx/imx-manifest
######https://source.codeaurora.org/external/imx/imx-manifest/tree/?h=imx-linux-hardknott  Open the web address to see if there is any system added 

DISTRO=fsl-imx-wayland MACHINE=imx8mp-lpddr4-evk source imx-setup-release.sh -b standalone

If repo sync The process is too long

 modify repo file 
 open ~/bin/repo Document and modify google Address 
# vi ~/bin/repo
From
REPO_URL = 'https://gerrit.googlesource.com/git-repo'
To
REPO_URL = 'https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'

2.yocto Engineering creation

uuu download image

sudo ~/Desktop/uuu -b emmc_all imx-boot imx-image-full-imx8mp-lpddr4-evk.wic.bz2

yocto The cross compilation tool uses

yocto Cross compilation tools

./fsl-imx-xwayland-glibc-x86_64-imx-image-full-cortexa53-crypto-imx8mp-lpddr4-evk-toolchain-5.10-hardknott.sh
 . /opt/fsl-imx-xwayland/5.10-hardknott/environment-setup-cortexa53-crypto-poky-linux

CC rs-hello-realsense.cpp  -o rs-realsense -O1 -lstdc++ -lpthread -lm -ldl -lrt -lrealsense2

yocto Project creation :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
You know imx8m plus yocto project compile with realsense D455 Tutorial links :
https://zhuanlan.zhihu.com/p/402846961
Lower drive :
chmod a+x uuu // Install uuu https://github.com/NXPmicro/mfgtools/releases/tag/uuu_1.4.149
Put the... On the board boot The button is set to USB Serial Download Mode 0 0 0 1
Same as   Execute lsusb You will see a with NXP Serial port
sudo ~/Desktop/uuu -b emmc_all imx-boot imx-image-full-imx8mp-lpddr4-evk.wic.bz2  //yocto Project compilation image
sudo ./uuu LF_v5.10_2.0.0_images_IMX8MPEVK.zip // Official image https://www.nxp.com.cn/document/guide/getting-started-with-the-i-mx-8m-plus-evk:GS-iMX-8M-Plus-EVK
NXP8MP binding WIFI:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Run in the home directory
modprobe moal mod_para=nxp/wifi_mod_para.conf
ifconfig mlan0 up
ifconfig uap0 up
/usr/sbin/wpa_supplicant -B -i mlan0 -c /etc/wpa_supplicant.conf -Dwext
# Search visible wifi
wpa_cli -i mlan0 scan
# Get search results
wpa_cli -i mlan0 scan_result
# Set up wifi Of ssid
# ssid You need to add double quotes , Double quotation marks plus slashes or single quotation marks
wpa_cli -i mlan0 set_network 0 ssid \"BY\"
# Set encryption mode ,WPA-PSK representative :WPA-PSK/WPA2-PSK
wpa_cli -i mlan0 set_network 0 key_mgmt WPA-PSK
# Set up wifi password , Need double quotation marks just like the account number
wpa_cli -i mlan0 set_network 0 psk \"123456789\"
# New configuration wifi It is disabled by default , Enable , When enabled, if there is no connection wifi, newly added wifi Visible, it will be automatically connected
wpa_cli -i mlan0 enable_network 0
# Check the status again , Check whether you are connected to the network
# wpa_state=COMPLETED Indicates that the connection is complete , But if signal_level A small comparison indicates that there is no connection
wpa_cli -i mlan0 status
# preservation wifi To configure , It's best to enable wifi Save after , Otherwise, it will be saved wifi Is disabled by default
wpa_cli -i mlan0 save_config
# Manual from DHCP In order to get IP Address of the :
udhcpc -imlan0
Settings dns

temporary :

vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

permanent

sudo gedit /etc/systemd/resolved.conf

# See resolved.conf(5) for details
[Resolve]
DNS=8.8.8.8
#FallbackDNS=
#Domains=
LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
#DNSStubListener=yes

Looking at the file is really a link ls imx-boot -l

原网站

版权声明
本文为[JanKin_ BY]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220301414443.html