Skip to contentSkip to conversation

insmod problem

DISCUSSION Bily 4 participants 6 messages Sep 16, 2008 – Sep 18, 2008

lore
Share & tools
lore

Bily

author
#0 lore raw

hi,all;
I want to insert an module:yaffs.ko into my kernel2.6.26,but i meet this question:

[\u@\h \W]$insmod yaffs.ko
yaffs: unknown relocation: 40
insmod: cannot insert 'yaffs.ko': invalid module format

and my busybox version is v1.11.1; may anyone tell me why ?thanks!

Bily
2008-09-13

#1 lore raw

give clear explanation how you have installed

regards,
YMR

Quoted 20 lines · Bily

hi,all;
I want to insert an module:yaffs.ko into my kernel2.6.26,but i meet this question:

[\u@\h \W]$insmod yaffs.ko
yaffs: unknown relocation: 40
insmod: cannot insert 'yaffs.ko': invalid module format

and my busybox version is v1.11.1; may anyone tell me why ?thanks!

Bily
2008-09-13

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

author
#2 lore raw

I am installing the linux kernel 2.6.26.2 to my AT91rm9200;I compile the kernel by using cross compiler arm-none-eabi-gcc (Sourcery G++ Lite 2008q1-126); and the kernel can run on AT91rm9200 normally;howerver if i want to insert modules into kernel ,it happen the mistake like this:

[\u@\h \W]$insmod yaffs.ko
yaffs: unknown relocation: 40
insmod: cannot insert 'yaffs.ko': invalid module format

thanks for help!~

Bily
2008-09-17

发件人: mal reddy y
发送时间: 2008-09-17 16:19:52
收件人: Bily
抄送: linux-kernel
主题: Re: insmod problem

give clear explanation how you have installed

regards,
YMR

Quoted 14 lines · Bily

hi,all;
I want to insert an module:yaffs.ko into my kernel2.6.26,but i meet this question:

[\u@\h \W]$insmod yaffs.ko
yaffs: unknown relocation: 40
insmod: cannot insert 'yaffs.ko': invalid module format

and my busybox version is v1.11.1; may anyone tell me why ?thanks!

Bily
2008-09-13

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

�翳簕.n�+壏煯壄�+%娝�遍荻w�簕.n�+壏{炳G珴�妠ay�蕠跈�,jf"穐殢飦�戧鐉_璁(殠娸"濟�m���G珴�⒏?櫒璀�&x忈秈O曟瑉窔v豝�m��� �鹅�⒏?朓�

#3 lore raw

Can you please provide your .config file?
I'm mostly curious about
CONFIG_MODVERSIONS
CONFIG_MODULE_FORCE_LOAD

Benny

Quoted 50 lines · Bily

I am installing the linux kernel 2.6.26.2 to my AT91rm9200;I compile the kernel by using cross compiler arm-none-eabi-gcc (Sourcery G++ Lite 2008q1-126); and the kernel can run on AT91rm9200 normally;howerver if i want to insert modules into kernel ,it happen the mistake like this:

[\u@\h \W]$insmod yaffs.ko
yaffs: unknown relocation: 40
insmod: cannot insert 'yaffs.ko': invalid module format

thanks for help!~

Bily
2008-09-17

发件人: mal reddy y
发送时间: 2008-09-17 16:19:52
收件人: Bily
抄送: linux-kernel
主题: Re: insmod problem

give clear explanation how you have installed

regards,
YMR

Quoted 14 lines · Bily

hi,all;
I want to insert an module:yaffs.ko into my kernel2.6.26,but i meet this question:

[\u@\h \W]$insmod yaffs.ko
yaffs: unknown relocation: 40
insmod: cannot insert 'yaffs.ko': invalid module format

and my busybox version is v1.11.1; may anyone tell me why ?thanks!

Bily
2008-09-13

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

N嫥叉靣笡y氊b瞂千v豝�)藓{.n�+壏{睉赙zXФ洝塄}财爖�&j:+v墾�珣赙zZ+€�+zf"穐殘啳嗃i�z�畐ア�?櫒璀�&�)撷f旟^j谦y呩@A玜囤� 0鹅h�鍜i

author
#4 lore raw

hi,Benny
here is my kernel2.6.26.2 .config file; and both the CONFIG_MODVERSIONS and CONFIG_MODULE_FORCE_LOAD is not set.thanks!~

Bily
2008-09-18

发件人: Benny Halevy
发送时间: 2008-09-17 21:11:54
收件人: Bily
抄送: mal reddy y; linux-kernel
主题: Re: insmod problem

Can you please provide your .config file?
I'm mostly curious about
CONFIG_MODVERSIONS
CONFIG_MODULE_FORCE_LOAD

Benny

Quoted 43 lines · Bily

I am installing the linux kernel 2.6.26.2 to my AT91rm9200;I compile the kernel by using cross compiler arm-none-eabi-gcc (Sourcery G++ Lite 2008q1-126); and the kernel can run on AT91rm9200 normally;howerver if i want to insert modules into kernel ,it happen the mistake like this:

[\u@\h \W]$insmod yaffs.ko
yaffs: unknown relocation: 40
insmod: cannot insert 'yaffs.ko': invalid module format

thanks for help!~

Bily
2008-09-17

发件人: mal reddy y
发送时间: 2008-09-17 16:19:52
收件人: Bily
抄送: linux-kernel
主题: Re: insmod problem

give clear explanation how you have installed

regards,
YMR

Quoted 14 lines · Bily

hi,all;
I want to insert an module:yaffs.ko into my kernel2.6.26,but i meet this question:

[\u@\h \W]$insmod yaffs.ko
yaffs: unknown relocation: 40
insmod: cannot insert 'yaffs.ko': invalid module format

and my busybox version is v1.11.1; may anyone tell me why ?thanks!

Bily
2008-09-13

Quoted 7 lines
Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

N嫥叉靣笡y氊b瞂千v豝�)藓{.n�+壏{睉赙zXФ洝塄}财爖�&j:+v墾�珣赙zZ+€�+zf"穐殘啳嗃i�z�畐ア�?櫒璀�&�)撷f旟^j谦y呩@A玜囤�

0鹅h�鍜i

#5 lore raw
Quoted 2 lines · Bily

hi,Benny
here is my kernel2.6.26.2 .config file; and both the CONFIG_MODVERSIONS and CONFIG_MODULE_FORCE_LOAD is not set.thanks!~

OK. These should be fine.

This seems to be the culprit:

Quoted 1 line
Quoted 1 line

yaffs: unknown relocation: 40

It indicates that apply_relocate() is failing with -ENOEXEC where it doesn't know the r_info code "40".
It could be a problem with your cross-platform linker.

Benny

Quoted 73 lines

Bily
2008-09-18

发件人: Benny Halevy
发送时间: 2008-09-17 21:11:54
收件人: Bily
抄送: mal reddy y; linux-kernel
主题: Re: insmod problem

Can you please provide your .config file?
I'm mostly curious about
CONFIG_MODVERSIONS
CONFIG_MODULE_FORCE_LOAD

Benny

Quoted 43 lines · Bily

I am installing the linux kernel 2.6.26.2 to my AT91rm9200;I compile the kernel by using cross compiler arm-none-eabi-gcc (Sourcery G++ Lite 2008q1-126); and the kernel can run on AT91rm9200 normally;howerver if i want to insert modules into kernel ,it happen the mistake like this:

[\u@\h \W]$insmod yaffs.ko
yaffs: unknown relocation: 40
insmod: cannot insert 'yaffs.ko': invalid module format

thanks for help!~

Bily
2008-09-17

发件人: mal reddy y
发送时间: 2008-09-17 16:19:52
收件人: Bily
抄送: linux-kernel
主题: Re: insmod problem

give clear explanation how you have installed

regards,
YMR

Quoted 14 lines · Bily

hi,all;
I want to insert an module:yaffs.ko into my kernel2.6.26,but i meet this question:

[\u@\h \W]$insmod yaffs.ko
yaffs: unknown relocation: 40
insmod: cannot insert 'yaffs.ko': invalid module format

and my busybox version is v1.11.1; may anyone tell me why ?thanks!

Bily
2008-09-13

Quoted 7 lines
Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

N嫥叉靣笡y氊b瞂千v豝�)藓{.n�+壏{睉赙zXФ洝塄}财爖�&j:+v墾�珣赙zZ+€�+zf"穐殘啳嗃i�z�畐ア�?櫒璀�&�)撷f旟^j谦y呩@A玜囤�

0鹅h�鍜i