Kernel Parameter or SR or other ideas


Forum: Other Help Topics
Topic: Kernel Parameter or SR or other ideas
started by: Tahiti_Man

Posted by Tahiti_Man on Dec. 13 2004,02:44
Trying to get a scsi cd changer with 7 nakamichi 4.8s to work with an adaptec aha152x.
I've learned how to use modinfo, modprobe, knoppix-autoconfig in the last couple days, but I'm stuck now trying to figure out a solution to this.

Using modprobe and then autoconfig, I'm able to get the scsi card recognized and 2(out of 4) of the disks in the 1st drive working, even mounted and shared. YAY!!

I'm stuck on /usr/src/linux/.config having hard-coded value of 2 for CONFIG_SR_EXTRA_DEVS...
After reading a scsi how-to, it appears to be saying, when sr mod starts, load up any scsi disks, then after that, only allow 2 more.

Because my scsi controller isn't recognized/loaded before sr starts, once the scsi card drivers are loaded,
only 2 of the disks can be assigned to sr...

I've looked at building a new kernel but having trouble - ie. Make isn't on my hd, and apt-get make doesn't complete. Restrictions to the system are 530mb hd and 64 mb ram.

Also tried loading the mod with kernel parameters, but I read that for that to work the mod had to be compiled into/with the kernel - and when I've tried it it's done nothing..

Any great ideas?


thx for any help,
-Mike

Posted by skaos on Dec. 13 2004,11:01
Maybe the following helps (?): < http://www.tldp.org/HOWTO/BootPrompt-HOWTO-6.html >
Posted by Tahiti_Man on Dec. 13 2004,17:31
Thx for the tip, but nope - didn't help.

Here are some more clues...
The most correct sounding explanation of what's happening so far: < http://sg.torque.net/scsi/SCSI-2.4-HOWTO.html#sr >

"The sr driver is capable of recognizing 256 CDROM/DVD drives when it is loaded at kernel boot time or later as a module. However, once it is loaded, it will only recognize a fixed number of additional drives. The number of additional drives that can be accommodated is set by the kernel configuration parameter CONFIG_SR_EXTRA_DEVS whose default value is 2. "

So far, all that I can think of is
1) trying to know when sr module is loaded, and trying to get the aha driver loaded before that, or get sr to load later

or

2) Trying to figure out how to build my own kernel with something other than 2 for the max number of sr devices


From dmesg or modprobe when modprobed:
aha152x: BIOS test: passed, detected 1 controller(s)
aha152x: resetting bus...
aha152x2: vital data: rev=1, io=0x340 (0x340/0x340), irq=11, scsiid=7, reconnect=enabl
ed, parity=enabled, synchronous=disabled, delay=1000, extended translation=disabled
aha152x2: trying software interrupt, ok.
scsi2 : Adaptec 152x SCSI driver; $Revision: 2.5 $

From dmesg or running modprobe manually:
 Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
 Type:   CD-ROM                             ANSI SCSI revision: 02
 Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
 Type:   CD-ROM                             ANSI SCSI revision: 02
 Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
 Type:   CD-ROM                             ANSI SCSI revision: 02
 Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
 Type:   CD-ROM                             ANSI SCSI revision: 02
 Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
 Type:   CD-ROM                             ANSI SCSI revision: 02
 Vendor: NAKAMICH  Model: M  Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
 Type:   CD-ROM                             ANSI SCSI revision: 02
 Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
 Type:   CD-ROM                             ANSI SCSI revision: 02
 Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
 Type:   CD-ROM                             ANSI SCSI revision: 02
 Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
 Type:   CD-ROM                             ANSI SCSI revision: 02
 Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
 Type:   CD-ROM                             ANSI SCSI revision: 02
 Vendor: NAKAMICH  Model: MJ-4.8S           Rev: 1.04
J-4.8S           Rev: 1.04
...



From /proc/scsi/scsi - there is another scsi card internal - first two items are from that:
root@box:/etc# more /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 01 Lun: 00
 Vendor: DEC      Model: RZ25L    © DEC Rev: 0007
 Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 02 Lun: 00
 Vendor: SONY     Model: CD-ROM CDU-55S   Rev: 1.0f
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 00
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 01
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 02
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 03
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 01 Lun: 00
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 01 Lun: 01
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 01 Lun: 02
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 01 Lun: 03
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 02 Lun: 00
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 02 Lun: 01
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 02 Lun: 02
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 02 Lun: 03
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 03 Lun: 00
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 03 Lun: 01
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 03 Lun: 02
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 03 Lun: 03
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 04 Lun: 00
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 04 Lun: 01
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 04 Lun: 02
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 04 Lun: 03
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 05 Lun: 00
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 05 Lun: 01
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 05 Lun: 02
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 05 Lun: 03
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 06 Lun: 00
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 06 Lun: 01
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 06 Lun: 02
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 06 Lun: 03
 Vendor: NAKAMICH Model: MJ-4.8S          Rev: 1.04
 Type:   CD-ROM                           ANSI SCSI revision: 02


From manual calls to mount:
ie. mounting  /dev/sr1 to /mnt/nakcd1
root@box:/etc# mount /dev/sr1
mount: block device /dev/sr1 is write-protected, mounting read-only
root@box:/etc# mount /dev/sr2
mount: block device /dev/sr2 is write-protected, mounting read-only
mount /dev/root@box:/etc# mount /dev/sr3
mount: /dev/sr3: unknown device
root@box:/etc#


again, thx for any help..

cheers
-Mike

Posted by Tahiti_Man on Dec. 15 2004,01:32
Decided to go Debian yesterday, so downloaded it, installed it twice, and decided to come back to DSL. Debian was a pain....

Also, SR had been left out of it, as well as aha152x drivers.

Learned a bunch more about apt-get and dselect.
Next plan is to apt-get everything under the sun
(src, gcc, g++, etc.) and try to build my own knoppix..

Is there a list anywhere of the minimal packages and src I need to get to build a knoppix kernel?

thx a bunch,
-Tahiti_Man

Posted by Tahiti_Man on Dec. 23 2004,20:18
I've moved on to debian, installed a few times, even compiled the kernel a couple times. Learned a lot, may come back to dsl and try to resolve the sr thing, it would be nice to have a smaller install.

The one thing that still bugs me about dsl is when it was installed(.5 something) I had a lot of trouble with apt-getting packages, and it looked impossible to get the things needed to compile the kernel. Also, the later versions wouldn't start on my old machine, but that's another topic.

Anyhow, if the sr thing gets anyone, I hope I've helped hone in on the problem if not the solution.

cheers
-Mike

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.