Git Product home page Git Product logo

Comments (4)

jtsylve avatar jtsylve commented on August 28, 2024

Try running insmod without the quotes around the parameters. Different
versions of insmod behave differently in this manner.
On Jan 18, 2015 5:41 AM, "richud" [email protected] wrote:

Hi,
I am cross compiling on MIPS, it built ok, but insmod says 'invalid
parameter' (busybox insmod)

/tmp # insmod /tmp/lime-3.16.0-29-generic.ko "path=/tmp format=raw"
insmod: can't insert '/tmp/lime-3.16.0-29-generic.ko': invalid parameter

This was build (I didn't remove my current kernel var bit in Makefile
hence odd name)

rich@PORTEGER830:/tmp/LiME-master/src$ make ARCH=mips
CROSS_COMPILE=mips-linux- CC=mips-linux-gcc
make -C
/media/rich/WD320/DGND3700_V1.0.0.17_1.0.17_src_full/DGND3700/kernel/linux
M=/tmp/LiME-master/src modules
make[1]: Entering directory
/media/rich/WD320/DGND3700_V1.0.0.17_1.0.17_src_full/DGND3700/kernel/linux'
CC [M] /tmp/LiME-master/src/tcp.o
CC [M] /tmp/LiME-master/src/disk.o
CC [M] /tmp/LiME-master/src/main.o
LD [M] /tmp/LiME-master/src/lime.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/LiME-master/src/lime.mod.o
LD [M] /tmp/LiME-master/src/lime.ko
make[1]: Leaving directory
/media/rich/WD320/DGND3700_V1.0.0.17_1.0.17_src_full/DGND3700/kernel/linux'
mips-linux-strip --strip-unneeded lime.ko
mv lime.ko lime-3.16.0-29-generic.ko

$ file lime-3.16.0-29-generic.ko
lime-3.16.0-29-generic.ko: ELF 32-bit MSB relocatable, MIPS, MIPS32
version 1 (SYSV), not stripped


Reply to this email directly or view it on GitHub
#3.

from lime.

jtsylve avatar jtsylve commented on August 28, 2024

Also the path parameter should be a file name not a directory. So
path=/tmp/dump.dd
On Jan 18, 2015 5:41 AM, "richud" [email protected] wrote:

Hi,
I am cross compiling on MIPS, it built ok, but insmod says 'invalid
parameter' (busybox insmod)

/tmp # insmod /tmp/lime-3.16.0-29-generic.ko "path=/tmp format=raw"
insmod: can't insert '/tmp/lime-3.16.0-29-generic.ko': invalid parameter

This was build (I didn't remove my current kernel var bit in Makefile
hence odd name)

rich@PORTEGER830:/tmp/LiME-master/src$ make ARCH=mips
CROSS_COMPILE=mips-linux- CC=mips-linux-gcc
make -C
/media/rich/WD320/DGND3700_V1.0.0.17_1.0.17_src_full/DGND3700/kernel/linux
M=/tmp/LiME-master/src modules
make[1]: Entering directory
/media/rich/WD320/DGND3700_V1.0.0.17_1.0.17_src_full/DGND3700/kernel/linux'
CC [M] /tmp/LiME-master/src/tcp.o
CC [M] /tmp/LiME-master/src/disk.o
CC [M] /tmp/LiME-master/src/main.o
LD [M] /tmp/LiME-master/src/lime.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/LiME-master/src/lime.mod.o
LD [M] /tmp/LiME-master/src/lime.ko
make[1]: Leaving directory
/media/rich/WD320/DGND3700_V1.0.0.17_1.0.17_src_full/DGND3700/kernel/linux'
mips-linux-strip --strip-unneeded lime.ko
mv lime.ko lime-3.16.0-29-generic.ko

$ file lime-3.16.0-29-generic.ko
lime-3.16.0-29-generic.ko: ELF 32-bit MSB relocatable, MIPS, MIPS32
version 1 (SYSV), not stripped


Reply to this email directly or view it on GitHub
#3.

from lime.

jtsylve avatar jtsylve commented on August 28, 2024

Closing this since it appears to be user error.

from lime.

richud avatar richud commented on August 28, 2024

Yep you are right - thought I had tried with a file name, with and without quotes and everything in between, I obviously hadn't!

insmod /tmp/lime-3.16.0-29-generic.ko path=/media/Seagate500/dump.dd format=raw

Just to confirm the above worked for me with BB insmod, MIPS architecture, uClibc.

from lime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.