Krescue - take full control of your VIM device! easy way to install ANY OS! + back/restore your system

Hello @hyphop thanks to reply :wink:

As I wrote on 2021-12-19 :

In fact 2 dumps VIM2 v1.2 and 3 dumps VIM3 v1.2

In the 2 VIM2 v1.2 KRescue Bootlog dmesg from UART console dumps files, we can notice that MAC address varies on every boots.
In the 3 VIM3 v1.2 KRescue Bootlog dmesg from UART console dumps files, MAC address is the same on every boots.
Maybe you could find out what is the problem while reading these files :slight_smile:

===> Where can I send you this archive ?

Regards,
Fred.

Hello @hyphop

I have installed Ubuntu minimal through online script on NVME drive and tried grub-install setup script.
With NVME support implemented more or less and grub2 support for ARM devices it would be great to have a graphical shell for multiOS selecting the distros installed on NVME drive.
Now I have a common grub2 start menu but I can’t use it for selecting as the keyboard doesn’t work. And it’s not convenient to edit grub.cfg each time to change the default distro to start.
Is there any way to make it interactive?
As there is no usb or usb_keyboard grub modules in arm version insmod usb_keyboard doesn’t work either.

Thanks again for your great work.

this common image have additional scripts setup which can help configure your system (works in ubuntu)

setup grub-update         	 grub update
setup grub-splash         	 grub splash setup
setup grub-splash-default 	 grub splash default setup
setup grub                	 grub install
setup help                   more help

Hi all, I’ve been away for a long time…
today, what are the diffent krescue installable OS options for a 2022 headless linux based on debian for my vim3L ?
tks!

PS: I have this one
https://dl.khadas.com/Firmware/Krescue/images/VIM3L_Debian-server-buster_Linux-5.9-rc2_arm64_SD-USB_V0.9.3-200907.img.xz
and it is trash (unstable, and no serial console)

is the armbian bulleyes here Khadas VIM3 – Armbian a good thing to try to install w/ krescue ? any one already did that ?

yes try same krescue → online scripts → install armbian → …

@hyphop

Will you update online scripts for new fedora beta 36?

you can modify the existing script and change the f35 rootfs link with f36 rootfs link :slight_smile:
respectively for workstation: https://download.fedoraproject.org/pub/fedora/linux/releases/test/36_Beta/Workstation/aarch64/images/Fedora-Workstation-36_Beta-1.4.aarch64.raw.xz

1 Like

How to execute modified script in krescue? Online script always fetches from khadas source

Also is there a way to install this on sdcard instead of emmc?

Please add to krescue images latest volumio3 version Volumio 3 on Khadas devices - Khadas - Volumio

you can do the curl part of the install command:
i.e curl -jkL https://raw.githubusercontent.com/khadas/krescue-scripts/master/scripts/install/Fedora-Linux-install.sh

then nano into the file, and modify the link, then save and execute it :slight_smile:

p.s the above will yield in fedora server installation
remember to type TYPE=Workstation and then execute if you want the workstation version

OK! tnx i will try to check it on next week!

i will check it next week too!

UPDATE: wellcome-to-fedora-36-15-1

2 Likes

This link is bad again…

Hi,
is there a way to write emmc boot1/boot2/rpmb partition with krescue?
i missed any information about it.
thanks for the help.

Hello.

I would like to clear the spi flash of my Khadas Edge-V using krescue. This is the procedure suggested by the AI :

To clear the SPI flash on a Khadas Edge, boot the board using a Krescue SD card and navigate to Advanced → Erase SPI Flash. You’ll need a USB keyboard and a serial console or monitor to interact with the rescue tool. Another method for corrupted SPI flash involves shorting the CS (Chip Select) and DO (Data Out) pins of the SPI flash chip with a tweezer to force the board to boot from eMMC or USB, allowing you to erase the SPI flash via the OS or Krescue.

Using KRescue (Recommended Method)

  1. 1. Download KRescue:

Get the Khadas Rescue tool (KRescue) for your VIM3/Edge and flash it onto a spare SD card.

  1. 2. Boot into Krescue:
  • Insert the KRescue SD card into the Khadas Edge.
  • Connect a USB keyboard and a monitor (or a serial console).
  • Power on the board to boot into the KRescue environment.
  1. 3. Navigate to SPI Flash Erase:
  • In the KRescue menu, go to Advanced.
  • Select Erase SPI Flash.
  • Confirm the action when prompted (e.g., by selecting “Yes”).
  1. 4. Power Off:

After the erase process completes, select power off from the KRescue menu to safely shut down the board.

Using Hardware to Bypass Corrupted SPI Flash (Advanced/Troubleshooting)

This method is for cases where the SPI flash is corrupted and prevents the board from booting normally.

  1. 1. Disassemble (If Needed):

Remove the captain board and cooling fan to access the SPI flash chip on the main board.

  • 2. Locate SPI Flash Chip:

The SPI flash chip is usually found in the lower-left corner.

  • 3. Short the Pins:

Identify the first two pins of the SPI flash chip, which are the CS (Chip Select) and DO (Data Out) pins. Use a tweezer to short (connect) these two pins together.

  • 4. Boot to eMMC/USB:

With the pins shorted, boot the board. This should force the board to skip the corrupted SPI flash and boot from your eMMC or a USB drive.

  • 5. Erase SPI Flash from OS:

  • If you have a working system or KRescue on your eMMC or USB, boot into it.

  • From the operating system’s command line, use the appropriate commands to erase the SPI flash. Refer to KRescue’s instructions for erasing the SPI flash.

  • 6. Reboot:

Once erased, remove the tweezer and reboot the board. The board should now boot from eMMC or USB, as the SPI flash is blank.

Unfortunately I’m not able to download the tool krescue for my edge-V,as well as the right procedure to do that.