merge / skulls

pre-built coreboot images and documentation on how to flash them for Thinkpad Laptops
GNU General Public License v3.0
677 stars 65 forks source link

Could't boot from SD card (T430, 0.1.12) #190

Closed rwxlio closed 3 years ago

rwxlio commented 3 years ago

Everything is working as expected except booting from SD card! The SD card is detected and appear in the menu, boot when i choose it falling into CBFS config page.

paulmenzel commented 3 years ago

Please describe the problem. So you are using the SeaBIOS payload, and pressing ESC, SeaBIOS’ boot menu does not list your SD card?

rwxlio commented 3 years ago

It list my SD card, but not bootable. I have tried to boot with several different distros, when i choose my SD card it just fallback into config page (CBFS). I do not know what i should describe more than that.

jcholsap commented 3 years ago

@Lio-Makki Can you eliminate hardware as possibly being the problem? For example, try:

  1. Booting from normal hdd media and see if you can read/write to the sd device;
  2. Use your sd device to boot another, different computer; and/or
  3. Using a different computer, scan your sd device for media errors.
rwxlio commented 3 years ago

@jcholsap Hi. Thanks for replay.

  1. Booting from normal hdd media and see if you can read/write to the sd device. Booting from hdd,ssd works just fine.

  2. Use your sd device to boot another, different computer; and/or It does work fine in x200 with coreboot, and i can boot debian, void and ubuntu.

  3. Using a different computer, scan your sd device for media errors.

    The sd card is totally new and works perfectly on all other computers.

On Thu, Apr 1, 2021 at 6:09 PM Jay Holsapple @.***> wrote:

@Lio-Makki https://github.com/Lio-Makki Can you eliminate hardware as possibly being the problem? For example, try:

  1. Booting from normal hdd media and see if you can read/write to the sd device;
  2. Use your sd device to boot another, different computer; and/or
  3. Using a different computer, scan your sd device for media errors.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/merge/skulls/issues/190#issuecomment-812012595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEB7CWN65NWH75UEJNN54RLTGSLEPANCNFSM42D3FUVQ .

jcholsap commented 3 years ago

If you are convinced your sd card is good and your laptop computer is good, then you'll want to eliminate the micro sd card reader as a possible fault. Boot your computer via hdd and then scan your sd card for errors. If the micro sd card adapter is defective, then you'll get some sort of errors. s-l1600

paulmenzel commented 3 years ago
  1. Try to collect SeaBIOS debug logs. In SeaBIOS menu select the SD card, and when it does not work, and goes back to the menu – please describe the behavior in more detail (maybe edit your original post) – start from HDD, run cbmem -1 – in coreboot’s directory util, and share the logs.
  2. Try to boot from the SD card in QEMU, that means boot the system from HDD, and then tell QEMU to start from the SD card.
  3. If that works, build coreboot for QEMU with SeaBIOS payload, and try the same. (You can pass -L build/coreboot.rom to QEMU.)
bgklc commented 3 years ago

I have the same behaviour on my x230 with skulls.

bgklc commented 3 years ago

cbmem.txt I cloned a Tails distribution from the USB stick (which does boot and work on my x230) to an SD card. It did not boot: I press Esc, select the SD and it shows "booting from HDD" and then "coreboot configuration". For a moment "Disk error" is shown, I caught it using video recording. output_179

paulmenzel commented 3 years ago

Thank you for testing. Instead of a picture, pasting this text or copying it from CBMEM console, is more useful.

Anyway, Disk error is not from SeaBIOS, so it’s very likely from Tails. Please find out what assumptions Tails preventing it to boot from SD card. I assume the same image works fine from an USB storage medium?

Anyway, to debug this, first try to get it working in QEMU. If it works there, it can be figured out, what is wrong in this setup.

I’d say, not many people are interested in booting from SD card, so you are more or less on your own.

bgklc commented 3 years ago

Thank you for testing. Instead of a picture, pasting this text or copying it from CBMEM console, is more useful.

Anyway, Disk error is not from SeaBIOS, so it’s very likely from Tails. Please find out what assumptions Tails preventing it to boot from SD card. I assume the same image works fine from an USB storage medium?

Right, the USB medium I used to clone it from did boot correctly.

Anyway, to debug this, first try to get it working in QEMU. If it works there, it can be figured out, what is wrong in this setup.

I’d say, not many people are interested in booting from SD card, so you are more or less on your own.

I appreciate help if it does not take too much of your time.

cbmem.txt

bgklc commented 3 years ago
2\. Try to boot from the SD card in QEMU, that means boot the system from HDD, and then tell QEMU to start from the SD card.

Can you please elaborate on how can I tell QEMU to use the hardware SD card on my x230?

paulmenzel commented 3 years ago

First hit searching for qemu emulate sd card: qemu to emulate SD-Bus and card pointing to Mounting an sdcard on x86?

Sorry, I am unable to provide more guidance. You could also contact coreboot consulting companies, and ask for a quote.