imx93 toolchain and linux menuconfig

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

imx93 toolchain and linux menuconfig

186 Views
muhammedk97
Contributor III

Hello Everyone,

I am using Linux_6.1.55_2.2.0 to develop a device based on imx93. When I compile toolchain with Yocto (Mickledore) and use it for linux menuconfig, it successfully working.

But, when I enable multilib, as described in Yocto User's Manual, and generate toolchain, the toolchain gives "ncurses" error while trying linux menuconfig.

The error is below.

HOSTLD scripts/kconfig/mconf
/usr/bin/ld: cannot find libncursesw.so.5: No such file or directory

If I try with sudo, menuconfig is openning. Also, "bitbake linux-imx -c menuconfig" in Yocto works fine, too.

Could you explain and assist why linux menuconfig gives ncurses error if the toolchain is generated with multilib enablement?

Regards,

Labels (2)
Tags (2)
0 Kudos
Reply
6 Replies

147 Views
Harvey021
NXP TechSupport
NXP TechSupport

hi @muhammedk97 

I haven't tested with this, but, from the error log, how about having a try to run

the command line on your host: sudo apt-get install libncurses5

 

Regards

Harvey

0 Kudos
Reply

111 Views
muhammedk97
Contributor III
Dear @Harvey021 ,

As I mentioned in my question, if I disable multilib and generate toolchain, menuconfig works. That means libncurses5 is already installed in my host machine. Also, of course, I have tried to reinstall it before asking the question.

Again, the problem occurs only if the toolchain is generated from yocto with multilib.

Regards,
0 Kudos
Reply

92 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @muhammedk97 

Should probably not distribute the SDK with multilib configuration, as least for current release.

Can you please tell your use case and the purpose for SDK generation with multilib?

And better please share your full steps that you've taken.

Let's see if that will be released in future release.

 

Regards

Harvey

 

0 Kudos
Reply

90 Views
muhammedk97
Contributor III
Hi @Harvey021

Thank you for responding. The reason we use filesystem with multilib configuration is there are some 32-bit libraries, and we need to use those in the devices. That's why, we generate the SDK with this configuration.

We are not using 32-bit compiler from the SDK, but since the multilib enabled in the file system, SDK must be generated with the same configuration.

My steps are, according to the section 5.6.9 Multilib Enablement in Yocto Project User's Guide,
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE:virtclass-multilib-lib32 = "armv7athf-neon"
# Add the multilib packages to the image
IMAGE_INSTALL:append = " lib32-glibc lib32-libgcc lib32-libstdc++"
and disabling deb packaging by commenting the lines below.
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"

After that, "bitbake imx_image_full" and "bitbake -c populate_sdk imx_image_full"

Regards,
Muhammed
0 Kudos
Reply

66 Views
Harvey021
NXP TechSupport
NXP TechSupport

hi @muhammedk97 

Noticed that you use a custom Machine based on our i.MX93 config. Assume that you've some configurations on your side. are you able to provide us a diff with what changes you apply on top of our release?

 

Regards

Harvey

0 Kudos
Reply

29 Views
muhammedk97
Contributor III
@Harvey021 ,

Sorry for the late response. I will compile the image and the sdk without any custom change. I will get back to you in a few days.

Regards,
0 Kudos
Reply