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

kernel modules to add #11

Open
giuliomoro opened this issue Oct 20, 2016 · 1 comment
Open

kernel modules to add #11

giuliomoro opened this issue Oct 20, 2016 · 1 comment

Comments

@giuliomoro
Copy link
Contributor

giuliomoro commented Oct 20, 2016

CONFIG_SND_VIRMIDI yes
CONFIG_XENO_OPT_NATIVE_INTR and CONFIG_XENO_OPT_POSIX_INT
BelaPlatform/Bela#171

@giuliomoro
Copy link
Contributor Author

giuliomoro commented Oct 30, 2016

How I compile kernel modules/drivers natively from a cross-built kernel:

  • have your cross compiler generate the deb files
  • dpkg -i linux-headers-3.8.13xenomai-xenomai-r81_1cross_armhf.deb
  • all the build tools will now be x86
  • cd /lib/modules/$(uname -r)/build
  • make headers_check && make headers_install && make scripts
  • if the above fails, wget https://raw.githubusercontent.com/igorpecovnik/lib/next/patch/headers-debian-byteshift.patch && patch -p1 < headers-debian-byteshift.patch NOTE: this is probably better done by making sure these files are there to begin with
  • at this point all the build tools will be ARM
  • you can now build an example module like this

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

1 participant