diff --git a/cpu/intel/microcode/microcode2bin.sh b/cpu/intel/microcode/microcode2bin.sh new file mode 100755 index 0000000000..1be109a562 --- /dev/null +++ b/cpu/intel/microcode/microcode2bin.sh @@ -0,0 +1,55 @@ +#!/bin/bash +# +# This file is part of the coreboot project. +# +# Copyright (C) 2015 Google Inc. +# +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. +# + +OLD=$(pwd) + +for UCODE in ../*/microcode.h +do + cd $(dirname $UCODE) + cat > microcode.c << EOF +#include +unsigned int microcode[] = { +#include "microcode.h" +}; +int main(void) +{ + FILE *f = fopen("microcode.bin", "wb"); + fwrite(microcode, sizeof(microcode), 1, f); + fclose(f); + return 0; + +} +EOF + gcc -o microcode microcode.c + ./microcode + rm microcode microcode.c + cd $OLD +done diff --git a/cpu/intel/model_1067x/microcode.bin b/cpu/intel/model_1067x/microcode.bin new file mode 100644 index 0000000000..ee6db37b0f Binary files /dev/null and b/cpu/intel/model_1067x/microcode.bin differ diff --git a/cpu/intel/model_106cx/microcode.bin b/cpu/intel/model_106cx/microcode.bin new file mode 100644 index 0000000000..70bb22186a Binary files /dev/null and b/cpu/intel/model_106cx/microcode.bin differ diff --git a/cpu/intel/model_2065x/microcode.bin b/cpu/intel/model_2065x/microcode.bin new file mode 100644 index 0000000000..3c267fccc6 Binary files /dev/null and b/cpu/intel/model_2065x/microcode.bin differ diff --git a/cpu/intel/model_206ax/microcode.bin b/cpu/intel/model_206ax/microcode.bin new file mode 100644 index 0000000000..b4a1131305 Binary files /dev/null and b/cpu/intel/model_206ax/microcode.bin differ diff --git a/cpu/intel/model_306ax/microcode.bin b/cpu/intel/model_306ax/microcode.bin new file mode 100644 index 0000000000..2ed06b2b12 Binary files /dev/null and b/cpu/intel/model_306ax/microcode.bin differ diff --git a/cpu/intel/model_306cx/microcode.bin b/cpu/intel/model_306cx/microcode.bin new file mode 100644 index 0000000000..0b47b4814d Binary files /dev/null and b/cpu/intel/model_306cx/microcode.bin differ diff --git a/cpu/intel/model_4065x/microcode.bin b/cpu/intel/model_4065x/microcode.bin new file mode 100644 index 0000000000..8844eae346 Binary files /dev/null and b/cpu/intel/model_4065x/microcode.bin differ diff --git a/cpu/intel/model_65x/microcode.bin b/cpu/intel/model_65x/microcode.bin new file mode 100644 index 0000000000..43f00142b6 Binary files /dev/null and b/cpu/intel/model_65x/microcode.bin differ diff --git a/cpu/intel/model_67x/microcode.bin b/cpu/intel/model_67x/microcode.bin new file mode 100644 index 0000000000..ba511e5c39 Binary files /dev/null and b/cpu/intel/model_67x/microcode.bin differ diff --git a/cpu/intel/model_68x/microcode.bin b/cpu/intel/model_68x/microcode.bin new file mode 100644 index 0000000000..c7adc5bedf Binary files /dev/null and b/cpu/intel/model_68x/microcode.bin differ diff --git a/cpu/intel/model_69x/microcode.bin b/cpu/intel/model_69x/microcode.bin new file mode 100644 index 0000000000..e3d63427be Binary files /dev/null and b/cpu/intel/model_69x/microcode.bin differ diff --git a/cpu/intel/model_6bx/microcode.bin b/cpu/intel/model_6bx/microcode.bin new file mode 100644 index 0000000000..9e24d42971 Binary files /dev/null and b/cpu/intel/model_6bx/microcode.bin differ diff --git a/cpu/intel/model_6dx/microcode.bin b/cpu/intel/model_6dx/microcode.bin new file mode 100644 index 0000000000..d11772c734 Binary files /dev/null and b/cpu/intel/model_6dx/microcode.bin differ diff --git a/cpu/intel/model_6ex/microcode.bin b/cpu/intel/model_6ex/microcode.bin new file mode 100644 index 0000000000..b1634ad133 Binary files /dev/null and b/cpu/intel/model_6ex/microcode.bin differ diff --git a/cpu/intel/model_6fx/microcode.bin b/cpu/intel/model_6fx/microcode.bin new file mode 100644 index 0000000000..60fb36f7ad Binary files /dev/null and b/cpu/intel/model_6fx/microcode.bin differ diff --git a/cpu/intel/model_6xx/microcode.bin b/cpu/intel/model_6xx/microcode.bin new file mode 100644 index 0000000000..134d847aa6 Binary files /dev/null and b/cpu/intel/model_6xx/microcode.bin differ diff --git a/cpu/intel/model_f0x/microcode.bin b/cpu/intel/model_f0x/microcode.bin new file mode 100644 index 0000000000..662f975cc3 Binary files /dev/null and b/cpu/intel/model_f0x/microcode.bin differ diff --git a/cpu/intel/model_f1x/microcode.bin b/cpu/intel/model_f1x/microcode.bin new file mode 100644 index 0000000000..a789e0d8e8 Binary files /dev/null and b/cpu/intel/model_f1x/microcode.bin differ diff --git a/cpu/intel/model_f2x/microcode.bin b/cpu/intel/model_f2x/microcode.bin new file mode 100644 index 0000000000..afdaf9aecc Binary files /dev/null and b/cpu/intel/model_f2x/microcode.bin differ diff --git a/cpu/intel/model_f3x/microcode.bin b/cpu/intel/model_f3x/microcode.bin new file mode 100644 index 0000000000..110215d410 Binary files /dev/null and b/cpu/intel/model_f3x/microcode.bin differ diff --git a/cpu/intel/model_f4x/microcode.bin b/cpu/intel/model_f4x/microcode.bin new file mode 100644 index 0000000000..5b83efdb5b Binary files /dev/null and b/cpu/intel/model_f4x/microcode.bin differ