Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build this flasher in Yocto environment? #66

Open
pblxptr opened this issue Feb 5, 2024 · 4 comments
Open

How to build this flasher in Yocto environment? #66

pblxptr opened this issue Feb 5, 2024 · 4 comments

Comments

@pblxptr
Copy link

pblxptr commented Feb 5, 2024

I'm trying to build this flasher in Yocto ecosystem as a part of my meta-layer, however, I have some difficulties. My target architecture is aarch64 - which seems to be supported, however provided CMakeLists.txt seems to require a compilation for a particular distro e.g. Ubuntu 22.04 etc, which is not a case in the context of Yocto. Is there a workaround I could use to include building this flasher in Yocto?

@da151575
Copy link

I have a similar problem (I was just trying to see if I could build for custom arm64 linux build with yocto on x86_64 ubuntu by editing the build scripts and cmake files and it was proving "problematic"). Then I read that the code "doesn't require an operating system" so I tried downloading the pre-built ubuntu arm64 image from releases. And it runs on our NXP i.MX8 just fine. So perhaps investigate using that?

@da151575
Copy link

da151575 commented Jun 21, 2024

Or if you did get it to build, I'd be very greatful if you could discuss that with me? I've got it to build right up until it wants to start installing some of the artifacts for further compilation which doesn't work because I'm cross-compiling.

@pblxptr
Copy link
Author

pblxptr commented Jun 24, 2024

I was also trying to modify build scripts but this is madness that gave me a headache. So far I've been working on something different but I will probably go a way you mentioned, will use build for ubuntu ARM64 and provide necessary libraries if needed. The other solution that I guess could work is to use flasher inside a Docker environment running on a target device.

@da151575
Copy link

"...this is madness that gave me a headache..." 🤣 agreed... I believe (don't sue me if I'm wrong) the Ubuntu build is statically linked, so you shouldn't need any libraries...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants