Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flashing via fastboot (PoC) #15

Open
1 of 2 tasks
icedream opened this issue Jun 10, 2022 · 2 comments
Open
1 of 2 tasks

Flashing via fastboot (PoC) #15

icedream opened this issue Jun 10, 2022 · 2 comments

Comments

@icedream
Copy link
Owner

icedream commented Jun 10, 2022

  • Test fastboot with Prime 4
  • Set up script for using fastboot (ADK?)
@dzelionis
Copy link

dzelionis commented Oct 23, 2022

Flashing unpacked root file system via fastboot

  1. reboot the device into firmware update mode
  2. check if you fastboot can see it:
    sudo fastboot devices (on Linux)
    fastboot devices (on Windows)
  3. In case you can not see the device, check if you running the latest adb/fastboot sdk toolkit, in case you using Windows you need manually install fastboot driver for the device which is detected as Prime4 in your device manager. (optional)
  4. temporary unlock oem on the device to allow flashing:
    sudo fastboot oem inmusic-unlock-magic-7de5fbc22b8c524e
  5. flash unpacked root files system on the device (make sure you have it unmounted first)
    sudo fastboot flash rootfs <path to rootfs_filesystem.img>
  6. reboot device:
    sudo fastboot reboot

image

shell script example to automate it:

#!/bin/bash
sudo umount /denon/ssh_rootfs
sudo fastboot oem inmusic-unlock-magic-7de5fbc22b8c524e
sudo fastboot flash rootfs /denon/rootfs_PRIME4-2.3.2-ssh-Update.fs.img
sudo fastboot reboot
sudo mount /denon/rootfs_PRIME4-2.3.2-ssh-Update.fs.img /denon/ssh_rootfs

@icedream
Copy link
Owner Author

icedream commented May 30, 2023

I have no idea why on initial attempts this never worked for me, but on my current setup I easily got it working as described. I will document it in the readme and maybe leave another script file for it, though I would love to move away from those at some point... hm...

Would be interesting to see how the original updater tool triggers the progress screen and compressed transfer, it seems to be MPC-specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants