SliTaz SliTaz Forum

You are not logged in.

#1 2011-05-20 18:45:18

Guest
Guest

USB Card Reader/Writer NOT DETECTED

I have a USB card reader/writer by Digital Concepts and is not being detected. Regular usb flash drives though works every time I plug them in. Using 3.0 stable version

I know it is not broken coz every time I plug it in on my other computer that is running Linux Mint XFCE, it works just fine.

Any help will be appreciated. Thanks in advance.

#2 2011-05-20 19:36:33

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: USB Card Reader/Writer NOT DETECTED

check if this is your case:

http://vanilla.slitaz.org/index.php?p=/discussion/comment/12245#Comment_12245

Offline

#3 2011-05-21 12:53:23

Guest
Guest

Re: USB Card Reader/Writer NOT DETECTED

Thanks ernia! The topic on the link you gave me is the solution to my problem. Unfortunately, I am not an experienced guy when it comes to building kernel. For now, I guess,  I will have to keep changing the MAX_LUNs to 8 or until I figure it out how to make and where to put the script so it is automatically executed every time I boot the pc.

The lib.mmc was missing too so I had to install that.

#4 2011-05-21 13:48:40

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: USB Card Reader/Writer NOT DETECTED

the place you are looking for is

/etc/init.d/local.sh

which get executed at every boot.

please, may you share how you dinamically change MAX_LUNs to 8?

i would like to be able to do that.

Offline

#5 2011-05-21 18:29:57

Guest
Guest

Re: USB Card Reader/Writer NOT DETECTED

The file that I edit is the /sys/module/scsi_mod/parameters/max_luns... I execute this command on terminal: "echo 8 > /sys/module/scsi_mod/parameters/max_luns", plug in my card reader/writer and it works. Or you can simply open the file as a root and change 1 to 8 and save.

Also found this link:

http://www.cs.sfu.ca/~ggbaker/personal/cf-linux

Here, they claimed that all I have to do is edit my "/etc/modules.conf" and add this line "options scsi_mod max_scsi_luns=8" then everything should work. SliTaz doesn't have this file so I created it and tried rebooting the system but was a failure. Didn't work. Any clue?

#6 2011-05-21 18:56:09

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: USB Card Reader/Writer NOT DETECTED

thanks for your answer, did not think about /sys/module...

you could boot adding the

scsi_mod.max_luns=8

to your boot parameters in grub, or put

"echo 8 > /sys/module/scsi_mod/parameters/max_luns"

in /etc/init.d/local.sh

Offline

#7 2011-05-23 15:15:47

Guest
Guest

Re: USB Card Reader/Writer NOT DETECTED

Okay. I tried adding the line in "/etc/init.d/local.sh". It changed the MAX_LUN to 8 but I still have to unplug and plug the reader/writer back in for the media to be read.

I also tried building a kernel with the help from this site: http://doc.slitaz.org/en:guides:kernel

This is what I did:

* made sure the /usr/src/linux/.config file has CONFIG_SCSI_MULTI_LUN=y set. (Line No: 1115)

* file /usr/src/linux/drivers/scsi/Kconfig has "default y" (Line Nos: 197-208)

* When I executed "make menuconfig", made sure I selected "Probe all SCSI....",EHCI, OHCI, UHCI

* copied arch/x86/boot/baImage to /boot

Am I missing something? Should I copy something else besides bzImage?

#8 2011-05-24 19:55:57

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: USB Card Reader/Writer NOT DETECTED

i'm not in 3.0 but bzimage should be copied in /boot with the same name that the bootloader uses (e.g. vmlinuz-2.6.37-slitaz for cooking release)

are you sure that you are using the brand new kernel?

Offline

#9 2011-05-27 01:01:56

Guest
Guest

Re: USB Card Reader/Writer NOT DETECTED

I copied bzImage as vmlinuz-2.6.30.6-slitaz to /boot and still did not work. I am totally lost here.

I see CONFIG_SCSI_WAIT_SCAN=m but don't see that when running "make menuconfig". What is this?

Also, after running "make menuconfig" I check my .config file and it shows "CONFIG_SCSI_MULTI_LUN=y".

#10 2011-05-27 02:04:49

Guest
Guest

Re: USB Card Reader/Writer NOT DETECTED

But my zcat /proc/config.gz | grep CONFIG_SCSI_MULTI_LUN still says IT IS NOT SET...

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]