Fwd: SecretLab 2.6.24 with USB
Sam Karp
sam.d.karp at gmail.com
Thu Apr 24 03:47:00 EST 2008
---------- Forwarded message ----------
From: Sam Karp <sam.d.karp at gmail.com>
Date: Wed, 23 Apr 2008 11:07:50 -0600
Subject: Re: SecretLab 2.6.24 with USB
To: Henrik Larson <henka at henka.dyndns.org>
I've been working on a similar tasks and I've gotten to the point where I
the driver is registered but the dev/sd* never appears...
Here is my boot record
0.000000] Xilinx ML403 Reference System (Virtex-4 FX)
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0 -> 16384
[ 0.000000] Normal 16384 -> 16384
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[1] active PFN ranges
[ 0.000000] 0: 0 -> 16384
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total
pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,9600 ip=on root=/dev/ram
rw
[ 0.000000] Xilinx INTC #0 at 0xD1000FC0 mapped to 0xFDFFEFC0
[ 0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[ 0.000291] Console: colour dummy device 80x25
[ 0.000834] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.002261] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.024384] Memory: 57824k available (2140k kernel code, 676k data, 116k
init, 0k highmem)
[ 0.109229] Mount-cache hash table entries: 512
[ 0.115828] net_namespace: 64 bytes
[ 0.127629] NET: Registered protocol family 16
[ 0.161368] SCSI subsystem initialized
[ 0.164286] usbcore: registered new interface driver usbfs
[ 0.166272] usbcore: registered new interface driver hub
[ 0.167635] usbcore: registered new device driver usb
[ 0.191313] NET: Registered protocol family 2
[ 0.225573] IP route cache hash table entries: 1024 (order: 0, 4096
bytes)
[ 0.232430] TCP established hash table entries: 2048 (order: 2, 16384
bytes)
[ 0.232957] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.233313] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.233392] TCP reno registered
[ 0.246425] checking if image is initramfs...it isn't (no cpio magic);
looks like an initrd
[ 6.697539] Freeing initrd memory: 4139k freed
[ 6.710934] NTFS driver 2.1.29 [Flags: R/W DEBUG].
[ 6.712392] io scheduler noop registered
[ 6.712477] io scheduler anticipatory registered (default)
[ 6.712556] io scheduler deadline registered
[ 6.712866] io scheduler cfq registered
[ 6.785910] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ
sharing disabled
[ 6.794247] serial8250.0: ttyS0 at MMIO 0xa0001003 (irq = 1) is a 16450
[ 6.794383] console [ttyS0] enabled
[ 9.360220] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024
blocksize
[ 9.451567] usbcore: registered new interface driver ub
[ 9.513799] tun: Universal TUN/TAP device driver, 1.6
[ 9.574089] tun: (C) 1999-2004 Max Krasnyansky <maxk at qualcomm.com>
[ 9.652324] st: Version 20070203, fixed bufsize 32768, s/g segs 256
[ 9.727853] Driver 'st' needs updating - please use bus_type methods
[ 9.804619] osst :I: Tape driver with OnStream support version 0.99.4
[ 9.804687] osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $
[ 9.962812] Driver 'osst' needs updating - please use bus_type methods
[ 10.042450] Driver 'sd' needs updating - please use bus_type methods
[ 10.119058] Driver 'sr' needs updating - please use bus_type methods
[ 10.196759] SCSI Media Changer driver v0.25
[ 10.248311] Driver 'ch' needs updating - please use bus_type methods
[ 10.326499] c67x00 c67x00.0: Cypress C67X00 Host Controller
[ 10.394304] c67x00 c67x00.0: new USB bus registered, assigned bus number
1
[ 10.481219] usb usb1: configuration #1 chosen from 1 choice
[ 10.549168] hub 1-0:1.0: USB hub found
[ 10.593456] hub 1-0:1.0: 2 ports detected
[ 10.747294] usb usb1: Product: Cypress C67X00 Host Controller
[ 10.815603] usb usb1: Manufacturer: Linux 2.6.24.4 c67x00-hcd
[ 10.884341] usb usb1: SerialNumber: c67x00_sie
[ 10.937452] udc requested but CONFIG_USB_GADGET_C67X00 not enabled!
[ 11.013687] usbcore: registered new interface driver usblp
[ 11.078909] Initializing USB Mass Storage driver...
[ 11.138123] usbcore: registered new interface driver usb-storage
[ 11.209648] USB Mass Storage support registered.
[ 11.265696] usbcore: registered new interface driver libusual
[ 11.335071] usbcore: registered new interface driver cypress_cy7c63
[ 11.410772] i8042.c: No controller found.
[ 11.459066] mice: PS/2 mouse device common for all mice
[ 11.523064] usbcore: registered new interface driver usbhid
[ 11.589463] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
[ 11.664712] TCP cubic registered
[ 11.702904] NET: Registered protocol family 1
[ 11.755062] NET: Registered protocol family 17
[ 12.313654] IP-Config: No network devices available.
[ 12.374243] RAMDISK: Compressed image found at block 0
[ 19.569218] EXT2-fs warning: mounting unchecked fs, running e2fsck is
recommended
[ 19.658681] VFS: Mounted root (ext2 filesystem).
[ 19.714175] Freeing unused kernel memory: 116k init
INIT: version 2.78 booting
Activating swap...
mount: you must specify the filesystem type
Mounting local filesystems...
nothing was mounted
Starting portmap daemon\: portmap.
INIT: Entering runlevel: 3
and when I plug in my USB drive I get this...
# [ 72.112234] usb 1-1: new full speed USB device using c67x00 and address
2
[ 72.402860] usb 1-1: configuration #1 chosen from 1 choice
[ 72.474140] scsi0 : SCSI emulation for USB Mass Storage devices
[ 72.551588] usb 1-1: Product: DiskOnKey
[ 72.596938] usb 1-1: Manufacturer: M-Systems
[ 72.647914] usb 1-1: SerialNumber: 021120102300F3EA
[ 77.554538] scsi 0:0:0:0: Direct-Access M-Sys DiskOnKey
2.51 PQ: 0 ANSI: 0 CCS
[ 77.688344] sd 0:0:0:0: [sda] 15584 512-byte hardware sectors (8 MB)
[ 77.770266] sd 0:0:0:0: [sda] Write Protect is off
[ 77.827242] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 77.919287] sd 0:0:0:0: [sda] 15584 512-byte hardware sectors (8 MB)
[ 78.001280] sd 0:0:0:0: [sda] Write Protect is off
[ 78.058131] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 78.131034] sda:<7>usb-storage: queuecommand called
[ 78.201342] sda1
[ 78.230344] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 78.298014] sd 0:0:0:0: Attached scsi generic sg0 type 0
ls /dev/sd*
ls: /dev/sd*: No such file or directory
***the dmesg output is this...
dmesg
_bulk_transfer_buf: xfer 31 bytes
[ 77.902642] usb-storage: Status code 0; transferred 31/31
[ 77.902722] usb-storage: -- transfer complete
[ 77.902788] usb-storage: Bulk command transfer result=0
[ 77.902858] usb-storage: Attempting to get CSW...
[ 77.902933] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[ 77.904635] usb-storage: Status code 0; transferred 13/13
[ 77.904716] usb-storage: -- transfer complete
[ 77.904781] usb-storage: Bulk status result = 0
[ 77.904861] usb-storage: Bulk Status S 0x53425355 T 0x7 R 0 Stat 0x0
[ 77.904951] usb-storage: scsi cmd done, result=0x0
[ 77.905044] usb-storage: *** thread sleeping.
[ 77.905327] usb-storage: queuecommand called
[ 77.905471] usb-storage: *** thread awakened.
[ 77.905563] usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
[ 77.905635] usb-storage: 1e 00 00 00 01 00
[ 77.905777] usb-storage: Bulk Command S 0x43425355 T 0x8 L 0 F 0 Trg 0
LUN 0 CL 6
[ 77.905875] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[ 77.906641] usb-storage: Status code 0; transferred 31/31
[ 77.906721] usb-storage: -- transfer complete
[ 77.906787] usb-storage: Bulk command transfer result=0
[ 77.906857] usb-storage: Attempting to get CSW...
[ 77.906931] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[ 77.908636] usb-storage: Status code 0; transferred 13/13
[ 77.908716] usb-storage: -- transfer complete
[ 77.908781] usb-storage: Bulk status result = 0
[ 77.908861] usb-storage: Bulk Status S 0x53425355 T 0x8 R 0 Stat 0x0
[ 77.908950] usb-storage: scsi cmd done, result=0x0
[ 77.909042] usb-storage: *** thread sleeping.
[ 77.909362] usb-storage: queuecommand called
[ 77.909511] usb-storage: *** thread awakened.
[ 77.909602] usb-storage: Command TEST_UNIT_READY (6 bytes)
[ 77.909669] usb-storage: 00 00 00 00 00 00
[ 77.909811] usb-storage: Bulk Command S 0x43425355 T 0x9 L 0 F 0 Trg 0
LUN 0 CL 6
[ 77.909909] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[ 77.910642] usb-storage: Status code 0; transferred 31/31
[ 77.910722] usb-storage: -- transfer complete
[ 77.910788] usb-storage: Bulk command transfer result=0
[ 77.910857] usb-storage: Attempting to get CSW...
[ 77.910932] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[ 77.912635] usb-storage: Status code 0; transferred 13/13
[ 77.912716] usb-storage: -- transfer complete
[ 77.912781] usb-storage: Bulk status result = 0
[ 77.912861] usb-storage: Bulk Status S 0x53425355 T 0x9 R 0 Stat 0x0
[ 77.912950] usb-storage: scsi cmd done, result=0x0
[ 77.913042] usb-storage: *** thread sleeping.
[ 77.913355] usb-storage: queuecommand called
[ 77.913502] usb-storage: *** thread awakened.
[ 77.913593] usb-storage: Command READ_CAPACITY (10 bytes)
[ 77.913661] usb-storage: 25 00 00 00 00 00 00 00 00 00
[ 77.913843] usb-storage: Bulk Command S 0x43425355 T 0xa L 8 F 128 Trg 0
LUN 0 CL 10
[ 77.913943] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[ 77.914642] usb-storage: Status code 0; transferred 31/31
[ 77.914722] usb-storage: -- transfer complete
[ 77.914788] usb-storage: Bulk command transfer result=0
[ 77.914875] usb-storage: usb_stor_bulk_transfer_sglist: xfer 8 bytes, 1
entries
[ 77.916638] usb-storage: Status code 0; transferred 8/8
[ 77.916719] usb-storage: -- transfer complete
[ 77.916786] usb-storage: Bulk data transfer result 0x0
[ 77.916854] usb-storage: Attempting to get CSW...
[ 77.916929] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[ 77.918633] usb-storage: Status code 0; transferred 13/13
[ 77.918712] usb-storage: -- transfer complete
[ 77.918777] usb-storage: Bulk status result = 0
[ 77.918857] usb-storage: Bulk Status S 0x53425355 T 0xa R 0 Stat 0x0
[ 77.918946] usb-storage: scsi cmd done, result=0x0
[ 77.919037] usb-storage: *** thread sleeping.
[ 77.919287] sd 0:0:0:0: [sda] 15584 512-byte hardware sectors (8 MB)
[ 77.995005] usb-storage: queuecommand called
[ 77.995155] usb-storage: *** thread awakened.
[ 77.995246] usb-storage: Command MODE_SENSE (6 bytes)
[ 77.995310] usb-storage: 1a 00 3f 00 c0 00
[ 77.995456] usb-storage: Bulk Command S 0x43425355 T 0xb L 192 F 128 Trg
0 LUN 0 CL 6
[ 77.995557] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[ 77.996652] usb-storage: Status code 0; transferred 31/31
[ 77.996734] usb-storage: -- transfer complete
[ 77.996799] usb-storage: Bulk command transfer result=0
[ 77.996887] usb-storage: usb_stor_bulk_transfer_sglist: xfer 192 bytes, 1
entries
[ 77.998650] usb-storage: Status code -121; transferred 8/192
[ 77.998733] usb-storage: -- short read transfer
[ 77.998803] usb-storage: Bulk data transfer result 0x1
[ 77.998871] usb-storage: Attempting to get CSW...
[ 77.998946] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[ 78.000644] usb-storage: Status code 0; transferred 13/13
[ 78.000723] usb-storage: -- transfer complete
[ 78.000787] usb-storage: Bulk status result = 0
[ 78.000867] usb-storage: Bulk Status S 0x53425355 T 0xb R 184 Stat 0x0
[ 78.000958] usb-storage: scsi cmd done, result=0x0
[ 78.001049] usb-storage: *** thread sleeping.
[ 78.001280] sd 0:0:0:0: [sda] Write Protect is off
[ 78.058047] sd 0:0:0:0: [sda] Mode Sense: 45 00 00 08
[ 78.058131] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 78.131034] sda:<7>usb-storage: queuecommand called
[ 78.190334] usb-storage: *** thread awakened.
[ 78.190437] usb-storage: Command READ_10 (10 bytes)
[ 78.190500] usb-storage: 28 00 00 00 00 00 00 00 08 00
[ 78.190687] usb-storage: Bulk Command S 0x43425355 T 0xc L 4096 F 128 Trg
0 LUN 0 CL 10
[ 78.190789] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[ 78.191664] usb-storage: Status code 0; transferred 31/31
[ 78.191744] usb-storage: -- transfer complete
[ 78.191810] usb-storage: Bulk command transfer result=0
[ 78.191898] usb-storage: usb_stor_bulk_transfer_sglist: xfer 4096 bytes,
1 entries
[ 78.199333] usb-storage: Status code 0; transferred 4096/4096
[ 78.199419] usb-storage: -- transfer complete
[ 78.199486] usb-storage: Bulk data transfer result 0x0
[ 78.199555] usb-storage: Attempting to get CSW...
[ 78.199630] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[ 78.200658] usb-storage: Status code 0; transferred 13/13
[ 78.200739] usb-storage: -- transfer complete
[ 78.200804] usb-storage: Bulk status result = 0
[ 78.200884] usb-storage: Bulk Status S 0x53425355 T 0xc R 0 Stat 0x0
[ 78.200974] usb-storage: scsi cmd done, result=0x0
[ 78.201068] usb-storage: *** thread sleeping.
[ 78.201342] sda1
[ 78.224012] usb-storage: queuecommand called
[ 78.224231] usb-storage: *** thread awakened.
[ 78.224328] usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
[ 78.224400] usb-storage: 1e 00 00 00 00 00
[ 78.224544] usb-storage: Bulk Command S 0x43425355 T 0xd L 0 F 0 Trg 0
LUN 0 CL 6
[ 78.224642] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[ 78.225666] usb-storage: Status code 0; transferred 31/31
[ 78.225746] usb-storage: -- transfer complete
[ 78.225812] usb-storage: Bulk command transfer result=0
[ 78.225882] usb-storage: Attempting to get CSW...
[ 78.225956] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[ 78.227656] usb-storage: Status code 0; transferred 13/13
[ 78.227735] usb-storage: -- transfer complete
[ 78.227800] usb-storage: Bulk status result = 0
[ 78.227880] usb-storage: Bulk Status S 0x53425355 T 0xd R 0 Stat 0x0
[ 78.227969] usb-storage: scsi cmd done, result=0x0
[ 78.228172] usb-storage: *** thread sleeping.
[ 78.230344] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 78.298014] sd 0:0:0:0: Attached scsi generic sg0 type 0
I feel like I might be missing something in my config file but I'm not
positive? Any ideas?
-Thanks
-Sam
On Wed, Apr 23, 2008 at 9:41 AM, Henrik Larson <henka at henka.dyndns.org>
wrote:
>
> Allt som har med skatter är per definition inte logiskt!
>
>
>
>
> On Wed, 23 Apr 2008, Peter Korsgaard wrote:
>
> "Aaron" == Aaron Sells <aaron.sells at zin-tech.com> writes:
> > > > > > >
> > > > > >
> > Hi,
> >
> > Aaron> root at xilinx-ml403:/# dmesg | grep -i usb
> > Aaron> [ 0.175963] usbcore: registered new interface driver usbfs
> > Aaron> [ 0.178207] usbcore: registered new interface driver hub
> > Aaron> [ 0.179810] usbcore: registered new device driver usb
> > Aaron> [ 3.426016] usbcore: registered new interface driver ub
> > Aaron> [ 4.156086] usbmon: debugfs is not available
> > Aaron> [ 4.209160] Initializing USB Mass Storage driver...
> > Aaron> [ 4.268302] usbcore: registered new interface driver
> > usb-storage
> > Aaron> [ 4.336109] USB Mass Storage support registered.
> > Aaron> [ 4.958294] usbcore: registered new interface driver usbhid
> > Aaron> [ 5.020120] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core
> > driver
> >
> > Yes, the USB core and drivers gets loaded, but because you haven't
> > provided a struct platform_device the c67x00 driver doesn't get
> > probed.
> >
> > Aaron> It still doesn't look like the ML403 Cypress host device is being
> > Aaron> recognized. No messages appear upon insertion and removal of USB
> > Aaron> devices.
> >
> > Aaron> Regards,
> > Aaron> Aaron Sells
> > Aaron> diff linux-2.6-xlnx_arch-ppc-syslib-virtex_devices.c
> > secretlab_arch-ppc-syslib-virtex_devices.c
> > Aaron> 77,92d76
> > Aaron> < * ML300/ML403 Video Device: shortcut macro for single instance
> >
> > Please use diff -u.
> >
> > I don't see anything with platform devices for the c67x00 driver. You
> > need something like:
> >
> > #include <linux/usb/c67x00.h>
> >
> > static struct resource c67x00_resources[] = {
> > [0] = {
> > .start = 0x84000000,
> > .end = 0x8400000f,
> > .flags = IORESOURCE_MEM,
> > },
> > [1] = {
> > .start = 3,
> > .end = 3,
> > .flags = IORESOURCE_IRQ,
> > },
> > };
> >
> > static struct c67x00_platform_data thinlite_c67x00_data = {
> > .sie_config = C67X00_SIE1_HOST |
> > C67X00_SIE2_PERIPHERAL_B,
> > .hpi_regstep = 0x02, /* A0 not connected on 16bit bus
> > */
> > };
> >
> > static struct platform_device thinlite_c67x00 = {
> > .name = "c67x00",
> > .id = 0,
> > .num_resources = ARRAY_SIZE(c67x00_resources),
> > .resource = c67x00_resources,
> > .dev.platform_data = &thinlite_c67x00_data,
> > };
> >
> > Which you then register with the platform bus with
> > platform_add_devices or similar. Either you do this by hand or you
> > create XPAR_* macros which take the needed info out of xparameter.h
> > (sorry, I don't have an xparameters.h with those defines at hand).
> >
> > Aaron> diff -Naur c67x00.old/c67x00-drv.c c67x00/c67x00-drv.c
> > Aaron> --- c67x00.old/c67x00-drv.c 2008-04-23 10:36:16.000000000
> > -0400
> > Aaron> +++ c67x00/c67x00-drv.c 2008-04-23 10:39:20.000000000 -0400
> > Aaron> @@ -57,8 +57,7 @@
> > Aaron> c67x00_hcd_probe(sie);
> > Aaron> break;
> >
> > Aaron> - case C67X00_SIE_PERIPHERAL_A:
> > Aaron> - case C67X00_SIE_PERIPHERAL_B:
> > Aaron> + case C67X00_SIE_PERIPHERAL:
> >
> > This seems to be from an earlier version of my driver.
> >
> > --
> > Bye, Peter Korsgaard
> > _______________________________________________
> > Linuxppc-embedded mailing list
> > Linuxppc-embedded at ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
> > _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: .config
URL: <http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20080423/849242f1/attachment-0001.txt>
More information about the Linuxppc-embedded
mailing list