LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-02-2016, 11:27 AM   #1
boler
Member
 
Registered: Jan 2008
Location: London
Distribution: slackware64-current
Posts: 46

Rep: Reputation: 16
Noob question - RasPi2 Slackware Kernel Update


Hi,

Sorry for the noob question (I did my homework but can't find the answer).

I recently installed Slackware-current on my RasPi2 using the Fatdog.eu method. It works flawlessly. Clearly Slackware is the only sensible choice of OS on the pi ;-)

However I'm struggling to understand how to get the current kernel to run. After the update "uname -r" yields the 3.18 series. How do I get the new kernel installed? Is there an equivalent way to sbin/lilo and point to the new kernel image?

Thanks, Tim
 
Old 02-02-2016, 04:38 PM   #2
boler
Member
 
Registered: Jan 2008
Location: London
Distribution: slackware64-current
Posts: 46

Original Poster
Rep: Reputation: 16
Ok update. I installed and ran rpi-update but that only bumped the kernel version up to 4.1.17-v7+. Grateful if someone would guide me on how to get the latest 4.3.3 to run.

Thanks, Tim
 
Old 02-03-2016, 01:18 AM   #3
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 634
Blog Entries: 20

Rep: Reputation: 81
As far as I know kernel sources for RPi is not off kernel.org but off a RPi foundation git forked from mainstream kernel.
Their newest version available is somewhere in the 4.1 range ... if you feel like compiling your own you could git clone from there.
If you want it already build ither go with what fatdog has or ripp it off raspbian like I suggest in the Manual installation method which works on both RPi and RPI2.

Last edited by louigi600; 02-03-2016 at 01:21 AM.
 
1 members found this post helpful.
Old 02-03-2016, 07:14 AM   #4
boler
Member
 
Registered: Jan 2008
Location: London
Distribution: slackware64-current
Posts: 46

Original Poster
Rep: Reputation: 16
Ok thanks for the clarification.

I'm not entirely clear though why the raspberry pi can't run a vanilla kernel i.e. one found on the Slackware ARM tree? Does there need to be some low level customization for the kernel to run on a pi? I thought that the structure of loadable kernel modules meant that a vanilla kernel is fully comparable with virtually any hardware.

Cheers, Tim
 
Old 02-03-2016, 10:29 AM   #5
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 634
Blog Entries: 20

Rep: Reputation: 81
I refer to kernels compiled from unpatched source out of kernel.org as vanilla kernels (but I may be wrong in doing that).
As far as I know Slackware on Intel runs on vanilla kernels ... now ARM is not like Intel so it is more common that any specific ARM based soc has several patches that have not made their way to mainstream ... hence the need for having forked so many kernel development branches for such a variety of ARM soc's. This is why Slackware arm cannot officially support every ARM device it could run on ... but the Slackware ARM userland can run most of them provided you can find a kernel for whatever hardware you want to run it in.

Not sure if this clarifies ... if not have a look in the Slackware ARM supported devices section for starters.
 
1 members found this post helpful.
Old 02-03-2016, 11:52 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,527

Rep: Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271
Quote:
Originally Posted by boler View Post
Ok thanks for the clarification.

I'm not entirely clear though why the raspberry pi can't run a vanilla kernel i.e. one found on the Slackware ARM tree? Does there need to be some low level customization for the kernel to run on a pi? I thought that the structure of loadable kernel modules meant that a vanilla kernel is fully comparable with virtually any hardware.

Cheers, Tim
The ARM kernel is mostly vanilla apart from 2-3 patches to fix issues that will never be fixed upstream (such as the awful hack for the Tegra to prevent USB disconnects of the internal hard drive).
I try to avoid all patches unless necessary - generally if the support for a device does not make it upstream, it will get locked at a particular version of the kernel (because nobody is interested in developing the support enough to get it merged upstream). That's why I only carry patches that are absolutely necessary and won't be taken upstream, and that don't change much.

I *think* that the armv7 kernel in -current can run on the RPI2 but I don't know and I don't have a RPi2. I'm pretty sure that I added the required SoC support a few kernels ago.
Linux 4.3.5 kernel packages will be uploaded today so if you know how to make the RPi boot this kernel, give it a go.

Last edited by drmozes; 02-03-2016 at 12:34 PM. Reason: kernel packages are being uploaded today
 
1 members found this post helpful.
Old 02-05-2016, 04:02 AM   #7
boler
Member
 
Registered: Jan 2008
Location: London
Distribution: slackware64-current
Posts: 46

