Slackware - ARM This forum is for the discussion of Slackware ARM. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-17-2022, 04:17 AM
|
#1
|
Senior Member
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,171
Rep: 
|
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
|
|
|
05-18-2022, 06:33 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,413
|
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.
|
|
|
05-18-2022, 10:30 AM
|
#3
|
Senior Member
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,171
Original Poster
Rep: 
|
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
|
|
|
05-18-2022, 11:17 AM
|
#4
|
Slackware Contributor
Registered: May 2015
Distribution: Slackware
Posts: 1,926
|
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.
|
05-18-2022, 11:29 AM
|
#5
|
Senior Member
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,171
Original Poster
Rep: 
|
Thanks for the pointers!
Looks like I have some reading to do...!
--
Pete
|
|
1 members found this post helpful.
|
05-20-2022, 01:17 AM
|
#6
|
SARPi Maintainer
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,069
|
Quote:
Originally Posted by pchristy
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.
|
All times are GMT -5. The time now is 06:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|