linuxboot / heads

A minimal Linux that runs as a coreboot or LinuxBoot ROM payload to provide a secure, flexible boot environment for laptops, workstations and servers.
https://osresearch.net/
GNU General Public License v2.0
1.42k stars 185 forks source link

[help wanted] hdd i/o error. #920

Closed bencejuhaasz closed 3 years ago

bencejuhaasz commented 3 years ago

I followed the instructions on the wiki, used the master branch on ubuntu 18, got a .rom that starts&can boot things from usb, but can't read /dev/sda. How should I try to build this ? Are the releases outdated ?

Thrilleratplay commented 3 years ago

@bencejuhaasz It would be helpful to know what device you are trying to set heads up on. Is there a hard drive installed in the device?

bencejuhaasz commented 3 years ago

Sorry, I forgot it, it's an x230, and it has a hdd installed.

Thrilleratplay commented 3 years ago

@bencejuhaasz Unfortunately, "followed the instructions on the wiki" does not help explain what you have done thus far. Describe the steps you took to install Heads and be as descriptive as you can be. Did you build it? Which board did you build for? Externally flash? What does Ubuntu 18 has to do with your Heads installation? Yes these releases are out of date, did you use a release build? What is on the hard drive? What else does it say other than /dev/sda?

Is the error saying /dev/sda or /dev/sda1?

bencejuhaasz commented 3 years ago

I followed this guide: http://osresearch.net/Building/ and used x230 as the BOARD variable, then I flashed the 12MB image with this (https://github.com/gch1p/thinkpad-bios-software-flashing-guide) exploit. I used an Ubuntu 18.04 install to build the .rom, and an other one as a live cd to flash. There's a Qubes install on /dev/sda. The problem is, that Heads can't read a single bit out of /dev/sda, doesn't even see the partition table. If I do cat /dev/sda, no random data fills the screen, I just get more kernel log errors about some kind of i/o error. I'll try to paste these errors here.

bencejuhaasz commented 3 years ago

What would be an ideal, known to work build environment ? Are there succesfull builds for the x230 with the current version?

Thrilleratplay commented 3 years ago

You executed cat /dev/sda in the Heads rescue shell? If so, try dmesg | less and scroll through to see if there are any errors or mentions of ata, sd or something that would refer to a hard disk. The hard drive is internally and connected via sata?

bencejuhaasz commented 3 years ago

Yes, internally and with sata.

bencejuhaasz commented 3 years ago

https://pasteboard.co/JDWNk5c.jpg

bencejuhaasz commented 3 years ago

Looks like my hard drive was (or got?) physically damaged at flashing. Replaced it, Heads works fine. Thanks for your great work! (And fast response).

tlaurion commented 3 years ago

What would be an ideal, known to work build environment ? Are there succesfull builds for the x230 with the current version?

@bencejuhaasz ROMs are built for most of the most used platforms where blobs are not present (faked IFD, no ME redistribution without permission, or ME downloaded directly from manufacturer, extracted and put in place under blobs directory) here for each pushed in master, where contributors are invited to register themselves over CircleCI and make their branch followed there so that their PR are already built and testable by the community prior of merging. You can click on the green checkmark under Heads.

For example, at the time of writing this:

Note that ROMs differentiate x230 board definitions per boards modules inclusion and size restrictions (internally flashed per 1vyrain or other exploits not neutering ME nor taking advantage of the total available space, which requires external flashing): x230, x230-hotp-verification, x230-hotp-maximized, x230-maximized)

To take advantage and use the maximized boards (taking advantage of the 11.5mb maximized BIOS space available vs 7mb for not maximized boards x230 boards), initial external reprogramming is required.

tlaurion commented 3 years ago

@bencejuhaasz would you consent to be added to board owners https://github.com/osresearch/heads/issues/692 ?