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

Add support for Raspberry Pi #9

Closed
5 tasks done
gavv opened this issue Dec 15, 2015 · 7 comments
Closed
5 tasks done

Add support for Raspberry Pi #9

gavv opened this issue Dec 15, 2015 · 7 comments
Assignees
Labels
Milestone

Comments

@gavv
Copy link
Member

gavv commented Dec 15, 2015

  • cross compilation
  • warnings
  • running
  • ci
  • instructions
@gavv
Copy link
Member Author

gavv commented May 15, 2016

@gavv
Copy link
Member Author

gavv commented May 16, 2016

Toolchain tuples

Detecting host toolchain

Uname doesn't provide enough information. E.g., it doesn't distinguish between hardfloat and softfloat.

Autoconf uses config.guess script to detect host toolchain tuple. It prints toolchain tuple in the same form as in Gentoo. However, it differs from Debian naming. E.g. on Orange Pi, it prints armv7l-unknown-linux-gnueabihf, while Debian uses arm-linux-gnueabihf.

Another option is to invoke gcc -print-multiarch. It usually works on Debian (if multilib is enabled, it prints arm-linux-gnueabihf) but always prints empty string on Gentoo.

One another option:

$ gcc -v -E - </dev/null |& grep Target:
Target: arm-linux-gnueabihf

This works on Gentoo as well.

Detecting cross-compilation mode

@gavv
Copy link
Member Author

gavv commented May 17, 2016

@baranovmv

Could you try this instructions to cross-compile Roc for your RPi A?

Both "Manually" and "Docker" sub-sections of "Raspberry Pi 1" section.

It's also interesting does debian-way approach ("Ubuntu and Debian armhf" section) work for you?

(Doesn't work for my OPi, because crossbuild-essential-armhf builds binaries that require newer Glibc than on my box.)

@gavv
Copy link
Member Author

gavv commented May 17, 2016

Emulating ARM in QEMU

@gavv
Copy link
Member Author

gavv commented May 18, 2016

I've created new task #68 for playback problems. Thus, we can close this task when our cross-compiling will work for RPi A.

@gavv
Copy link
Member Author

gavv commented May 18, 2016

Everything works on Orange Pi.

@gavv gavv self-assigned this May 27, 2016
@baranovmv
Copy link
Member

Any crossbuild technique for Raspberry Pi A works well.

@gavv gavv added this to Roc Toolkit Jul 6, 2024
@gavv gavv moved this to Done in Roc Toolkit Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants