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.
|
 |
02-02-2016, 11:27 AM
|
#1
|
Member
Registered: Jan 2008
Location: London
Distribution: slackware64-current
Posts: 46
Rep:
|
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
|
|
|
02-02-2016, 04:38 PM
|
#2
|
Member
Registered: Jan 2008
Location: London
Distribution: slackware64-current
Posts: 46
Original Poster
Rep:
|
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
|
|
|
02-03-2016, 01:18 AM
|
#3
|
Member
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 636
Rep:
|
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.
|
02-03-2016, 07:14 AM
|
#4
|
Member
Registered: Jan 2008
Location: London
Distribution: slackware64-current
Posts: 46
Original Poster
Rep:
|
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
|
|
|
02-03-2016, 10:29 AM
|
#5
|
Member
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 636
Rep:
|
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.
|
02-03-2016, 11:52 AM
|
#6
|
Slackware Contributor
Registered: Apr 2008
Distribution: Slackware
Posts: 1,665
|
Quote:
Originally Posted by boler
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.
|
02-05-2016, 04:02 AM
|
#7
|
Member
Registered: Jan 2008
Location: London
Distribution: slackware64-current
Posts: 46
Original Poster
Rep:
|
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
|
|
|
02-05-2016, 09:53 AM
|
#8
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
Quote:
Originally Posted by boler
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.
|
|
|
02-05-2016, 10:42 AM
|
#9
|
Slackware Contributor
Registered: Apr 2008
Distribution: Slackware
Posts: 1,665
|
Quote:
Originally Posted by bassmadrigal
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.
|
|
|
02-05-2016, 12:02 PM
|
#10
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
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.
|
|
|
03-19-2016, 06:47 AM
|
#11
|
Member
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 835
Rep:
|
So, do I understand correctly that one can remove the slackware kernel-* packages? Or should one keep the kernel-source and kernel-headers?
|
|
|
03-19-2016, 07:06 AM
|
#12
|
Member
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 636
Rep:
|
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.
|
03-19-2016, 07:58 AM
|
#13
|
Member
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 835
Rep:
|
Quote:
Originally Posted by louigi600
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!
|
|
|
03-21-2016, 03:59 PM
|
#14
|
Member
Registered: Jun 2013
Location: Ipswich, Australia
Distribution: Slackware
Posts: 74
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 09:00 AM.
|
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
|
|