Hello everyone,
I have been trying to bitbake the latest 6.1.22 Mickledore SDK.
I was previously on Ubuntu 18 and it wouldn't install due to the gcc and python versions being too low. I decided to upgrade to Ubuntu 22.02.
Should I be on Ubuntu 20.02 ?
The guide says: "Ubuntu 20.02 or later"
I issued the following commands:
$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-mickledore -m imx-6.1.22-2.0.0.xml
$ repo sync
then I run the command:
$ DISTRO=fsl-imx-xwayland MACHINE=imx8mp-lpddr4-evk source imx-setup-release.sh -b build
this takes me into the build folder, where I run the command:
$ bitbake imx-image-full
This starts running and gets to about 40% or so and then it crashes the terminal. The terminal freezes up and then disappears.
I tried upgrading the Gnome Terminal. Same issue. Then I tried Xterm. Same issue.
It's not the terminal.
It seems to be slowly advancing every time I run it, from 40% to 41%. There are some really long running tasks right now that it is trying to compile and these are advancing at a snail's pace.
rust-live-native
qtbase-6.5
qtdeclarative
boost
The Xterm seems to be faster than Gnome Terminal. It gets up to the last state eg. 40% complete almost right away.
已解决! 转到解答。
Hi @dwightk!
Thank you for contacting NXP Support!
Try to limit the cores and try to recompile the SDK.
You can limit the cores using the next lines in the local.conf file:
Note: We recommend 4 GB of RAM per core
BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"
If the problem persists try to compile the packages with failure one by one with the next commands.
Bitbake -c clean <package>
Bitbake -c compile <package>
Example:
Bitbake -c clean rust-live-native
Bitbake -c compile rust-live-native
Note: Only do that with big packages like:
Linux-imx
QT
Rust
onxruntime.
etc.
Best Regards!
Chavira
Hi @dwightk!
Thank you for contacting NXP Support!
Try to limit the cores and try to recompile the SDK.
You can limit the cores using the next lines in the local.conf file:
Note: We recommend 4 GB of RAM per core
BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"
If the problem persists try to compile the packages with failure one by one with the next commands.
Bitbake -c clean <package>
Bitbake -c compile <package>
Example:
Bitbake -c clean rust-live-native
Bitbake -c compile rust-live-native
Note: Only do that with big packages like:
Linux-imx
QT
Rust
onxruntime.
etc.
Best Regards!
Chavira
Hello,
The MICKLEDORE 6.1.22-2.0.0 is giving problems even with restrictions on the cores and parallel threads at the populate_sdk step.
However, I retried with: 6.1.36 and set the local.conf, BB_NUMBER_THREADS, and PARALLEL_MAKE to "1".
It failed once at the "boost" task and had to be cleaned and re-run, however, it's making steady progress now, and even in the failed instance it didn't crash the Terminal like before.
Hi @dwightk!
If you want to use kernel 6.1.22 I recommend deleting your old Yocto Project and trying to deploy the SDK again with the restrictions from the beginning of the compilations
Best Regards!
Chavira