2010-05-04 07:08:23     USB detection in Cramfs

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2010-05-04 07:08:23     USB detection in Cramfs

Jayaprabhu Nadarajan (INDIA)

Message: 89110   

 

Hi,

 

We are using Renesas USB host controller for our custom bf527 HW. Whenever the USB is inserted the device node entry (dev/sda*) is not getting created when we use cramfs. I am getting the following logs when USB is inserted

 

.................

usb 1-2: new high speed USB device using r8a66597_hcd and address 3

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=0781, idProduct=5406

usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

usb 1-2: Product: U3 Cruzer Micro

usb 1-2: Manufacturer: SanDisk

usb 1-2: SerialNumber: 0876020EEB418AF1

usb 1-2: address 3, EndpointAddress 0x02 use DMA FIFO

usb 1-2: address 3, EndpointAddress 0x81 use DMA FIFO

scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer           7.01 PQ: 0 ANSI: 0 CCS

sd 0:0:0:0: [sda] 1957887 512-byte hardware sectors: (1.00 GB/955 MiB)

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] 1957887 512-byte hardware sectors: (1.00 GB/955 MiB)

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

scsi 0:0:0:1: CD-ROM            SanDisk  Cruzer           7.01 PQ: 0 ANSI: 0

.................

 

The same USB host controller works fine when we used ramfs. Is there anything specific that needs to be done for cramfs.

 

Regards,

Jp

QuoteReplyEditDelete

 

 

2010-05-04 09:37:59     Re: USB detection in Cramfs

Robin Getz (UNITED STATES)

Message: 89112   

 

JP:

 

I assume that you understand that CRAMFS stands for compressed _ROM_ file system? That ROM means READ ONLY MEMORY?

 

-Robin

QuoteReplyEditDelete

 

 

2010-05-04 13:40:47     Re: USB detection in Cramfs

Mike Frysinger (UNITED STATES)

Message: 89119   

 

this is why the default /etc/rc for ADI boards mounts /dev as ramfs.  like Robin says, cramfs is obviously RO, so you cant break /etc/rc without expecting problems.

Attachments

    Outcomes