Altera_Forum
Honored Contributor
20 years agoSCSI module error
I've compiled the base SCSI module (scsi_mod.ko) successfully, but when I try to run it, I get "Allocation of length 1135537 from process 24 failed".
I have a screen capture of my Nios II SDK Shell linked here (http://www.csclub.uwaterloo.ca/~jwistead/error.jpg). The initialization messages are linked here (http://www.csclub.uwaterloo.ca/~jwistead/preamble.jpg). I grepped the kernel source, and found the error message at mm\nommu.c, in the do_mmap_pgoff function at line 394. The kmalloc call fails, presumably because the module is requesting a very large chunk of memory. From looking at the kmalloc code (include\linux\slab.h and include\linux\kmalloc_sizes.h), I think I can fix the problem by setting CONFIG_LARGE_ALLOCS=y in arch\nios2nommu\defconfig. Please let me know if this is an acceptable solution (ie. will there be any harmful side effects), or if there is a better solution. Thanks, jwistead