Skip to main content
Associate II
April 28, 2024
Question

stm32mp157F DK2 yocto error while building the image

  • April 28, 2024
  • 2 replies
  • 1357 views

I had an error while building the image. I didn’t try to figure out why and why it was necessary to turn off the network. I just removed the entire function. After that everything build together.

https://github.com/karu2003/stm32mp1_note

 

openembedded-core/bitbake/lib/bb/utils.py

 

 def disable_network(uid=None, gid=None):
 """
 Disable networking in the current process if the kernel supports it, else
 just return after logging to debug. To do this we need to create a new user
 namespace, then map back to the original uid/gid.
 """
 return

 

 

 

This topic has been closed for replies.

2 replies

Olivier GALLIEN
Technical Moderator
May 3, 2024

Hi @karu2003 ,

 

Can you share logs from the initial issue ? 

 

Thanks

 

Olivier 

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
karu2003Author
Associate II
May 3, 2024

I did this. 

https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package

Both in Docker and directly to the host, same error.

 

Jean-Marc B
ST Employee
May 6, 2024

Hi @karu2003 

The network error when building your image may come from side-effects from a proxy.

Before building your image, try to run the command:

PC $> BB_NO_NETWORK=1 bitbake -s

Then, run your command to build your image.

Best regards,

--JM