-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Error compiling w530-dgpu-K1000m-maximized #1110
Comments
make BOARD=w530-flash is working. I have flashed this and there's also coreboot.rom when building. Should I flash this from within heads ? (I have unlocked the descriptor and ME regions with ifdtool and cleaned ME with me_cleaner) |
You should run blobs/xx30 scripts to generate vbios and download and extract me, and then make the maximized board corresponding to your GPU (dgpu or igpu). |
CircleCI is building on Debian 11 now. Here the host dependencies Here the download and extract script for ME so that the blob is available when building xx30 boards: Here the w530 script that downloads and extracts the vbios files so they are available when building board: https://github.com/osresearch/heads/blob/master/.circleci/config.yml#L107 Your original post doesn't show the real error, so my guess is that the blobs scripts were not ran prior of building w530-dgpu1000m @zifxify does that help? It would be nice if the documentation for those board additions were added under heads-wiki |
On difference between boards, xx30-flash boards are meant for legacy configuration and is explained under https://osresearch.net (which renders heads-wiki) Maximized boards take the freed ME space and make it available for maximized boards. Maximized boards also include generic GBE blob, required for Ethernet bring up and fixates the MAC address. The outcome is a fully external and flashable ROM image, not only reflashing the BIOS region of the SPI flash. This permits to take full advantage of the 11.5mb space available inside of combined SPI chips, as opposed to the really limited 7mb BIOS region of legacy boards counterpart. Legacy boards requires a two steps flashing process, flashing xx30-flash on top SPI (4mb image) and then to flash the whole limited BIOS region (7mb) defined under xx30 board. When building a maximized board, 3 images are created. A full ROM (12mb) then splitted into top and bottom. Maximized boards includes an unlocked IFD, which defines ME and BIOS region to maximized BIOS region. Legacy boards will be limited in features in the future. If one opens hardware to flash externally, it is better to flash maximized boards then legacy. Please help me document this properly under heads-wiki. @zifxify @eganonoa @Thrilleratplay @Tonux599 We could also modify coreboot module to call the download and extract scripts to ease the process, while the reference is CircleCI creating those images and making them available to download from each successfully built boards, from gree n checkmarks of latest commits. Those can he downloaded and flashed directly. |
There is no such board configuration. Newer xx30 boards are only provided as Maximized boards configuration, since legacy boards are made to support users who didn't unlock IFD on initial flash, not having followed the guide to clean ME and unlock IFD at the same time. There were debates in the past on that matter, some users preferring ME to stay intact and only deactivated as opposed to neutered. If IFD was not unlocked, it is impossible to flash a maximized board ROM over a legacy ROM, since flashrom would not be able to rewrite the IFD, since locked, and the bigger BIOS region would overwrite part of ME, whichbwoukd result in bricking one device. For those reasons, and for Heads to be the simplest possible to flash, Maximized boards need to be pushed forward and legacy boards, let down. Sandy and Ivy bridges (xx20 and xx30) being free of Intel Firmware Software Package (FSP blobs), it is also possible to control platform locking (io386 PR). So it is totally feasible, now, to focus efforts on merging and testing platforms to have Heads lock access to SPI for the Operating System. I hope that this will support the idea of ditching Legacy boards altogether, while a single issue is still there, being the GBE blob hardcoding MAC address to DE:AD:C0:FF:EE. That means everyone using Maximized boards should know that they need to randomize their MAC address prior of using Ethernet. That can he done through NetworkManager, is pushed by Q4.1 on WiFi interface while Tails does it for all network devices. |
@tlaurion thanks for clarifying the difference between boards
I was also using @eganonoa fork because main branch didn't compile the maximized build for w530. Running With following command
|
As reported in separate issue for code of @eganonoa, there is a total lack of validation and script goes on without exiting on errors. May I ask you if you are on latest commit? I changed his script to be compliant with Debian 11. do git log under heads I fixed this error like a week ago. |
I'm on last commit and still getting these errors with vbios_w530.sh. Strange that it is working on CircleCI. |
Seems to have the same issue: https://webcache.googleusercontent.com/search?q=cache:roU1lJZ6JQMJ:https://githubmemory.com/repo/thoughtbot/terrapin/issues/14+&cd=7&hl=nl&ct=clnk&gl=be&client=firefox-b-e Still don't know what to do. |
Script isn't working but I have the blobs downloaded from https://github.com/eric-pierce/Coreboot-W530. So @tlaurion you were right that the blobs scripts were not ran prior of building w530-dgpu1000m |
CircleCI builds as root. Will look into that this week... |
@zifxify #1111 fixes #1110 (comment) @eganonoa : you have a local branch for documentation ready to push upstream? |
For completeness of this issue, which should be part of wiki docs. The following errors will show when blobs are not dumped in place prior of building a blob-requiring board config: vbios not being download/extracted per
ME not having been download/extracted per blobs/xx30/download_clean_me.sh prior of building a xx30 board:
|
@zifxify can this issue be closed? |
EDIT (by tlaurion): Answer to this is reported below
I'm currently stuck at compiling an w530 image on Debian 11.2
Compiling an x230 image works...
7f89b099264ae15e72d423823f236f45f1cdf960237402ef3c6f8c4eafa33504 build/w530-dgpu-K1000m-maximized/initrd.cpio.xz
2022-02-12 13:27:43+01:00 MAKE coreboot
tail /home/zifxify/Documenten/HEADS/heads/build/log/coreboot.log
make[1]: Leaving directory '/home/zifxify/Documenten/HEADS/heads/build/coreboot-4.13'
make: *** [Makefile:505: /home/zifxify/Documenten/HEADS/heads/build/coreboot-4.13/w530-dgpu-K1000m-maximized/.build] Fout 1
The text was updated successfully, but these errors were encountered: