View previous topic :: View next topic |
Author |
Message |
golding Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1529049118445fed12b2c86.jpg)
Joined: 07 Jun 2005 Posts: 232 Location: Adelaide / South Australia
|
Posted: Thu Dec 15, 2005 5:37 am Post subject: sg*, scanner and other nodes missing in /dev [SOLVED] |
|
|
Found a problem with my usb printer, udev was not creating the /dev/usb/lp0 node.
After much searching of forums about it, decided to upgrade udev (077-r5) and baselayout (1.12) and problem fixed nicely.
Now other nodes are missing. My /dev has all the hd*/ sd* devs, has made all the sound, input and other devs, plenty of tty* but scanner, sg* have gone walkabout.
dmesg shows the scsi card being found and the scanner being correctly identified, but doesn't follow up with any node creation, as follows
Code: | scsi4 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
<Adaptec 2940A Ultra SCSI adapter>
aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
Vendor: HP Model: C5110A Rev: 3701
Type: Processor ANSI SCSI revision: 02
target4:0:2: Beginning Domain Validation
target4:0:2: Ending Domain Validation |
Anybody able to explain to me what this 'target' and 'domain' is talking about?
Or how it applies to getting xsane to work? _________________ Regards, Robert
..... Some people can tell what time it is by looking at the sun, but I have never been able to make out the numbers.
Last edited by golding on Fri Dec 16, 2005 12:31 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
golding Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1529049118445fed12b2c86.jpg)
Joined: 07 Jun 2005 Posts: 232 Location: Adelaide / South Australia
|
Posted: Thu Dec 15, 2005 3:32 pm Post subject: |
|
|
OK, fixed scanner problem, but now all other automounting will not work.
I think I will set it up for manual mounting like the old days, at least you knew where you were
Perhaps, one day, when the automounting/hal/dbus system is fixed and totally stable I might try it again.
I know the problem has nothing to do with udev, it is working well now I have gone pure udev. hal and dbus seem to continuously want to upgrade, then downgrade with each -u world. _________________ Regards, Robert
..... Some people can tell what time it is by looking at the sun, but I have never been able to make out the numbers. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
golding Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1529049118445fed12b2c86.jpg)
Joined: 07 Jun 2005 Posts: 232 Location: Adelaide / South Australia
|
Posted: Fri Dec 16, 2005 12:30 am Post subject: |
|
|
Not sure what is going on, but I have managed to get everything working. Have re-booted the machine a few times to make sure it is working properly.
1) Converted to pure Udev system, but after populating /dev with some extra links, have changed /etc/conf.d/rc
Code: | RC_DEVICES="udev"
RC_DEVICE_TARBALL="yes" |
so that it will remember my additional links.
(Q) Wasn't there some way to maintain persistant links via /dev/devices? My memory is a little fuzzy on this
2) The scsi card (where my scanner is attached) was being found but no sg* device was being created in /dev for the scanner. I found there were two ways to repair this, one being via modprobe and the other by putting the driver directly into the kernel. I was not able to figure out how to make sure modprobe would definitely create /dev/sg* so went with internal kernel driver. I made all of the scsi section (Y) instead of (M) for my requirements
Code: | #
# SCSI device support
#
CONFIG_SCSI=y
#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_SG=y
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
CONFIG_SCSI_MULTI_LUN=y
#
# SCSI Transport Attributes
#
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_FC_ATTRS=y
CONFIG_SCSI_ISCSI_ATTRS=y
CONFIG_SCSI_SAS_ATTRS=y
#
# SCSI low-level drivers
#
CONFIG_SCSI_AIC7XXX=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=32
CONFIG_AIC7XXX_RESET_DELAY_MS=15000
CONFIG_AIC7XXX_DEBUG_ENABLE=y
CONFIG_AIC7XXX_DEBUG_MASK=0
CONFIG_AIC7XXX_REG_PRETTY_PRINT=y
# CONFIG_SCSI_AIC7XXX_OLD is not set
CONFIG_SCSI_SATA=y
CONFIG_SCSI_SATA_NV=y
|
I then added a rule for udev (10-local.rules)
Code: | BUS="scsi", SYSFS{model}="C5110A ", KERNEL="sg*", NAME="%k", SYMLINK="scanner", GROUP="scanner" |
for my scanner, however all my usb storage was already being found, including my internal card reader, they now have sg* as well as sd* nodes. I have added rules for each slot type.
3) My radio wasn't working as udev kept making the node /dev/radio0, and even though I created a rule to SYMLINK="radio" in local rules, the link was not created and the radio software couldn't find the device. I created a link to /dev/radio0
Code: | ln -s /dev/radio0 /dev/radio |
which cured this quite nicely.
4) Every time I did an 'emerge -avuD world', hal and dbus would be either downgraded or upgraded. When they were downgraded all my automounting systems would go walkabout, but when they were upgraded (~x86 keyword) everything would work. I added them to package.keywords
Code: | >=sys-apps/hal-0.5.0 ~x86
>=sys-apps/dbus-1.50 ~x86 |
This also cured the problem I was having with my usb printer regarding /dev/usb/lp0. I have since aquired an HP jetdirect and this no longer applies anyway.
5) I have stopped any use of fstab-sys and am using pmount as standard. I have added devices as required to /etc/pmount.allow
Code: | # /etc/pmount.allow
# pmount will allow users to additionally mount all devices that are
# listed here.
/dev/cf_card
/dev/sd_card
/dev/mmc_card
/dev/usb_64
/dev/usb_512
/dev/usb_1g |
though I think they are only required for user access.
I hope this ramble helps someone. _________________ Regards, Robert
..... Some people can tell what time it is by looking at the sun, but I have never been able to make out the numbers. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|