LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-08-2016, 12:14 PM   #1
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Lightbulb FatDog SARPi - one site to rule them all


What most of you will know, and recognise, as the SARPi project websites have now gone. Vanished. Deleted. They went face to face with ´rm -rf´, and ´rm -rf´ won (with root priviledges).

Instead of three seperate websites supporting Slackware ARM on the Raspberry Pi 1, 2, & 3, respectively... there is now a brand new, pantheonic, SARPi website in their place.

New SARPi project URL: http://sarpi.fatdog.eu

This new SARPi website supplants the original sites and combines them all into one. If/when users try to access http://rpi.fatdog.eu, http://rpi2.fatdog.eu, and http://rpi3.fatdog.eu, they will be taken to the new SARPi website. The content of the original three sites has been incorporated and merged into this new website. So, Raspberry Pi users, whichever model they have, are still supported. All, except for the steenking RPi Zero.

Please let me know your thoughts and opinions on the new SARPi website. We´re always looking to improve and your feedback is very welcome.

Cheers!

Last edited by Exaga; 09-08-2016 at 01:01 PM. Reason: jaffa cakes <3
 
Old 09-08-2016, 09:11 PM   #2
CODOR
LQ Newbie
 
Registered: Sep 2016
Location: Ontario, Canada
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
The hyperlink for the -current version of kernel_rpi3-4.4.19-armv7-1_05Sep16_fd.txz is listed as "kernel_rpi3-4.4.19-armv7-1_Monday 5th September 2016_fd.txz" and throws a 404 error if you blindly copy the link like I just did :-)
(The correctly-named file is there, just the hyperlink is incorrect)
 
Old 09-09-2016, 02:34 AM   #3
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Original Poster
Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Thumbs up

Quote:
Originally Posted by CODOR View Post
The hyperlink for the -current version of kernel_rpi3-4.4.19-armv7-1_05Sep16_fd.txz is listed as "kernel_rpi3-4.4.19-armv7-1_Monday 5th September 2016_fd.txz" and throws a 404 error if you blindly copy the link like I just did :-)
(The correctly-named file is there, just the hyperlink is incorrect)
Oh dear. Sorry for the schoolboy error. This is me getting confused over ´release date´ and ´build date´ %TAGS%. Although, in this case they are the same date, the output is in a different format for each of these %TAGS%.

Thank you for this, CODOR. Good feedback. The link is fixed now.
 
Old 12-01-2016, 02:31 PM   #4
ppencho
Member
 
Registered: Jan 2004
Location: Bulgaria
Distribution: Slackware64-current
Posts: 94

Rep: Reputation: Disabled
I am looking for the .config file used to compile the current SARPI kernel (kernel_sarpi3-4.4.30-armv7-1_slackcurrent_fd0.txz). I need it to build my kernel modules.

I cloned the source from the git repository, checkout the used commit (from /boot/version-kernel_sarpi3.txt), make bcm2709_defconfig, modified CONFIG_LOCALVERSION="-v7-arm".

modinfo of the stock modules returns
Code:
vermagic:       4.4.30-v7-arm SMP mod_unload modversions ARMv7
modinfo of my module returns
Code:
vermagic:       4.4.30-v7-arm+ SMP mod_unload modversions ARMv7
Where does the additional + come from?

The kernel refuses to load the module with
Code:
insmod: ERROR: could not insert module sevseg.ko: Invalid module format
 
Old 12-01-2016, 05:46 PM   #5
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 264

Rep: Reputation: 74
Quote:
Originally Posted by ppencho View Post
I am looking for the .config file used to compile the current SARPI kernel (kernel_sarpi3-4.4.30-armv7-1_slackcurrent_fd0.txz). I need it to build my kernel modules.
If you have installed Slackware ARM using the 4.4.30 SARPi installer...

Code:
cat /usr/doc/kernel_sarpi3-4.4.30_arm/config
Or if not ...

Code:
explodepkg kernel_sarpi3-4.4.30-armv7-1_slackcurrent_fd0.txz
cd usr/doc/kernel_sarpi3-4.4.30_arm/
cat config
Quote:
Originally Posted by ppencho View Post
I cloned the source from the git repository, checkout the used commit (from /boot/version-kernel_sarpi3.txt), make bcm2709_defconfig, modified CONFIG_LOCALVERSION="-v7-arm".

modinfo of the stock modules returns
Code:
vermagic:       4.4.30-v7-arm SMP mod_unload modversions ARMv7
modinfo of my module returns
Code:
vermagic:       4.4.30-v7-arm+ SMP mod_unload modversions ARMv7
Where does the additional + come from?

