Install failing with "invalid module format".
Forums:
Hi,
I'm new to Pi and Linux (well, I did give Linux a prolonged go about 10 years ago... but gave up- neither of us was mature enough!).
I have my Ledborg, but am struggling, having followed the instructions.
My Pi is a 512MB Model B Rev 2, with a fresh & updated Raspian install.
I followed the instructions, but repeatedly get "invalid module format".
uname -r gives a result of 3.6.11+, which is a later kernel than any other versions mentioned?
I tried following the text to 'build from source' but ran into problems (& not least my lack of knowledge).
Any suggestions please? I have tried multiple times, and with fresh Raspian installs- I even tried the Rev 1 download at one point, but always get "invalid module format".
Are there any detailed instructions to download and build the driver source code?
Thanks
Andy.
Timothy Freeburn
Tue, 02/12/2013 - 15:04
Permalink
Username/Build from source problems
Hi Andy,
You might want to log in and change your username as using your email address in forums might get you some additional spam.
We'll have a look now and see if we can build the latest version and if we can get source and pointers etc., we'll throw it on the web.
piborg
Tue, 02/12/2013 - 20:08
Permalink
Building from source
Hi Andy,
Sorry about the delay, hopefully this will explain things better.
The "Invalid module format" error is Linux jargon for your driver was not built for the specific kernel version you are running, the system is basically preventing the driver from being loaded since it cannot be sure it is compatible, and an incompatible driver can cause problems.
The best solution is to build the driver for the correct kernel version (the checks can be ignored but it may cause problems).
The first thing you will need to build is to have the kernel headers to build the driver with.
The following lines will download and run a script which attempts to download the latest kernel source (hopefully the same version as your copy).
You can view the script here.
Assuming that was successful then you will need to download the source for LedBorg.
Finally we need to build the driver code and install the files (we will use the pre-build GUI).
If you really do not want to build the driver yourself I have uploaded the version I just built to test the above instructions, it can be installed using
For reference my system returns the following for
uname -a
.Linux raspberrypi 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv61 GNU/Linux
v8hybrid
Tue, 02/12/2013 - 21:06
Permalink
built from source
Thank You very much- built from source from your instructions and.. green ledborg! :-)
Please don't apologise for a 'delay'! I only asked this morning!!!
marco.tonoli@li...
Tue, 04/16/2013 - 16:06
Permalink
same problem
Hi all,
i hane a 512mb revB board, same problem outthebox, tried same solution before in this post without success.
Plase can someone help me? Maybe i need to "clean" some configuration because i make several test but i don't know how.
problem:
Installing LedBorg, please wait...
Error: Module ledborg is not currently loaded
update-rc.d: using dependency based boot sequencing
Error: could not insert module /home/pi/ledborg.ko: Invalid module format
LedBorg installed, LedBorg should now be green
(led is always off, never see it up)
Edit: Log of build attached
piborg
Tue, 04/16/2013 - 17:34
Permalink
What distribution of Linux are you running?
The instructions from before should be good for standard Raspbian, your uname line states
raspberrypi 3.6.11-rpi-aufs
, the latest Raspbian “wheezy” image on http://www.raspberrypi.org/downloads israspberrypi 3.6.11+
.I presume you are either running a different distribution, or you have a custom kernel installed.
marco.tonoli@li...
Wed, 04/17/2013 - 16:06
Permalink
Hi,
Hi,
i can't check for some days, sorry. I think (not sure) to have installed Debian Wheezy Raspbian.
I'm sure have installed it with BerryBoot. Maybe this is the problem ?
Sorry can't check better because not in office now (and in office have not a tv or hdmi display) so excuse me, but i'm sure for berryboot; i don't know if berryboot manage custom kernel.
piborg
Wed, 04/17/2013 - 17:12
Permalink
No problem
No worries, we will help solve your problem whenever is convenient.
Have not seen or used BerryBoot, will download and try it, maybe that will help explain the problem
marco.tonoli@li...
Thu, 04/18/2013 - 15:42
Permalink
tomorrow i'll be in office, i
tomorrow i'll be in office, i'll check and report exact operating system but i'm pretty sure of Barryboot.
bye
marco.tonoli@li...
Fri, 04/19/2013 - 12:46
Permalink
I confirm installed is
I confirm installed is Barryboot, inside Wheezy Raspbian 2012.12 fully updated. Maybe barryboot this is problem. I need remove it?
Thanks
marco.tonoli@li...
Fri, 04/19/2013 - 14:43
Permalink
OK, made a new install with
OK, made a new install with raspbian without berryboot; update all and installed ledborg sw.
WORK LIKE A CHARM ! so problem is something related with berryboot.
Not a problem for me but hope my experiance maybe useful for any one.
Thnaks
marco
piborg
Fri, 04/19/2013 - 18:22
Permalink
Glad to hear you got it all sorted
Glad to hear it is all sorted now, from looking at it briefly it does indeed seem like BerryBoot uses a custom kernel, different to the normal Raspbian.
JamieOnUbuntu
Sun, 12/22/2013 - 13:24
Permalink
Worked for me too.
Thanks for that. My LedBorg works just like it did before I did a dist-upgrade.
:)
mansonjak
Mon, 05/12/2014 - 15:39
Permalink
It is always a let down when
It is always a let down when you get a invalid module format notice. That is something that would upset me if I was to get. I am just glad that there are ways around them and can really help you out.
Jak Manson