Hi All,
I am working on 79s334A board with 32MB RAM and Linux 2.4.13 kernel.
I have module to be inserted into kernel. The size of the module will be
around 1 MB.
I am using two file systems while building kernel image, one is NFS and
the other is RAMDISK.
When i work with NFS i do not have any problem.
But when i build RAMDISK image and insert the module, insmod is
doing fine. But after that i could not invoke any other application ( even
ps -ef is also giving segmentation fault.)
The RAMDISK size choosen is 10MB and the memory on board is 32MB.
When i did cat /proc/meminfo i found strange thing. All the figures are
corrupted.
The statistics before and after insmod are as follows:
# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 29237248 15319040 13918208 0 10240000 2908160
Swap: 0 0 0
MemTotal: 28552 kB
MemFree: 13592 kB
MemShared: 0 kB
Buffers: 10000 kB
Cached: 2840 kB
Active: 12840 kB
Inact_dirty: 0 kB
Inact_clean: 0 kB
Inact_target: 44 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 28552 kB
LowFree: 13592 kB
SwapTotal: 0 kB
SwapFree: 0 kB
#
#
# cd /igateway
# /sbin/insmod igateway
Intoto Firewall Installed.
#
#
# /sbin/lsmod
Module Size Used by
igateway 967056 0 (unused)
#
#
# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: %8lu %8lu %8lu %8lu %8lu %8u
Swap: %8lu %8lu %8lu
MemTotal: %8lu kB
MemFree: %8lu kB
MemShared: %8lu kB
Buffers: %8lu kB
Cached: %8u kB
Active: %8u kB
Inact_dirty: %8u kB
Inact_clean: %8u kB
Inact_target: %8lu kB
HighTotal: %8lu kB
HighFree: %8lu kB
LowTotal: %8lu kB
LowFree: %8lu kB
SwapTotal: %8lu kB
SwapFree: %8lu kB
#
#
# ps -ef
PID Uid Gid State Command
Segmentation fault
#
Can anybody give hint what is happening.
Thanks and Regards,
--Rajesh
|