Hallo Mr. Kongas,
Seems that your right something is wrong with sda1. My impression is a
missing connection to the mtd, but I am not shure. Attached is the complete
dmesg during boot-up. Much stuff I do not understand around ISP. In this
case the gadget-Device is already configured in and now I have files inside
/proc/bus/usb but only for the gadget device.

-----Ursprüngliche Nachricht-----
Von: Olav Kongas [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 22. Juli 2005 11:46
An: Fukumoto Akira
Betreff: Re: isp116x

Hi,

On Fri, 22 Jul 2005, Fukumoto Akira wrote:

> Dear Mr. Kongas,
> currently I try to test your driver in Linux 2.6.12 with your patch. I
could
> follow startup printks after I add your functions inside our platform.
First
> I use the option USE_NDELAY instead of your first recommendation because I
> do not known how to programm the mmu on our target-processor to create the

This is not a mmu but a memory controller configuration 
issue. But it does not matter for now.

> correct command delay. We are using MPC852T with 50 Mhz. Following reports
I
> could sample:
>  
> 116x: driver isp116x-hcd, 08 Apr 2005
> ISP116x probe
> -> I have put this printk() inside to make shure that it is loaded
> isp116x-hcd isp116x-hcd.0: ISP116x Host Controller
> isp116x-hcd isp116x-hcd.0: new USB bus registered, assigned bus number 1
> isp116x-hcd isp116x-hcd.0: irq 8, io base 0x04000002
> Initializing USB Mass Storage driver...
> usbcore: registered new driver usb-storage
> USB Mass Storage support registered.
> ->during boot sequence
>  
> no device-information in proc/bus/usb !!! Nobody calls usb_add_device()

Strange indeed. Below I see that your usbfs is mounted. So 
there may be a problem with the chip setup.

>  
> ISP116x Host Controller
> isp116x-hcd version 08 Apr 2005
> hc_irq_enable 0012 opr atl
> hc_irq_status 0001 sof
> hc_int_enable 80000058 MIE rhsc ue rd
> hc_int_status 00000024 fno sof
> periodic size= 32
> -> cat from /proc/driver/isp116x
>  
>            CPU0
>   5:          0   8xx SIU   Edge      CPM cascade
>   8:          2   8xx SIU   Edge      isp116x-hcd:usb1
>  15:          0   8xx SIU   Edge      tbint
>  16:          0   CPM       Edge      error
>  43:        324   CPM       Edge      cpm_uart
> BAD:          0
> -> cat from /proc/interrupt
>  
> rootfs / rootfs rw 0 0
> /dev/root / cramfs ro 0 0
> none /proc proc rw,nodiratime 0 0
> none /dev/pts devpts rw 0 0
> none /proc/bus/usb usbfs rw 0 0
> /dev/mtdblock2 /opt jffs2 rw,noatime 0 0
> -> cat from /proc/mounts
>  
> I want to mount an USB-stick / USB-mass-storage device. 
> After: 
> ~ # mount -t vfat /dev/sda1 /opt/mnt
> mount: Mounting /dev/sda1 on /opt/mnt failed: No such device or address

You have the correct sda1 device node in /dev, right?

> I have configured scsi - subsystem and VFAT / msdos - filesystem-support
> inside my kernel. What is necessary to get an USB-mass-storage-device
> mounted?

>From the info you provided it is not clear to me, whether 
the isp1161 is correctly set up. To see that, could you 
please send the driver output after enabling DEBUG and 
VERBOSE macros at the top of isp116x-hcd.c. Also, enabling 
USB Mass Storage verbose debug in kernel conf would be good.

When you send me the driver output with the abovementioned 
debug options enabled, could you please CC it also to either 
linux-arm-kernel or linux-usb-devel mailing list; whichever 
seems more proper for your particular problem.

Best,
Olav

## Booting image at ffc00000 ...
   Image Name:   Linux-2.6.12
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    790876 Bytes = 772.3 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Linux version 2.6.12 ([EMAIL PROTECTED]) (gcc version 3.3.4) #34 Thu Jul 21 
18:27:
01 CEST 2005
Built 1 zonelists
Kernel command line: console=ttyCPM0, 57600 root=/dev/mtdblock1 rootfstype=cramf
s ro
PID hash table entries: 128 (order: 7, 2048 bytes)
Decrementer Frequency = 187500000/60
m8xx_wdt: wdt disabled (SYPCR: 0xFFFFFF88)
Console: colour dummy device 80x25
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 14424k available (1224k kernel code, 464k data, 64k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
isp_resource added
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Serial: CPM driver $Revision: 0.01 $
ttyCPM0 at MMIO 0xff000a60 (irq = 43) is a CPM UART
io scheduler noop registered
loop: loaded (max 8 devices)
physmap flash device: 400000 at ffc00000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 5 MTD partitions on "phys_mapped_flash":
0x00000000-0x00100000 : "Kernel"
mtd: Giving out device 0 to Kernel
0x00100000-0x00200000 : "RootFS"
mtd: Giving out device 1 to RootFS
0x00200000-0x00300000 : "ApplFS1"
mtd: Giving out device 2 to ApplFS1
0x00300000-0x00330000 : "U-Boot"
mtd: Giving out device 3 to U-Boot
0x00330000-0x00400000 : "ApplFS2"
mtd: Giving out device 4 to ApplFS2
slram: not enough parameters.
usbmon: debugs is not available
116x: driver isp116x-hcd, 08 Apr 2005
ISP116x probe
isp116x-hcd isp116x-hcd.0: ISP116x Host Controller
isp116x-hcd isp116x-hcd.0: new USB bus registered, assigned bus number 1
isp116x-hcd isp116x-hcd.0: irq 8, io base 0x04000002
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
dummy_hcd hc.0: USB Host+Gadget Emulator, driver 17 Dec 2004
dummy_hcd hc.0: Dummy host controller
dummy_hcd hc.0: new USB bus registered, assigned bus number 2
usb usb2: Product: Dummy host controller
usb usb2: Manufacturer: Linux 2.6.12 dummy_hcd
usb usb2: SerialNumber: hc.0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usb0: Ethernet Gadget, version: Equinox 2004
usb0: using dummy_udc, OUT ep-b IN ep-a STATUS ep-c
usb0: MAC 22:6d:ad:63:ae:6b
usb0: HOST MAC be:b7:91:4e:c8:b4
usb0: RNDIS ready
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 64k init
init started:  BusyBox v1.00 (2005.05.25-11:57+0000) multi-call binary
usb 2-1: new high speed USB device using dummy_hcd and address 2
usb 2-1: Product: RNDIS/Ethernet Gadget
usb 2-1: Manufacturer: Linux 2.6.12/dummy_udc
usb 2-1: configuration #1 chosen from 2 choices
usb0: high speed config #1: 100 mA, Ethernet Gadget, using CDC Ethernet
hub 2-0:1.0: 92mA over power budget!
mount: Mounting none on /var failed: Invalid argument
chmod: /var: Read-only file system
mount: Mounting none on /tmp failed: Invalid argument
ifconfig: socket: Address family not supported by protocol
mount: Mounting none on /tmp failed: Invalid argument
Eep. Child "loadschutz" (ino #15) of dir ino #1 doesn't exist!


BusyBox v1.00 (2005.05.25-11:57+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
~ # dmesg
Linux version 2.6.12 ([EMAIL PROTECTED]) (gcc version 3.3.4) #34 Thu Jul 21 
18:27:
01 CEST 2005
On node 0 totalpages: 4096
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 0 pages, LIFO batch:1
  HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: console=ttyCPM0, 57600 root=/dev/mtdblock1 rootfstype=cramf
s ro
PID hash table entries: 128 (order: 7, 2048 bytes)
Decrementer Frequency = 187500000/60
m8xx_wdt: wdt disabled (SYPCR: 0xFFFFFF88)
Console: colour dummy device 80x25
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 14424k available (1224k kernel code, 464k data, 64k init, 0k highmem)
Calibrating delay loop... 48.51 BogoMIPS (lpj=24256)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
isp_resource added
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Serial: CPM driver $Revision: 0.01 $
ttyCPM0 at MMIO 0xff000a60 (irq = 43) is a CPM UART
io scheduler noop registered
loop: loaded (max 8 devices)
physmap flash device: 400000 at ffc00000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 5 MTD partitions on "phys_mapped_flash":
0x00000000-0x00100000 : "Kernel"
mtd: Giving out device 0 to Kernel
0x00100000-0x00200000 : "RootFS"
mtd: Giving out device 1 to RootFS
0x00200000-0x00300000 : "ApplFS1"
mtd: Giving out device 2 to ApplFS1
0x00300000-0x00330000 : "U-Boot"
mtd: Giving out device 3 to U-Boot
0x00330000-0x00400000 : "ApplFS2"
mtd: Giving out device 4 to ApplFS2
slram: not enough parameters.
usbmon: debugs is not available
116x: driver isp116x-hcd, 08 Apr 2005
ISP116x probe
isp116x-hcd isp116x-hcd.0: ISP116x Host Controller
isp116x-hcd isp116x-hcd.0: new USB bus registered, assigned bus number 1
isp116x-hcd isp116x-hcd.0: irq 8, io base 0x04000002
116x: HCREVISION  [00]: 00000010
116x: HCCONTROL   [01]: 00000480
116x: HCCMDSTAT   [02]: 00000000
116x: HCINTSTAT   [03]: 00000040
116x: HCINTENB    [04]: 80000058
116x: HCFMINTVL   [0d]: 27782edf
116x: HCFMREM     [0e]: 000013f3
116x: HCFMNUM     [0f]: 00000001
116x: HCLSTHRESH  [11]: 00000628
116x: HCRHDESCA   [12]: 19000201
116x: HCRHDESCB   [13]: 00060000
116x: HCRHSTATUS  [14]: 00008000
116x: HCRHPORT1   [15]: 00000100
116x: HCRHPORT2   [16]: 00000100
116x: HCHWCFG     [20]:     180b
116x: HCDMACFG    [21]:     0000
116x: HCXFERCTR   [22]:     0000
116x: HCuPINT     [24]:     0011
116x: HCuPINTENB  [25]:     0012
116x: HCCHIPID    [27]:     6123
116x: HCSCRATCH   [28]:     0000
116x: HCITLBUFLEN [2a]:     0000
116x: HCATLBUFLEN [2b]:     1000
116x: HCBUFSTAT   [2c]:     0000
116x: HCRDITL0LEN [2d]:     0000
116x: HCRDITL1LEN [2e]:     0000
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
dummy_hcd hc.0: USB Host+Gadget Emulator, driver 17 Dec 2004
dummy_hcd hc.0: Dummy host controller
dummy_hcd hc.0: new USB bus registered, assigned bus number 2
usb usb2: default language 0x0409
usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: Dummy host controller
usb usb2: Manufacturer: Linux 2.6.12 dummy_hcd
usb usb2: SerialNumber: hc.0
usb usb2: hotplug
usb usb2: adding 2-0:1.0 (config #1, interface 0)
usb 2-0:1.0: hotplug
hub 2-0:1.0: usb_probe_interface
hub 2-0:1.0: usb_probe_interface - got id
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
hub 2-0:1.0: standalone hub
hub 2-0:1.0: individual port power switching
hub 2-0:1.0: global over-current protection
hub 2-0:1.0: Single TT
hub 2-0:1.0: TT requires at most 8 FS bit times
hub 2-0:1.0: power on to power good time: 0ms
hub 2-0:1.0: local power source is good
hub 2-0:1.0: no over-current condition exists
hub 2-0:1.0: enabling power on all ports
dummy_hcd hc.0: binding gadget driver 'ether'
usb0: Ethernet Gadget, version: Equinox 2004
usb0: using dummy_udc, OUT ep-b IN ep-a STATUS ep-c
usb0: MAC 22:6d:ad:63:ae:6b
usb0: HOST MAC be:b7:91:4e:c8:b4
usb0: RNDIS ready
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 64k init
dummy_hcd hc.0: port status 0x00010101 has changes
hub 2-0:1.0: state 5 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 2-1: new high speed USB device using dummy_hcd and address 2
dummy_hcd hc.0: disconnect
dummy_hcd hc.0: set_address = 2
usb 2-1: skipped 4 descriptors after interface
usb 2-1: skipped 3 descriptors after interface
usb 2-1: default language 0x0409
usb 2-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: RNDIS/Ethernet Gadget
usb 2-1: Manufacturer: Linux 2.6.12/dummy_udc
usb 2-1: hotplug
usb 2-1: configuration #1 chosen from 2 choices
dummy_hcd hc.0: enabled ep-c (ep3in-intr) maxpacket 16
usb0: high speed config #1: 100 mA, Ethernet Gadget, using CDC Ethernet
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: hotplug
usb 2-1: adding 2-1:1.1 (config #1, interface 1)
usb 2-1:1.1: hotplug
hub 2-0:1.0: 92mA over power budget!

Reply via email to