LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-17-2022, 04:17 AM   #1
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,119

Rep: Reputation: Disabled
Rolling your own kernel?


What is the correct procedure for building your own kernel from source in Slackwareaarch64?

I've done this many times on x86(_64): make oldconfig, make all, make install, make modules install, make headers install (or similar) followed by mkinitrd in /boot.

However, looking at the /boot folder in slackwareaarch64, the naming conventions seem different and there is an additional os-initrd-mgr file. The naming conventions I think I can figure out (simply rename vmlinuz? Or does make install do this for you?), but is the initrd created in a similar way? Does os-initrd-mgr replace mkinitrd? Or is that solely concerned with firmware?

An "idiot's guide" would be appreciated!



--
Pete
 
Old 05-18-2022, 06:33 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,287

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The kernel is the kernel, and that should be ok.

What is different is the boot sequence on your particular SBC, which you don't mention. I can only tell you about my own SBC which is a Raspberry Pi 4. Whether uboot is being used or not affects the naming conventions & files read.
 
Old 05-18-2022, 10:30 AM   #3
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,119

Original Poster
Rep: Reputation: Disabled
Sorry, I should have mentioned, mine is a Pi 400.

Presumably the way Stuart builds the kernel is some "universal" way? My guess would be that "Image-armv8-x.x.x" is simply "vmlinuz" (in x86 speak) renamed, but the initrd appears to contain much more than just the ext4 module that I would expect on x86.

As I say, I'm quite relaxed in the x86 world, but I have a lot to learn about arm! Hence my request for an "idiot's guide"!

--
Pete
 
Old 05-18-2022, 11:17 AM   #4
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Stuart published a document that comes with the source tree that details the exact steps:

slackwareaarch64-current/source/README_SOURCE.txt

All the tools are available in in slackwarearm-devtools/ on slackware.uk or ftp.arm.slackware.com.

If you wish to make your own Aarch64 SD card images: https://ftp.arm.slackware.com/slackw...tform/aarch64/

It is all written in shell scripts and should be fine if you stick with bash. There are additional README's and man pages for slackkit that should get you started. There are comments everywhere in the code of the toolkit.

If you would like to use other computers on your network as networked build machines, he wrote a tool that will make this happen on x86_64, x86, arm, and aarch64.
slackwarearm-devtools/x-toolchain/

Last edited by mralk3; 05-18-2022 at 11:24 AM. Reason: typo
 
3 members found this post helpful.
Old 05-18-2022, 11:29 AM   #5
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,119

Original Poster
Rep: Reputation: Disabled
Thanks for the pointers!

Looks like I have some reading to do...!



--
Pete
 
1 members found this post helpful.
Old 05-20-2022, 01:17 AM   #6
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by pchristy View Post
What is the correct procedure for building your own kernel from source in Slackwareaarch64?
People have been asking the same question for years. In an attempt to encourage Slackware ARM users to DIY there's documentation to cover it...

There's this: https://sarpi.penthux.net/index.php?p=rpi-kernel

Then this: https://sarpi.penthux.net/index.php?p=sarpisources
 
4 members found this post helpful.
  


Reply

Tags
build from source, kernel



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
LXer: Rolling Rhino: A rolling-release remix of Ubuntu LXer Syndicated Linux News 1 08-17-2023 12:24 PM
How difficult is it to create your own C compiler and then use that compiler to compile your own custom Linux kernel? z3rOR0ne Linux - Newbie 17 05-01-2022 03:42 PM
LXer: Convert Ubuntu Into Rolling Release Using Rolling Rhino Script LXer Syndicated Linux News 0 07-01-2020 12:13 PM
LXer: Swiss developers start rolling Your Own Linux Distribution LXer Syndicated Linux News 0 08-25-2006 03:21 PM
LXer: Rolling your own Debian packages (part 1) LXer Syndicated Linux News 0 01-22-2006 08:16 AM

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

All times are GMT -5. The time now is 04:10 AM.

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
Open Source Consulting | Domain Registration