-
Notifications
You must be signed in to change notification settings - Fork 69
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
Missing build instructions for AMD mainboards #47
Comments
Hey Max! I put together some quick instructions for the AMD Laptop 13 in a gist. This also applies to the AMD Laptop 16 if you replace |
Thanks! I'll try that next, once my already running Also, holy shit, that's a mess of a setup. I don't know how much time I'll have to spend diffing |
Yup, definitely not doing that to build a 512k binary |
Well, I've got some good news there. You can reflash just the RW portion ( |
IIUC, I'd also need to patch this to pack (No datasheet for NPCX993 out there, so I'm pretty much flying blind) |
Welp, there goes my plan to do function-by-function comparison =/ |
In this case, no. After the build finishes, In all cases, it will skip any vital product data or local on-flash configuration unless you request otherwise. |
Ah, I see. Anyway, the initial premise of this issue still stands, but I don't think I'll be moving forward with attempts to modify EC firmware. Even looking past build issues, with no access to a robust testing setup and reliable tools for un-bricking - maintaining modifications for all the different mainboard versions would be an absolute nightmare :( |
Hi all! I worked at this for the last day and ended up with a way to reliably build the EC firmware with Nix: https://github.com/charlottia/FrameworkEmbeddedController-nix. It's 100% undocumented and only just this minute actually working. Now that I have a baseline, I'll extend it into a devShell that lets one have a working copy of the EC code to build from (right now everything is frozen to the same versions as declared in that gist's Example build: kivikakk@piret ~> ls -l result/
ls: cannot access 'result/': No such file or directory
kivikakk@piret ~> nix build github:charlottia/FrameworkEmbeddedController-nix
kivikakk@piret ~> ls -l result/
total 8260
-r--r--r-- 1 root root 524288 1. jaan 1970 ec.bin
-r-xr-xr-x 1 root root 792 1. jaan 1970 npcx_monitor.bin
-r-xr-xr-x 1 root root 3961164 1. jaan 1970 zephyr.ro.elf
-r-xr-xr-x 1 root root 3961120 1. jaan 1970 zephyr.rw.elf
kivikakk@piret ~> It builds on Linux and macOS. Crucially, I haven't yet tested one of these images! Next I'll try the RW image, and if all good will keep pushing my luck. :) 🐈⬛ |
It can do in-tree builds now :) and is now just a fork of this repo. Some instructions at https://github.com/charlottia/FrameworkEmbeddedController/blob/lotus-azalea-nix/NIX.md if you felt like trying it, but tl;dr it builds |
Please update the docs to provide build instructions for all platforms. Instructions present in
hx20-hx30
branch don't work inlotus-zephyr
. I'm currently trying to use generic ChromiumOS build docs, but I've no idea if that's going to even work.The text was updated successfully, but these errors were encountered: