On Sat, 20 Sep 2003, Stephen J. Gowdy wrote: > On Sat, 20 Sep 2003, Dave Ulrick wrote: > > > I've made another stab at recompiling the kernel. (I'd omitted 'make > > mrproper' the first try.) Since doing so, I still see this in > > /proc/scsi/scsi, and device name 'sda' is assigned to this upon its first > > access, such as with 'fdisk -l /dev/sda': > > > > Host: scsi0 Channel: 00 Id: 00 Lun: 00 > > Vendor: Y-E DATA Model: CF Card Reader Rev: 1.03 > > Type: Direct-Access ANSI SCSI revision: 02 > > sounds like it isn't loading sd_mod automatically.
As far as I can tell, sd_mod gets loaded automatically the first time I refer to /dev/sda. Is this normal behavior? > > I've just now tried entering that command. Even that doesn't detect the > > LUNs. :-( > > Did you change the first digit to 0 to reflect that you're device is the > first scsi host? Yes, I did. > > If I issue 'gcc -E' on scsi_scan.c (otherwise using the same command parms > > issued by 'make modules'), I see this in the output: > > > > static unsigned int max_scsi_luns = 0xFFFFFFFF; > > > > I think that strongly suggests that I have CONFIG_SCSI_MULTI_LUN set to y. > > Sorry to be pedantic but something strange is going on. I agree. :-) > Did you install and reboot to activate the new kernel? The following > should be able to show that; > > date Sat Sep 20 17:34:48 CDT 2003 [a few minutes later; I got interrupted :-) ] > uptime 5:40pm up 1:47, 9 users, load average: 0.00, 0.00, 0.00 Also, from 'last': reboot system boot 2.4.20 Sat Sep 20 15:52 (01:46) > ls -l /boot/*`uname -r`* -rw-r--r-- 1 root root 470196 Sep 20 15:33 /boot/System.map-2.4.20 -rw-r--r-- 1 root root 36255 Sep 20 15:33 /boot/config-2.4.20 -rw-r--r-- 1 root root 123243 Sep 20 15:38 /boot/initrd-2.4.20.img -rw-r--r-- 1 root root 835207 Sep 20 15:33 /boot/vmlinuz-2.4.20 The difference in time stamps is because I copied over the kernel-related files before running 'make modules' and 'make modules_install', and didn't run 'initrd' until those makes were complete. > ls -l /lib/modules/`uname -r`/kernel/drivers/scsi That's rather long, so here's an excerpt: -rw-r--r-- 1 root root 11996 Sep 20 15:37 ide-scsi.o -rw-r--r-- 1 root root 132226 Sep 20 15:37 scsi_mod.o -rw-r--r-- 1 root root 17715 Sep 20 15:37 sd_mod.o All of the files in this directory and its subdirectories, including the ones I haven't shown, have the same time stamp, just prior to the time stamp on my initrd. It looks as though the time stamps are all in order. Strange indeed. Dave -- Dave Ulrick Email: [EMAIL PROTECTED] Web: http://www.niu.edu/~ulrick/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
