12c3e usb stick as pass device - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Peripheral Hardware

Peripheral Hardware Stuff that plugs in via USB, FireWire, eSATA, PS/2, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old September 13th, 2009, 17:58
slam slam is offline
Junior Member
 
Join Date: Sep 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default usb stick as pass device

ok..got freeBSD 6 on another machine, this device comes up as pass0
can't seem to find a pass.ko to load into kernel. Camcontrol sees it and says unit is ready, mount_msdosfs /dev/pass0 /mnt comes up with Block device required.
Cant'seem to find out a fix for that yet, thus the post.
Or do i have to load cam.ko? Dont want to mess with camcontrol too much, manual says danger... hahahah

Also when that computer starts, i have to reset cpu speed and date in the bios screen all the time, have'nt tried to search a fix for that yet.
thanks..
Reply With Quote
  #2  
Old September 13th, 2009, 20:46
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

You need pass and cam. After inserting your drive you should see something like this in /var/log/messages:

Code:
Sep 11 18:14:05 igor kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Sep 11 18:14:05 igor kernel: da0: <Generic 2.0 Reader   -CF 1.00> Removable Direct Access SCSI-0 device 
Sep 11 18:14:05 igor kernel: da0: 40.000MB/s transfers
You'd then mount /dev/da0 or /dev/da0sX where X is the partition you're trying to mount.
Reply With Quote
  #3  
Old September 14th, 2009, 01:14
slam slam is offline
Junior Member
 
Join Date: Sep 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ah..tail /var/log/messages tells me its pass0 at umass0 and also its a scsi-2 device, it still comes up as pass0 not any da0,
cam.1 already present in kernel, and any mount command comes up with
Block device required...
Reply With Quote
  #4  
Old September 14th, 2009, 02:18
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Quote:
Originally Posted by slam View Post
ah..tail /var/log/messages tells me its pass0 at umass0 and also its a scsi-2 device, it still comes up as pass0 not any da0,
cam.1 already present in kernel, and any mount command comes up with
Block device required...
Please provide:

1. Full FreeBSD version
2. Output of /var/log/messages
3. Kernel config

What is "cam.1" and where do you see this?
Reply With Quote
  #5  
Old September 14th, 2009, 03:10
slam slam is offline
Junior Member
 
Join Date: Sep 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok..
1: 6.0-release-p5
2: i'd have to retype everything from other computer, its not online yet cause the modem drivers are on that dam usb stick.. hahaha
the linux drivers didn't come with the cd.
3: yes, your right, my custom kernel config has next line blocked out
# device da # Direct Access
ok.. reactivated it, goin to rebuild the kernel, hopefully nothing else goes wrong..
didn't think at the time 6.0 was new, i'd use any scsi devices with it.
thanks, you made me look at this config
i dont get why pass0 doesnt work?
cam.1 was a message i got when i tried to kldload cam.ko
its already there..
ok.. build kernel time..
beers n cheers.
Reply With Quote
  #6  
Old September 14th, 2009, 03:32
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Ah, I should have mentioned that you need da(4) compiled in too. I'm not sure what is included in the cam.ko module, but to compile a kernel with all the bits in you should have these lines in your config:

Code:
device          scbus
device          da
device          pass
device          uhci
device          ehci
device          usb
device          umass
(replace uhci with ohci depending on hardware)
Reply With Quote
The Following User Says Thank You to aragon For This Useful Post:
SIFE (December 20th, 2009)
  #7  
Old September 15th, 2009, 06:05
slam slam is offline
Junior Member
 
Join Date: Sep 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok..wow had some errors while tryin to rebuild kernel:
note to self " don't try to master vi in any conf file".

ok.. device comes up as da0 now, dmesg is:
da0 at umass-sim0 bus 0 lun 0
and the other 2 identifying lines,
/var/log/messages:
umass0:BBB reset failed, IOERROR
then some bulk_in and out errors then it says "opened disk da0->5"
and now in demsg: synchronize cache failed, then some status ==0x4,
SCSI status ==0x0
any mount command says input/output error
well at least i'm not gettin the block device thing when it was pass0, a nice positive in this perplexment,hahah
onward to ioerrors.
Reply With Quote
  #8  
Old September 15th, 2009, 15:46
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Sounds like your flashcard might be broken. Do you have any others you can try?
Reply With Quote
  #9  
Old September 16th, 2009, 04:40
slam slam is offline
Junior Member
 
Join Date: Sep 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok..the stick works fine in all windows machines, yes its msdosfs, but last night after posting i noticed the camcontrol devlist see's this as da0 and pass0, nothing in other message's that states the device as pass0.
so after reading other forum users with similar problems, i'm think'n there's a conflict in the SCSI implementation of it thru the kernel. a conflict of sorts of double identity with same bus,lun & target id's.
so.. tonite's mystery...reconf with device pass0 de-activated,
rebuild and install new kernel then hopefully SCSI isn't confused,
ya... got diff usb sticks, but then configuring this wouldn't be as exciting as a matlock rerun...and a good execuse to re-learn vi again.
thank you aragon for your insights
Reply With Quote
  #10  
Old September 16th, 2009, 18:02
slam slam is offline
Junior Member
 
Join Date: Sep 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes.. finally it works
tried some other sticks 1st which got me to this point.

camcontrol doesnt work cause pass0 disabled in this kernconf
but device came up as /dev/da0s1, 1st time it gave me a slice
file -s da0s1 gave good info, then mount_msdosfs /dev/da0s1 /mnt which works.

wow..what are the chances that i picked the most problematic stick 1st to re-learn 6.0?.. hahaha
Reply With Quote
  #11  
Old September 16th, 2009, 19:57
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Well done!

Quote:
Originally Posted by slam View Post
wow..what are the chances that i picked the most problematic stick 1st to re-learn 6.0?.. hahaha
Murphy's Law?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install FreeBSD 8.0 using a USB stick, failed: No /boot/loader everypot Installing & Upgrading 10 February 29th, 2012 19:34
Encrypting a File System: No pass w/usb key ieska328 General 1 July 2nd, 2009 17:06
Umount -f USB stick resluts in a kernel panic Graaf_van_Vlaanderen Peripheral Hardware 15 April 7th, 2009 09:57
Free BSD distro on USB stick formated like Super Floppy FlameElement Installing & Upgrading 2 February 3rd, 2009 20:47
install on a usb stick DemoDoG Installing & Upgrading 6 January 7th, 2009 15:02


All times are GMT +1. The time now is 22:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0