Dear all,

I'm trying to use my USB mass storage (8GB USB memory stick) on
Android.
But I can not enable it. Obviously USB power is not turned on.
(My USB memory stick has power indicating LED)

I'm very wondering why USB power is not turned on!!

I've tried almost everything I can, but I failed. Please give me any
idea what I should do.
Here is my booting log. I'm using 8GB USB stick.
I hope I can get any ideas here.

The messages below are that I ran after kernel is booted up.
==============================================
/proc # cat
interrupts
 
CPU0
  3:         42          SC
ohci_hcd:usb1
 17:          2          SC
LCD
 22:        134          SC
FFUART
 23:         11          SC  pxa2xx-
mci
 25:          0          SC
DMA
 26:       3341          SC
ost0
192:          0        FPGA  MMC card
detect
Err:
0
================================
/proc # cat
partitions
major minor  #blocks
name

  31     0        256
mtdblock0
  31     1       4096
mtdblock1
  31     2      28416
mtdblock2
   8     0       8192 sda                   <<== This sda is alway
shown up regardless whether USB memory stick is plugged in or not.
================================
/proc/scsi # cat
scsi
Attached
devices:
Host: scsi0 Channel: 00 Id: 00 Lun:
00
  Vendor: Linux    Model: scsi_debug       Rev:
0004
  Type:   Direct-Access                    ANSI  SCSI revision:
05
================================
If I insert my USB memory stick into the working Android target board,
I can see this message.
'scsi 0:0:0:0: Direct-Access FM Memorette Swing 1.00 PQ: 0 ANSI: 2'
============================================

/proc # cat
devices
Character
devices:
  1
mem
  2
pty
  3
ttyp
  4 /dev/vc/
0
  4
tty
  4
ttyS
  5 /dev/
tty
  5 /dev/
console
  5 /dev/
ptmx
  7
vcs
 10
misc
 13
input
 21
sg
 29
fb
 90
mtd
128
ptm
136
pts
180
usb
189
usb_device
253
usb_endpoint
254
bsg

Block
devices:
  7
loop
  8
sd
 31
mtdblock
 65
sd
 66
sd
 67
sd
 68
sd
 69
sd
 70
sd
 71
sd
128
sd
129
sd
130
sd
131
sd
132
sd
133
sd
134
sd
135
sd
179 mmc
==================
========================================================
Uncompressing
Linux.............................................................
Linux version 2.6.25 (r...@ubuntu) (gcc version 4.3.2 (Sourcery G++
Lite 2008q39
CPU: XScale-PXA270 [69054117] revision 7 (ARMv5TE), cr=0000397f
Machine: Intel HCDDBBVA0 Development Platform (akaMainstone)
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cachewriteback
Run Mode clock: 104.00MHz(*8)
Turbo Mode clock: 416.00MHz (*4.0,active)
Memory clock: 104.00MHz (/1)
System bus clock:52.00MHz
CPU0: D VIVT undefined 5cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
16256
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 init=/
init console=ttyS0,38400 mem=64M PID hash table entries: 256 (order:
8, 1024bytes)
Console: colour dummy device80x30
Dentry cache hash table entries: 8192 (order: 3, 32768bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384bytes)
Memory: 64MB = 64MB total
Memory: 61184KB available (3172K code, 452K data, 100Kinit)
Mount-cache hash table entries:512
CPU: Testing write buffer coherency:ok
net_namespace: 152bytes
NET: Registered protocol family16
Mainstone configured to boot from processor- flash SCSI subsystem
initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driverusb
NET: Registered protocol family2
IP route cache hash table entries: 1024 (order: 0, 4096bytes)
TCP established hash table entries: 2048 (order: 2, 16384bytes)
TCP bind hash table entries: 2048 (order: 1, 8192bytes)
TCP: Hash tables configured (established 2048 bind2048)
TCP renoregistered
NetWinder Floating Point Emulator V0.97 (doubleprecision)
ashmem:initialized
JFFS2 version 2.2. (NAND)    2001-2006 Red Hat, Inc.yaffs Feb 18 2009
15:48:48
Installing.Block layer SCSI generic (bsg) driver version 0.4 loaded
(major254)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered(default)
Console: switching to colour frame buffer device 30x40
pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 22) is a FFUART console
[ttyS0] enabled
pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 21) is a BTUART
pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 20) is a STUART
loop: module loaded
Invalid chip endian 0x087f68
pxa_free_dma: trying to free channel 0 which is already freed
pxa_free_dma: trying to free channel 0 which is already freed
smc911x: not found (-19).
dm9000 Ethernet Driver,V1.30
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override with
idebus=xx osst :I: Tape driver with OnStream support version
0.99.4
osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $ Driver
'osst' needs updating - please use bus_type methods Driver 'sd' needs
updating - please use bus_type methods scsi0 : scsi_debug, version
1.81 [20070104], dev_size_mb=8, opts=0x0
scsi 0:0:0:0: Direct-Access     Linux    scsi_debug       0004 PQ: 0
ANSI: 5
Probing processor-flash at physical address 0x00000000 (32-bit
bankwidth)
processor-flash: Found 2 x16 devices at 0x0 in 32-bit bank  Intel/
Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
RedBoot partition parsing not available
Creating 3 MTD partitions on "processor-flash":
0x00000000-0x00040000 : "Bootloader"
mtd: Giving out device 0 to Bootloader
sd 0:0:0:0: [sda] 16384 512-byte hardware sectors (8MB)
sd 0:0:0:0: [sda] Write Protect is off
0x00040000-0x00440000 : "Kernel"
mtd: Giving out device 1 to Kernel
0x00440000-0x02000000 : "Filesystem"
mtd: Giving out device 2 to Filesystem
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports
DPO and FA Probing mainboard-flash at physical address 0x04000000 (32-
bit bankwidth)
pxa2xx-flash: probe of pxa2xx-flash.1 failed with error -5
sd 0:0:0:0: [sda] 16384 512-byte hardware sectors (8MB)
block2mtd: version $Revision: 1.30 $
sd 0:0:0:0: [sda] Write Protect is off
pxa27x-ohci pxa27x-ohci: new USB bus registered, assigned bus number 1
pxa27x-ohci pxa27x-ohci: irq 3, io mem 0x4c000000
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports
DPO and FA  sda: unknown partition table
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0 usb usb1: configuration
#1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 3
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: PXA27x OHCI
usb usb1: Manufacturer: Linux 2.6.25 ohci_hcd
usb usb1: SerialNumber: pxa27x
drivers/usb/host/r8a66597-hcd.c: driver r8a66597_hcd, 29 May 2007
Initializing USB Mass Storage driver...
usb 1-1: new full speed USB device using pxa27x-ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1: New USB device found, idVendor=058f, idProduct=9254
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb
1-1: Product: Generic USB Hub usb 1-1: Manufacturer:
ALCOR
usbcore: registered new interface driver usb-storage  #question??: why
my log does not print out 'scsi0 : SCSI emulation for USB
USB Mass Storage support registered.                    # mass Storage
devices' ? I saw this message when the target board can use
mice: PS/2 mouse device common for all mice         # USB memory stick
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver logger:
created 64K log 'log_main'
logger: created 64K log 'log_events'
logger: created 64K log 'log_radio'
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
XScale iWMMXt coprocessor detected.
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 100K

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




--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to