Hi, I was using Seabios but recently switched to Tianocore. However, the tianocore can't boot my Manjaro linux distribution which was installed using the non-uefi method. So I want to flash back.
I only have a Manjaro live usb at hand. The tianecore can boot it. However this live usb is not set with iomem=relaxed, so I can't read or write the bios using flashrom.
I don't know how to set the live usb's grub settings because when it boots, it's already running commands. When using this tianocore with vgabios I can't see the grub screen when booting.
So how to set the live usb with iomem=relaxed? Is there any live usb that already have the iomem=relaxed set? Could anyone help me build a usb image dedicated for automatically recover flashing?
Hi,
Afaik, you should be able to mount the live-boot usb as read/write after boot, and then modify boot parameters from `/etc/boot/grub` ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Thursday, October 31, 2019 8:58 AM, Dalao dalao@tutanota.com wrote:
Hi, I was using Seabios but recently switched to Tianocore. However, the tianocore can't boot my Manjaro linux distribution which was installed using the non-uefi method. So I want to flash back.
I only have a Manjaro live usb at hand. The tianecore can boot it. However this live usb is not set with iomem=relaxed, so I can't read or write the bios using flashrom.
I don't know how to set the live usb's grub settings because when it boots, it's already running commands. When using this tianocore with vgabios I can't see the grub screen when booting.
So how to set the live usb with iomem=relaxed? Is there any live usb that already have the iomem=relaxed set? Could anyone help me build a usb image dedicated for automatically recover flashing?
I just tried mount -o remount,rw /dev/sda1. It says "mount: /run/miso/bootmnt: cannot remount /dev/sda1 read-write, is write protected".
The usb is created by using UsbWriter under Windows and write the manjaro-kde-18.1.2-191028-linux53.iso to the usb. It seems the above method does not work. How to modify its boot parameters?
2019年10月31日 15:21 来自 k4m1@protonmail.com:
Hi,
Afaik, you should be able to mount the live-boot usb as read/write after boot, and then modify boot parameters from `/etc/boot/grub` ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Thursday, October 31, 2019 8:58 AM, Dalao dalao@tutanota.com wrote:
Hi, I was using Seabios but recently switched to Tianocore. However, the tianocore can't boot my Manjaro linux distribution which was installed using the non-uefi method. So I want to flash back.
I only have a Manjaro live usb at hand. The tianecore can boot it. However this live usb is not set with iomem=relaxed, so I can't read or write the bios using flashrom.
I don't know how to set the live usb's grub settings because when it boots, it's already running commands. When using this tianocore with vgabios I can't see the grub screen when booting.
So how to set the live usb with iomem=relaxed? Is there any live usb that already have the iomem=relaxed set? Could anyone help me build a usb image dedicated for automatically recover flashing?
You can simply add kernel parameter while booting. Either by tapping E or TAB and putting iomem=relaxed at the end of the linux line and then ENTER or CTRL+X to boot.
If you didnt protect the flash regions then you should be able to reflash core'ie with flashrom.
On October 31, 2019 6:58:00 AM UTC, Dalao dalao@tutanota.com wrote:
Hi, I was using Seabios but recently switched to Tianocore. However, the tianocore can't boot my Manjaro linux distribution which was installed using the non-uefi method. So I want to flash back.
I only have a Manjaro live usb at hand. The tianecore can boot it. However this live usb is not set with iomem=relaxed, so I can't read or write the bios using flashrom.
I don't know how to set the live usb's grub settings because when it boots, it's already running commands. When using this tianocore with vgabios I can't see the grub screen when booting.
So how to set the live usb with iomem=relaxed? Is there any live usb that already have the iomem=relaxed set? Could anyone help me build a usb image dedicated for automatically recover flashing?
Because it's acting wired, I don't know how to edit the kernel parameters while booting,
After I press the power button, the screen is black, untill 30 seconds or maybe even longer I can see the screen light up. (I guess it's waiting at the grub menu but I can't see it)
When I can see the screen, it's already running commands. If I press e or tab at this time, nothing will happen.
Hi,
On 31.10.19 09:48, dalao@tutanota.com wrote:
After I press the power button, the screen is black, untill 30 seconds or maybe even longer I can see the screen light up. (I guess it's waiting at the grub menu but I can't see it)
if Tianocore doesn't show anything, it's the Linux graphics driver that initializes the display first. So you probably built coreboot without any UEFI-compatible means of graphics initialization.
Bootloaders like GRUB don't know how to initialize graphics, so trying different Linux distributions seems futile. Here is what I would try: Find a second PC that boots in UEFI mode. Boot your Live-Linux on it, and add the `iomem=relaxed` in the GRUB menu. Note any keys you have to press or do it in parallel on both machines; so enter everything on your black-screen blindly and hope. Stupid procedure, but worth one shot at least before you waste more time trying to adapt boot media.
Hope that helps, Nico
This works. Thankyou Nico! Oh What a blind and scary operation. I hope nobody will experience this in the future.
The graphics initiative method I used is Run option ROM. Then I added the Intel's vgabios rom. Is this method not Tianocore capatible? Is the Tianocore only works with libgfxinit?
On 31/10/19 07:58, Dalao wrote: Hi, I was using Seabios but recently switched to Tianocore. However, the tianocore can't boot my Manjaro linux distribution which was installed using the non-uefi method. So I want to flash back.
I only have a Manjaro live usb at hand. The tianecore can boot it. However this live usb is not set with iomem=relaxed, so I can't read or write the bios using flashrom.
I don't know how to set the live usb's grub settings because when it boots, it's already running commands. When using this tianocore with vgabios I can't see the grub screen when booting.
So how to set the live usb with iomem=relaxed? Is there any live usb that already have the iomem=relaxed set? Could anyone help me build a usb image dedicated for automatically recover flashing?
Most other distros I know (Debian, Ubuntu, OpenSUSE) will have GRUB boot splash, and from there you can add kernel command line parameters.
See https://wiki.ubuntu.com/Kernel/KernelBootParameters for example.
So just make another liveUSB with a different distro.
-Alberto
I guess the manjaro live usb also has the grub boot splash, but I can't see it. It's black screen for 30 seconds after I press the power button.
Now I'm trying installing arch linux iso (500MB) to another usb drive and see if it works. If not I will try Debian Ubuntu.
It turns out installing archlinux to a usb doesn't work. The screen is black and there are no logs. I don't know why.
I think I just need a live usb with iomem=relaxedalready set. How to make this?
On 31/10/19 19:08, dalao@tutanota.com wrote:
It turns out installing archlinux to a usb doesn't work. The screen is black and there are no logs. I don't know why.
I think I just need a live usb with iomem=relaxedalready set. How to make this? _______________________________________________ coreboot mailing list -- coreboot@coreboot.org To unsubscribe send an email to coreboot-leave@coreboot.org
You should ask that in Arch forums, not Coreboot mailing list.
I still suggest disregarding Arch pride and use another distro that has a GRUB screen to get out of this pickle.
-Alberto
On Thu, Oct 31, 2019 at 1:58 AM Dalao dalao@tutanota.com wrote:
Hi, I was using Seabios but recently switched to Tianocore. However, the tianocore can't boot my Manjaro linux distribution which was installed using the non-uefi method. So I want to flash back.
why not simply boot your live USB, create a small EFS partition (100MB is plenty) and install a UEFI bootloader to it?
I only have a Manjaro live usb at hand. The tianecore can boot it. However this live usb is not set with iomem=relaxed, so I can't read or write the bios using flashrom.
I don't know how to set the live usb's grub settings because when it boots, it's already running commands. When using this tianocore with vgabios I can't see the grub screen when booting.
So how to set the live usb with iomem=relaxed? Is there any live usb that already have the iomem=relaxed set? Could anyone help me build a usb image dedicated for automatically recover flashing? _______________________________________________ coreboot mailing list -- coreboot@coreboot.org To unsubscribe send an email to coreboot-leave@coreboot.org
Do you mean create a EFS partition on harddisk? Because I just have one harddisk, I'm afraid reparation it may cause data lose. Now I'm playing with two usb drives. If these can get the work done it will be good, if not, I will go to buy a new harddisk and do that.