Skip to content

Latest commit

 

History

History
78 lines (62 loc) · 2.56 KB

File metadata and controls

78 lines (62 loc) · 2.56 KB

NXP Linux Yocto Project BSP for NXP Mobile Robotics board(s)

This README contains instructions for setting up a Yocto build for the NXP Mobile Robotics board(s) release image.

Supported Machines

  • imx8mpnavqdesktop - NavQPlus (i.MX8M Plus) with Ubuntu-based rootfs
  • imx95-navqadesktop - NavQX (i.MX95) with Ubuntu-based rootfs

Install setup for Ubuntu 24.04 build system

sudo apt-get install -y gawk wget diffstat unzip texinfo \
    gcc-multilib build-essential chrpath socat file cpio python3 \
    python3-pip python3-pexpect xz-utils debianutils iputils-ping \
    libsdl1.2-dev xterm tar locales net-tools rsync sudo vim curl zstd \
    liblz4-tool libssl-dev bc lzop libgnutls28-dev efitools

On Ubuntu 24.04, you may need to disable AppArmor userns restriction for bitbake:

echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns

Manual Build (Recommended)

mkdir ~/nxp-mr-build && cd ~/nxp-mr-build

# Install repo tool
mkdir -p ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH=${PATH}:~/bin

# Initialize and sync
repo init -u https://github.com/rudislabs/mr-imx-manifest -b lf-6.12.49-2.2.0-walnascar-mr -m imx-6.12.49-2.2.0-navqplus.xml
repo sync

# Setup build environment and build
EULA=1 MACHINE=imx8mpnavqdesktop source imx-setup-release.sh -b build
bitbake imx-image-ros

Automated Build Script

wget -q https://raw.githubusercontent.com/rudislabs/meta-nxp-mr/refs/heads/lf-6.12.49-2.2.0-walnascar-mr/scripts/build.sh
chmod a+x build.sh
./build.sh

Notice

The default PoC build will create the account "user" with the password "user" for desktop evaluation.

If you want to add multiple accounts, you can set as below in <build_dir>/conf/local.conf. (every user setting should be split by a space).

APTGET_ADD_USERS:append = " user1:<password hash>:${USER_SHELL_BASH} user2:<password hash>:${USER_SHELL_BASH}"

How to generate password hash value? LDP system password generated by openssl algorithm, the default algorithm is MD5, such as:

openssl passwd -1 ab123

Then return value is "$1$FP6PEJWC$e7l2p4w5ek4XDRRrdAwIo/" from terminal, write this value in local.conf

APTGET_ADD_USERS:append = " user1:\$1\$FP6PEJWC\$e7l2p4w5ek4XDRRrdAwIo/:${USER_SHELL_BASH}"

Important: if the value contains "$", it should escape with "\$".

After build image, you can log in with "user1:ab123" or "user:user"