[uClinux-dev] USB Interface problem

Abhijith K S abhijithks at myw.ltindia.com
Tue Oct 18 05:26:43 EDT 2005


Hi, 
We are trying to integrate a Philips ISP1362 USB OTG controller to our custom target platform (MCF5270) running on uClinux 2.4.27-uc1. The ISP1362 is configured as a host controller. The host controller driver for the same has been integrated to the kernel. We are trying to connect and mount USB thumb drives. We have enabled support for USB, USB Mass Storage, SCSI, SCSI Disk, FAT (MSDOS and VFAT). 

We get the following errors under different conditions. Can anyone please help us out with this. 

1) On boot: 
This is the complete boot log. 
----------------------------------------------------------------- 
Linux version 2.4.27-uc1 (root at em006169) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 2005 

uClinux/COLDFIRE(m5270/5271/5274/5275) 
COLDFIRE port done by Greg Ungerer, gerg at snapgear.com 
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne 
On node 0 totalpages: 2048 
zone(0): 0 pages. 
zone(1): 2048 pages. 
zone(2): 0 pages. 
Kernel command line: 
Calibrating delay loop... 65.94 BogoMIPS 
Memory available: 6512k/8192k RAM, 0k/0k ROM (816k kernel code, 233k data) 
kmem_create: Forcing size word alignment - vm_area_struct 
kmem_create: Forcing size word alignment - mm_struct 
kmem_create: Forcing size word alignment - filp 
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes) 
Inode cache hash table entries: 512 (order: 0, 4096 bytes) 
kmem_create: Forcing size word alignment - inode_cache 
Mount cache hash table entries: 512 (order: 0, 4096 bytes) 
kmem_create: Forcing size word alignment - bdev_cache 
kmem_create: Forcing size word alignment - cdev_cache 
kmem_create: Forcing size word alignment - kiobuf 
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) 
Page-cache hash table entries: 2048 (order: 1, 8192 bytes) 
POSIX conformance testing by UNIFIX 
Linux NET4.0 for Linux 2.4 
Based upon Swansea University Computer Society NET3.039 
kmem_create: Forcing size word alignment - sock 
Initializing RT netlink socket 
Starting kswapd 
kmem_create: Forcing size word alignment - file_lock_cache 
devfs: v1.12c (20020818) Richard Gooch ( rgooch at atnf.csiro.au ) 
devfs: boot_options: 0x1 
i2c-core.o: i2c core module version 2.6.1 (20010830) 
i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830) 
Bad boy: PIT_DRIVER (at 0x0006a4b8) called request_irq without a dev_id! 
Bad boy: ALARM_DRIVER (at 0x0006af34) called request_irq without a dev_id! 
XR Serial driver version 1.0 (2004-11-08) with no serial options enabled 
ttyXR0 at 0xc0800000 (irq = 70) is a 16550A 
ttyXR1 at 0xc0400000 (irq = 69) is a 16550A 
ttyXR2 at 0xc0200000 (irq = 68) is a 16550A 
ttyXR3 at 0xc0100000 (irq = 67) is a 16550A 
Bad boy: KBD_DRIVER (at 0x0006f58c) called request_irq without a dev_id! 
ColdFire internal UART serial driver version 1.00 
tts/0 at 0x40000200 (irq = 77) is a builtin ColdFire UART 
tts/1 at 0x40000240 (irq = 78) is a builtin ColdFire UART 
tts/2 at 0x40000280 (irq = 79) is a builtin ColdFire UART 
kmem_create: Forcing size word alignment - blkdev_requests 
fec.c: Probe number 1 with 0x0000 
eth0: FEC ENET Version 0.2, 00:cf:52:71:cf:01 
FEC: No PHY device found. 
Blkmem copyright 1998,1999 D. Jeff Dionne 
Blkmem copyright 1998 Kenneth Albanowski 
Blkmem 1 disk images: 
0: 1267C4-189FC3 [VIRTUAL 1267C4-189FC3] (RO) 
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize 
loop: loaded (max 8 devices) 
SCSI subsystem driver Revision: 1.00 
request_module[scsi_hostadapter]: waitpid(256,...) failed, errno 1 
Bad boy: i2c-mcf (at 0x0008555c) called request_irq without a dev_id! 
usb.c: registered new driver usbdevfs 
usb.c: registered new driver hub 
usb_core_init 
IO Base fff00000 
Hal probe fail 2 
hal_pxa250.c: 1362-hal Iinitialization Failed (error = -19) 
usb_hal_init 
usb.c: new USB bus registered, assigned bus number 1 
usb_register_bus 
---- PMS25 HC configuration ---- 
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 
Product: USB PHCI Root Hub 
SerialNumber: 1b4c00 
hub.c: USB hub found 
hub.c: 2 ports detected 
-----PMS25 host initialized----- 
usb_phci.c: usb-phci Initialization Success 
usb_phci_init 
Initializing USB Mass Storage driver... 
usb.c: registered new driver usb-storage 
USB Mass Storage support registered. 
NET4: Linux TCP/IP 1.0 for NET4.0 
IP Protocols: ICMP, UDP, TCP 
kmem_create: Forcing size word alignment - ip_dst_cache 
IP: routing cache hash table of 512 buckets, 4Kbytes 
TCP: Hash tables configured (established 512 bind 512) 
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. 
FAT: bogus logical sector size 57264 
FAT: bogus logical sector size 57264 
VFS: Mounted root (romfs filesystem) readonly. 
Mounted devfs on /dev 
Freeing unused kernel memory: 32k freed (0x10a000 - 0x111000) 
Shell invoked to run file: /etc/rc 
Command: hostname uClinux 
Command: /bin/expand /ertce/rqamufse.ismgt /_demv/oradm1u 
lCaen'[t eopxent e2xp]an:de d wfialei /tdepv/iradm1( 
2pi5d 610,: .fa.il.ed) 7 68f 
/poimmlaned:d m,ou nte -rt rprnoco p ro1c 
k roc 
Cmomomadnd:: mofunat i-tl eextd2 /dtevo/r ame1 x/vearc 
/sbin/modprobe -s -k ext2, errno = 2 
mount failed: No such device 
Command: mkdir /var/tmp 
/var/tmp: Read-only file system 
Command: mkdir /var/log 
/var/log: Read-only file system 
Command: mkdir /var/run 
/var/run: Read-only file system 
Command: mkdir /var/lock 
/var/lock: Read-only file system 
Command: mkdir /var/empty 
/var/empty: Read-only file system 
Command: ifconfig lo 127.0.0.1 
Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo 
Command: dhcpcd -p -a eth0 & 
dhcpcd: Bad command or file name 
----------------------------------------------------------------- 
As you can see, during boot up, it says "FAT: bogus logical sector size 57264". 


2) On connecting a thumb drive: 

hub.c: new USB device 1362-hal-1, assigned address 4 
Manufacturer: Generic 
Product: Flash Disk 
SerialNumber: 200506180747 
scsi0 : SCSI emulation for USB Mass Storage devices 
blk: queue 001fbe18, I/O limit 4095Mb (mask 0xfffff000) 
Vendor: Generic Model: USB Flash Drive Rev: %z!Y 
Type: Direct-Access ANSI SCSI revision: 02 
blk: queue 00768018, I/O limit 4095Mb (mask 0xfffff000) 
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 
SCSI device sda: 1026144 512-byte hdwr sectors (525 MB) 
sda: Write Protect is off 
Partition check: 
/dev/scsi/host0/bus0/target0/lun0: unknown partition table 


3) On trying to mount the drive: 
Command: 
mount -t vfat /dev/scsi/host0/bus0/target0/lun0/disc /mnt 

Error msg: 
FAT: bogus logical sector size 35836 
VFS: Can't find a valid FAT filesystem on dev 08:00. 
mount failed: Invalid argument 
----------------------------------------------------------------- 

Thanks & Regards 
Abhijith 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20051018/adecf4d6/attachment.html>


More information about the uClinux-dev mailing list