2010-07-15 02:30:32 ISP1362 with BF532 issues
Usama Shakeel (PAKISTAN)
Message: 91268
Hello,
I am curently working on IP08 board made by Rowetel and it has BF532 and ISP1362 controller for USB. The Problem I am facing is that I am able to use normal USB Mass storage devices they are detected by the system (uClinux 2009 dist). But when I try to attach MP3 Player or Nokia Phone it does not even show symptoms of being attached to usb port. Although I have compiled ISP1362-HCD and enabled the cdc-acm support as well. Kindly guide me whether it is feasible or not, If yes then where the problem is.. For Reference I am Pasting the Boot Message of uClinux...
Kindly Explain ...
## Booting image at 01000000 ...
Image Name: Linux Kernel and ext2
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 3975513 Bytes = 3.8 MB
Load Address: 00001000
Entry Point: 00248c9c
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 248c9c
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 53320k/65536k RAM, (128k init code, 1565k kernel code, 735k d)
Calibrating delay loop... 778.24 BogoMIPS (lpj=1556480)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (35 KB free)
net_namespace: 424 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ip0x_init(): chip_id=527A50CB,dspid=E5040005
ip0x_init(): registering device resources
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
yaffs Jul 13 2010 13:09:14 Installing.
msgmni has been set to 104
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-jtag-comm: initialized
bfin-dma: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART
brd: module loaded
dm9000 Ethernet Driver, V1.31
eth0: dm9000a at 20100000,20100002 IRQ 48 MAC: 00:19:d1:1f:ff:66 (platform data)
eth1: dm9000a at 20200000,20200002 IRQ 47 MAC: 00:14:bf:6e:20:b6 (platform data)
usbcore: registered new interface driver catc
catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
usbcore: registered new interface driver kaweth
pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
usbcore: registered new interface driver rtl8150
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
uclinux[mtd]: RAM probe address=0x3700000 size=0x800000
Creating 1 MTD partitions on "RAM":
0x00000000-0x00800000 : "ROMfs"
Generic platform RAM MTD, (c) 2004 Simtec Electronics
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-b)
Scanning device for bad blocks
Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00800000 : "linux kernel"
0x00800000-0x10000000 : "file system"
aoe: AoE v47 initialised.
driver isp1362-hcd, 2005-04-04
isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller
isp1362-hcd isp1362-hcd.0: new USB bus registered, assigned bus number 1
isp1362-hcd isp1362-hcd.0: irq 44, io mem 0x20300000
isp1362_hc_start:
isp1362-hcd isp1362-hcd.0: ISP1362 Memory usage:
isp1362-hcd isp1362-hcd.0: ISTL: 2 * 256: 512 @ $0000:$0100
isp1362-hcd isp1362-hcd.0: INTL: 16 * ( 64+8): 1152 @ $0200
isp1362-hcd isp1362-hcd.0: ATL : 32 * ( 64+8): 2304 @ $0680
isp1362-hcd isp1362-hcd.0: USED/FREE: 3968 128
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: ISP1362 Host Controller
usb usb1: Manufacturer: Linux 2.6.28.10-ADI-2009R1.1 isp1362-hcd
usb usb1: SerialNumber: isp1362-hcd.0
ISP1362 Host Controller, irq 44
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adaptes
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ati_remote
ati_remote: 2.2.1:ATI/X10 RF USB Remote Control
usbcore: registered new interface driver ati_remote2
ati_remote2: ATI/Philips USB RF remote driver 0.3
usbcore: registered new interface driver keyspan_remote
usbcore: registered new interface driver yealink
yealink: yld-20051230:Yealink phone driver
cm109: Keymap for Komunikate KIP1000 phone loaded
usbcore: registered new interface driver cm109
cm109: CM109 phone driver: 20080805 (C) Alfred E. Heggestad
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Linux telephony interface: v1.00
IPVS: Registered protocols ()
IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
IPVS: ipvs loaded.
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 35
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
Partially written block 748 detected
Partially written block 748 detected
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing unused kernel memory: 128k freed
dma_alloc_init: dma_page @ 0x0025c000 - 256 pages at 0x03f00000
eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
/proc/sys/vm/pagecache_ratio: cannot create
modprobe: cannot parse modules.dep
Failed to open /dev/zap/ctl: No such device or address
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'
1 error(s) detected
Welcome to:
____ _ _
/ __| ||_| _ _
_ _| | | | _ ____ _ _ \ \/ /
| | | | | | || | _ \| | | | \ /
| |_| | |__| || | | | | |_| | / \
| ___\____|_||_|_| |_|\____|/_/\_\
|_| IP04/IP08 Open Hardware IP-PBX
Blackfin Asterisk Build System (BAPS) Edition
For further information see:
www.rowetel.com/ucasterisk/ip04.html
www.rowetel.com/ucasterisk/baps.html
Thanks to the BAPS, Astfin, BlackfinOne, and Asterisk communities;
Analog Devices and Atcom.
BusyBox v1.4.1 (2008-10-31 16:21:50 PKT) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
==>> yaffs bug: fs/yaffs2/yaffs_guts.c 6832
==>> yaffs bug: fs/yaffs2/yaffs_guts.c 6759
==>> yaffs bug: fs/yaffs2/yaffs_guts.c 6759
root:~> ==>> yaffs bug: fs/yaffs2/yaffs_guts.c 6832
==>> yaffs bug: fs/yaffs2/yaffs_guts.c 6759
==>> yaffs bug: fs/yaffs2/yaffs_guts.c 6759
QuoteReplyEditDelete
2010-07-15 02:43:32 Re: ISP1362 with BF532 issues
Wolfgang Muees (GERMANY)
Message: 91269
Check your hotplug scripts. I suppose they only contain support for usb mass storage devices.
Hotplug systems for embedded devices are often a stripped-down implementation.
regards
Wolfgang
TranslateQuoteReplyEditDelete
2010-07-15 03:18:46 Re: ISP1362 with BF532 issues
Usama Shakeel (PAKISTAN)
Message: 91282
Thanx Wolfgang,
Actually I am new to uClinux so if you could elaborate how can I check that and if it is not there how can I add it....
Regards
Usama
QuoteReplyEditDelete
2010-07-15 03:53:47 Re: ISP1362 with BF532 issues
Usama Shakeel (PAKISTAN)
Message: 91285
Actually what I have observed is that USB MASS storage devices are detected so I thing Hotplug is playing its role.. Is it Hotplug that communicate with USB of different classes or it is Host Controller.. ISP1362-HCD has nothing to do with it ... And one more thing OTG is not supported in 2009 Dist so is there a link with that..
Kindly Clarify..
Regards
Usama Bin Shakeel
QuoteReplyEditDelete
2010-07-15 09:46:06 Re: ISP1362 with BF532 issues
Mike Frysinger (UNITED STATES)
Message: 91306
how exactly are you referring to ? you need to clarify what you mean by "not detected".
QuoteReplyEditDelete
2010-07-16 00:37:45 Re: ISP1362 with BF532 issues
Usama Shakeel (PAKISTAN)
Message: 91324
Thanx Mike for your concern...
When I attach USB drive used for storage it is detected by uClinux
i.e. it prints a message saying
usb 1-2: new full speed USB device using isp1362-hcd and address 2
usb 1-2: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb 1-2: New USB device found, idVendor=0951, idProduct=160b
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: DataTraveler2.0
usb 1-2: Manufacturer: Kingston
usb 1-2: SerialNumber: 0802101904166
uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>unco2
sd 0:0:0:0: [sda] 7806847 512-byte hardware sectors: (3.99 GB/3.72 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 7806847 512-byte hardware sectors: (3.99 GB/3.72 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
and at this point
root:/proc/bus/usb> cat devices
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.28.10-ADI-2009R1.1 isp1362-hcd
S: Product=ISP1362 Host Controller
S: SerialNumber=isp1362-hcd.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0951 ProdID=160b Rev= 1.00
S: Manufacturer=Kingston
S: Product=DataTraveler2.0
S: SerialNumber=0802101904166
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
but when I attach any MP3 Player or Phone it is not detected i.e. there is no such message and there is not entry in /proc/bus/usb/devices other than of hub, Kindly help me on that... Where the problem is as I have selected ISP1362-HCD driver and CDC-ACM while compiling Image..
Regards
Usama Bin Shakeel
Waiting for Reply
QuoteReplyEditDelete
2010-07-16 11:34:52 Re: ISP1362 with BF532 issues
Mike Frysinger (UNITED STATES)
Message: 91352
userspace (i.e. hotplug) has no bearing whatsoever on what the kernel detects. if it isnt showing up in the /proc/ bus tree, then you need to look at the hardware and/or driver.
QuoteReplyEditDelete
2010-07-19 00:31:43 Re: ISP1362 with BF532 issues
Usama Shakeel (PAKISTAN)
Message: 91419
Thanx Mike..
Do you think that it is hardware problem even when it detects normal Mass storage USB devices.. In the other case what alteration has to be put in driver to enable Phone and MP3 devices. Is it related with OTG stuff or not..?
Waitning for your Reply.
Regards
Usama Bin Shakeel