The kernel refuses to load the module with
Code:
insmod: ERROR: could not insert module sevseg.ko: Invalid module format
The "-arm" suffix is put there to tell the difference between SARPi kernels and kernels which have been installed from the RPi repository (using rpi-update, for example). Kernels which have been installed using rpi-update always carry the "+" suffix (e.g. 4.4.30-v7+). I'm not sure why you have the additional "+" but my advice would be not to set a LOCALVERSION and test build without it. Also, 'uname -r' should tell you which kernel and modules you currently have installed and if that's telling you "4.4.30-v7+" then perhaps you have already updated using rpi-update and are trying to use modules for a kernel you had installed (4.4.30-v7-arm) rather than the one you have installed (4.4.30-v7+), but that's just a guess. "Invalid module format" usually means the modules were built for a previous kernel version. You need to check that your installed kernel version and the kernel-headers are the same. Then you can (re)compile your modules for the current kernel.

Last edited by Penthux; 12-01-2016 at 05:52 PM. Reason: typo
 
1 members found this post helpful.
Old 12-01-2016, 07:38 PM   #6
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Speaking of kernels, I notice
drwxr-xr-x 3 root root 4096 Oct 6 08:13 /lib/modules/4.4.21-v7-arm/
thru
drwxr-xr-x 3 root root 4096 Nov 26 18:20 /lib/modules/4.4.35-v7+/
17 folders about 855M.

Been using rpi-update, I've no experience with, is there something rpi-update switch, parameter to remove anything not current kernel, or is this a manual delete or just leave them alone?

Thanks
 
Old 12-02-2016, 01:58 AM   #7
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 264

Rep: Reputation: 74
Quote:
Originally Posted by glorsplitz View Post
Been using rpi-update, I've no experience with, is there something rpi-update switch, parameter to remove anything not current kernel, or is this a manual delete or just leave them alone?

Thanks
Just bear in mind that rpi-update is an 'apt-get -y install' type tool that may be convenient but it can seriously break things from time to time, depending on how it's used, and is not totally in-line with the Slackware way of maintaining/updating your system. There are various command-line options but to understand and learn how to use them you need to do some RTFM. The following command-option might be what you're looking for?

Code:
PRUNE_MODULES=1 rpi-update
See https://github.com/Hexxeh/rpi-update for more information.

<edit> use WITH caution!

Last edited by Penthux; 12-02-2016 at 02:02 AM. Reason: edit
 
Old 12-02-2016, 06:45 AM   #8
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
That's great Penthux, thanks, I will RTFM.
 
Old 12-02-2016, 03:38 PM   #9
ppencho
Member
 
Registered: Jan 2004
Location: Bulgaria
Distribution: Slackware64-current
Posts: 94

Rep: Reputation: Disabled
Success I have installed the fatdog kernel so I found 'config' in /usr/doc. Thanks Penthux.

The key was to build the kernel (no need to install/run it) so Module.symvers to be created. After that I built and loaded my module with no issues. Even though the kernel version strings differ:
uname -r: 4.4.30-v7-arm
modinfo: vermagic: 4.4.30-v7+ SMP mod_unload modversions ARMv7

Not related to my issue but a bit of information about the extra +:
Kernel local version
 
Old 12-03-2016, 03:47 AM   #10
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 264

Rep: Reputation: 74
Quote:
Originally Posted by ppencho View Post
Success I have installed the fatdog kernel so I found 'config' in /usr/doc. Thanks Penthux.

The key was to build the kernel (no need to install/run it) so Module.symvers to be created. After that I built and loaded my module with no issues. Even though the kernel version strings differ:
uname -r: 4.4.30-v7-arm
modinfo: vermagic: 4.4.30-v7+ SMP mod_unload modversions ARMv7
Good to hear. Well done.

The kernel version is 4.4.30 and anything after the "-" is the version suffix specified by CONFIG_LOCALVERSION= within the kernel .config file or by building with
Code:
make config LOCALVERSION="-MY_SUFFIX"
The suffix is set by the /usr/src/linux/scripts/setlocalversion script in your Linux kernel source directory and is well worth a read.

Code:
	# append a plus sign if the repository is not in a clean
	# annotated or signed tagged state (as git describe only
	# looks at signed or annotated tags - git tag -a/-s) and
	# LOCALVERSION= is not specified
 
  


Reply

Tags
arm, arm6, arm7, raspberrry pi, slackware



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
Raspberry PI installation guides by FatDog (gone?) andrixnet Slackware - ARM 15 03-13-2016 05:22 AM
Raspberry Pi - fatdog - LVM elesmod Slackware - ARM 8 02-09-2014 04:39 PM
Apache site redirects using what rule? foo.site.com -> www.site.com/foo LaughingBoy Linux - Server 2 04-16-2009 09:51 PM
site map -> forum rule kaz2100 LQ Suggestions & Feedback 2 02-07-2008 04:14 PM
A no other site URL on first post rule. Then I give my solution to this sound issue! bvip2003 LinuxQuestions.org Member Intro 1 12-13-2007 02:18 AM

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

All times are GMT -5. The time now is 06:03 PM.

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