IMX8M Nano Bring up and uuu flashing error with custom build u-boot and rfs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8M Nano Bring up and uuu flashing error with custom build u-boot and rfs

Jump to solution
2,634 Views
betanapallisandeepraj
Contributor III

Hi, I am trying to flash custom build images from i.MX_Yocto_Project_User_Guide document. I could not flash with custom uboot image and rfs. What could be the issue?

I am getting below error,

D:\images>uuu.exe -b emmc_all images_123023032021\imx-boot-imx8mnevk-sd.bin-flash_evk images_123023032021\core-image-minimal-imx8mnevk-20210323021218.rootfs.wic.bz2

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.72-0-g8e9e189

Success 0 Failure 1

1:3 1/ 1 [HID(W):LIBUSB_ERROR_TIMEOUT ] SDPS: boot -f images_123023032021\imx-boot-imx8mnevk-sd.bin-flash_evk

Labels (1)
0 Kudos
1 Solution
2,573 Views
betanapallisandeepraj
Contributor III

Hi,

Even with the default ddr4_timing.c file I could boot successfully with device tree changes as below in kernel and build imx8mnevk.conf file. 

Changes are as below in kernel source code for my samsung DDR4 of 512MB model K4A4G165WF-BCTD,

diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
index 5d4c245376b0..2b619745f67e 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
@@ -151,7 +151,7 @@

memory@40000000 {
device_type = "memory";
- reg = <0x0 0x40000000 0 0x80000000>;
+ reg = <0x0 0x40000000 0 0x60000000>;
};

resmem: reserved-memory {
@@ -163,8 +163,8 @@
linux,cma {
compatible = "shared-dma-pool";
reusable;
- size = <0 0x28000000>;
- alloc-ranges = <0 0x40000000 0 0x60000000>;
+ size = <0 0xa000000>;
+ alloc-ranges = <0 0x40000000 0 0x50000000>;
linux,cma-default;
};
};

In imx-yocto-bsp/sources/meta-imx/meta-bsp/conf/machine/imx8mnevk.conf

I modified as below,

- required conf/machine/imx8mnlpddr4evk.conf

+ required conf/machine/imx8mnlpddr4evk.conf

And I configured with bitbake -c menuconfig virtual/kernel 

Library routines->DMA Contiguous Memory Allocator->Size in Mega Bytes

I have kept 160MB for my 512MB ram. One can increase or decrease according to there RAM size. 

 

After all these, I could compile and build and boot successfully. 

Thank you Zhiming and NXP for the support. 

View solution in original post

0 Kudos
7 Replies
2,627 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

It is usb issue, your pc cannot communicate with evk.Please check the download mode on board.

 

BR

Zhiming

2,624 Views
betanapallisandeepraj
Contributor III

Hi Zhiming,

But I could flash the default uboot and custom rfs image successfully. 
Issue should be something else. 

Thank you, 
Sandeep Raj

0 Kudos
2,620 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Can you provide the steps you build image?

2,614 Views
betanapallisandeepraj
Contributor III

Hi, 

I have used below command to generate the image,

$mkdir imx-yocto-bsp
$cd imx-yocto-bsp
$repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m imx-5.4.70-2.3.1.xml
$repo sync
$cd /home/sandeepraj/imx-yocto-bsp
$DISTRO=fsl-imx-wayland MACHINE=imx8mnevk source imx-setup-release.sh -b build-wayland
$pwd
/home/sandeepraj/imx-yocto-bsp/build-wayland
$bitbake -k core-image-minimal

0 Kudos
2,598 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

I haven't found any release message about L5.4.70_2.3.1 in official site

It haven't been released.You can  try 2.3.0

 

BR

Zhiming

0 Kudos
2,574 Views
betanapallisandeepraj
Contributor III

Hi,

Even with the default ddr4_timing.c file I could boot successfully with device tree changes as below in kernel and build imx8mnevk.conf file. 

Changes are as below in kernel source code for my samsung DDR4 of 512MB model K4A4G165WF-BCTD,

diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
index 5d4c245376b0..2b619745f67e 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
@@ -151,7 +151,7 @@

memory@40000000 {
device_type = "memory";
- reg = <0x0 0x40000000 0 0x80000000>;
+ reg = <0x0 0x40000000 0 0x60000000>;
};

resmem: reserved-memory {
@@ -163,8 +163,8 @@
linux,cma {
compatible = "shared-dma-pool";
reusable;
- size = <0 0x28000000>;
- alloc-ranges = <0 0x40000000 0 0x60000000>;
+ size = <0 0xa000000>;
+ alloc-ranges = <0 0x40000000 0 0x50000000>;
linux,cma-default;
};
};

In imx-yocto-bsp/sources/meta-imx/meta-bsp/conf/machine/imx8mnevk.conf

I modified as below,

- required conf/machine/imx8mnlpddr4evk.conf

+ required conf/machine/imx8mnlpddr4evk.conf

And I configured with bitbake -c menuconfig virtual/kernel 

Library routines->DMA Contiguous Memory Allocator->Size in Mega Bytes

I have kept 160MB for my 512MB ram. One can increase or decrease according to there RAM size. 

 

After all these, I could compile and build and boot successfully. 

Thank you Zhiming and NXP for the support. 

0 Kudos
2,591 Views
betanapallisandeepraj
Contributor III

Hi,

I could see the latest release 5.4.70-2.3.1 at below link, 

README - imx-manifest - i.MX Release Manifest (codeaurora.org) 

Is this link not correct or latest release has issues?

 

Thank you

0 Kudos