Skip to content

Instantly share code, notes, and snippets.

@hyphop
Created November 2, 2019 03:38
Show Gist options
  • Save hyphop/ae516e97ea76c034d362b0f34ff9d06b to your computer and use it in GitHub Desktop.
Save hyphop/ae516e97ea76c034d362b0f34ff9d06b to your computer and use it in GitHub Desktop.
README-rescue-usb-otg.md

Krescue - usb otg mode

  • usb disk export internal storages from device to host
  • usb network device <=> host (dhcp autoconfig)

ABOUT: simple way get easy acces to VIMs internal device storages NOTE: this method is univerlas for any host os ( windows|mac|linux|... ) INFO: https://github.com/hyphop/khadas-rescue/docs

Host machine

master@peace:~$ lsscsi | grep Krescue # linux show exported storages
[4:0:0:0]    disk    Krescue. MMC                    /dev/sdd 
[4:0:0:1]    disk    Krescue. SD                     /dev/sde 
[4:0:0:2]    disk    Krescue. RAM                    /dev/sdf 

NOTE: MMC - is internal emmc storage | SD - sd card | RAM - info ram device

Dump internal device storage image example on host machine (LINUX EXAMPLE)

sudo dd if=/dev/sdd bs=1M of=dump.img             # raw
sudo dd if=/dev/sdd bs=1M | gzip -c > dump.img.gz # gziped

Write image from host machine to internal device storage (LINUX EXAMPLE)

sudo dd if=dump.img bs=1M of=/dev/sdd             # raw
gzip -dc dump.img.gz | sudo dd bs=1M of=/dev/sdd  # gziped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment