[SOLVED] u-boot - how to repair from the outside ?

Discussion about U-Boot and the kernel.

[SOLVED] u-boot - how to repair from the outside ?

Postby ufo6000 » Sun Sep 02, 2018 10:19 am

I understand I have to edit boot.txt and run ./mkscr from the running archarm64 system.
(in case I want to switch/move the root filesystem to another usb/hdd/sdd partition)

But what happens in the case I made a mistake or there is a fault or hw error.

I could edit boot.txt on the SD card, e.g. with another Ubuntu/Arch x86_64 notebook.
But how to run ./mkscr without the archarm64 system ?

Thanks for any help!
Last edited by ufo6000 on Mon Sep 03, 2018 2:31 pm, edited 1 time in total.
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm

Re: u-boot - how to repair from the outside ?

Postby TheSaint » Sun Sep 02, 2018 12:34 pm

I suppose that you should boot from a different media and correct the errors. Unless you can plug your system and the host PC will recognize it as USB media.
There are several option that u-boot can boot from. Including EFI partition. So if you boot.scr is not valid u-boot will try to look for a different source.
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: u-boot - how to repair from the outside ?

Postby summers » Sun Sep 02, 2018 12:43 pm

If you look in the file mkscr you see it runs mkimage. You can install that on most systems by install the package uboot-tools.

All this does is change the boot.txt file into a boot.scr file, u-boot looks for the boot.scr file, so when you change that uboot will find it.
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: u-boot - how to repair from the outside ?

Postby ufo6000 » Mon Sep 03, 2018 2:30 pm

Ah - works fine, I was able to regenerate the boot.scr on my sd card with my Arch Linux notebook :D
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 8 guests