Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rwxlio opened this issue Mar 31, 2021 · 13 comments
Closed

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

rwxlio opened this issue Mar 31, 2021 · 13 comments

Comments

@rwxlio
Copy link

rwxlio commented Mar 31, 2021

No description provided.

@rwxlio rwxlio closed this as completed Mar 31, 2021
@rwxlio rwxlio reopened this Mar 31, 2021
@rwxlio rwxlio closed this as completed Mar 31, 2021
@rwxlio rwxlio reopened this Mar 31, 2021
@rwxlio rwxlio changed the title Could't boot from SD card (T430, 1.12) Could't boot from SD card (T430, 0.1.12) Mar 31, 2021
@rwxlio
Copy link
Author

rwxlio commented Mar 31, 2021

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
Copy link

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

@rwxlio
Copy link
Author

rwxlio commented Mar 31, 2021

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
Copy link

jcholsap commented Apr 1, 2021

@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
Copy link
Author

rwxlio commented Apr 1, 2021 via email

@jcholsap
Copy link

jcholsap commented Apr 2, 2021

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
Copy link

  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
Copy link

bgklc commented Apr 14, 2021

I have the same behaviour on my x230 with skulls.

@bgklc
Copy link

bgklc commented Apr 16, 2021

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
Copy link

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
Copy link

bgklc commented Apr 16, 2021

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
Copy link

bgklc commented Apr 17, 2021

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
Copy link

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.

@rwxlio rwxlio closed this as completed Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants