Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: David Daney <ddaney@avtrex.com>
To: Manish Lohani <mlohani@gmail.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Busybox v0.60.2 insmod gives segmentation fault without any messages when trying to load a loadable module
Date: Thu, 12 Aug 2004 10:48:00 -0700	[thread overview]
Message-ID: <411BAD50.6070004@avtrex.com> (raw)
In-Reply-To: <b318a0150408121030389aa24c@mail.gmail.com>

Manish Lohani wrote:
> I have a driver loadable module which i am compiling with the same gcc
> flags as used to compile a kernel for a MIPS R5432 based NEC board.
> 
> On the development machine, to compile files driver1.c and driver2.c:
> $ mips_fp_le-gcc -fomit-frame-pointer -fno-strict-aliasing -G 0
> -mno-abicalls -fno-pic -pipe -mtune=r5000 -mlong-calls -mips2 -Wall -c
> driver1.c
> 
> $mips_fp_le-ld -r -o driver --printmap --cref driver1.o driver2.o
> 
> mips_fp_le-gcc (GCC) version 3.3.1
> mips_fp_le-ld (GNU ld) version 2.14
> 
> I have Busybox v0.60.2 on the target.
> 
> On the target:
> # insmod ./driver
> Using driver
> Segmentation fault
> #
> 
> Does anybody have any suggestions as to what could be wrong?
> 

BusyBox0.60.x's insmod does not work with gcc-3.3 and above.

I use a patched version of the real insmod:

# insmod --version
insmod version 2.4.25

I forget where I put the patch, but the insmod author told me that the
patches were in a later version.  So if I were you, I would use version
2.4.26 or higher.

David Daney.

      reply	other threads:[~2004-08-12 17:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-12 17:30 Busybox v0.60.2 insmod gives segmentation fault without any messages when trying to load a loadable module Manish Lohani
2004-08-12 17:48 ` David Daney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=411BAD50.6070004@avtrex.com \
    --to=ddaney@avtrex.com \
    --cc=linux-mips@linux-mips.org \
    --cc=mlohani@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox