linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* insmod problem on ARM with more than 16MB of RAM?
@ 2011-12-22 16:35 Sergei Poselenov
  2011-12-22 16:49 ` Catalin Marinas
  0 siblings, 1 reply; 4+ messages in thread
From: Sergei Poselenov @ 2011-12-22 16:35 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

I'm working with an ARM Cortex-M3 port of Linux 2.6.33. Everything is
fine except the target board has 32MB memory and this breaks the
loadable modules support:
...
~ # insmod sample.ko 
sample: relocation out of range, section 2 reloc 0 sym 'printk'
insmod: can't insert 'sample.ko': invalid module format
~ # 
..

The reason for this error is that the module_alloc() for non-MMU
ARM target is just kmalloc(size), which obviously returns the memory
area too far for allowed range of the thumb2 branch instructions.

Currently, I worked around this by restricting kernel memory usage with
"mem=16M".

Is anybody solved this problem in 2.6 no-MMU ARM kernels?

In the lists I only found this thread
http://lists.infradead.org/pipermail/linux-arm-kernel/2011-January/037837.html
, but it discussed different problem.

I looked at the recent 3.x kernels and didn't see support for loadable
modules at all for the non-mmu ARM. Any plans to add it there?

Merry Christmas!

Regards,
Sergei

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

end of thread, other threads:[~2012-02-03 16:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-22 16:35 insmod problem on ARM with more than 16MB of RAM? Sergei Poselenov
2011-12-22 16:49 ` Catalin Marinas
2011-12-22 20:45   ` Russell King - ARM Linux
2012-02-03 16:12     ` Vladimir K

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).