Skip to main content
Visitor 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

    Technical Moderator
    May 3, 2024

    Hi @karu2003 ,

     

    Can you share logs from the initial issue ? 

     

    Thanks

     

    Olivier 

    karu2003Author
    Visitor 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.

     

    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