Krescue - Khadas Rescue system

i try to do universal rescue system for khadas vims boards
this system not only for rescue, we can do many other things too

read more info there https://github.com/hyphop/khadas-rescue
downloads: https://github.com/hyphop/khadas-rescue/releases

NOTE: its sill in test mode, because on active development stage

PLANS:

  1. dub extra uboot commands to linux user space
  2. write simple command utils for common system issues
  3. user friendly web interface
  4. universal image for all khadas vims boards

PS: welcome for test

6 Likes

test version for VIM2 + spi flash - https://github.com/hyphop/khadas-rescue/releases/tag/vim2-multi

NOTE: spi flash linux support
NOTE: linux kernel mainline RC
NOTE: wifi broken
NOTE: usb otg broken
NOTE: uboot legacy from spi OK
NOTE: uboot mainline from spi Freeezzzzed
NOTE: bootable from SPI/eMMC/SD

$uname -a
Linux Krescue 5.3.0-rc4 #1 SMP PREEMPT Wed Aug 14 09:29:47 MSK 2019 aarch64 GNU/Linux

NOTE: …
DOCS: https://github.com/hyphop/khadas-rescue/tree/master/docs#docs-folder-descriptions
DISQ: Krescue - Khadas Rescue system

examples commands

# get bootmode
bootmode 
# change bootmode
bootmode spi save
# change bootmode
bootmode mmc save

# clear spi boot - first 4096 bytes
spi_boot clean
# clear spi boot - first 2M bytes
spi_boot clean2
# write to spi uboot legacy
spi_boot /tmp/sd/rescue/u-boot.vim2.legacy.spi.bin
# write to spi - rescue system
spi_boot /tmp/sd/rescue/krescue.spi.bin
# write spi uboot mainline
spi_boot /tmp/sd/rescue/u-boot.vim2.mainline.spi.bin

# clear mmc boot
spi off; mmc re; mmc_boot clear
# write mmc boot
mmc_boot u-boot.vim2.mainline.sd.bin
# write mmc boot legacy
mmc_boot u-boot.vim2.legacy.sd.bin

DOWNLOAD & WRITE: curl -jkL https://github.com/hyphop/khadas-rescue/releases/download/vim2-multi/krescue.sd.img.gz -o- | gzip -dc | sudo dd conv=sync of=/dev/YOUR_SD_CARD

3 Likes

VIM2 test

update kernel to 5.3.0-rc4

SD images: https://github.com/hyphop/khadas-rescue/releases/tag/vim2-multi

1 Like

UPDATED:
SD images: https://github.com/hyphop/khadas-rescue/releases/tag/vim2-multi

we can write full rescue system to spi, from booted sd rescue system

# write to spi - rescue system
spi_boot /tmp/sd/rescue/krescue.spi.bin
# change bootmode
bootmode spi save
# now we can remove sd card
# power on 
# full load from spi is ready 

1 Like

UPDATE:
vim1 added - on testing - Linux Krescue-init 5.3.0-rc6
wifi - works

i will share soon

Hi,
is it true that now it is possible to boot to Krescue from USB as well (without sd-card in use)? If yes, how? Using VIM1, both older and newer (v14).

2 Likes

krescue can be started from usb - but need properly installed uboot on emmc/sd/spi already - and this way not works for some situations - for example if you device not bootable etc.

2 Likes

thanks. is there a step-by-step manual somewhere?

2 Likes

if I’m not mistaken, this function is still being finalized

or is it a turnkey solution?

1 Like