fredldotme / ISODriveUT

Boot Linux distributions/ISO files on your PC using your Ubuntu Touch device
GNU General Public License v2.0
13 stars 4 forks source link

Don't work with OneplusOne boot ThinkPad #1

Open tux4us opened 5 years ago

tux4us commented 5 years ago

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 and ENTER , the screen is short flickering and then the bootmenue is back and so on. On Nexus5 it works fine.

Log ISOdriveUT:

Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
running "-S -p userpasswd cat /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file"
"userpasswd"
passwd requested
"Sorry, try again.\n"
"userpasswd"
passwd requested
"Sorry, try again.\n"
"userpasswd"
passwd requested
"sudo"
": "
"3 incorrect password attempts"
"\n"
Command stopped
"/sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file" = ""
library "/vendor/lib/egl/libGLESv2S3D_adreno.so" not found
[PERFORMANCE]: Last frame took 60 ms to render.
running "-S -p userpasswd id -u"
"userpasswd"
passwd requested
Command stopped
"/home/phablet/Downloads/ubuntu-18.04.2-desktop-amd64.iso" matches
QMap(("name", QVariant(QString, "ubuntu-18.04.2-desktop-amd64.iso"))("path", QVariant(QString, "/home/phablet/Downloads/ubuntu-18.04.2-desktop-amd64.iso")))
running "-S -p userpasswd cat /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file"
Command stopped
"/sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file" = ""
[PERFORMANCE]: Last frame took 47 ms to render.
running "-S -p userpasswd cat /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file"
Command stopped
"/sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file" = ""
qml: Selection: /home/phablet/Downloads/ubuntu-18.04.2-desktop-amd64.iso
running "-S -p userpasswd cat /sys/devices/virtual/android_usb/android0/enable"
Command stopped
"/sys/devices/virtual/android_usb/android0/enable" = "1\n"
running "-S -p userpasswd /bin/sh -c echo '0\n' | tee /sys/devices/virtual/android_usb/android0/enable"
Command stopped
running "-S -p userpasswd /bin/sh -c echo '/home/phablet/Downloads/ubuntu-18.04.2-desktop-amd64.iso' | tee /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file"
Command stopped
running "-S -p userpasswd cat /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file"
Command stopped
"/sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file" = "/home/phablet/Downloads/ubuntu-18.04.2-desktop-amd64.iso\n"
running "-S -p userpasswd cat /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file"
Command stopped
"/sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file" = "/home/phablet/Downloads/ubuntu-18.04.2-desktop-amd64.iso\n"
running "-S -p userpasswd cat /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file"
Command stopped
"/sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file" = "/home/phablet/Downloads/ubuntu-18.04.2-desktop-amd64.iso\n"
running "-S -p userpasswd /bin/sh -c echo 'mass_storage\n' | tee /sys/devices/virtual/android_usb/android0/functions"
Command stopped
running "-S -p userpasswd cat /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file"
Command stopped
"/sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file" = "/home/phablet/Downloads/ubuntu-18.04.2-desktop-amd64.iso\n"
running "-S -p userpasswd /bin/sh -c echo '1\n' | tee /sys/devices/virtual/android_usb/android0/enable"
Command stopped
"/home/phablet/Downloads/ubuntu-18.04.2-desktop-amd64.iso" matches
QMap(("name", QVariant(QString, "ubuntu-18.04.2-desktop-amd64.iso"))("path", QVariant(QString, "/home/phablet/Downloads/ubuntu-18.04.2-desktop-amd64.iso")))
QObject::startTimer: Timers cannot be started from another thread
fredldotme commented 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.

tux4us commented 5 years ago

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
tux4us commented 5 years ago

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

fredldotme commented 5 years ago

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/

tux4us commented 5 years ago
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
fredldotme commented 5 years ago

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.

tux4us commented 5 years ago

Done and failed when try to boot