kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Invalid module format
@ 2018-02-21 21:12 Srishti Sharma
  2018-02-21 21:24 ` valdis.kletnieks at vt.edu
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Srishti Sharma @ 2018-02-21 21:12 UTC (permalink / raw)
  To: kernelnewbies

Hello,

While trying to load a module from the linux-next branch , I get the error
that the module format is invalid, this was because the kernel I compiled
was different from the kernel I was trying to load the module into, so I
installed the kernel from the same source as the module, and it booted for
only once right after the installation. When I try to boot into the same
kernel, my system reboots. What should I do so that I am able to boot into
it everytime ?

Regards,
Srishti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180222/40243662/attachment.html>

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Invalid module format
@ 2018-02-24  5:15 Alex Arvelaez
  2018-02-24  5:17 ` Srishti Sharma
  0 siblings, 1 reply; 11+ messages in thread
From: Alex Arvelaez @ 2018-02-24  5:15 UTC (permalink / raw)
  To: kernelnewbies


On Feb 24, 2018 12:07 AM, Srishti Sharma <srishtishar@gmail.com> wrote:
>
>
>
> On Sat, Feb 24, 2018 at 4:59 AM, Tobin C. Harding <me@tobin.cc> wrote:
>>
>> On Thu, Feb 22, 2018 at 02:42:23AM +0530, Srishti Sharma wrote:
>> > Hello,
>> >
>> > While trying to load a module from the linux-next branch
>>
>> Do you mean from linux-next tree or from a branch called linux-next in
>> some other tree?  (Not that it matters that much :)
>>
>> >, I get the error
>> > that the module format is invalid, this was because the kernel I compiled
>> > was different from the kernel I was trying to load the module into, so I
>> > installed the kernel from the same source as the module, and it booted for
>> > only once right after the installation. When I try to boot into the same
>> > kernel, my system reboots. What should I do so that I am able to boot into
>> > it everytime ?
>>
>> What are you trying to achieve?  Are you doing testing on linux-next or
>> do you just want to use the module?  If you just want to use the module
>> you could build the module for the current running kernel instead of
>> rebuilding the kernel.  Copy the module someplace and write a new
>> makefile same as you would if you were developing your own [test]
>> modules.
>>
>> (For the record I happened to be trying to learn about linux-next myself
>> this morning and built a kernel that just goes into a reboot loop
>> without even getting to the grub menu.  It boots in a VM though so now
>> I'm playing with the cofig.)
>>
> Something was wrong with the configuration file, so I copied the configuration of my running kernel and it boots now, but after running make, the modules don't get generated, so there is something I am missing in the configuration options again :(

Are they getting built? did you do make modules_install?

> Regards,
> Srishti
>
>
>>
>> Hope this helps,
>> Tobin.
>
>

Regards,

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180224/30677f9f/attachment-0001.html>

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-02-25  7:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-21 21:12 Invalid module format Srishti Sharma
2018-02-21 21:24 ` valdis.kletnieks at vt.edu
     [not found] ` <BY1PR0101MB101393E19DAD4C4C584BD89BCDCE0@BY1PR0101MB1013.prod.exchangelabs.com>
     [not found]   ` <CAB3L5ozA_VUAJiypue2RDN-_kuC7FnS+DaYPO7cOfTKb9dBLAw@mail.gmail.com>
2018-02-21 21:39     ` Alejandro D?az
2018-02-23 23:29 ` Tobin C. Harding
2018-02-24  3:06   ` valdis.kletnieks at vt.edu
2018-02-25  2:34     ` Tobin C. Harding
2018-02-25  5:04       ` valdis.kletnieks at vt.edu
2018-02-25  7:29         ` Tobin C. Harding
2018-02-24  5:06   ` Srishti Sharma
  -- strict thread matches above, loose matches on Subject: below --
2018-02-24  5:15 Alex Arvelaez
2018-02-24  5:17 ` Srishti Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).