Page 5
The code examples lines begin with “host:~$”, “target:~$” or “u-boot=>”. This describes where the commands are to be executed. Only after these keywords must the actual command be copied. PHYTEC provides a variety of hardware and software documentation for all of our products. This includes any or all of the following: •...
Page 6
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 On top of these standard manuals and guides, PHYTEC will also provide Product Change Notifications, Application Notes, and Technical Notes. These will be done on a case-by-case basis. Most of the documen- tation can be found on the https://www.phytec.de/produkte/system-on-modules/phycore-imx-8m-mini/...
CHAPTER SUPPORTED HARDWARE The phyBOARD-Polis populated with the i.MX 8M Nano SoC is supported. On our web page, you can see all supported Machines with the available Article Numbers for this release: BSP-Yocto-NXP-i.MX8MM-PD23.1.0 download. If you choose a specific Machine Name in the section Supported Machines, you can see which Article Numbers are available under this machine and also a short description of the hardware information.
CHAPTER GETTING STARTED The phyCORE-i.MX8M Nano Kit is shipped with a pre-flashed SD card. It contains the phytec-headless- image and can be used directly as a boot source. The eMMC is programmed with only a U-Boot by default. You can get all sources from the PHYTEC download server.
Page 10
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Selecting the wrong device may result in data loss and e.g. could erase your currently running system on your host PC! 2.2.1 Finding the Correct Device To create your bootable SD card, you must first find the correct device name of your SD card and possible partitions.
Page 11
2.2.4 Using After having unmounted all SD card’s partitions, you can create your bootable SD card. Some PHYTEC BSPs produce uncompressed images (with filename-extension *.wic), and some others pro- duce compressed images (with filename-extension *.wic.xz). To flash an uncompressed images (*.wic) use command below: host:~$ sudo dd if=phytec-headless-image-phyboard-polis-imx8mn-2?(.rootfs).wic of=/dev/<your_...
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 2.3 First Start-up • To boot from an SD card, bootmode switch (S1) needs to be set to the following position: Table 1: Bootmode Selection Fig. 1: SD Card Boot • Insert the SD card •...
Manual (kirkstone). 3.1 Basic Set-Up If you have never created a Phytec BSP with Yocto on your computer, you should take a closer look at the chapter BSP Workspace Installation in the Yocto Reference Manual (kirkstone). 3.2 Get the BSP There are two ways to get the BSP sources.
Page 14
• Build your image: host:~/yocto/build$ bitbake phytec-headless-image Note For the first build we suggest starting with our smaller non-graphical image phytec-headless-image to see if everything is working correctly. host:~/yocto/build$ bitbake phytec-headless-image The first compile process takes about 40 minutes on a modern Intel Core i7. All subsequent builds will use the filled caches and should take about 3 minutes.
Page 15
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 3.2.2 BSP Images All images generated by Bitbake are deployed to . The following ~/yocto/build/deploy*/images/<machine> list shows for example all files generated for the phyboard-polis-imx8mn-2 machine: • u-boot.bin: Binary compiled U-boot bootloader (U-Boot). Not the final Bootloader image! •...
Page 16
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Building the BSP...
CHAPTER FOUR INSTALLING THE OS 4.1 Bootmode Switch (S1) The phyBOARD-Polis features a boot switch with six individually switchable ports to select the phyCORE- i.MX 8M Nano default bootsource. Hardware revision baseboard: 1532.2 and newer...
Page 18
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Table 1: Bootmode Selection Fig. 1: eMMC (Default SoM boot) Fig. 2: USB Serial Downloader Fig. 3: SD Card Fig. 4: Internal Fuses Fig. 5: SPI NOR Installing the OS...
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Table 2: Switch between USB HOST/OTG using Pos5 of switch(S1) Fig. 7: USB OTG Fig. 6: USB HOST Table 3: Switch between UART1 RS485/RS232 using Pos4 of switch(S1) Fig. 8: UART1 RS485 Fig.
Page 20
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 target:~$ blkid can be run to inspect whether the current setup is affected. If have an identical mmcblk2p1 mmcblk1p1 UUID, the setup is affected. 4.2.1 Flash eMMC from Network i.MX 8M Nano boards have an Ethernet connector and can be updated over a network. Be sure to set up the development host correctly.
Page 21
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Flash eMMC from Network in U-Boot on Target These steps will show how to update the eMMC via a network. This step only works if the size of the image file is less than 1GB due to limited usage of RAM size in the Bootloader after enabling OPTEE.
Page 22
Flash eMMC from USB in Linux These steps will show how to flash the eMMC on Linux with a USB stick. You only need a complete image saved on the USB stick and a bootable WIC image. (e.g. phytec-headless-image-phyboard-polis-imx8mn- 2.|yocto-imageext|). Set the bootmode switch (S1) to SD Card.
Page 23
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 (continued from previous page) 61.504607] scsi 0:0:0:0: Direct-Access 8.07 PQ: 0 ANSI: 2 61.515283] sd 0:0:0:0: [sda] 3782656 512-byte logical blocks: (1.94 GB/1.80 GiB) 61.523285] sd 0:0:0:0: [sda] Write Protect is off 61.528509] sd 0:0:0:0: [sda] No Caching mode page found...
Page 24
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 (continued from previous page) mmc2(part 0) is current device u-boot=> setexpr nblk ${filesize} / 0x200 u-boot=> mmc write 0x58000000 0x0 ${nblk} MMC write: dev # 2, block # 0, count 1024000 ... 1024000 blocks written: OK u-boot=>...
#0, OK mmc2(part 0) is current device • Flash your WIC image (for example phytec-headless-image.rootfs.wic) from the SD card to eMMC. This will partition the card and copy imx-boot, Image, dtb, dtbo, and root file system to eMMC.
Page 26
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 4.3.1 Flash SPI NOR Flash from Network The SPI NOR can contain the bootloader and environment to boot from. The arm64 kernel can not decompress itself, the image size extends the SPI NOR flash populated on the phyCORE-i.MX 8M Nano.
Page 27
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 u-boot=> sf erase 0x400000 0x100000 4.3.2 Flash SPI NOR Flash from SD Card The bootloader on SPI NOR flash can be also flashed with SD Card. Flash SPI NOR from SD Card in kernel on Target •...
The RAUC (Robust Auto-Update Controller) mechanism support has been added to meta-ampliphy. It controls the procedure of updating a device with new firmware. This includes updating the Linux kernel, Device Tree, and root filesystem. PHYTEC has written an online manual on how we have intergraded RAUC into our BSPs: L-1006e.A6 RAUC Update &...
-R o+r /srv/tftp • You also need to configure a static IP address for the appropriate interface. The default IP address of the PHYTEC evaluation boards is 192.168.3.11. Setting a host address 192.168.3.10 with netmask 255.255.255.0 is a good choice.
Page 30
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 • Set TFTP_ADDRESS to the host address the server is listening to (set to 0.0.0.0:69 to listen to all local IPs) • Set TFTP_OPTIONS, the following command shows the available options: host:~$ man tftpd •...
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 (continued from previous page) Warning Be careful when creating subnets as this may interfere with the company network policy. To be on the safe side, use a different network and specify that via the configuration option.
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 5.2.2 Set the bootenv.txt for Netboot Create a bootenv.txt file in your tftp directory and write the following variables into it. bootfile=Image fdt_file=oftree nfsroot=/srv/nfs overlays=<overlayfilenames> <overlayfilenames> has to be replaced with the devicetree overlay filenames that you want to use. Separate the filenames by spaces.
Page 33
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 5.3.2 Get Images Download imx-boot from our server or get it from your Yocto build directory at build/deploy-ampliphy- vendor/images/phyboard-polis-imx8mn-2/. For flashing a wic image to eMMC, you will also need phytec- headless-image-phyboard-polis-imx8mn-2.rootfs.wic. 5.3.3 Prepare Target Set the bootmode switch (S1) to USB Serial Download.
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 5.3.6 Flashing wic Image to eMMC via UUU-Tool Execute and power up the board: host:~$ sudo uuu -b emmc_all imx-boot phytec-headless-image-phyboard-polis-imx8mn-2.rootfs.wic 5.3.7 Flashing SPI NOR Flash via UUU-Tool Execute and power up the board: host:~$ sudo uuu -b qspi imx-boot-phyboard-polis-imx8mn-2-fspi.bin-flash_evk_flexspi...
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 host:~$ source sources/poky/oe-init-build-env host:~$ bitbake -c populate_sdk phytec-headless-image # or another image After a successful build the SDK installer is deployed to build/deploy*/sdk 5.4.3 Install the SDK • Set correct permissions and install the SDK:...
Page 36
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 host:~/u-boot-imx$ source /opt/ampliphy-vendor/4.0.13/environment-setup-cortexa53-crypto- phytec-linux → 5.5.2 Get the needed binaries To build the bootloader, you need to copy these files to your u-boot-imx build directory and rename them to fit with mkimage script: •...
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 5.6 Kernel standalone build 5.6.1 Setup sources • The used linux-imx branch can be found in the release notes • The tag needed for this release is called v5.15.71_2.2.2-phy3 • Check out the needed linux-imx tag: host:~$ git clone git://git.phytec.de/linux-imx...
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 5.6.3 Copy Kernel to SD Card When one-time boot via netboot is not sufficient, the kernel along with its modules and the corresponding device tree blob may be copied directly to a mounted SD card.
Page 39
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 5.9.1 Gparted • Get GParted: host:~$ sudo apt install gparted • Insert the SD Card into your host and get the device name: host:~$ dmesg | tail [30436.175412] sd 4:0:0:0: [sdb] 62453760 512-byte logical blocks: (32.0 GB/29.8 GiB) [30436.179846]...
Page 40
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 default option in resize2fs which causes a incompatibility. See release notes. • Choose your SD Card device at the drop-down menu on the top right • Choose the ext4 root partition and click on resize:...
Page 41
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 • Drag the slider as far as you like or enter the size manually. • Confirm your entry by clicking on the “Change size” button. Development...
Page 42
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 • To apply your changes, press the green tick. • Now you can mount the root partition and copy e.g. the phytec-headless-image-phyboard-polis- imx8mn-2.wic image to it. Then unmount it again: host:~$ sudo cp phytec-headless-image-phyboard-polis-imx8mn-2.wic /mnt/ ; sync...
Page 43
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 • Choose the bigger unallocated area and press “New”: • Click “Add” Development...
Page 44
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 • Confirm your changes by pressing the green tick. Development...
Page 45
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 • Now you can mount the new partition and copy e.g. phytec-headless-image-phyboard-polis-imx8mn- 2.wic image to it. Then unmount it again: host:~$ sudo mount /dev/sde3 /mnt host:~$ sudo cp phytec-headless-image-phyboard-polis-imx8mn-2.wic /mnt/ ; sync...
Page 46
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Development...
6.2 PHYTEC i.MX 8M Nano BSP Device Tree Concept The following sections explain some rules PHYTEC has defined on how to set up device trees for our i.MX 8M Nano SoC-based boards.
Page 48
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 (continued from previous page) imx8mn-phycore-rpmsg.dtbo imx8mn-phycore-no-eth.dtbo imx8mn-phycore-no-spiflash.dtbo imx8mn-vm016.dtbo imx8mn-vm016-fpdlink.dtbo imx8mn-vm017.dtbo imx8mn-vm017-fpdlink.dtbo imx8mn-dual-vm017-fpdlink.dtbo The usage of overlays can be configured during runtime in Linux or U-Boot. Overlays are applied during the boot process in the bootloader after the boot command is called and before the kernel is loaded. The next sections explain the configuration in more detail.
Page 49
MMC device or via TFTP. The main intention of this file is to store the ${overlays} variable. This makes it easy to pre-define the overlays in Yocto depending on the used machine. The content from the file is defined in the Yocto recipe bootenv found in meta-phytec: https://git.phytec.de/ meta-phytec/tree/recipes-bsp/bootenv?h=kirkstone Other variables can be set in this file, too.
Page 50
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Caution Libubootenv takes the environment selected in a configuration file. The environment to use is inserted there, and by default it is configured to use the eMMC environment (known as the default used environ- ment).
Please read section PHYTEC i.MX 8M Nano BSP Device Tree Concept to get an understanding of our i.MX 8 BSP device tree model. The following sections provide an overview of the supported hardware components and their operating system drivers on the i.MX 8 platform.
In this case, the internal resistors are disabled. 7.2 RS232/RS485 The i.MX 8M Nano SoC provides up to 4 UART units. PHYTEC boards support different numbers of these UART units. UART1 can also be used as RS-485. For this,...
Page 53
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 7.2.2 RS485 Hint Remember to use bus termination resistors of 120 Ohm at each end of the bus, when using longer cables. For easy testing, look at the linux-serial-test. This tool is called the IOCTL for RS485 and sends a constant stream of data.
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 (continued from previous page) RTS delay after send: Receive during sending data: false Bus termination enabled: false Then you can test if sending and receiving works like this: target1:~$ cat /dev/ttymxc1 target2:~$ echo test >...
Page 55
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 7.3.1 Network Environment Customization U-boot network-environment • To find the Ethernet settings in the target bootloader: u-boot=> printenv ipaddr serverip netmask • With your development host set to IP 192.168.3.10 and netmask 255.255.255.0, the target should return: u-boot=>...
Page 56
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 (continued from previous page) UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) • Temporary adaption of the eth0 configuration: target:~$ ifconfig eth0 192.168.3.11 netmask 255.255.255.0 up...
Page 57
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Now a connection can be established: target:~$ wpa_supplicant -D nl80211 -c /etc/wpa_supplicant.conf -i wlan0 -B This should result in the following output: Successfully initialized wpa_supplicant The ip address is automatically configured over DHCP. For other possible IP configurations, see section Changing the Network Configuration in the Yocto Reference Manual (kirkstone).
Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 7.5 eMMC Devices PHYTEC modules like phyCORE-i.MX 8M Nano is populated with an eMMC memory chip as the main storage. eMMC devices contain raw Multi-Level Cells (MLC) or Triple-Level Cells (TLC) combined with a memory controller that handles ECC and wear leveling. They are connected via an SD/MMC interface to the i.MX 8M Nano and are represented as block devices in the Linux kernel like SD cards, flash drives, or...
Page 60
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 The JEDEC standard v5.1 introduces a new automatic BKOPS feature. It frees the host to trigger the background operations regularly because the device starts BKOPS itself when it is idle (see the description of bit AUTO_EN in register BKOPS_EN (Reg: 163)).
Page 61
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 The first Reliable Write option is mostly already enabled on the eMMCs mounted on the phyCORE-i.MX 8M Nano SoMs. To check this on the running target: target:~$ mmc extcsd read /dev/mmcblk2 | grep -A...
Page 62
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 (continued from previous page) Sect[ 1799.850385] mmcblk2: p1 p2 or size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start Size Type File system Flags 4194kB 72.4MB 68.2MB primary fat16 boot, lba 72.4MB...
Page 63
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Warning When enabling the enhanced attribute on the device, all data will be lost. The following sequence shows how to enable the enhanced attribute. • First obtain the current size of the eMMC device with:...
Page 64
Do not confuse eMMC partitions with partitions of a DOS, MBR, or GPT partition table. The current PHYTEC BSP does not use the extra partitioning feature of eMMC devices. The U-Boot is flashed at the beginning of the user partition. The U-Boot environment is placed at a fixed location after the U-Boot.
Page 65
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 They are located right after the U-Boot and the U-Boot environment. The FAT32 boot partition contains the kernel and device tree. With eMMC flash storage it is possible to use the dedicated boot partitions for redundantly storing the bootloader.
Page 66
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 7.5.9 Resizing ext4 Root Filesystem fdisk can be used to expand the root filesystem. The example works for any block device such as eMMC, SD Card, or hard disk. • Get the current device size:...
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 (continued from previous page) Win95 FAT32 (LBA) → Command (m for help): n Partition type primary partition (1-4) extended Partition number (1-4): 2 First sector (32-14876671, default 32): 141456 Last sector or +size{,K,M,G,T} (141456-14876671, default 14876671):...
Page 68
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 This is a bootloader environment variable that is defined here and can be changed during runtime. From Linux userspace, the NOR Flash partitions are accessible via /dev/mtd<N> devices where <N> is the MTD device number associated with the NOR flash partition to access.
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 It lists all MTD devices and the corresponding partition names. The flash node is defined inside of the SPI master node in the module DTS. The SPI node contains all devices connected to this SPI bus which is in this case only the SPI NOR Flash.
Page 70
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 (continued from previous page) Set values of GPIO lines. Lines are specified by name, or optionally by offset if the chip option is provided. Values may be '1' or '0', or equivalently 'active'/'inactive' or 'on'/'off'.
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Some of the user IOs are used for special functions. Before using a user IO, refer to the schematic or the hardware manual of your board to ensure that it is not already in use.
7.9 I²C Bus The i.MX 8M Nano contains several Multimaster fast-mode I²C modules. PHYTEC boards provide plenty of different I²C devices connected to the I²C modules of the i.MX 8M Nano. This section describes the basic device usage and its DT representation of some I²C devices integrated into our phyBOARD-Polis.
The I2C EEPROM, populated on the phyCORE-i.MX8MN, has a separate ID page that is addressable over I2C address 0x59 on bus 0 and a normal area that is addressable over I2C address 0x51 on bus 0. PHYTEC uses this data area of 32 Bytes to store information about the SoM. This includes PCB revision and mounting options.
Page 74
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 Date and time can be manipulated with the tool and the date command. To show the current date hwclock and time set on the target: target:~$ date Thu Jan 1 00:01:26 UTC 1970 Change the date and time with the date command.
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 7.11.2 RTC Parameters RTCs have a few abilities which can be read/set with the help of tool. hwclock • We can check RTC supported features with: target:~$ hwclock --param-get features The RTC parameter 0x0 is set to 0x71.
7.13 USB OTG Most PHYTEC boards provide a USB OTG interface. USB OTG ports automatically act as a USB device or USB host. The mode depends on the USB hardware attached to the USB OTG port. If, for example, a...
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 • ecm: Ethernet gadget, creates ethernet interface, e.g. usb0 • mass_storage: The host can partition, format, and mount the gadget mass storage the same way as any other USB mass storage. • Bind the defined functions to a configuration: cd /sys/kernel/config/usb_gadget/g1 mkdir configs/c.1...
Page 78
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 target:~$ ip link to see the state of the interfaces. The two CAN interfaces should show up as can0 and can1. • To get information on can0, such as bit rate and error counters, type:...
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 target:~$ ip link can0 down target:~$ ip link can0 txqueuelen type can bitrate 500000 sample-point 0.75 dbitrate␣ 4000000 dsample-point 0.8 fd on → You can send messages with cansend or receive messages with candump:...
Page 80
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 target:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq So-called governors are automatically selecting one of these frequencies in accordance with their goals. • List all governors available with the following command: target:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors The result will be: conservative ondemand userspace powersave performance schedutil •...
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 cpu0 cpu1 cpu2 cpu3 cpufreq [...] Here the system has four processor cores. By default, all available cores in the system are enabled to get maximum performance. • To switch off a single-core, execute:...
Page 82
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 This section describes how the thermal management kernel API is used for the i.MX 8M Nano SoC platform. The i.MX 8 has internal temperature sensors for the SoC. • The current temperature can be read in millicelsius with:...
Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 7.17 Watchdog The PHYTEC i.MX 8M Nano modules include a hardware watchdog that is able to reset the board when the system hangs. The watchdog is started on default in U-Boot with a timeout of 60s. So even during early kernel start, the watchdog is already up and running.
Page 84
8M Mini BSP Manual DRAFT Doc-rev.: imx8mp-pd24.1.0-nxp-23-g1bfaac4 7.18.2 Reading Fuse Values in Linux To access the content of the fuses in Linux NXP provides the NVMEM_IMX_OCOTP module. All fuse content of the memory-mapped shadow registers is accessible via sysfs: target:~$ hexdump /sys/devices/platform/soc@0/30000000.bus/30350000.efuse/imx-ocotp0/nvmem...
Need help?
Do you have a question about the i.MX 8M Mini BSP and is the answer not in the manual?
Questions and answers