LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   FatDog SARPi - one site to rule them all (https://www.linuxquestions.org/questions/slackware-arm-108/fatdog-sarpi-one-site-to-rule-them-all-4175589025/)

Exaga 09-08-2016 12:14 PM

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! :cool:

CODOR 09-08-2016 09:11 PM

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)

Exaga 09-09-2016 02:34 AM

Quote:

Originally Posted by CODOR (Post 5602729)
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.

ppencho 12-01-2016 02:31 PM

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

Penthux 12-01-2016 05:46 PM

Quote:

Originally Posted by ppencho (Post 5636785)
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 (Post 5636785)
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.

glorsplitz 12-01-2016 07:38 PM

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

Penthux 12-02-2016 01:58 AM

Quote:

Originally Posted by glorsplitz (Post 5636895)
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!

glorsplitz 12-02-2016 06:45 AM

That's great Penthux, thanks, I will RTFM.

ppencho 12-02-2016 03:38 PM

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

Penthux 12-03-2016 03:47 AM

Quote:

Originally Posted by ppencho (Post 5637215)
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



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