LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 12-25-2019, 03:28 PM   #1
akschu
Member
 
Registered: Dec 2007
Posts: 50

Rep: Reputation: 28
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
 
Old 12-26-2019, 02:53 AM   #2
Exaga
Member
 
Registered: Nov 2012
Posts: 214

Rep: Reputation: 98
Quote:
Originally Posted by akschu View Post
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.
 
1 members found this post helpful.
Old 01-11-2020, 04:52 AM   #3
Exaga
Member
 
Registered: Nov 2012
Posts: 214

Rep: Reputation: 98
Lightbulb SARPi kernel source code

Quote:
Originally Posted by akschu View Post
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!
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware 14.2 Install mkinitrd ERROR: No /lib/modules/4.4.14-smp kernel modules tree found for kernel " 4.4.14-smp" laxware Slackware 4 01-04-2019 01:40 PM
[SOLVED] New kernel in -current (32 bit, 64 bit) and in 14.1( 64 bit) hitest Slackware 24 03-08-2014 11:10 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 02:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration