Forum Discussion
Altera_Forum
Honored Contributor
21 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 S...
Altera_Forum
Honored Contributor
21 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- 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.[/b] --- Quote End --- This is the only solution, as far as I know. Be aware that SCSI module might want DMA-able memory later, which your system does not have. <div class='quotetop'>QUOTE </div> --- Quote Start --- I'd recommend looking at the nommu-mmap.txt file, that ships with a standard Linux kernel. I'm not sure if it ships with this uCLinux distro. or not.[/b] --- Quote End --- Currently the uClinux/nios2 kernel is 2.6.9, which does not have this file. But we did have to look at this file for 2.6.11 because of a problem preventing insmod from working.