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

Linux Kernel component names have changed #3

Open
obbardc opened this issue Feb 12, 2019 · 4 comments
Open

Linux Kernel component names have changed #3

obbardc opened this issue Feb 12, 2019 · 4 comments
Assignees

Comments

@obbardc
Copy link
Member

obbardc commented Feb 12, 2019

linux-image-raspi-armhf.xml has been split into two components bootloader-raspberrypi.xml and linux-image-raspberrypi-default.xml as per commit: 64studio/pdk-components-debian-testing@2c5598a

Note this will only be a problem when trying to pull fresh components.

@obbardc
Copy link
Member Author

obbardc commented Feb 13, 2019

Also because of the new kernel image name, kernel= in /boot/config.txt will need to change.

The current package is kernel=vmlinuz-4.14.97-v7-raspberrypi-default but this will change depending on version, so we should pick it out of the package name

@obbardc obbardc changed the title component names have changed Linux Kernel component names have changed Feb 13, 2019
danielhjames added a commit that referenced this issue Feb 13, 2019
@danielhjames
Copy link
Member

Hi @obbardc I thought the kernel= parameter was only required when loading an alternative kernel image. Can we load our custom kernel by default by renaming it to the default name such as kernel7.img?

@obbardc
Copy link
Member Author

obbardc commented Feb 13, 2019

The official Raspbian images are built so the kernel is copied into /boot/kernel7.img.
This doesn't work all that well for when doing upgrades or keeping track of the versions of the copied files.

Other Linux distros since day dot have made their kernel images available under /boot/vmlinux-versioninfo.

When building the Linux Kernel into a debian pkg using make deb-pkg, the file structure of the package is like this. See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/package/builddeb

So we will just need a postinst script for the kernel package to upgrade the kernel.
Will look into that.
Mode info: https://kernel-team.pages.debian.net/kernel-handbook/ch-update-hooks.html

@danielhjames
Copy link
Member

How about the postinst creating /boot/kernel7.img as a symlink whenever the kernel package is upgraded?

@obbardc obbardc removed their assignment Aug 11, 2023
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

2 participants