raspberrypi / usbboot

Raspberry Pi USB booting code, moved from tools repository
Apache License 2.0
905 stars 229 forks source link

Any Android ports? #41

Closed DimaK-tracxpoint closed 2 years ago

DimaK-tracxpoint commented 5 years ago

Did anybody try to port this service to Android?

cleverca22 commented 4 years ago

a quick glance at https://developer.android.com/guide/topics/connectivity/usb/host implies that it is likely possible, and could be a simple task, for somebody familiar with the code

but once its in MSD mode, you may have difficulty trying to image the entire emmc, due to normal android security, you would need to either use noobs on a cm (eww) or have the android device rooted, enless the same usb api lets you hijack MSD devices, and access them directly...

cleverca22 commented 3 years ago

well, i solved this issue by accident, from the totally wrong direction https://github.com/librerpi/rpi-tools/tree/master/webusbboot this code uses webusb to flash an rpi4 (or cm4) over usb

i have successfully flashed my rpi4 eeprom from desktop chromium using this code and if i power the rpi4 from the gpio header, and use an OTG adapter cable, i can run the exact same JS on my phone, and shove msd/start4.elf over, putting it into MSD mode

timg236 commented 2 years ago

No plans for an official Android port so closing.