MrChromebox / scripts

Scripts for setup/install/firmware update for ChromeOS devices
The Unlicense
579 stars 165 forks source link

Script not working on arch linux #438

Closed PoPCaT6800 closed 2 days ago

PoPCaT6800 commented 2 days ago

Today i was attempting to run the Mr chromebox script to update coreboot on arch Linux. it failed with the following error. I am unable to boot with a live usb, it does not show up in the bios or in the uefi shell when i run map -r.

`

MrChromebox Firmware Utility Script starting up

Downloading supporting files...

Downloading required tools...

Getting device/system info...

Flashrom is unable to read current firmware; cannot continue:

/tmp/flashrom: error while loading shared libraries: libftdi1.so.2: cannot open shared object file: No such file or directory

You may need to add 'iomem=relaxed' to your kernel parameters, or trying running from a Live USB with a more permissive kernel (eg, Ubuntu 23.04+).

If you have UEFI SecureBoot enabled, you need to disable it to run the script/update your firmware.

MrChromebox Firmware Utility setup was unsuccessful

`
MrChromebox commented 2 days ago

looks like libftdi-dev is missing, I'll rebuild flashrom to not require, or you can just install it.

tips for dealing with USB device detection are listed on my FAQ page

PoPCaT6800 commented 2 days ago

the script works, i ran it and updated the firmware but it failed. im not sure what do now, but i know im not supposed to restart. should i run it again? Log: `Do you wish to continue? [y/N] y

Downloading Full ROM firmware (coreboot_edk2-terra-mrchromebox_20240914.rom)

VPD extracted from current firmware

Disabling software write-protect and clearing the WP range

Installing Full ROM firmware (may take up to 90s)

Error running cmd: /tmp/flashrom -p internal:boardmismatch=force --ifd -i bios -N -w coreboot_edk2-terra-mrchromebox_20240914.rom >/dev/null 2>&1 -o /tmp/flashrom.log

Press enter to view the flashrom log file, then space for next page, q to quit` Edit: i am going to flash to stock even tho its eol because working at all is better than nothing

MrChromebox commented 2 days ago

attach /tmp/flashrom.log here so I can see what happened

sigh. the correct thing to do is to flash back the old firmware, not flash another different firmware.

PoPCaT6800 commented 2 days ago

here is the file: flashrom.log sorry for the inconvenience

MrChromebox commented 2 days ago

I just pushed an update to the script with a new flashrom build, see if that helps any

PoPCaT6800 commented 2 days ago

i recieved this console error when running the script again:

`mrChromebox Firmware Utility Script starting up

Downloading supporting files...

Downloading required tools...

Getting device/system info...

Flashrom is unable to read current firmware; cannot continue:

flashrom MrChromebox-v1.5.0-devel (git:v1.4.0-89-gd2aaabbf7c) on Linux 6.10.9-arch1-2 (x86_64) flashrom is free software, get the source code at https://flashrom.org

/tmp/flashrom: unrecognized option '--use-first-chip' Please run "flashrom --help" for usage info.

You may need to add 'iomem=relaxed' to your kernel parameters, or trying running from a Live USB with a more permissive kernel (eg, Ubuntu 23.04+).

If you have UEFI SecureBoot enabled, you need to disable it to run the script/update your firmware.

MrChromebox Firmware Utility setup was unsuccessful

MrChromebox commented 2 days ago

remove the existing downloaded flashrom binary (/tmp/flashrom) and then the script will download the updated one

PoPCaT6800 commented 2 days ago

i really appreciate all the help unfortunately my chromebook crashed and was bricked, i do appreciate the help though.