[Android 6.0.1] How to setting or modify parameter for mount USB in host USB port?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Android 6.0.1] How to setting or modify parameter for mount USB in host USB port?

3,040 Views
charleshuang
Senior Contributor II

Hi NXP,

In demo board, NXP is setting usb OTG port for usb disk mount used.

In "device\fsl\sabresd_6dq\fstab_sd.freescale" file.  (nxp android 6.0.1 source code)

NXP is setting "usb/ci_hdrc.0*"  for OTG port.

----------------------------------------------------------------------------------------------------------------

/devices/soc0/soc.0/2100000.aips-bus/2194000.usdhc/mmc_host* auto auto defaults voldmanaged=sdcard:auto,encryptable=userdata

/devices/soc0/soc.0/2100000.aips-bus/2184000.usb/ci_hdrc.0*  auto auto defaults voldmanaged=usb:auto

----------------------------------------------------------------------------------------------------------------

Our board setting host usb for usb disk mount used.

How to setting or modify parameter for mount USB disk in host USB port?

Thanks

Clayder

Labels (2)
7 Replies

1,306 Views
jim_lin
NXP Employee
NXP Employee

The root cause if that if you need host1, you need change fstab.freescale to host1 then android vold can know this.

Change /devices/soc0/soc.0/2100000.aips-bus/2184000.usb/ci_hdrc.0* to

/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1*

1,306 Views
dennyzhou
Contributor II

Yes, The original configuration is just for usb0, I think.

0 Kudos

1,306 Views
charleshuang
Senior Contributor II

Hi Jim

I modify fstab.freescale.   (Please find and check attached files.)

---> Change /devices/soc0/soc.0/2100000.aips-bus/2184000.usb/ci_hdrc.0* to /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1*.

(1) The test_otg.log is log message when I plug usb disk in OTG port.

(2) The test_usb1.log is log message when I plug usb disk in USB port. (Boot fail)

(Please find and check attached files.)

0 Kudos

1,306 Views
jim_lin
NXP Employee
NXP Employee

Hello Clayder,

as we discussed in the morning, you need to test WITHOUT USB disk inserted to USB Host port first.

"can't boot to Android desktop with USB inserted" may be another issue, please focus on USB disk found on USB host port in Android first and provide related log.

by the way, please also include the following messages in the log:

1. "cd /devices/soc0"

2. "ls -R"

Jim.

0 Kudos

1,306 Views
charleshuang
Senior Contributor II

Hi Jim

I test without USB disk inserted to USB host port first when system boot up.

It's can boot to Android desktop.

Then I plug in USB disk, system show some message .

No devices soc0  --->  /devices/soc0

0 Kudos

1,306 Views
charleshuang
Senior Contributor II

Hi Jim

/sys/devices/soc0   <---- The path is correct.

root@rsb_4411_a1:/sys/devices/soc0 # ls -R

Please refer to the attachment.

0 Kudos

1,306 Views
jim_lin
NXP Employee
NXP Employee

Hello Clayder,

as we discussed off-line in the e-mail, since you have USB Hub connected to the USB Host port, the setting will be different from what AE provided.(the setting I post on 2016/8/1 下午 7:40)

you would need to customize that for your system, to adopt the change introduced by USB Hub.

Jim.

2016/8/1 下午 7:40

0 Kudos