LinuxQuestions.org
Review your favorite Linux distribution.
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 07-22-2018, 07:11 AM   #1
Pigi_102
LQ Newbie
 
Registered: Aug 2008
Posts: 17

Rep: Reputation: 3
SARPi current and kernel ?


Hi all,
I have successfully installed a SARPi current yesterday, after a crash of my previous SD card
I've noticed that, in the kernel-headers and sources there is the 4.17.6 while the installed ( and running ) kernel is the 4.14.56

root@casa:/var/adm/packages# ls -l kerne*
kernel-firmware-20180606_d114732-noarch-1
kernel-headers-4.17.6-arm-1
kernel-modules-sarpi3-4.14.56-armv7-1_slackcurrent_20Jul18_sp1
kernel-source-4.17.6-arm-1
kernel_sarpi3-4.14.56-armv7-1_slackcurrent_20Jul18_sp1

Is there any way to "align" this condition ? I mean either rollback source and headers to 4.14.56 or upgrade the booting kernel to 4.17.6


I'm having quite some issue with some ( self-built ) packages that could depend from the differences between headers and running kernel...

Thanks in advance

Pierluigi
 
Old 07-22-2018, 12:22 PM   #2
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 614

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by Pigi_102 View Post
I'm having quite some issue with some ( self-built ) packages that could depend from the differences between headers and running kernel...
can you provide details, like what are you doing and what are the errors?
 
Old 07-22-2018, 12:33 PM   #3
Pigi_102
LQ Newbie
 
Registered: Aug 2008
Posts: 17

Original Poster
Rep: Reputation: 3
I have a couple of problems:
1) squid 3.4.10 , with Slackbuild from SBo. It compiles fine, but it goes segmentation at starting, no matter what kind of flags I try to use ( and what kind of configuration I try ). If I run and old squid from the previous installation ( that unfortually is gone as my ext4 corrupted and I have recovered few stuffs from it ) it works.

2) ntopng that need kernel headers from running kernel to compile ( and to troubleshoot some panic issue I had in past )

Moreover I like to compile whatever I need with the headers from the kernel I'm running ( and on X86-X86_64 I've always compiled my own kernel, and rebuild the headers packages from this ).

I must say that I would like ( I like ? ) to have running kernel, kernel sources and kernel headers from the same one.
 
Old 07-22-2018, 02:43 PM   #4
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 614

Rep: Reputation: 119Reputation: 119
Since you did SARPi current, are going to do rpi-update?

Maybe first two paragraphs might give you an idea what you might be able to do to get what you need.

Or maybe this thread?

Quote:
Originally Posted by Pigi_102 View Post
I must say that I would like ( I like ? ) to have running kernel, kernel sources and kernel headers from the same one.
might have to do slackwarearm install instead of SARPi.

Last edited by glorsplitz; 07-22-2018 at 02:46 PM.
 
Old 07-22-2018, 05:08 PM   #5
Pigi_102
LQ Newbie
 
Registered: Aug 2008
Posts: 17

Original Poster
Rep: Reputation: 3
glorsplitz
I've just tried the rpi-update, but after running I see:

"This update bumps to rpi-4.14.y linux tree"

which is exactly the same kernel I'm running now, and yes, I've read the thread you're pointing.

I will try that way but I'm not very sure where it will take me. The git it is referring is quite bit less advanced than the
"-current" version that is in the repository.

I thought that on SARPi, as on slackware-current, the kernel and his sources/headers were the same.

I will try the compile to see if it will work. It will take some time, I suspect, on RPi

Thanks for you help
 
Old 07-23-2018, 01:50 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 684

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by Pigi_102 View Post
I thought that on SARPi, as on slackware-current, the kernel and his sources/headers were the same.
I thought that by now the support for the Raspberry Pi's was in the mainstream kernels, but perhaps it's not.
SARPi provides replacement Slackware kernel packages for the device and documentation to guide installation of Slackware ARM. If the RPi people don't keep pace with the Linux Kernel Developers, then neither can SARPI keep up with the Kernel series that is used by Slackware ARM. SARPi is not a distribution - it's some extra stuff to make Slackware ARM work on RPis.


glibc is compiled using the headers from the latest Kernel major release branch, so you shouldn't _really_ go backwards (i.e. don't put older kernel headers on your system!). However, I used to do it for years when ARMedslack was initially developed - we all did it -- one of the Debian ARM developers told me they did the same :-)
I'd therefore downgrade the kernel-headers package to the one SARPi has (I don't know if it does provide the package - it'd be a bad idea in most respects, but if it doesn't - get the source and install the headers into a package dir and makepkg on it - see below) which matches your running kernel, and try building the package. Once built and tested, upgradepkg back to the kernel-headers package in slackware/d series.

Even if SARPi does not provide a kernel headers package, you can obtain the Kernel source tree it uses and build the headers without compiling the Kernel. I haven't tested this, but it's a combination of Slackware ARM's kernel.SlackBuild and kernel-headers.SlackBuild and it should work.

Code:
# cd linux-1.2.3
# mkdir -vpm755 /tmp/kernel-headers/usr
# Install 'sanitised' headers:
make ARCH=arm INSTALL_HDR_PATH=/tmp/kernel-headers/usr headers_install
cd /tmp/kernel-headers
# Remove unneeded dotfiles:
find . -name ".??*" -exec rm -f {} \;
rm -f usr/include/{drm,scsi/scsi.h}

( cd usr/include
  SLKARCH=armv7 #- presumably it's the same for the RPI? 
  mv asm asm-${SLKARCH}
  ln -vsf asm-${SLKARCH} asm )
makepkg -l y -c n /tmp/kernel-headers.tgz

Last edited by drmozes; 07-23-2018 at 09:51 AM.
 
3 members found this post helpful.
Old 07-30-2018, 04:25 AM   #7
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 684

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by Pigi_102 View Post
I
1) squid 3.4.10 , with Slackbuild from SBo. It compiles fine, but it goes segmentation at starting.
I tried it and did no more than 'squid -z' (and surprised myself that I remembered that after not using Squid for over ten years!) -- it worked fine.
You should run it through gdb and find out what is segfaulting. Also check the CFLAGS -- if you compiled it for armv7 but have an ARMv6 CPU, it won't work.
If it's just "-O2" or something generic, it'll be fine.
 
Old 07-30-2018, 07:29 AM   #8
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 230

Rep: Reputation: 67
Quote:
Originally Posted by drmozes View Post
Even if SARPi does not provide a kernel headers package, you can obtain the Kernel source tree it uses and build the headers without compiling the Kernel. I haven't tested this, but it's a combination of Slackware ARM's kernel.SlackBuild and kernel-headers.SlackBuild and it should work.
I wish everybody thought like you do Mozes. Nice one.
 
  


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] Where can I find kernel sources for sarpi ( 14.2 ) Pigi_102 Slackware - ARM 4 02-16-2018 05:03 PM
SARPi website new URL - sarpi.co.uk Exaga Slackware - ARM 4 01-28-2018 06:36 PM
SARPi updated to kernel 4.14 Exaga Slackware - ARM 7 01-23-2018 04:27 PM
SARPi installer and packages using kernel 4.9.61 Exaga Slackware - ARM 1 11-19-2017 02:10 AM

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

All times are GMT -5. The time now is 12:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration