669 views
in Getting started by

Getting started with Raspberry Pi: Raspberry Pi Compute Module 4

I have the same error as (https://ask.embedded-wizard.de/6177/skipping-incompatible-platformpackage-libewrte-searching)
 

-------------------------------------------------
Creating EmbeddedWizard-RasPi-CM4
-------------------------------------------------
Compiler Options: cc -c -pipe -MT projectecho -MMD -MP -MF projectecho.d -O2 -Wall -I../Source -I../GeneratedCode -I../../PlatformPackage/RTE -I../../PlatformPackage/RGBA8888 -I../../TargetSpecific -I/usr/include -I/usr/include/drm -I/usr/include/libdrm -o projectecho
-------------------------------------------------
Creating object and library directories
-------------------------------------------------
Linking EmbeddedWizard-RasPi-CM4
cc ./obj/main.o ./obj/ewmain.o ./obj/gfx_system_drm.o ./obj/DeviceDriver.o ./obj/Core.o ./obj/Effects.o ./obj/Graphics.o ./obj/Resources.o ./obj/Views.o ./obj/Application.o ./obj/Oximeter.o ./obj/Templates.o ./obj/WidgetSet.o ./obj/ewextrte.o ./obj/ew_bsp_display.o ./obj/ew_bsp_touch.o ./obj/ew_bsp_console.o -L../../PlatformPackage/RTE -L../../PlatformPackage/RGBA8888 -lm -lGLESv2 -lEGL -lpthread                                                                                                                                                       -ldrm -lgbm -lewrte -lewgfx -o ./EmbeddedWizard-RasPi-CM4
/usr/bin/ld: skipping incompatible ../../PlatformPackage/RTE/libewrte.a when searching for -lewrte
/usr/bin/ld: cannot find -lewrte
/usr/bin/ld: skipping incompatible ../../PlatformPackage/RGBA8888/libewgfx.a when searching for -lewgfx
/usr/bin/ld: cannot find -lewgfx
collect2: error: ld returned 1 exit status
make: *** [Makefile:139: EmbeddedWizard-RasPi-CM4] Error 1

1 Answer

0 votes
by

Hello,

it is difficult to give you good advices based on the compiler output without further information...

Are you using your own cross compiler environment or do you follow the approach that is explained in the Getting Started with Raspberry Pi CM4?

Which version of the Raspbian OS are you using?

Have you tried exactly the steps as mentioned in the article in order to build the HelloWorld example?

Best regards,

Manfred.

by
Yes, I tried to execute the "Getting Started with Raspberry Pi CM4" as best as possible.

OS lite but 64Bit not 32.

It might be the problem?

I didn't mount the folder either, but transferred the build files via filzilla.
by

Hello,

please use the Raspberry Pi OS Lite (32-bit) Bullseye image as mentioned in the article.

Best regards,

Manfred.

by
ok i use the 32bit version now.

the next problem is this:

GfxSystemInit: no suitable drm device node found!
Initialize Display...                        [failed]

i use a tuchscrent over dsi.
by
Hi Alexander,

can you try it with an HDMI Display? One of the mentioned prerequisites is the connection with an HDMI display...

In principle, DSI should work also (as it is the case for RasPi-4b with the official 7" touch display), but we have not tried or tested a DSI display on that board. You can check the error codes from DRM to get more details about the issue.

Best regards,

Manfred.
by
ok, it works with hdmi.
How do I get it to work with dsi?
by

Are you using the official 7" touch display? 

Then you have the same situation as on RasPi-4B.

The only necessary setting in this case is in ewconfig.h:

#define EW_DISPLAY_INTERFACE                   EW_DISPLAY_INTERFACE_DSI_0
 

by
I changed it to "EW_DISPLAY_INTERFACE_DSI_0" and ran make again.
It comes the same error:

GfxSystemInit: no suitable drm device node found!
Initialize Display...                        [failed]
by
Are you using the official 7" touch display?
by
Do you see the boot screen and the log messages on the display while the Raspbian OS is booting?

Are you using the desktop version of Raspbian OS?
by

yes i see all the logs on the screen while boot.

Raspberry Pi OS Lite 32Bit without desktop

by
so i solved it.
The instructions say that I should connect pins 28 and 29. SCL SDA
However, the IO Board only offers 27 and 28. Pin 29 is GND.
28 and 29 are also configured in the dt-blob-disp0-only.dts file. I think that's wrong.
I have now used the DISP1 port and uploaded the dt-blob-disp1-only.bin file.
now everything works very well.
by
Great to hear that it is working now...

Thanks for sharing the solution.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...