Open tux4us opened 5 years ago
I can't debug on my own OPO atm as it's stuck on the "The battery is too low" screen and my power button is broken. Could you please use adb shell
to get the contents of the following files:
cat /sys/devices/virtual/android_usb/android0/enable
cat /sys/devices/virtual/android_usb/android0/functions
cat /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file
EDIT: please try both unmounted and with iso mounted.
Unmounted:
cat /sys/devices/virtual/android_usb/android0/enable
1
cat /sys/devices/virtual/android_usb/android0/functions
mtp,adb
cat /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file
Permission denied
ISO mounted:
cat /sys/devices/virtual/android_usb/android0/enable
1
cat /sys/devices/virtual/android_usb/android0/functions
mass_storage
cat /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file
Permission denied
I tryed to boot 2 Lenovo ThinkPads with 2 OPOs with ISOdrive. Every try fails.
Bootmenu shows: Linux File-Stor Gadget
(it's different to:
cat /sys/devices/virtual/android_usb/android0/f_mass_storage/inquiry_string
Linux File-Stor Gadget0000
)
Boot another PC different to ThinkPad, it works well with both OPOs.
Bootmenu shows: Linux File-Stor Gadget0000
Another interesting thing, could you please show the directory contents of lun
using:
ls -lah /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/
phablet@ubuntu-phablet:~$ ls -lah /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/
total 0
drwxr-xr-x 3 root root 0 Okt 15 1970 .
drwxr-xr-x 4 root root 0 Okt 15 1970 ..
-rw-r--r-- 1 root root 4,0K Mai 7 13:37 cdrom
-rw-rw---- 1 system system 4,0K Mai 6 23:03 file
-rw-r--r-- 1 root root 4,0K Mai 7 13:37 nofua
drwxr-xr-x 2 root root 0 Okt 15 1970 power
-rw-r--r-- 1 root root 4,0K Mai 7 13:37 ro
-rw-r--r-- 1 root root 4,0K Okt 15 1970 uevent
Could you please try the following:
1) start with no mounted iso
2) echo 1 | sudo tee /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/cdrom
3) mount iso.
Done and failed when try to boot
OneplusOne UT 16.04 dev
I mount a ubuntu-18.04.2-desktop-amd.64.iso and try to boot with a ThinkPad T430. In bootmenue select
USB-CD:Linux File-Store Gadget
andENTER
, the screen is short flickering and then the bootmenue is back and so on. On Nexus5 it works fine.Log ISOdriveUT: