Out of Memory Error While Building u-boot-imx-fw-utils – Need Help

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Out of Memory Error While Building u-boot-imx-fw-utils – Need Help

451件の閲覧回数
nadimfnadaf
Contributor III

Hello Community,

I am using imx6ull board 

I’m encountering the following error during the Yocto build process. Could you please help me resolve it?

ERROR: Task (/home/****/sources/centauri_customer/meta-custom/meta-custom/recipes-bsp/u-boot/u-boot-imx-fw-utils_2021.04.bb:do_compile) failed with exit code '137'

I tried increasing the swap file size to address the issue, but it didn’t help.

Here’s the relevant log from journalctl:

journalctl -k | grep -i 'killed process'
May 29 15:29:08 3CXYN24-Desk kernel: Out of memory: Killed process 37484 (u-boot-imx-fw-u) total-vm:39390272kB, anon-rss:29910448kB, file-rss:480kB, shmem-rss:0kB, UID:1001 pgtables:77012kB oom_score_adj:0
May 29 16:39:16 3CXYN24-Desk kernel: Out of memory: Killed process 42499 (u-boot-imx-fw-u) total-vm:38373404kB, anon-rss:29740936kB, file-rss:0kB, shmem-rss:0kB, UID:1001 pgtables:75000kB oom_score_adj:0
May 29 17:00:20 3CXYN24-Desk kernel: Out of memory: Killed process 48620 (u-boot-imx-fw-u) total-vm:38182296kB, anon-rss:30009980kB, file-rss:160kB, shmem-rss:0kB, UID:1001 pgtables:74620kB oom_score_adj:0

The system has enough disk space available, so it doesn't appear to be a storage issue.

Any suggestions or solutions to overcome this memory-related failure would be greatly appreciated.

Thanks in advance!

 

0 件の賞賛
返信
3 返答(返信)

419件の閲覧回数
Chavira
NXP TechSupport
NXP TechSupport

Hi @nadimfnadaf!

Thank you for contacting NXP Support!

 

Have you tried limiting the cores and threads of the Yocto Compilation?

We recommend 4GB of RAM per Core.

You can limit the cores and threads adding the next lines to the local.conf file:

Example:
BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"

 

Best Regards!

Chavira

0 件の賞賛
返信

403件の閲覧回数
nadimfnadaf
Contributor III

Hello @Chavira 

Yes, I already checked with the following settings:

BB_NUMBER_THREADS = "1"
PARALLEL_MAKE = "-j 1"

But I'm still facing the same error, even though the system has 32 GB of RAM."

0 件の賞賛
返信

386件の閲覧回数
Chavira
NXP TechSupport
NXP TechSupport

HI @nadimfnadaf!

 

What BSP version are you trying to compile?

What target do you select to compile?

What ubuntu version do you have?

Can you describe the steps to reproduce the error by my side?

 

 

0 件の賞賛
返信