Broken boot loader
#1
I was trying to distro-hop without an eMMC adapter (there's one in the mail but I got impatient) but my SD card wasn't being recognized. Being the clown that I am I thought it was an issue with uboot booting from eMMC before the SD card even though I know this not to be the default boot order. Being an even bigger fool (and in my defense after about an hour of troubleshooting and a long day of work) I decided to break rule 1 of computing and blindly copied a command I found online thinking it would solve my issue.

I then ran the following command in u-boot:  
Code:
setenv bootcmd 'run sdboot' ; saveenv ; reboot

The issue I'm now running into is that the bootloader on my SPI is borked and I don't know what the default bootcmd environment variable is. I know literally nothing about bootloader syntax and can't even read the output of 'help' as it scrolls by too quickly (is there not a 'less' equivalent for the boot loader cli?). 
You could say I'm a bit out of my element!

Is there a way to reset my u-boot and/or does anyone know what the default bootcmd environment variable is?
Alternately, how do I boot using the u-boot cli? My eMMC is still visible using the the mmc command, but I don't know how to access it or boot from it.
Thanks in advance.


SOLUTION:
(08-12-2022, 02:47 PM)jpalus Wrote:
(07-27-2022, 11:20 AM)Tango Drango Wrote: does anyone know what the default bootcmd environment variable is?

You can always restore default environment with:
Code:
env default -a

Note that it restores settings for current "session", to persist do:
Code:
env save

For more details see:
https://u-boot.readthedocs.io/en/latest/...d/env.html
  Reply


Messages In This Thread
Broken boot loader - by Tango Drango - 07-27-2022, 11:20 AM
RE: Broken boot loader - by Tango Drango - 07-27-2022, 12:22 PM
RE: Broken boot loader - by vatin - 08-12-2022, 07:31 AM
RE: Broken boot loader - by jpalus - 08-12-2022, 02:47 PM
RE: Broken boot loader - by Tango Drango - 08-15-2022, 11:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  uboot wont boot to SD card after upgrade jbradley419 7 631 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 234 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 2,001 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 563 12-13-2023, 08:17 PM
Last Post: trillobite
  Various freezes during boot & while running several Linux distros - hardware error? donuts 1 514 11-22-2023, 11:47 AM
Last Post: fxc
  Cannot boot to Kali SD card after uboot upgrade jbradley419 4 1,071 09-19-2023, 08:48 AM
Last Post: dachalife
  Does latest Tow-Boot install/work correctly for everyone? tophneal 4 1,669 08-03-2023, 03:30 PM
Last Post: tophneal
  Boot into NVME drive, no wifi, sound, buttons... PaulQ 0 751 07-13-2023, 01:50 PM
Last Post: PaulQ
  New Pinebook pro won’t boot Generaltuxenburg 4 1,803 06-14-2023, 07:20 AM
Last Post: KC9UDX
Tongue Yet another Pinebook Pro won't boot thread pinemouth 4 2,265 05-20-2023, 01:02 AM
Last Post: jackwilson

Forum Jump:


Users browsing this thread: 1 Guest(s)