background image

PHYTEC

Page 10

1.  
2.  

U-Boot SPL 2020.04 (Nov 02 2020 - 19:09:42 +0000)

DDRINFO: start DRAM init

DDRINFO: DRAM rate 4000MTS

DDRINFO:ddrphy calibration done

DDRINFO: ddrmix config done

Normal Boot

Trying to boot from BOOTROM

image offset 0x8000, pagesize 0x200, ivt offset 0x0

NOTICE: BL31: v2.2(release):rel_imx_5.4.47_2.2.0-0-gc949a888e

NOTICE: BL31: Built : 18:54:44, Nov 2 2020

U-Boot 2020.04 (Nov 02 2020 - 19:09:42 +0000)

CPU: i.MX8MP[8] rev1.0 1800 MHz (running at 1200 MHz)

CPU: Commercial temperature grade (0C to 95C) at 47C

Reset cause: POR

Model: PHYTEC phyCORE-i.MX8MP

Watchdog enabled

DRAM: 2 GiB

MMC: FSL_SDHC: 1, FSL_SDHC: 2

Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial

Out: serial

Err: serial

BuildInfo:

- ATF c949a88

- U-Boot 2020.04

Net: 

Error: ethernet@30bf0000 address not set.

Error: ethernet@30bf0000 address not set.

No ethernet found.

Normal Boot

Hit any key to stop autoboot: 0 

Booting from SD Card

Booting from the SD card is useful in several situations, e.g. if the board does not start anymore due to a damaged bootloader.  To boot from SD card, 
switch S1 position 1 has to be set to ON.

There are two ways to create a bootable SD card. You can either use:

A single, prebuilt SD card image
The four individual images (

-, kernel- and device tree image, and root filesystem)

u-boot

Single, Prebuilt SD Card Image

The first possibility is to use the SD card image built by 

, a tool integrated in 

. This image has the ending 

 and can be found under 

Bitbake

Yocto

*.sdcard

buil

. It contains all BSP files in correctly preformatted 

d/deploy/images/phyboard-pollux-imx8mp-1/phytec-qt5demo-image-phyboard-pollux-imx8mq-1.sdcard
partitions and can be copied to the SD card easily using the single 

 command 

.

Linux

dd

Tip

The created file 

 is only a link to a file like 

phytec-qt5demo-image-phyboard-pollux-imx8mp-1.sdcard

phytec-qt5demo-image-phyboard-pollux-

 

imx8mp-1-<BUILD-TIME>.rootfs.sdcard.

Summary of Contents for L-1008e.A0 phyCORE-i.MX 8M Plus Alpha Kit

Page 1: ...D Card 5 Building the BSP 5 1 Get the BSP 5 2 Basic Set Up 5 3 Finding the Right Software Platform 5 4 Software Platform Selection 5 5 Build Process 5 6 BSP Images 6 System Booting 6 1 Booting from eM...

Page 2: ...nd starting the basic functionality of the phyCORE i MX 8M Plus This guide does not qualify as a Hardware manual for the phyCORE i MX 8M Plus The following manuals will be available in future releases...

Page 3: ...PHYTEC Page 3 phyBOARD Pollux Components Front phyBOARD Pollux Components Back Additional Equipment...

Page 4: ...t On the processor side UART2 is the default debug UART of the A53 Cores Setup your Terminal with the following parameters Speed 115200 baud Data bits 8 Stop bits 1 Parity None Flow control None Conne...

Page 5: ...to a suitable Ethernet source 10 100 1000 as the development host will need to communicate with the phyCORE i MX 8M Plus The ETH1 port X8 is not working in the Alpha Kit Connecting a phyCAM M camera m...

Page 6: ...mands in this guide will not work if you do not have access e g package installation Linux sudo formatting an SD card At least 40 GB to 50 GB of free space on the build partition of the host PC An SD...

Page 7: ...ytec de Used repository u boot git git phytec de u boot imx Our version is based on the and adds only a few patches which will be sent upstream in future releases u boot u boot imx Used Linux kernel r...

Page 8: ...s the PHYTEC machine TYPE Machine NAME phyboard pollux imx8mp 1 DESCRIPTION PHYTEC phyBOARD POLLUX i MX8M Plus Alpha ARTICLENUMBERS KPB 03123 Alpha A0 host yocto MACHINE phyboard pollux imx8mp 1 DISTR...

Page 9: ...files bin lpddr4_pmu_train_2d_imem_201904 bin Image Kernel Kernel device tree file oftree phytec qt5demo image phyboard pollux imx8mp 1 tar gz phytec qt5demo image phyboard pollux imx8mp 1 manifest R...

Page 10: ...et found Normal Boot Hit any key to stop autoboot 0 Booting from SD Card Booting from the SD card is useful in several situations e g if the board does not start anymore due to a damaged bootloader To...

Page 11: ...ut information on how much data is and still has to be copied until it is finished has the format BUILD TIME YYYYMMDDHHMMSS example Date 22 06 2018 Time 11 06 36 BUILD TIME 20180622110636 Four Individ...

Page 12: ...boot phyboard pollux imx8mp 1 sd bin flash_evk of dev sde bs 1k seek 32 conv fsync Mount the first partition and copy the and file to it vfat Image oftree host sudo mount dev sd X 1 mnt In case you w...

Page 13: ...BSP s build directory to the d tftpboot tftpboot irectory We also need a network connection between the embedded board and the TFTP server The server should be set to IP 192 168 3 10 and netmask 255 2...

Page 14: ...update the images in eMMC u boot Updating eMMC via Network i MX 8M Plus boards have an Ethernet connector and can be updated over a network Be sure to set up the development host correctly For the AL...

