LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Building modules on Slackware-current on PI 4 with 64-bit kernel. (https://www.linuxquestions.org/questions/slackware-arm-108/building-modules-on-slackware-current-on-pi-4-with-64-bit-kernel-4175666541/)

akschu 12-25-2019 02:28 PM

Building modules on Slackware-current on PI 4 with 64-bit kernel.
 
Hello,

I use slackware a bunch and also use ZFS. I'm trying to build a mini slackware machine on my Pi4 that I can send ZFS file systems to for backup reasons. In order to use zfs, I really need a 64-bit kernel.

I installed SARPi kernel/modules/hacks on my Pi using the slackware-arm current userspace, then upgraded these packages to get a 64-bit kernel:

kernel-modules-sarpi64-5.2.8-armv8-1_slackcurrent_19Aug19_sp64
kernel_sarpi64-5.2.8-armv8-1_slackcurrent_19Aug19_sp64
sarpi64-boot-firmware-armv8-1_slackcurrent_19Aug19_sp64
sarpi64-hacks-4.0-armv8-1_slackcurrent_19Aug19_sp64

That worked fine, and now I have a 64-bit kernel and 32-bit userspace.

I was able to build the ZFS userspace just fine with 32-bit binaries, which shouldn't be a problem, but I can't build the 64-bit kernel modules as I'm missing the kernel-source and kernel-header packages.

I looked all over for a sarpi64 kernel source and kernel headers package, but it doesn't look like one is available.

Any thoughts on where to find this, or how to get a 64-bit kernel on a pi with a build environment?

Thanks,
schu

Exaga 12-26-2019 01:53 AM

Quote:

Originally Posted by akschu (Post 6071265)
Hello,

I looked all over for a sarpi64 kernel source and kernel headers package, but it doesn't look like one is available.

Any thoughts on where to find this, or how to get a 64-bit kernel on a pi with a build environment?

Thanks,
schu

Hi and happy holidays schu.

SARPi64 kernel source can be found on kernel.org - or Raspberry Pi GitHub repository if you prefer. All the information you need to build it is included on the website - even the build scripts are available. It's all experimental work and testing that I played around with and decided to share, in the event that someone may find it useful or helpful.

Exaga 01-11-2020 03:52 AM

SARPi kernel source code
 
Quote:

Originally Posted by akschu (Post 6071265)
I looked all over for a sarpi64 kernel source and kernel headers package, but it doesn't look like one is available.

Any thoughts on where to find this, or how to get a 64-bit kernel on a pi with a build environment?

Thanks,
schu

The Linux kernel source code from which the SARPi installer images and system packages are created is available from the SARPi downloads page: http://sarpi.fatdog.eu/index.php?p=downloads

Once downloaded, install the package:
Code:

root@slackbox:~# installpkg sarpi-kernel-source*.txz
Et voila!

All future SARPi updates will correlate with any new kernel source package(s) as they will be built from the same source code to keep everything in-line and simple.

Enjoy! :cool:


All times are GMT -5. The time now is 09:02 PM.