Comments (4)
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.
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.
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.
I think this should work now :) a38e66c
from rpi23-gen-image.
Related Issues (20)
- Seg fault HOT 2
- Strange behaviour : kernel panic not at all boots : is #165 back ? + workaround HOT 1
- broken link on project page HOT 2
- resuming build from error HOT 3
- Does the RPI4 run with the 32bit buster image? HOT 5
- Permission problems with rpi23genimage HOT 3
- wlan0 issues with wpa_cli [rpi3b+] HOT 11
- feat: custom.d firstboot action HOT 4
- error msg: bcm2708-rng -- Failed to find module 'bcm2708_rng' HOT 3
- Crash compiling Pi3-Bullseye 32 missing script mkknlimg kernel 5.3 and up (solved PR #212) HOT 2
- Pi4 images compiles (32 & 64) and boot (after Pr #212 #213) solved ! (edited) HOT 4
- Rpi4 64 bit image not working HOT 6
- Bluetooth is uninstalled if ENABLE_SOUND is set to false
- All generated images freeze on the rainbow screen HOT 4
- Typo in 15-rpi-config.sh
- RPI4 eeprom updater
- 20-networking.sh
- Pi4 and Pi4-64 Buster ans Bullseye are back ! (after #226 and #227) HOT 5
- Kernel version issue : 5.10.44-v7 with wrong architecture of binaries in /usr/src/linux (SOLVED) HOT 2
- Why do the "hardening" sysctls basically kill off IPv6 SLAAC and public IPv6? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpi23-gen-image.