Giter Site home page Giter Site logo

Comments (4)

drtyhlpr avatar drtyhlpr commented on May 29, 2024

hi thanks for your feedback, i will investigate the problem the next days. can you tell me what external module u are including - so I can use this for my testing.

from rpi23-gen-image.

simark avatar simark commented on May 29, 2024

Hi drtyhlpr,

The modules in question are lttng-modules: https://github.com/lttng/lttng-modules
Once the kernel headers/sources are properly installed, you just need to type make to build them (and make modules_install to install them in /lib/modules).

Note that in the mean time I found the option KERNEL_REMOVESRC=false, which leaves the kernel sources in /usr/src/linux. So in order to build the modules, I first needed to adjust the /lib/modules/$(uname -r)/build and /lib/modules/$(uname -r)/source links to point to /usr/src/linux.

However, i stumbled on another problem, which is that some tools in /usr/src/linux/scripts were built for x86-64, since the kernel was compiled on an x86-64 machine. Deleting those scripts and running make scripts and/or make prepare in /usr/src/linux rebuilt them for ARM. I was then able to build the lttng modules properly.

So in order to be able to build external modules out of the box on the target, I only see those two issues:

  • Links in /lib/modules/$(uname -r) point to nowhere.
  • Tools in /usr/src/linux/scripts built for x86-64.

It would also be nice to be able to build and install external modules when building the image. I think it would be fairly easy to cross-compile them (at least when we know where the kernel sources are) just like we cross-compile the kernel.

Thanks for this script, it's really useful!

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on May 29, 2024

Hi simark,

thanks for all the detailed information I will work on a fix soon - I have a ugly deadline for other stuff till end of next week - I will focus on the patch afterwards! And of course thanks for your feedback it helps to make the script better and better!

ps. usefull: try the full encrypted rootfs with "amazing" r/w speed, a quite unique feature for a bootstrapping script with image file output - never seen this before so far and it was a big pain to get it running with auto-resize :)

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on May 29, 2024

I think this should work now :) a38e66c

from rpi23-gen-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.