LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   How to make a kernel package for Raspberry Pi? (https://www.linuxquestions.org/questions/slackware-arm-108/how-to-make-a-kernel-package-for-raspberry-pi-4175605616/)

Reedych 05-10-2017 01:13 AM

How to make a kernel package for Raspberry Pi?
 
I know about this helpful manual, but I don't understand what to do with compiled files. In x86 it's easy, but there are some kernel.img files. So I can't find any slackbuild to make a package. I know about source/ directory in the repo, but I think it's not for raspberry pi. Thanks!

drmozes 05-10-2017 09:42 AM

Quote:

Originally Posted by Reedych (Post 5708490)
I know about this helpful manual, but I don't understand what to do with compiled files. In x86 it's easy, but there are some kernel.img files. So I can't find any slackbuild to make a package. I know about source/ directory in the repo, but I think it's not for raspberry pi. Thanks!

Would you be able to rename the topic to include "Raspberry Pi" ? I was poised to write short treatise on how to build a Kernel using the build scripts in the ARM source tree, but as you noticed - it does not support the Raspberry Pi since it's not an officially supported device.
If someone were to search the forums for a similar question, it'd help to have a subject line more closely representing the question.

Thanks

Reedych 05-10-2017 10:24 AM

Quote:

Originally Posted by drmozes (Post 5708677)
Would you be able to rename the topic to include "Raspberry Pi" ? I was poised to write short treatise on how to build a Kernel using the build scripts in the ARM source tree, but as you noticed - it does not support the Raspberry Pi since it's not an officially supported device.
If someone were to search the forums for a similar question, it'd help to have a subject line more closely representing the question.

Thanks

Ok, thanks.

Exaga 05-11-2017 01:52 PM

Quote:

Originally Posted by Reedych (Post 5708490)
I know about this helpful manual, but I don't understand what to do with compiled files. In x86 it's easy, but there are some kernel.img files. So I can't find any slackbuild to make a package. I know about source/ directory in the repo, but I think it's not for raspberry pi. Thanks!

Can you explain what you are trying to achieve as an end result?

Reedych 05-12-2017 06:48 AM

Quote:

Originally Posted by Exaga (Post 5709251)
Can you explain what you are trying to achieve as an end result?

I want a package like this.

Penthux 05-12-2017 09:24 AM

Quote:

Originally Posted by Reedych (Post 5709545)
I want a package like this.

What version of Raspberry Pi are you building a kernel for?
Are you starting from scratch with building the kernel or do you have it already built and just want to make a package to install it?

When I needed to learn about Slackware packages I found Mozes' introduction to Slackware Packages (.PDF) a great resource. I pretty much picked up everything I needed to know from there, and Slack Docs was a great help too.

Reedych 05-12-2017 11:59 AM

Quote:

Originally Posted by Penthux (Post 5709593)
What version of Raspberry Pi are you building a kernel for?
Are you starting from scratch with building the kernel or do you have it already built and just want to make a package to install it?

When I needed to learn about Slackware packages I found Mozes' introduction to Slackware Packages (.PDF) a great resource. I pretty much picked up everything I needed to know from there, and Slack Docs was a great help too.

Raspberry Pi 3. I'm going to build the kernel and package it. I know how to use makepkg, but I don't understand the format of /boot.

Penthux 05-15-2017 03:12 PM

Quote:

Originally Posted by Reedych (Post 5709655)
Raspberry Pi 3. I'm going to build the kernel and package it. I know how to use makepkg, but I don't understand the format of /boot.

In the /boot directory you need the Raspberry Pi firmware, including the /boot/overlays directory, and of course the kernel7.img

<edit> you could simply explode the sarpi3-boot-firmware-armv7-1_slackcurrent_fd0.txz package to view the contents and recreate it with your own kernel and latest firmware included.


All times are GMT -5. The time now is 12:24 PM.