IMX7ULP Single Boot Operation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX7ULP Single Boot Operation

1,516 次查看
ibocakir06
Contributor I

Hi,

I have designed a custom board with IMX7ULP SoC. The board has the peripherals below:

  • 512MiB LPDDR3 16 bit.
  • eMMC 4GB is connected to uSHDC0 PORTD.
  • Murata WiFi module is connected to uSHDC1 PORTE.
  • MC34PF1550A4EP PMIC is connected to I2C3.

My boot mode is fixed to the single boot mode via resistors.

As you can see, I do not have a QSPI flash on my board. This figure is taken from Reference Manual Pg:1466.

ibocakir06_1-1650967538146.png

I have compiled my u-boot and downloaded it via the uuu tool in serial download mode. It works fine. I can reach eMMC with "mmc info" command. The next step I have to move on is booting the linux.

This is the .auto file I use in uuu.

 

uuu_version 1.2.39

SDP: boot -f /home/myname/projects/IMX7ULP/u-boot-fslc/u-boot-dtb.imx -nojump
sdpu: delay 100
# SDP: write -f /home/myname/projects/IMX7ULP/linux-fslc/arch/arm/boot/uImage -addr 0x60800000
SDP: write -f /home/myname/projects/IMX7ULP/linux-fscl3/linux-fslc-5.15.x-fslc/arch/arm/boot/uImage -addr 0x60800000
# SDP: write -f /home/myname/projects/IMX7ULP/LF_v5.10.72-2.2.0_images_IMX7ULPEVK/uImage -addr 0x60800000
sdpu: delay 100
SDP: write -f /home/myname/projects/IMX7ULP/DTB/imx.dtb -addr 0x63000000
# SDP: write -f /home/myname/projects/IMX7ULP/LF_v5.10.72-2.2.0_images_IMX7ULPEVK/imx7ulp-evkb-lpuart.dtb -addr 0x63000000
sdpu: delay 100
SDP: write -f /home/myname/projects/IMX7ULP/LF_v5.10.72-2.2.0_images_IMX7ULPEVK/fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.gz.u-boot -addr 0x63800000
# SDP: write -f /home/myname/projects/IMX7ULP/buildroot/output/images/rootfs.ext2.gz.uboot -addr 0x63800000
sdpu: delay 100
SDP: write -f /home/myname/projects/IMX7ULP/LF_v5.10.72-2.2.0_images_IMX7ULPEVK/imx7ulp_m4_demo.img -addr 0x62000000
sdpu: delay 100
SDP: jump -f /home/myname/projects/IMX7ULP/u-boot-fslc/u-boot-dtb.imx
# sdpu: delay 3000
FB: done

 

 

  1. I download the Kernel uImage to the address 0x60800000
  2. I download the ramfs to the address 0x63800000
  3. I download the device tree binary file to the address 0x63000000.

Then I run the bootm command to boot from memory. However, the u-boot is stuck at "Starting Kernel".

ibocakir06_2-1650968146993.png

 

Question 1: I do nothing about M4 core. Do I have to initialize the M4 core in single boot mode?

If the answer of the question 1 is YES:

Question 2: How can I program M4? I did not expand the SWD pins of M4 out of the board. I can not reach BGA balls. Can I program M4 via u-boot? If yes, do I have to use bootaux command with the patch you mentioned below:

IMX7ULP Bootaux Patch to U-boot 

I have done this patch to the u-boot and followed the instructions. But the result is below. Resetting ...

ibocakir06_3-1650968525496.png

Can you give some detailed explanation about bootaux operation in u-boot?

Question 3: What can be the problem if it is not related to M4? 

I think u-boot can not load the kernel to RAM. I have used older or newer versions of u-boot from fslc, the result is same.

  1. Is it about RAM size? or
  2. Is it about PMIC? or
  3. Is it about resetting the A7 core from M4? 
  4. Or what can it be?

 

I am forwarding your response.

Thanks.

标签 (2)
0 项奖励
回复
3 回复数

1,478 次查看
ibocakir06
Contributor I

Thanks for the reply.

 

As I mentioned before, I do not have QSPI flash placed on my board. 

  1. Do I have to program M4 to boot Linux on A7?
  2. If yes, how can I do it via u-boot without QSPI Flash?

Thanks.

0 项奖励
回复

1,490 次查看
ibocakir06
Contributor I

Any reply will be helpful. 

0 项奖励
回复

1,484 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

For the M4 in the i.MX7ULP you can see the document.

0 项奖励
回复