Page 15: ...arget Take an uncompressed or compressed image on the host and send it with through the network then uncompress it if necessary to the ssh eMMC of the target with a one line command target ip address...

Page 16: ...l before using the write command Command m for help p Disk dev sdb 29 8 GiB 31976325120 bytes 62453760 sectors Units sectors of 1 512 512 bytes Sector size logical physical 512 bytes 512 bytes I O siz...

Page 17: ...part 0 is current device u boot mmc write loadaddr 0x0 0x18F67E number of blocks to write In this case 837614592 bytes 512 0x18F67E MMC write dev 2 block 0 count 1635966 1635966 blocks written OK Rese...

Page 18: ...fically it is a description of hardware that is readable by an operating system so that the operating system doesn t need to hardcode details of the machine Structurally the DT is a tree or acyclic gr...

Page 19: ...pecific module is developed most of the software support can be re used without error prone copy and paste The kernel code corresponding to the boards can be found in device trees DT under linux arch...

Page 20: ...resistors are activated or not In this case the internal resistors are disabled Network phyCORE i MX8MP provides two ethernet interfaces In the ALPHA1 release only the EQOS IP core with the DP83867 p...

Page 21: ..._RD1 0x91 MX8MP_IOMUXC_ENET_RD2__ENET_QOS_RGMII_RD2 0x91 MX8MP_IOMUXC_ENET_RD3__ENET_QOS_RGMII_RD3 0x91 MX8MP_IOMUXC_ENET_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK 0x91 MX8MP_IOMUXC_ENET_RX_CTL__ENET_QO...

Page 22: ...th any kind of file system and also handled in a standard manner e g the and command work as expected mount umount DT configuration for the MMC SD card slot interface in arch arm64 boot dts freescale...

Page 23: ...2 0x1d0 MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d0 MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc1 pinctrl_usdhc2_100mhz usdhc2grp 100mhz fsl pins MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x194 MX8MP_IOMUXC_SD2_...

Page 24: ...WE_B__USDHC3_CLK 0x194 MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d4 MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d4 MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d4 MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d4 M...

Page 25: ...he wear leveling block management and ECC of the raw MLC cells This requires some maintenance tasks for example erasing unused blocks that are performed regularly These tasks are called Backg round Op...

Page 26: ...nation of this feature exceeds the scope of user General Purpose Area Partitions this document For further information see the JEDEC Standard chapter 7 2 Partition Management The current PHYTEC BSP do...

Page 27: ...g REQ_META file system with mount option should be safe against power cuts The file system check can recover the file system after a Conclusion ext4 data journal power failure but data that was writte...

Page 28: ...er 1 4 2 First sector 16 31080447 default 16 98304 Last sector or size K M G T 98304 31080447 default 31080447 Using default value 31080447 Command m for help p Disk dev mmcblk2 15 GB 15913189376 byte...

Page 29: ...tition to access To find the correct MTD device number for a partition run on the target mtdinfo all It lists all MTD devices and the corresponding partition names The node is defined inside of the SP...

Page 30: ...l available GPIOs in the system The formula to calculate the right number is Linux Linux GPIO number N X 1 32 Y Accessing GPIOs from userspace will be done using the It provides a library and tools fo...

Page 31: ...lues and wait for SIGINT or SIGTERM Note the state of a GPIO line controlled over the character device reverts to default when the last process referencing the file descriptor representing the device...

Page 32: ...cl gpios gpio5 14 GPIO_ACTIVE_HIGH GPIO_OPEN_DRAIN status okay iomuxc pinctrl_i2c1 i2c1grp fsl pins MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL 0x400001c3 MX8MP_IOMUXC_I2C1_SDA__I2C1_SDA 0x400001c3 pinctrl_i2c1_g...

Page 33: ...C_I2C2_SCL__GPIO5_IO16 0x1e3 MX8MP_IOMUXC_I2C2_SDA__GPIO5_IO17 0x1e3 EEPROM phyCORE i MX8MP has a i2c EEPROM populated connected to the i2c1 bus It is possible to read and write directly to the device...

Page 34: ...e dev rtc To find the name of the RTC device you can read its entry with sysfs target cat sys class rtc rtc name You will get for example rtc rv3028 0 0052 snvs_rtc 30370000 snvs snvs rtc lp Date and...

Page 35: ...imeout when the system is rebooted For ShutdownWatchdogSec more detailed information about hardware watchdogs under can be found at systemd http 0pointer de blog projects watchdog html USB Host Contro...

Page 36: ...by modifying the configuration etc xdg weston weston ini target vi etc xdg weston weston ini Set the mode of the output of LVDS 1 to current and the mode of HDMI A 1 to off output name HDMI A 1 mode...

Page 37: ...6 pwms pwm3 0 50000 power supply reg_lvds1_reg_en enable gpios gpio2 20 GPIO_ACTIVE_HIGH brightness levels 0 4 8 16 32 64 128 255 status okay panel1 panel1 compatible edt etml1010g0dka backlight back...

Page 38: ...about the framebuffer s resolution can be obtained with fbset which will return something like mode 1280x800 0 D 0 000 MHz H 0 000 kHz V 0 000 Hz geometry 1280 800 1280 800 32 timings 0 0 0 0 0 0 0 a...

Page 39: ...g doc Documentation ABI stable sysfs class backlight Power Management CPU Core Management The i MX 8M Plus SoC can have multiple processor cores on the die The i MX 8M Plus Quad for example has 4 ARM...

Page 40: ...xt This section describes how the thermal management kernel API is used for the i MX 8M Plus SoC platform The i MX8 MP has two internal temperature sensors for the SoC The current temperature can be r...

Reviews: