* SecretLab 2.6.24 with USB
@ 2008-04-15 2:27 Sam Karp
2008-04-21 18:09 ` Grant Likely
0 siblings, 1 reply; 14+ messages in thread
From: Sam Karp @ 2008-04-15 2:27 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 345 bytes --]
Hi all,
I've downloaded the SecretLab Xilinx Linux 2.6.24 Kernel and I'm trying to
use a thumbdrive with the kernel. I'm booting from a ramdisk and insert the
thumbdrive but I have no /dev/sd* or /dev/hd* blocks. Is there anything I
need to add to the kernel or design to ensure that the thumbdrive is working
or getting power?
Thanks,
-Sam
[-- Attachment #2: Type: text/html, Size: 446 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-15 2:27 SecretLab 2.6.24 with USB Sam Karp
@ 2008-04-21 18:09 ` Grant Likely
2008-04-22 19:23 ` aaronsells
0 siblings, 1 reply; 14+ messages in thread
From: Grant Likely @ 2008-04-21 18:09 UTC (permalink / raw)
To: Sam Karp; +Cc: linuxppc-embedded
On Mon, Apr 14, 2008 at 8:27 PM, Sam Karp <sam.d.karp@gmail.com> wrote:
> Hi all,
>
> I've downloaded the SecretLab Xilinx Linux 2.6.24 Kernel and I'm trying to
> use a thumbdrive with the kernel. I'm booting from a ramdisk and insert the
> thumbdrive but I have no /dev/sd* or /dev/hd* blocks. Is there anything I
> need to add to the kernel or design to ensure that the thumbdrive is working
> or getting power?
Sorry I didn't get back to you earlier. Your best bet is to use
Xilinx's git tree and manually patch in the c67x00 driver from Peter
Korsgaard's driver.
http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01907.html
http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01908.html
http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01906.html
http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01907.html
I haven't been keeping my tree up to date lately.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-21 18:09 ` Grant Likely
@ 2008-04-22 19:23 ` aaronsells
2008-04-22 20:09 ` Grant Likely
2008-04-23 6:43 ` Peter Korsgaard
0 siblings, 2 replies; 14+ messages in thread
From: aaronsells @ 2008-04-22 19:23 UTC (permalink / raw)
To: linuxppc-embedded
Grant Likely-2 wrote:
>
> Your best bet is to use
> Xilinx's git tree and manually patch in the c67x00 driver from Peter
> Korsgaard's driver.
>
> http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01907.html
> http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01908.html
> http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01906.html
> http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01907.html
>
I've tried this on my ML403 board with no success. My Xilinx git tree is
current. I'm using Peter's most recent patches from
http://peter.korsgaard.com/patches/linux/. I'm using an OpenEmbedded
console-image mounted via nfs as my root filesystem. I don't receive any
messages when I plug USB devices into the board (keyboard, mouse, webcam).
Any ideas on how I can troubleshoot this?
--
View this message in context: http://www.nabble.com/SecretLab-2.6.24-with-USB-tp16693847p16825460.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-22 19:23 ` aaronsells
@ 2008-04-22 20:09 ` Grant Likely
2008-04-22 20:46 ` Aaron Sells
2008-04-23 6:43 ` Peter Korsgaard
1 sibling, 1 reply; 14+ messages in thread
From: Grant Likely @ 2008-04-22 20:09 UTC (permalink / raw)
To: aaronsells; +Cc: linuxppc-embedded
On Tue, Apr 22, 2008 at 1:23 PM, aaronsells <aaron.sells@zin-tech.com> wrote:
>
>
> Grant Likely-2 wrote:
> >
> > Your best bet is to use
> > Xilinx's git tree and manually patch in the c67x00 driver from Peter
> > Korsgaard's driver.
> >
> > http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01907.html
> > http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01908.html
> > http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01906.html
> > http://www.mail-archive.com/linux-usb@vger.kernel.org/msg01907.html
> >
>
> I've tried this on my ML403 board with no success. My Xilinx git tree is
> current. I'm using Peter's most recent patches from
> http://peter.korsgaard.com/patches/linux/. I'm using an OpenEmbedded
> console-image mounted via nfs as my root filesystem. I don't receive any
> messages when I plug USB devices into the board (keyboard, mouse, webcam).
> Any ideas on how I can troubleshoot this?
1. Post your boot log
2. Make sure a platform device for the usb controller is getting
registered with the kernel.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-22 20:09 ` Grant Likely
@ 2008-04-22 20:46 ` Aaron Sells
2008-04-22 20:55 ` Grant Likely
0 siblings, 1 reply; 14+ messages in thread
From: Aaron Sells @ 2008-04-22 20:46 UTC (permalink / raw)
To: Grant Likely; +Cc: linuxppc-embedded
Grant Likely wrote:
> 1. Post your boot log
Linux/PPC load: console=ttyUL0,9600 root=/dev/nfs rw
nfsroot=172.16.100.6:/opt/oe/console ip=dhcp
Uncompressing Linux...done.
Now booting the kernel
[ 0.000000] Linux version 2.6.24-rc8-xlnx-dirty
(sellsa@SS-SBIR-Ubuntu) (gcc version 4.2.2) #2 Tue Apr 22 12:04:46 EDT 2008
[ 0.000000] Xilinx Generic PowerPC board support package (Xilinx
ML403) (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=ttyUL0,9600 root=/dev/nfs rw
nfsroot=172.16.100.6:/opt/oe/console ip=dhcp
[ 0.000000] Xilinx INTC #0 at 0x81800000 mapped to 0xFDFFF000
[ 0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[ 0.000258] Console: colour dummy device 80x25
[ 0.000922] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.002038] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.021346] Memory: 61312k available (2616k kernel code, 868k data,
132k init, 0k highmem)
[ 0.108742] Mount-cache hash table entries: 512
[ 0.116268] net_namespace: 152 bytes
[ 0.119536] NET: Registered protocol family 16
[ 0.123901] Registering device uartlite:0
[ 0.125230] Fixup MAC address for xilinx_lltemac:0
[ 0.125289] Registering device xilinx_lltemac:0
[ 0.126444] Registering device xilinx_iic:0
[ 0.171651] SCSI subsystem initialized
[ 0.175959] usbcore: registered new interface driver usbfs
[ 0.178205] usbcore: registered new interface driver hub
[ 0.179810] usbcore: registered new device driver usb
[ 0.218553] NET: Registered protocol family 2
[ 0.256930] IP route cache hash table entries: 1024 (order: 0, 4096
bytes)
[ 0.260235] TCP established hash table entries: 2048 (order: 2, 16384
bytes)
[ 0.260666] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.260912] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.260955] TCP reno registered
[ 0.283619] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.285708] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.287381] io scheduler noop registered
[ 0.287442] io scheduler anticipatory registered (default)
[ 0.287481] io scheduler deadline registered
[ 0.287740] io scheduler cfq registered
[ 0.373233] Macintosh non-volatile memory driver v1.1
[ 0.374364] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ
sharing disabled
[ 0.382613] uartlite.0: ttyUL0 at MMIO 0x84000003 (irq = 7) is a uartlite
[ 0.382713] console [ttyUL0] enabled
[ 3.227497] brd: module loaded
[ 3.259241] loop: module loaded
[ 3.285114] Xilinx SystemACE device driver, major=254
[ 3.348555] nbd: registered device at major 43
[ 3.426028] usbcore: registered new interface driver ub
[ 3.472247] tun: Universal TUN/TAP device driver, 1.6
[ 3.532134] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 3.609161] xilinx_lltemac xilinx_lltemac.0: MAC address is now 0:
a:35: 1: 2: 3
[ 3.696055] xilinx_lltemac xilinx_lltemac.0: XLlTemac: using FIFO
direct interrupt driven mode.
[ 3.800113] XLlTemac: Fifo base address: 0xc5052000
[ 3.861023] XTemac: No PHY detected. Assuming a PHY at address 0
[ 3.936569] xilinx_lltemac xilinx_lltemac.0: eth0: Xilinx TEMAC at
0x81C00000 mapped to 0xC5054000, irq=2
[ 4.048559] Linux video capture interface: v2.00
[ 4.106344] block2mtd: version $Revision: 1.30 $
[ 4.156087] usbmon: debugfs is not available
[ 4.209164] Initializing USB Mass Storage driver...
[ 4.268301] usbcore: registered new interface driver usb-storage
[ 4.336109] USB Mass Storage support registered.
[ 4.392985] i8042.c: No controller found.
[ 4.444206] mice: PS/2 mouse device common for all mice
[ 4.507075] i2c /dev entries driver
[ 4.561419] xilinx_iic.0 #0 at 0x81600000 mapped to 0xC5060000, irq=3
[ 4.625626] usbcore: registered new interface driver usbhid
[ 4.688119] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
[ 4.765302] Advanced Linux Sound Architecture Driver Version
1.0.16rc2 (Thu Jan 31 16:40:16 2008 UTC).
[ 4.880392] ALSA device list:
[ 4.908042] No soundcards found.
[ 4.958069] TCP cubic registered
[ 4.988228] NET: Registered protocol family 1
[ 5.040274] NET: Registered protocol family 17
[ 5.097536] RPC: Registered udp transport module.
[ 5.152077] RPC: Registered tcp transport module.
[ 5.717327] eth0: XLlTemac: Options: 0x3fa
[ 5.748106] eth0: XLlTemac: allocating interrupt 0 for fifo mode.
[ 7.832825] eth0: XLlTemac: speed set to 100Mb/s
[ 8.876099] Sending DHCP requests ., OK
[ 8.920092] IP-Config: Got DHCP answer from 0.0.0.0, my address is
172.16.100.199
[ 8.998117] IP-Config: Complete:
[ 9.032048] device=eth0, addr=172.16.100.199,
mask=255.255.255.0, gw=172.16.100.1,
[ 9.124032] host=172.16.100.199, domain=zin.net, nis-domain=(none),
[ 9.204160] bootserver=0.0.0.0, rootserver=172.16.100.6, rootpath=
[ 9.288645] Looking up port of RPC 100003/2 on 172.16.100.6
[ 9.370826] Looking up port of RPC 100005/1 on 172.16.100.6
[ 9.872124] eth0: XLlTemac: PHY Link carrier lost.
[ 11.922151] eth0: XLlTemac: speed set to 100Mb/s
[ 11.960020] eth0: XLlTemac: PHY Link carrier restored.
[ 14.569232] VFS: Mounted root (nfs filesystem).
[ 14.608501] Freeing unused kernel memory: 132k init
INIT: version 2.86 booting
Starting the hotplug events dispatcher udevd
Synthesizing the initial hotplug events
[ 32.666441] nbd13: Attempted send on closed socket
[ 32.708098] end_request: I/O error, dev nbd13, sector 0
[ 32.781692] nbd11: Attempted send on closed socket
[ 32.828123] end_request: I/O error, dev nbd11, sector 0
[ 32.892778] nbd12: Attempted send on closed socket
[ 32.948107] end_request: I/O error, dev nbd12, sector 0
[ 33.021755] nbd1: Attempted send on closed socket
[ 33.064057] end_request: I/O error, dev nbd1, sector 0
[ 33.178423] nbd15: Attempted send on closed socket
[ 33.220102] end_request: I/O error, dev nbd15, sector 0
[ 33.296955] nbd10: Attempted send on closed socket
[ 33.340105] end_request: I/O error, dev nbd10, sector 0
[ 33.412948] nbd0: Attempted send on closed socket
[ 33.456319] end_request: I/O error, dev nbd0, sector 0
[ 33.749262] nbd2: Attempted send on closed socket
[ 33.788077] end_request: I/O error, dev nbd2, sector 0
[ 33.910500] nbd14: Attempted send on closed socket
[ 33.952068] end_request: I/O error, dev nbd14, sector 0
[ 35.643604] FAT: unable to read boot sector
[ 35.726130] FAT: unable to read boot sector
[ 35.767178] FAT: unable to read boot sector
[ 35.808826] FAT: unable to read boot sector
[ 35.883115] FAT: unable to read boot sector
[ 35.985109] FAT: unable to read boot sector
[ 36.046253] FAT: unable to read boot sector
[ 36.130150] FAT: unable to read boot sector
[ 36.176588] FAT: unable to read boot sector
[ 37.434412] nbd3: Attempted send on closed socket
[ 37.472068] end_request: I/O error, dev nbd3, sector 0
[ 37.619660] nbd7: Attempted send on closed socket
[ 37.660096] end_request: I/O error, dev nbd7, sector 0
[ 37.879683] nbd4: Attempted send on closed socket
[ 37.920090] end_request: I/O error, dev nbd4, sector 0
[ 37.994513] nbd6: Attempted send on closed socket
[ 38.036165] end_request: I/O error, dev nbd6, sector 0
[ 38.189853] nbd5: Attempted send on closed socket
[ 38.228057] end_request: I/O error, dev nbd5, sector 0
[ 38.307332] nbd8: Attempted send on closed socket
[ 38.348365] end_request: I/O error, dev nbd8, sector 0
[ 38.422145] nbd9: Attempted send on closed socket
[ 38.464063] end_request: I/O error, dev nbd9, sector 0
[ 39.476587] FAT: unable to read boot sector
[ 39.572328] FAT: unable to read boot sector
[ 39.715495] FAT: unable to read boot sector
[ 39.811415] FAT: unable to read boot sector
[ 39.920564] FAT: unable to read boot sector
[ 39.972659] FAT: unable to read boot sector
[ 40.101692] FAT: unable to read boot sector
Remounting root file system...
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces... udhcpc (v1.9.1) started
Sending discover...
Sending select for 172.16.100.199...
Lease of 172.16.100.199 obtained, lease time 604800
done.
Starting portmap daemon: portmap.
hwclock: can't open '/dev/misc/rtc': No such file or directory
Nothing to be done
INIT: Entering runlevel: 5
Starting Dropbear SSH server: dropbear.
Starting system message bus: dbus.
Starting syslogd/klogd: start-stop-daemon: lseek: Invalid argument
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
[ ok ]
> 2. Make sure a platform device for the usb controller is getting
> registered with the kernel.
Correct me if I'm wrong, but it does not look like my Cypress CY7C6300
USB host controller is getting registered with the kernel. Any ideas?
Regards,
Aaron Sells
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-22 20:46 ` Aaron Sells
@ 2008-04-22 20:55 ` Grant Likely
2008-04-23 14:58 ` Aaron Sells
0 siblings, 1 reply; 14+ messages in thread
From: Grant Likely @ 2008-04-22 20:55 UTC (permalink / raw)
To: Aaron Sells; +Cc: linuxppc-embedded
On Tue, Apr 22, 2008 at 2:46 PM, Aaron Sells <aaron.sells@zin-tech.com> wrote:
> Grant Likely wrote:
>
> > 2. Make sure a platform device for the usb controller is getting
> > registered with the kernel.
> >
>
> Correct me if I'm wrong, but it does not look like my Cypress CY7C6300 USB
> host controller is getting registered with the kernel. Any ideas?
Compare arch/ppc/syslib/virtex_devices.c with the one in my git tree.
Add the relevant missing bits.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-22 19:23 ` aaronsells
2008-04-22 20:09 ` Grant Likely
@ 2008-04-23 6:43 ` Peter Korsgaard
1 sibling, 0 replies; 14+ messages in thread
From: Peter Korsgaard @ 2008-04-23 6:43 UTC (permalink / raw)
To: aaronsells; +Cc: linuxppc-embedded
>>>>> "aaronsells" == aaronsells <aaron.sells@zin-tech.com> writes:
Hi,
aaronsells> I've tried this on my ML403 board with no success. My
aaronsells> Xilinx git tree is current. I'm using Peter's most
aaronsells> recent patches from
aaronsells> http://peter.korsgaard.com/patches/linux/. I'm using an
aaronsells> OpenEmbedded console-image mounted via nfs as my root
aaronsells> filesystem. I don't receive any messages when I plug USB
aaronsells> devices into the board (keyboard, mouse, webcam). Any
aaronsells> ideas on how I can troubleshoot this?
Did you register a struct platform_device for the c67x00?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-22 20:55 ` Grant Likely
@ 2008-04-23 14:58 ` Aaron Sells
2008-04-23 15:12 ` Peter Korsgaard
0 siblings, 1 reply; 14+ messages in thread
From: Aaron Sells @ 2008-04-23 14:58 UTC (permalink / raw)
To: Grant Likely, Peter Korsgaard; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
Grant Likely wrote:
> Compare arch/ppc/syslib/virtex_devices.c with the one in my git tree.
> Add the relevant missing bits.
Peter Korsgaard wrote:
> Did you register a struct platform_device for the c67x00?
I copied over the relevant USB code from secretlab's virtex_devices.c to
my Xilinx tree. In case I missed something, the diff between the two
files is attached. And yes, I copied over include/linux/usb/c67x00.h as
well. After doing this, I had to modify a couple of the c67x00 driver
files to get the kernel to compile. The patch is attached.
root@xilinx-ml403:/# dmesg | grep -i usb
[ 0.175963] usbcore: registered new interface driver usbfs
[ 0.178207] usbcore: registered new interface driver hub
[ 0.179810] usbcore: registered new device driver usb
[ 3.426016] usbcore: registered new interface driver ub
[ 4.156086] usbmon: debugfs is not available
[ 4.209160] Initializing USB Mass Storage driver...
[ 4.268302] usbcore: registered new interface driver usb-storage
[ 4.336109] USB Mass Storage support registered.
[ 4.958294] usbcore: registered new interface driver usbhid
[ 5.020120] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
It still doesn't look like the ML403 Cypress host device is being
recognized. No messages appear upon insertion and removal of USB devices.
Regards,
Aaron Sells
[-- Attachment #2: virtex_devices.c.diff --]
[-- Type: text/plain, Size: 6125 bytes --]
diff linux-2.6-xlnx_arch-ppc-syslib-virtex_devices.c secretlab_arch-ppc-syslib-virtex_devices.c
77,92d76
< * ML300/ML403 Video Device: shortcut macro for single instance
< */
< #define XPAR_TFT(num) { \
< .name = "xilinxfb", \
< .id = num, \
< .num_resources = 1, \
< .resource = (struct resource[]) { \
< { \
< .start = XPAR_TFT_##num##_BASEADDR, \
< .end = XPAR_TFT_##num##_BASEADDR+7, \
< .flags = IORESOURCE_IO, \
< }, \
< }, \
< }
<
< /*
126,152d109
< * EMAC: shortcut macro for single instance
< */
< #define XPAR_EMACLITE(num) { \
< .name = "xilinx_emaclite", \
< .id = num, \
< .num_resources = 2, \
< .resource = (struct resource[]) { \
< { \
< .start = XPAR_EMACLITE_##num##_BASEADDR, \
< .end = XPAR_EMACLITE_##num##_HIGHADDR, \
< .flags = IORESOURCE_MEM, \
< }, \
< { \
< .start = XPAR_INTC_0_EMACLITE_##num##_VEC_ID, \
< .flags = IORESOURCE_IRQ, \
< }, \
< }, \
< .dev.platform_data = &(struct xemaclite_platform_data) { \
< .tx_ping_pong = XPAR_EMACLITE_##num##_TX_PING_PONG, \
< .rx_ping_pong = XPAR_EMACLITE_##num##_RX_PING_PONG, \
< /* locally administered default address */ \
< .mac_addr = {2, 0, 0, 0, 0, num}, \
< }, \
< }
<
<
< /*
199,288c156,160
< #define XPAR_LLTEMAC_RESOURCES(num) \
< .name = "xilinx_lltemac", \
< .id = XPAR_LLTEMAC_##num##_DEVICE_ID, \
< .num_resources = 2, \
< .resource = (struct resource[]) { \
< { \
< .start = XPAR_LLTEMAC_##num##_BASEADDR, \
< .end = XPAR_LLTEMAC_##num##_BASEADDR + 0x1000, \
< .flags = IORESOURCE_MEM \
< }, \
< { \
< .start = XPAR_INTC_0_LLTEMAC_##num##_VEC_ID, \
< .end = XPAR_INTC_0_LLTEMAC_##num##_VEC_ID, \
< .flags = IORESOURCE_IRQ \
< } \
< }
<
< #ifdef XPAR_XLLDMA_USE_DCR
< #define DCRHOST 0xFF
< #else
< #define DCRHOST 0x00
< #endif
<
< #define XPAR_LLTEMAC(num) { \
< XPAR_LLTEMAC_RESOURCES(num), \
< .dev.platform_data = &(struct xlltemac_platform_data) { \
< .tx_csum = XPAR_LLTEMAC_##num##_TXCSUM, \
< .rx_csum = XPAR_LLTEMAC_##num##_RXCSUM, \
< .phy_type = XPAR_LLTEMAC_##num##_PHY_TYPE, \
< .dcr_host = DCRHOST, \
< .ll_dev_type = XPAR_LLTEMAC_##num##_LLINK_CONNECTED_TYPE, \
< .ll_dev_baseaddress = XPAR_LLTEMAC_##num##_LLINK_CONNECTED_BASEADDR, \
< .ll_dev_dma_rx_irq = XPAR_LLTEMAC_##num##_LLINK_CONNECTED_DMARX_INTR, \
< .ll_dev_dma_tx_irq = XPAR_LLTEMAC_##num##_LLINK_CONNECTED_DMATX_INTR, \
< .ll_dev_fifo_irq = XPAR_LLTEMAC_##num##_LLINK_CONNECTED_FIFO_INTR, \
< /* locally administered default address */ \
< .mac_addr = {2, 0, 0, 0, 0, num}, \
< }, \
< }
<
<
< #define XPAR_PS2(num) { \
< .name = "xilinx_ps2", \
< .id = num, \
< .num_resources = 2, \
< .resource = (struct resource[]) { \
< { \
< .start = XPAR_PS2_##num##_BASEADDR, \
< .end = XPAR_PS2_##num##_HIGHADDR, \
< .flags = IORESOURCE_MEM, \
< }, \
< { \
< .start = XPAR_INTC_0_PS2_##num##_VEC_ID, \
< .flags = IORESOURCE_IRQ, \
< }, \
< }, \
< }
<
< #define XPAR_IIC(num) { \
< .name = "xilinx_iic", \
< .id = num, \
< .num_resources = 2, \
< .resource = (struct resource[]) { \
< { \
< .start = XPAR_IIC_##num##_BASEADDR, \
< .end = XPAR_IIC_##num##_HIGHADDR, \
< .flags = IORESOURCE_MEM, \
< }, \
< { \
< .start = XPAR_INTC_0_IIC_##num##_VEC_ID, \
< .flags = IORESOURCE_IRQ, \
< }, \
< }, \
< }
<
< #ifdef CONFIG_XILINX_VIRTEX_II_PRO
< #define XPAR_HWICAP_FAMILY "virtex2p"
< #endif
< #ifdef CONFIG_XILINX_VIRTEX_4_FX
< #define XPAR_HWICAP_FAMILY "virtex4"
< #endif
< #ifdef CONFIG_XILINX_VIRTEX_5
< #define XPAR_HWICAP_FAMILY "virtex5"
< #endif
< #ifndef XPAR_HWICAP_FAMILY
< #define XPAR_HWICAP_FAMILY NULL
< #endif
<
< #define XPAR_HWICAP(num) { \
< .name = "xilinx_icap", \
---
> /*
> * ML300/ML403 Video Device: shortcut macro for single instance
> */
> #define XPAR_TFT(num) { \
> .name = "xilinxfb", \
293,295c165,167
< .start = XPAR_HWICAP_##num##_BASEADDR, \
< .end = XPAR_HWICAP_##num##_HIGHADDR, \
< .flags = IORESOURCE_MEM, \
---
> .start = XPAR_TFT_##num##_BASEADDR, \
> .end = XPAR_TFT_##num##_BASEADDR+7, \
> .flags = IORESOURCE_IO, \
298d169
< .dev.platform_data = XPAR_HWICAP_FAMILY, \
409,410c280,281
< .name = "serial8250",
< .id = 0,
---
> .name = "serial8250",
> .id = 0,
437,450d307
< /* EMACLITE instances */
< #if defined(XPAR_EMACLITE_0_BASEADDR)
< XPAR_EMACLITE(0),
< #endif
< #if defined(XPAR_EMACLITE_1_BASEADDR)
< XPAR_EMACLITE(1),
< #endif
< #if defined(XPAR_EMACLITE_2_BASEADDR)
< XPAR_EMACLITE(2),
< #endif
< #if defined(XPAR_EMACLITE_3_BASEADDR)
< XPAR_EMACLITE(3),
< #endif
<
484,518d340
< /* LLTEMAC instances */
< #if defined(XPAR_LLTEMAC_0_BASEADDR)
< XPAR_LLTEMAC(0),
< #endif
< #if defined(XPAR_LLTEMAC_1_BASEADDR)
< XPAR_LLTEMAC(1),
< #endif
< #if defined(XPAR_LLTEMAC_2_BASEADDR)
< XPAR_LLTEMAC(2),
< #endif
< #if defined(XPAR_LLTEMAC_3_BASEADDR)
< XPAR_LLTEMAC(3),
< #endif
<
< #if defined(XPAR_PS2_0_BASEADDR)
< XPAR_PS2(0),
< #endif
< #if defined(XPAR_PS2_1_BASEADDR)
< XPAR_PS2(1),
< #endif
< #if defined(XPAR_PS2_2_BASEADDR)
< XPAR_PS2(2),
< #endif
< #if defined(XPAR_PS2_3_BASEADDR)
< XPAR_PS2(3),
< #endif
<
< #if defined(XPAR_IIC_0_BASEADDR)
< XPAR_IIC(0),
< #endif
<
< #if defined(XPAR_HWICAP_0_BASEADDR)
< XPAR_HWICAP(0),
< #endif
<
554d375
< extern void gen550_init(int i, struct uart_port *serial_req);
558,564c379,385
< serial_req.mapbase = pdata->mapbase;
< serial_req.membase = pdata->membase;
< serial_req.irq = pdata->irq;
< serial_req.uartclk = pdata->uartclk;
< serial_req.regshift = pdata->regshift;
< serial_req.iotype = pdata->iotype;
< serial_req.flags = pdata->flags;
---
> serial_req.mapbase = pdata->mapbase;
> serial_req.membase = pdata->membase;
> serial_req.irq = pdata->irq;
> serial_req.uartclk = pdata->uartclk;
> serial_req.regshift = pdata->regshift;
> serial_req.iotype = pdata->iotype;
> serial_req.flags = pdata->flags;
608,609d428
< printk(KERN_INFO "Registering device %s:%d\n",
< index->name, index->id);
[-- Attachment #3: c67x00.patch --]
[-- Type: text/plain, Size: 1074 bytes --]
diff -Naur c67x00.old/c67x00-drv.c c67x00/c67x00-drv.c
--- c67x00.old/c67x00-drv.c 2008-04-23 10:36:16.000000000 -0400
+++ c67x00/c67x00-drv.c 2008-04-23 10:39:20.000000000 -0400
@@ -57,8 +57,7 @@
c67x00_hcd_probe(sie);
break;
- case C67X00_SIE_PERIPHERAL_A:
- case C67X00_SIE_PERIPHERAL_B:
+ case C67X00_SIE_PERIPHERAL:
c67x00_udc_probe(sie);
break;
@@ -82,8 +81,7 @@
c67x00_hcd_remove(sie);
break;
- case C67X00_SIE_PERIPHERAL_A:
- case C67X00_SIE_PERIPHERAL_B:
+ case C67X00_SIE_PERIPHERAL:
c67x00_udc_remove(sie);
break;
diff -Naur c67x00.old/c67x00-ll-hpi.c c67x00/c67x00-ll-hpi.c
--- c67x00.old/c67x00-ll-hpi.c 2008-04-23 10:36:16.000000000 -0400
+++ c67x00/c67x00-ll-hpi.c 2008-04-23 10:39:35.000000000 -0400
@@ -431,7 +431,7 @@
USB_CTL_REG(sie->sie_num),
SOF_EOP_EN(0) | SOF_EOP_EN(1));
- if (sie->mode == C67X00_SIE_PERIPHERAL_A)
+ if (sie->mode == C67X00_SIE_PERIPHERAL)
hpi_write_word(dev, DEVICE_N_PORT_SEL(sie->sie_num), 0x0000);
else
hpi_write_word(dev, DEVICE_N_PORT_SEL(sie->sie_num), 0x4000);
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-23 14:58 ` Aaron Sells
@ 2008-04-23 15:12 ` Peter Korsgaard
2008-04-23 15:41 ` Henrik Larson
2008-04-24 16:04 ` Aaron Sells
0 siblings, 2 replies; 14+ messages in thread
From: Peter Korsgaard @ 2008-04-23 15:12 UTC (permalink / raw)
To: Aaron Sells; +Cc: linuxppc-embedded
>>>>> "Aaron" == Aaron Sells <aaron.sells@zin-tech.com> writes:
Hi,
Aaron> root@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-23 15:12 ` Peter Korsgaard
@ 2008-04-23 15:41 ` Henrik Larson
[not found] ` <800687fe0804231007l5fdf664fn1d94a1e40dd7fe74@mail.gmail.com>
2008-04-24 16:04 ` Aaron Sells
1 sibling, 1 reply; 14+ messages in thread
From: Henrik Larson @ 2008-04-23 15:41 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: Aaron Sells, linuxppc-embedded
Allt som har med skatter är per definition inte logiskt!
On Wed, 23 Apr 2008, Peter Korsgaard wrote:
>>>>>> "Aaron" == Aaron Sells <aaron.sells@zin-tech.com> writes:
>
> Hi,
>
> Aaron> root@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@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Fwd: SecretLab 2.6.24 with USB
[not found] ` <800687fe0804231007l5fdf664fn1d94a1e40dd7fe74@mail.gmail.com>
@ 2008-04-23 17:47 ` Sam Karp
2008-04-23 18:27 ` Peter Korsgaard
0 siblings, 1 reply; 14+ messages in thread
From: Sam Karp @ 2008-04-23 17:47 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 18788 bytes --]
---------- Forwarded message ----------
From: Sam Karp <sam.d.karp@gmail.com>
Date: Wed, 23 Apr 2008 11:07:50 -0600
Subject: Re: SecretLab 2.6.24 with USB
To: Henrik Larson <henka@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@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@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@zin-tech.com> writes:
> > > > > > >
> > > > > >
> > Hi,
> >
> > Aaron> root@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@ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
> > _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
[-- Attachment #2: .config --]
[-- Type: text/plain, Size: 18679 bytes --]
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.24.4
# Wed Apr 23 07:54:55 2008
#
CONFIG_WORD_SIZE=32
CONFIG_MMU=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_ARCH_HAS_ILOG2_U32=y
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PPC=y
CONFIG_PPC32=y
CONFIG_GENERIC_NVRAM=y
CONFIG_GENERIC_FIND_NEXT_BIT=y
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_GENERIC_BUG=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
#
# General setup
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
# CONFIG_SWAP is not set
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
# CONFIG_POSIX_MQUEUE is not set
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
# CONFIG_TASKSTATS is not set
# CONFIG_USER_NS is not set
# CONFIG_PID_NS is not set
# CONFIG_AUDIT is not set
# CONFIG_IKCONFIG is not set
CONFIG_LOG_BUF_SHIFT=14
# CONFIG_CGROUPS is not set
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_FAIR_USER_SCHED=y
# CONFIG_FAIR_CGROUP_SCHED is not set
CONFIG_SYSFS_DEPRECATED=y
# CONFIG_RELAY is not set
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_SYSCTL=y
# CONFIG_EMBEDDED is not set
CONFIG_SYSCTL_SYSCALL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_ANON_INODES=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not set
CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
# CONFIG_MODULES is not set
CONFIG_BLOCK=y
CONFIG_LBD=y
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set
# CONFIG_BLK_DEV_BSG is not set
#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_AS=y
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="anticipatory"
#
# Processor
#
# CONFIG_6xx is not set
CONFIG_40x=y
# CONFIG_44x is not set
# CONFIG_8xx is not set
# CONFIG_E200 is not set
# CONFIG_E500 is not set
CONFIG_PPC_DCR_NATIVE=y
CONFIG_PPC_DCR=y
CONFIG_MATH_EMULATION=y
# CONFIG_KEXEC is not set
# CONFIG_CPU_FREQ is not set
CONFIG_4xx=y
# CONFIG_WANT_EARLY_SERIAL is not set
#
# IBM 4xx options
#
# CONFIG_BUBINGA is not set
# CONFIG_CPCI405 is not set
# CONFIG_EP405 is not set
# CONFIG_REDWOOD_5 is not set
# CONFIG_REDWOOD_6 is not set
# CONFIG_SYCAMORE is not set
# CONFIG_WALNUT is not set
# CONFIG_XILINX_ML300 is not set
CONFIG_XILINX_ML403=y
CONFIG_IBM405_ERR77=y
CONFIG_IBM405_ERR51=y
CONFIG_XILINX_VIRTEX_4_FX=y
CONFIG_XILINX_VIRTEX=y
CONFIG_EMBEDDEDBOOT=y
# CONFIG_PPC4xx_DMA is not set
CONFIG_PPC_GEN550=y
CONFIG_UART0_TTYS0=y
# CONFIG_UART0_TTYS1 is not set
CONFIG_NOT_COHERENT_CACHE=y
#
# Platform options
#
# CONFIG_PC_KEYBOARD is not set
# CONFIG_HIGHMEM is not set
CONFIG_ARCH_POPULATES_NODE_MAP=y
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
# CONFIG_SPARSEMEM_STATIC is not set
# CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_RESOURCES_64BIT is not set
CONFIG_ZONE_DMA_FLAG=1
CONFIG_BOUNCE=y
CONFIG_VIRT_TO_BUS=y
CONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_MISC is not set
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="console=ttyS0,9600 ip=on root=/dev/ram rw"
CONFIG_SECCOMP=y
CONFIG_ISA_DMA_API=y
#
# Bus options
#
CONFIG_ZONE_DMA=y
# CONFIG_PPC_I8259 is not set
# CONFIG_PCI is not set
# CONFIG_PCI_DOMAINS is not set
# CONFIG_PCI_SYSCALL is not set
# CONFIG_ARCH_SUPPORTS_MSI is not set
# CONFIG_PCCARD is not set
#
# Advanced setup
#
# CONFIG_ADVANCED_OPTIONS is not set
#
# Default settings for advanced configuration options are used
#
CONFIG_HIGHMEM_START=0xfe000000
CONFIG_LOWMEM_SIZE=0x30000000
CONFIG_KERNEL_START=0xc0000000
CONFIG_TASK_SIZE=0x80000000
CONFIG_CONSISTENT_START=0xff100000
CONFIG_CONSISTENT_SIZE=0x00200000
CONFIG_BOOT_LOAD=0x00400000
#
# Networking
#
CONFIG_NET=y
#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
CONFIG_UNIX=y
CONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
# CONFIG_XFRM_SUB_POLICY is not set
# CONFIG_XFRM_MIGRATE is not set
# CONFIG_NET_KEY is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_FIB_HASH=y
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_ARPD is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
CONFIG_INET_XFRM_MODE_TRANSPORT=y
CONFIG_INET_XFRM_MODE_TUNNEL=y
CONFIG_INET_XFRM_MODE_BEET=y
# CONFIG_INET_LRO is not set
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_CUBIC=y
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set
# CONFIG_IPV6 is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
# CONFIG_NETWORK_SECMARK is not set
# CONFIG_NETFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_BRIDGE is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_SCHED is not set
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
#
# Wireless
#
# CONFIG_CFG80211 is not set
# CONFIG_WIRELESS_EXT is not set
# CONFIG_MAC80211 is not set
# CONFIG_IEEE80211 is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set
#
# Device Drivers
#
#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
# CONFIG_FW_LOADER is not set
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_CONNECTOR is not set
# CONFIG_MTD is not set
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_UB=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=65536
CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_XILINX_SYSACE is not set
CONFIG_MISC_DEVICES=y
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_IDE is not set
#
# SCSI device support
#
CONFIG_RAID_ATTRS=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_TGT=y
# CONFIG_SCSI_NETLINK is not set
CONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=y
CONFIG_CHR_DEV_OSST=y
CONFIG_BLK_DEV_SR=y
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=y
CONFIG_CHR_DEV_SCH=y
#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
CONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_ATA is not set
# CONFIG_MD is not set
# CONFIG_MACINTOSH_DRIVERS is not set
CONFIG_NETDEVICES=y
# CONFIG_NETDEVICES_MULTIQUEUE is not set
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_MACVLAN is not set
# CONFIG_EQUALIZER is not set
CONFIG_TUN=y
# CONFIG_VETH is not set
# CONFIG_NET_ETHERNET is not set
CONFIG_NETDEV_1000=y
CONFIG_NETDEV_10000=y
#
# Wireless LAN
#
# CONFIG_WLAN_PRE80211 is not set
# CONFIG_WLAN_80211 is not set
#
# USB Network Adapters
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# CONFIG_WAN is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_SHAPER is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_ISDN is not set
# CONFIG_PHONE is not set
#
# Input device support
#
CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_POLLDEV is not set
#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Hardware I/O ports
#
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
CONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not set
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_UARTLITE is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
# CONFIG_IPMI_HANDLER is not set
CONFIG_HW_RANDOM=y
# CONFIG_NVRAM is not set
# CONFIG_GEN_RTC is not set
# CONFIG_R3964 is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_TCG_TPM is not set
# CONFIG_I2C is not set
#
# SPI support
#
# CONFIG_SPI is not set
# CONFIG_SPI_MASTER is not set
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_HWMON is not set
# CONFIG_WATCHDOG is not set
#
# Sonics Silicon Backplane
#
CONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not set
#
# Multifunction device drivers
#
# CONFIG_MFD_SM501 is not set
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
# CONFIG_DVB_CORE is not set
CONFIG_DAB=y
# CONFIG_USB_DABUSB is not set
#
# Graphics support
#
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
# CONFIG_FB is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
#
# Display device support
#
# CONFIG_DISPLAY_SUPPORT is not set
#
# Console display driver support
#
CONFIG_DUMMY_CONSOLE=y
#
# Sound
#
# CONFIG_SOUND is not set
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
CONFIG_HID_DEBUG=y
# CONFIG_HIDRAW is not set
#
# USB Input Devices
#
CONFIG_USB_HID=y
# CONFIG_USB_HIDINPUT_POWERBOOK is not set
# CONFIG_HID_FF is not set
# CONFIG_USB_HIDDEV is not set
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
# CONFIG_USB_ARCH_HAS_OHCI is not set
# CONFIG_USB_ARCH_HAS_EHCI is not set
CONFIG_USB=y
CONFIG_USB_DEBUG=y
#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
CONFIG_USB_DEVICE_CLASS=y
CONFIG_USB_DYNAMIC_MINORS=y
# CONFIG_USB_OTG is not set
#
# USB Host Controller Drivers
#
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
CONFIG_USB_C67X00_DRV=y
CONFIG_USB_C67X00_HCD=y
#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
CONFIG_USB_PRINTER=y
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
#
#
# may also be needed; see USB_STORAGE Help for more information
#
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DEBUG=y
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_USBAT is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_STORAGE_ALAUDA is not set
# CONFIG_USB_STORAGE_ONETOUCH is not set
# CONFIG_USB_STORAGE_KARMA is not set
CONFIG_USB_LIBUSUAL=y
#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_MON is not set
#
# USB port drivers
#
#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set
#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_BERRY_CHARGE is not set
# CONFIG_USB_LED is not set
CONFIG_USB_CYPRESS_CY7C63=y
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_PHIDGET is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
#
# USB DSL modem support
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
# CONFIG_MMC is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_EDAC is not set
# CONFIG_RTC_CLASS is not set
#
# Userspace I/O
#
# CONFIG_UIO is not set
#
# File systems
#
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT2_FS_XIP=y
CONFIG_FS_XIP=y
# CONFIG_EXT3_FS is not set
# CONFIG_EXT4DEV_FS is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
CONFIG_FS_POSIX_ACL=y
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
CONFIG_INOTIFY=y
CONFIG_INOTIFY_USER=y
# CONFIG_QUOTA is not set
CONFIG_DNOTIFY=y
CONFIG_AUTOFS_FS=y
CONFIG_AUTOFS4_FS=y
# CONFIG_FUSE_FS is not set
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set
#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
CONFIG_NTFS_FS=y
CONFIG_NTFS_DEBUG=y
CONFIG_NTFS_RW=y
#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_SYSCTL=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not set
#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
CONFIG_NETWORK_FILESYSTEMS=y
# CONFIG_NFS_FS is not set
# CONFIG_NFSD is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
CONFIG_NLS_UTF8=y
# CONFIG_DLM is not set
#
# IBM 40x options
#
#
# Library routines
#
CONFIG_BITREVERSE=y
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
# CONFIG_CRC_ITU_T is not set
CONFIG_CRC32=y
# CONFIG_CRC7 is not set
# CONFIG_LIBCRC32C is not set
CONFIG_PLIST=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y
CONFIG_INSTRUMENTATION=y
# CONFIG_PROFILING is not set
# CONFIG_MARKERS is not set
#
# Kernel hacking
#
CONFIG_PRINTK_TIME=y
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_MAGIC_SYSRQ=y
# CONFIG_UNUSED_SYMBOLS is not set
# CONFIG_DEBUG_FS is not set
# CONFIG_HEADERS_CHECK is not set
CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not set
CONFIG_DETECT_SOFTLOCKUP=y
CONFIG_SCHED_DEBUG=y
# CONFIG_SCHEDSTATS is not set
# CONFIG_TIMER_STATS is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not set
# CONFIG_DEBUG_SPINLOCK is not set
CONFIG_DEBUG_MUTEXES=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_DEBUG_KOBJECT is not set
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_SG is not set
CONFIG_FORCED_INLINING=y
# CONFIG_BOOT_PRINTK_DELAY is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_SAMPLES is not set
# CONFIG_KGDB is not set
# CONFIG_XMON is not set
# CONFIG_BDI_SWITCH is not set
# CONFIG_SERIAL_TEXT_DEBUG is not set
#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not set
# CONFIG_SECURITY_FILE_CAPABILITIES is not set
# CONFIG_CRYPTO is not set
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Fwd: SecretLab 2.6.24 with USB
2008-04-23 17:47 ` Fwd: " Sam Karp
@ 2008-04-23 18:27 ` Peter Korsgaard
0 siblings, 0 replies; 14+ messages in thread
From: Peter Korsgaard @ 2008-04-23 18:27 UTC (permalink / raw)
To: Sam Karp; +Cc: linuxppc-embedded
>>>>> "Sam" == Sam Karp <sam.d.karp@gmail.com> writes:
Hi,
Sam> [ 77.688344] sd 0:0:0:0: [sda] 15584 512-byte hardware sectors (8 MB)
Sam> [ 77.770266] sd 0:0:0:0: [sda] Write Protect is off
Sam> [ 77.827242] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sam> [ 77.919287] sd 0:0:0:0: [sda] 15584 512-byte hardware sectors (8 MB)
Sam> [ 78.001280] sd 0:0:0:0: [sda] Write Protect is off
Sam> [ 78.058131] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sam> [ 78.131034] sda:<7>usb-storage: queuecommand called
Sam> [ 78.201342] sda1
Sam> [ 78.230344] sd 0:0:0:0: [sda] Attached SCSI removable disk
Sam> [ 78.298014] sd 0:0:0:0: Attached scsi generic sg0 type 0
Looks good.
Sam> ls /dev/sd*
Sam> ls: /dev/sd*: No such file or directory
Do you use mdev/udev? If not, you'll have to create the device nodes
yourself.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-23 15:12 ` Peter Korsgaard
2008-04-23 15:41 ` Henrik Larson
@ 2008-04-24 16:04 ` Aaron Sells
2008-04-24 18:25 ` Peter Korsgaard
1 sibling, 1 reply; 14+ messages in thread
From: Aaron Sells @ 2008-04-24 16:04 UTC (permalink / raw)
To: Peter Korsgaard, sam.d.karp; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 3294 bytes --]
Peter Korsgaard wrote:
> I don't see anything with platform devices for the c67x00 driver.
I added the relevant struct information. The patch is attached.
> 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).
I generate the xparameters_ml403.h file using Xilinx's EDK base system
builder wizard. However, the wizard does not automatically enable the
Cypress device to be interrupt driven. I have manually done this as
described in the attached patch.
The resulting xparameters_ml403.h has the following defines:
sellsa@SS-SBIR-Ubuntu:~/spacesuit/linux-2.6-xlnx$ cat
arch/ppc/platforms/4xx/xparameters/xparameters_ml403.h | grep USB
/* Definitions for peripheral CYPRESS_USB */
#define XPAR_CYPRESS_USB_PRH0_BASEADDR 0x80800000
#define XPAR_CYPRESS_USB_PRH0_HIGHADDR 0x8080FFFF
#define XPAR_SYSTEM_USB_INT_PIN_MASK 0X000001
#define XPAR_XPS_INTC_0_SYSTEM_USB_INT_PIN_INTR 0
When I boot the Xilinx ML403 board up, I get the following:
[ 9.256329] ------------[ cut here ]------------
[ 9.260000] Badness at drivers/usb/c67x00/c67x00-ll-hpi.c:244
[ 9.260000] NIP: c01b5d6c LR: c01b5d60 CTR: c00170f4
[ 9.260000] REGS: c3c19d70 TRAP: 0700 Not tainted
(2.6.24-rc8-xlnx-dirty)
[ 9.260000] MSR: 00029030 <EE,ME,IR,DR> CR: 24000082 XER: 20000073
[ 9.260000] TASK = c3c178a0[1] 'swapper' THREAD: c3c18000
[ 9.260000] GPR00: 00000001 c3c19e20 c3c178a0 00000000 c032f518
c0372730 27b38fa6 00000001
[ 9.260000] GPR08: 00000000 00200200 c3d2b164 c3d2b164 24000082
ffffcd64 c02d4c5c c02d4c6c
[ 9.260000] GPR16: c02d4c90 c02d4c98 c02d4ca8 c02d4cd4 c02d4ce8
00000000 c02d7114 c0370e78
[ 9.260000] GPR24: c0360000 c02d4c54 c0330724 00000000 c3d2b148
00000000 c3d2b140 c0330708
[ 9.260000] NIP [c01b5d6c] c67x00_ll_reset+0x48/0x88
[ 9.260000] LR [c01b5d60] c67x00_ll_reset+0x3c/0x88
[ 9.260000] Call Trace:
[ 9.260000] [c3c19e20] [c01b5d60] c67x00_ll_reset+0x3c/0x88 (unreliable)
[ 9.260000] [c3c19e40] [c02885e0] c67x00_drv_probe+0x16c/0x2d8
[ 9.260000] [c3c19e70] [c01694b0] platform_drv_probe+0x20/0x30
[ 9.260000] [c3c19e80] [c01674f8] driver_probe_device+0xec/0x194
[ 9.260000] [c3c19ea0] [c0167750] __driver_attach+0x88/0xf4
[ 9.260000] [c3c19ec0] [c0166648] bus_for_each_dev+0x58/0x98
[ 9.260000] [c3c19ef0] [c01672f4] driver_attach+0x24/0x34
[ 9.260000] [c3c19f00] [c016706c] bus_add_driver+0xb4/0x218
[ 9.260000] [c3c19f20] [c0167a64] driver_register+0x78/0x10c
[ 9.260000] [c3c19f40] [c016982c] platform_driver_register+0x9c/0xac
[ 9.260000] [c3c19f50] [c035fa44] c67x00_init+0x18/0x28
[ 9.260000] [c3c19f60] [c034e200] kernel_init+0xfc/0x294
[ 9.260000] [c3c19ff0] [c00047d8] kernel_thread+0x44/0x60
[ 9.260000] Instruction dump:
[ 9.260000] 90010024 480d56c5 38800000 7fa3eb78 6084fa50 4bfff2f5
387d0020 388004e2
[ 9.260000] 480d48d9 707dffff 7c000026 54001ffe <0f000000> 3c00ffff
7fbd00d0 60000005
[ 11.316192] c67x00 c67x00.0: Device reset failed
[ 11.364172] c67x00: probe of c67x00.0 failed with error 65531
Sam, since you have this working, any help would be greatly appreciated.
What else do I need to do in order to get USB host working on this board?
[-- Attachment #2: virtex_devices.c.patch --]
[-- Type: text/plain, Size: 1551 bytes --]
--- arch/ppc/syslib/virtex_devices.c.old 2008-04-24 11:37:03.000000000 -0400
+++ arch/ppc/syslib/virtex_devices.c 2008-04-24 11:10:09.000000000 -0400
@@ -18,6 +18,7 @@
#include <syslib/virtex_devices.h>
#include <platforms/4xx/xparameters/xparameters.h>
#include <linux/xilinx_devices.h>
+#include <linux/usb/c67x00.h>
#include <asm/io.h>
/*
@@ -320,6 +321,31 @@
}, \
}
+/*
+ * Cypress USB C67x00 shortcut macro for single instance
+ */
+#define XPAR_C67x00_USB(num) { \
+ .name = "c67x00", \
+ .id = num, \
+ .num_resources = 2, \
+ .resource = (struct resource[]) { \
+ { \
+ .start = XPAR_CYPRESS_USB_PRH0_BASEADDR, \
+ .end = XPAR_CYPRESS_USB_PRH0_BASEADDR + 0xf, \
+ .flags = IORESOURCE_MEM, \
+ }, \
+ { \
+ .start = XPAR_XPS_INTC_0_SYSTEM_USB_INT_PIN_INTR, \
+ .end = XPAR_XPS_INTC_0_SYSTEM_USB_INT_PIN_INTR, \
+ .flags = IORESOURCE_IRQ, \
+ }, \
+ }, \
+ .dev.platform_data = &(struct c67x00_platform_data) { \
+ .sie_config = C67X00_SIE1_HOST | C67X00_SIE2_PERIPHERAL, \
+ .hpi_regstep = 0x02, /* A0 not connected on 16bit bus */ \
+ }, \
+}
+
/* UART 8250 driver platform data table */
struct plat_serial8250_port virtex_serial_platform_data[] = {
#if defined(XPAR_UARTNS550_0_BASEADDR)
@@ -511,6 +537,13 @@
#if defined(XPAR_OPB_AC97_CONTROLLER_REF_1_BASEADDR)
XPAR_AC97_CONTROLLER_REFERENCE(1),
#endif
+
+#if defined(XPAR_CYPRESS_USB_PRH0_BASEADDR)
+ XPAR_C67x00_USB(0),
+#endif
+#if defined(XPAR_CYPRESS_USB_PRH1_BASEADDR)
+ XPAR_C67x00_USB(1),
+#endif
};
/* Early serial support functions */
[-- Attachment #3: XilinxEDKUSBInterrupts.patch --]
[-- Type: text/plain, Size: 1652 bytes --]
diff -Naur ml403project.old/data/system.ucf ml403project/data/system.ucf
--- ml403project.old/data/system.ucf 2008-04-24 11:29:30.000000000 -0400
+++ ml403project/data/system.ucf 2008-04-24 11:28:04.000000000 -0400
@@ -599,6 +599,10 @@
Net fpga_0_FLASH_Mem_CE_pin<0> SLEW = FAST;
Net fpga_0_FLASH_Mem_CE_pin<0> DRIVE = 8;
+###NET USB interrupt
+Net USB_INT_pin LOC=V5;
+Net USB_INT_pin IOSTANDARD = LVCMOS33;
+
#### New GMAC Coregen Derived Constraints
NET "*tx_gmii_mii_clk*" TNM_NET = "clk_phy_tx_clk0";
diff -Naur ml403project.old/system.mhs ml403project/system.mhs
--- ml403project.old/system.mhs 2008-04-24 11:29:08.000000000 -0400
+++ ml403project/system.mhs 2008-04-24 11:28:29.000000000 -0400
@@ -18,6 +18,7 @@
PARAMETER VERSION = 2.1.0
+ PORT USB_INT_pin = USB_INT, DIR = I
PORT fpga_0_RS232_Uart_RX_pin = fpga_0_RS232_Uart_RX, DIR = I
PORT fpga_0_RS232_Uart_TX_pin = fpga_0_RS232_Uart_TX, DIR = O
PORT fpga_0_LEDs_4Bit_GPIO_IO_pin = fpga_0_LEDs_4Bit_GPIO_IO, DIR = IO, VEC = [0:3]
@@ -421,6 +422,6 @@
PARAMETER C_HIGHADDR = 0x8180ffff
BUS_INTERFACE SPLB = plb
PORT Irq = EICC405EXTINPUTIRQ
- PORT Intr = RS232_Uart_Interrupt & LEDs_4Bit_IP2INTC_Irpt & LEDs_Positions_IP2INTC_Irpt & Push_Buttons_Position_IP2INTC_Irpt & IIC_EEPROM_IIC2INTC_Irpt & TriMode_MAC_GMII_TemacIntc0_Irpt & xps_timer_1_Interrupt & TriMode_MAC_GMII_fifo_IP2INTC_Irpt
+ PORT Intr = RS232_Uart_Interrupt & LEDs_4Bit_IP2INTC_Irpt & LEDs_Positions_IP2INTC_Irpt & Push_Buttons_Position_IP2INTC_Irpt & IIC_EEPROM_IIC2INTC_Irpt & TriMode_MAC_GMII_TemacIntc0_Irpt & xps_timer_1_Interrupt & TriMode_MAC_GMII_fifo_IP2INTC_Irpt & USB_INT
END
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: SecretLab 2.6.24 with USB
2008-04-24 16:04 ` Aaron Sells
@ 2008-04-24 18:25 ` Peter Korsgaard
0 siblings, 0 replies; 14+ messages in thread
From: Peter Korsgaard @ 2008-04-24 18:25 UTC (permalink / raw)
To: Aaron Sells; +Cc: sam.d.karp, linuxppc-embedded
>>>>> "Aaron" == Aaron Sells <aaron.sells@zin-tech.com> writes:
Hi,
Aaron> I generate the xparameters_ml403.h file using Xilinx's EDK base system
Aaron> builder wizard. However, the wizard does not automatically enable the
Aaron> Cypress device to be interrupt driven. I have manually done this as
Aaron> described in the attached patch.
Aaron> The resulting xparameters_ml403.h has the following defines:
Aaron> sellsa@SS-SBIR-Ubuntu:~/spacesuit/linux-2.6-xlnx$ cat
Aaron> arch/ppc/platforms/4xx/xparameters/xparameters_ml403.h | grep USB
Aaron> /* Definitions for peripheral CYPRESS_USB */
Aaron> #define XPAR_CYPRESS_USB_PRH0_BASEADDR 0x80800000
Aaron> #define XPAR_CYPRESS_USB_PRH0_HIGHADDR 0x8080FFFF
Aaron> #define XPAR_SYSTEM_USB_INT_PIN_MASK 0X000001
Aaron> #define XPAR_XPS_INTC_0_SYSTEM_USB_INT_PIN_INTR 0
Ok.
Aaron> When I boot the Xilinx ML403 board up, I get the following:
Aaron> [ 9.256329] ------------[ cut here ]------------
Aaron> [ 9.260000] Badness at drivers/usb/c67x00/c67x00-ll-hpi.c:244
Aaron> [ 9.260000] NIP: c01b5d6c LR: c01b5d60 CTR: c00170f4
Aaron> [ 9.260000] REGS: c3c19d70 TRAP: 0700 Not tainted
Aaron> (2.6.24-rc8-xlnx-dirty)
Aaron> [ 9.260000] MSR: 00029030 <EE,ME,IR,DR> CR: 24000082 XER: 20000073
Aaron> [ 9.260000] TASK = c3c178a0[1] 'swapper' THREAD: c3c18000
Aaron> [ 9.260000] GPR00: 00000001 c3c19e20 c3c178a0 00000000 c032f518
Aaron> c0372730 27b38fa6 00000001
Aaron> [ 9.260000] GPR08: 00000000 00200200 c3d2b164 c3d2b164 24000082
Aaron> ffffcd64 c02d4c5c c02d4c6c
Aaron> [ 9.260000] GPR16: c02d4c90 c02d4c98 c02d4ca8 c02d4cd4 c02d4ce8
Aaron> 00000000 c02d7114 c0370e78
Aaron> [ 9.260000] GPR24: c0360000 c02d4c54 c0330724 00000000 c3d2b148
Aaron> 00000000 c3d2b140 c0330708
Aaron> [ 9.260000] NIP [c01b5d6c] c67x00_ll_reset+0x48/0x88
Aaron> [ 9.260000] LR [c01b5d60] c67x00_ll_reset+0x3c/0x88
Aaron> [ 9.260000] Call Trace:
Aaron> [ 9.260000] [c3c19e20] [c01b5d60] c67x00_ll_reset+0x3c/0x88 (unreliable)
This is an interrupt timeout. It seems like the interrupt isn't
correctly connected.
Aaron> Sam, since you have this working, any help would be greatly
Aaron> appreciated. What else do I need to do in order to get USB host
Aaron> working on this board?
That should be about it.
Aaron> +/*
Aaron> + * Cypress USB C67x00 shortcut macro for single instance
Aaron> + */
Aaron> +#define XPAR_C67x00_USB(num) { \
Aaron> + .name = "c67x00", \
Aaron> + .id = num, \
Aaron> + .num_resources = 2, \
Aaron> + .resource = (struct resource[]) { \
Aaron> + { \
Aaron> + .start = XPAR_CYPRESS_USB_PRH0_BASEADDR, \
Aaron> + .end = XPAR_CYPRESS_USB_PRH0_BASEADDR + 0xf, \
Aaron> + .flags = IORESOURCE_MEM, \
Aaron> + }, \
Aaron> + { \
Aaron> + .start = XPAR_XPS_INTC_0_SYSTEM_USB_INT_PIN_INTR, \
Aaron> + .end = XPAR_XPS_INTC_0_SYSTEM_USB_INT_PIN_INTR, \
Aaron> + .flags = IORESOURCE_IRQ, \
Aaron> + }, \
Aaron> + }, \
I guess you need to add a few "num" to those defines to make it work
with multiple devices.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2008-04-24 18:25 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-15 2:27 SecretLab 2.6.24 with USB Sam Karp
2008-04-21 18:09 ` Grant Likely
2008-04-22 19:23 ` aaronsells
2008-04-22 20:09 ` Grant Likely
2008-04-22 20:46 ` Aaron Sells
2008-04-22 20:55 ` Grant Likely
2008-04-23 14:58 ` Aaron Sells
2008-04-23 15:12 ` Peter Korsgaard
2008-04-23 15:41 ` Henrik Larson
[not found] ` <800687fe0804231007l5fdf664fn1d94a1e40dd7fe74@mail.gmail.com>
2008-04-23 17:47 ` Fwd: " Sam Karp
2008-04-23 18:27 ` Peter Korsgaard
2008-04-24 16:04 ` Aaron Sells
2008-04-24 18:25 ` Peter Korsgaard
2008-04-23 6:43 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).