pyavitz / rpi-img-builder

Image Builder for the Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

using make commit kernels in image build

djsftree opened this issue · comments

Hi!

I have sucessfully buit a the 5.15.36-rt41 kernel using

make commit board=bcm2711
ac27843a367ea253659847aeb491137bf3e9216a

with /patches/userpatches/patch-5.15.36-rt41.patch

The kernel and header deb file appear in /output

How do I install them at the beginning of run_function2 () instead of after? I have some installs within run_function2 () that require the rt kernel and headers.

image

Ah. It's ok, the kermel modules get rebuilt.

image

Looks like you figured it out? If you really wanted to move it, you could use function1 to edit the stage2 file before chroot and move the kernel install function into function2.

stage2 -> L264: stage2_kernel

sed out the function and place stage2_kernel inside your function2 bit. You would just need to make sure all the depends required, get installed before the kernel.

Thanks. The issue resolved itself as kernel modules are rebuilt when the new kernel is installed.

I spotted this in the logs when cross building userland

`~/userland/build/raspberry/release ~/userland
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at makefiles/cmake/arm-linux.cmake:5 (message):
*********************************************************
* CMAKE_TOOLCHAIN_FILE not defined *
* This is correct for compiling on the Raspberry Pi *
* *
* If you are cross-compiling on some other machine *
* then DELETE the build directory and re-run with: *
* -DCMAKE_TOOLCHAIN_FILE=toolchain_file.cmake *
* *
* Toolchain files are in makefiles/cmake/toolchains. *
*********************************************************
Call Stack (most recent call first):
CMakeLists.txt:24 (include) `

I saw that a whiles back, but haven't found the time to look into it. If you have any ideas, you are more than welcome to do a PR.

Thanks! Fixing those kind of things is a bit beyond me.

I'm still struggling with setting up the gpg secure keys this repo. For now --allow-unauthenticated

https://github.com/djsftree/rpi-img-builder/blob/870e0c982185d4dfd79e726e1c5e6cb19b4f6f54/files/userscripts/uscripts#L43

Example from website.

To use this repo please add a file etherlab.list in the directory
/etc/apt/sources.list.d

Using the Release key
1. Get the key
wget http://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_11/Release.key
2. Add the key
sudo apt-key add Release.key
3. Add the package source url
deb [trusted=yes] http://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_11/ ./
4. Update package list
sudo apt-get update

Content of the file in case you are not use the secure key:
deb [allow-insecure=yes] http://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_11/ ./

I think that's now deprecated. That key file points to "Release" but this points to "InRelease"

http://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_11/ ./

In any case, thanks for your great imaging tool. Just booted!

In any case, thanks for your great imaging tool. Just booted!

You are very welcome.