Original Poster
Rep: Reputation: 16
Thanks Stuart for this! I'll have a go on the weekend; will give me something to do with all this rain coming ;-).

Cheers, Tim
 
Old 02-05-2016, 09:53 AM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by boler View Post
I'm not entirely clear though why the raspberry pi can't run a vanilla kernel i.e. one found on the Slackware ARM tree? Does there need to be some low level customization for the kernel to run on a pi? I thought that the structure of loadable kernel modules meant that a vanilla kernel is fully comparable with virtually any hardware
This is more for general information rather than something specific to your case (since I am not familiar enough with your hardware support in the kernel). But support for hardware needs to be added to the kernel. This can occur directly in the kernel or via 3rd-party modifications (this could be modifications to the kernel itself, or providing you with source that can be built against your current kernel to create the needed modules/drivers).

To (hopefully) simplify, the kernel has the drivers for 95% of the hardware out there, but some hardware will require drivers that are not available in the official kernel.org kernel. The manufacturers can either provide you a completely separate kernel that has the modifications needed to support your hardware, or they can release the drivers as downloadable source, that you would then compile against your current kernel to provide you the needed modules.
 
Old 02-05-2016, 10:42 AM   #9
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,527

Rep: Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271Reputation: 1271
Quote:
Originally Posted by bassmadrigal View Post
This is more for general information rather than something specific to your case (since I am not familiar enough with your hardware support in the kernel). But support for hardware needs to be added to the kernel. This can occur directly in the kernel or via 3rd-party modifications (this could be modifications to the kernel itself, or providing you with source that can be built against your current kernel to create the needed modules/drivers).

To (hopefully) simplify, the kernel has the drivers for 95 of the hardware out there, but some hardware will require drivers that are not available in the official kernel.org kernel. The manufacturers can either provide you a completely separate kernel that has the modifications needed to support your hardware, or they can release the drivers as downloadable source, that you would then compile against your current kernel to provide you the needed modules.
The issue at hand is usually due to the SoC (System on Chip) itself: there is no "generic ARM" - each device has to have its own support in the Kernel. Even if one ARM device is very similar to another (e.g. the Banana Pi vs Banana Pi Pro), there has to be a Flattened Device Tree for it to detail the layout of the hardware on the board since there is no such thing as a BIOS on ARM.
Usually the developers work on them in their own git repo and eventually push the support to the kernel.org tree, but not always; or they push some but never complete the support for the remaining things such as audio.
 
Old 02-05-2016, 12:02 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I had to deal with this quite a bit with Android devices and their kernels... I was just trying to give a broad explanation on why "I thought that the structure of loadable kernel modules meant that a vanilla kernel is fully comparable with virtually any hardware" doesn't mean that every device will have full support within the vanilla kernel. But thanks for the additional information... it never clicked in my head that ARM devices lack a BIOS or something similar.
 
Old 03-19-2016, 06:47 AM   #11
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
So, do I understand correctly that one can remove the slackware kernel-* packages? Or should one keep the kernel-source and kernel-headers?
 
Old 03-19-2016, 07:06 AM   #12
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 634
Blog Entries: 20

Rep: Reputation: 81
If you're not going to compile the kernel, or at least from the sources that come with slackware, you can remove kernel-source ... I'd keep the kernel headers because you might need them for compiling other stuff.
 
1 members found this post helpful.
Old 03-19-2016, 07:58 AM   #13
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Quote:
Originally Posted by louigi600 View Post
If you're not going to compile the kernel, or at least from the sources that come with slackware, you can remove kernel-source ... I'd keep the kernel headers because you might need them for compiling other stuff.
Cheers!
 
Old 03-21-2016, 03:59 PM   #14
briselec
Member
 
Registered: Jun 2013
Location: Ipswich, Australia
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
Originally every arm device added patches and additions to the kernel but then Linus had a big dummy spit over it because it was getting absurd and insisted arm devices use device tree files. That has made things better but it still requires a fair amount of work to port a kernel version to a new arm device.
 
  


Reply

Tags
kernel, raspberrry pi, slackware -current


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
noob question - kernel 2.6 vs 3.x speed argentux Slackware 11 11-29-2014 01:51 AM
another noob 2.6 kernel question Slinky Slackware 1 03-20-2004 01:02 PM
noob kernel question Slinky Slackware 5 03-14-2004 07:58 AM
Noob question, Slackware vs Mandrake old PC azrith Slackware 6 11-10-2003 07:04 AM
noob question on slackware centr0 Linux - Distributions 7 04-13-2003 03:16 PM

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

All times are GMT -5. The time now is 02:02 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