jadonk / rowboat

Automatically exported from code.google.com/p/rowboat
0 stars 0 forks source link

No write permission for all usb in /dev/bus/usb/xxx #120

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I ahve build Gingerbread (Android 2.3) for xm beagle board. I need write 
permission for all the usb port at the time of booting itself. For that i have 
added the statement 

mount -t usbfs none /proc/bus/usb/ -o devmode=0666

It works and usbfs is mounted in /proc/bus/usb/ with write permission. 

What is the expected output? What do you see instead?
 I need write permission in /dev/bus/usb/ also.

$ls -l /dev/bus/usb/001/

crw-rw-rw- root     usb      189,  10 1970-01-02 00:02 011                      
crw-rw-rw- root     usb      189,   9 1970-01-02 00:00 010                      
crw-rw-rw- root     usb      189,   7 1970-01-01 00:00 008                      
crw-rw-rw- root     usb      189,   5 1970-01-01 00:00 006                      
crw-rw-rw- root     usb      189,   3 1970-01-01 00:00 004                      
crw-rw-rw- root     usb      189,   2 1970-01-01 00:00 003                      
crw-rw-rw- root     usb      189,   1 1970-01-01 00:00 002                      
crw-rw-rw- root     usb      189,   0 1970-01-01 00:00 001                      
crw-rw-rw- root     usb      189,   4 1970-01-01 00:00 005  

but it is seen as,

crw-rw---- root     usb      189,  10 1970-01-02 00:02 011                      
crw-rw---- root     usb      189,   9 1970-01-02 00:00 010                      
crw-rw---- root     usb      189,   7 1970-01-01 00:00 008                      
crw-rw---- root     usb      189,   5 1970-01-01 00:00 006                      
crw-rw---- root     usb      189,   3 1970-01-01 00:00 004                      
crw-rw---- root     usb      189,   2 1970-01-01 00:00 003                      
crw-rw---- root     usb      189,   1 1970-01-01 00:00 002                      
crw-rw---- root     usb      189,   0 1970-01-01 00:00 001                      
crw-rw---- root     usb      189,   4 1970-01-01 00:00 005  

What version of the product are you using? On what operating system?

Gingerbread 2.3
Linux kernel 2.6.32
Ubuntu 10.04

Please provide any additional information below.

Original issue reported on code.google.com by unni.sre...@gmail.com on 28 Jul 2011 at 5:02

GoogleCodeExporter commented 9 years ago
You probably have to make entries in init.rc to obtain permissions in /dev.
See the existing entries in init.rc for reference

Original comment by vishvesh...@aim.com on 28 Jul 2011 at 5:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
How to give write permission to entire usb in that folder , also where to give 
it?

Original comment by unni.sre...@gmail.com on 28 Jul 2011 at 5:28