0

I have a big problem, I hope somebody can help me because I've finished my "bullet"...

I'm working with the linux-rpi-3.6.y kernel on a raspberryPI

Let's explain my problem: I created a new syscall called sys_defclose that closes all the files of a given process's pid, then I putted the source file in

linux-rpi-3.6.y/arch/arm/kernel;

Then I modified the following files:

linux-rpi-3.6.y/include/linux/syscalls.h 
linux-rpi-3.6.y/arch/arm/include/asm/unistd.h 
linux-rpi-3.6.y/arch/arm/kernel/calls.S 

for correctly install the new system call.

After this I cross-compiled following

http://elinux.org/RPi_Kernel_Compilation 

guide and now I arrived to my problem: if I transfer via ssh the new kernel image "kernel.img" into /boot raspberry's directory and we reboot unless load the module the syscall works properly; but naturally no modules are installed ( lsmod is empty )..., If I follow the steps where I have to load my compiled modules, generated from

 make ARCH=arm CROSS_COMPILE=${CCPREFIX} modules
 export MODULES_TEMP=~/modules
 make ARCH=arm CROSS_COMPILE=${CCPREFIX} INSTALL_MOD_PATH=${MODULES_TEMP}modules_install

and then unpacking them in the / directory on raspberry , the result is in a error on loading init. So, how can I load correctly this modules? I've followed all the possible guide find online but none seems works.

I hope somebody can help me. Thanks

4

0 回答 0