We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f51e7e5 commit 9379aa2Copy full SHA for 9379aa2
flake.nix
@@ -116,6 +116,11 @@
116
installPhase = ''
117
mkdir $out
118
cp src/platform/ec/build/zephyr/${build}/output/* $out/
119
+ cp src/platform/ec/build/zephyr/${build}/packer/zephyr_ro.bin $out/
120
+ cp src/platform/ec/build/zephyr/${build}/packer/zephyr_rw.bin $out/
121
+ # Extract RO and RW sections from ec.bin with FRID/FWID intact
122
+ dd if=$out/ec.bin of=$out/ec_ro.bin bs=256K count=1
123
+ dd if=$out/ec.bin of=$out/ec_rw.bin bs=1 skip=$((0x40000)) count=$((0x3F000))
124
'';
125
126
dontFixup = true;
0 commit comments