[Ilugc] NOT able to get the debug statements (printk) from SCSI modules

  • From: srinivasg@xxxxxxxxxxxxxxxxxxxxx (Srinivas G.)
  • Date: Wed Jun 10 20:03:59 2009

Dear All,

I have added some printk statements in scsi.c and hosts.c files to debug
USB Mass Storage Device. The SCSI module files exists in the following
directory.

/usr/src/kernels/linux-2.6.28/drivers/scsi

I am working in 2.6.28 version of the kernel in the CENTOS 5.2. I have
followed the following steps.

1)      #make menuconfig
        Enabled the SCSI Device Support as a module.
        Device Drivers --> SCSI Device Support --> SCSI Device Support

2)      Verified the CONFIG_SCSI is set to m or not in the .config file
        CONFIG_SCSI=m (in the .config file) set

3)      As I said above, added some printk statements in scsi.c and
hosts.c files (in almost all the functions)

4)      #make M=drivers/scsi
        I have executed the above command in
/usr/src/kernels/linux-2.6.28

5)      I have seen that the following modules build perfectly.
        scsi_mod.ko, sd_mod.ko and sr_mod.ko

6)      I have copied all the modules into the following path.
        /lib/modules/2.6.28/kernel/drivers/scsi

7)      Then reboot the system

8)      Then, I have inserted a thumb drive. Then I am NOT able to see
the debug statements that I added in the scsi.c and hosts.c files. 

Note: I have done almost the same procedure for the usb/storage drivers
and I was able to see the debug messages there.

Could any one please tell me where I have done mistakes?

I had also tried the same in Fedora 10 and kernel version is 2.6.28 only
and I was not able to load scsi_mod as a module. When I opened
menuconfig and checked for SCSI Device Support, I was not able to change
it to module. The sign was "-*-". What does this sign signify. Can't I
load scsi as module with this sign.

Thanks in advance.

Regards,
Srinivas G

Other related posts: