Commit fc7a3d2a authored by Youness Alaoui's avatar Youness Alaoui
Browse files

Add support for librem 15 v2

parent 02d42b19
/pci@i0cf8/*@1f,2/drive@1/disk@0
/pci@i0cf8/pci-bridge@1c,5/*@0
/pci@i0cf8/*@1f,2/drive@0/disk@0
#!/bin/bash -e
# depends on : git build-essential bison flex m4 zlib1g-dev gnat libpci-dev libusb-dev libusb-1.0-0-dev dmidecode bsdiff python2.7
# Librem 13 v1 binary blob hashes
# Librem 13 v1 and Librem 15 v2 binary blob hashes
BDL_UCODE_SHA="69537c27d152ada7dce9e35bfa16e3cede81a18428d1011bd3c33ecae7afb467"
BDL_DESCRIPTOR_SHA="be34b19b4de387a07d4fc859d2e4ee44723756f5f54552f236136679b4e52c46"
BDL_MRC_SHA="dd05ab481e1fe0ce20ade164cf3dbef3c479592801470e6e79faa17624751343"
......@@ -42,6 +42,8 @@ RAR_NONFREE_SOURCE_SHA="9b66e4353a9944bc140eb2a919ff99482dd548f858f5e296d809e8f7
# Final flashregion_1_bios sha256 hashes
L13V1_COREBOOT_BIOS_SHA="304d1b66a66a6aa7baed90987e52653f5d50ab82c4ee1d974b4a0c4236532e77"
L13V1_COREBOOT_VERSION="4.7-Purism-2"
L15V2_COREBOOT_BIOS_SHA="bfa553e1a9a6069900a687ca6ea30ac748f329b43bae693edab09b578c8c4980"
L15V2_COREBOOT_VERSION="4.7-Purism-5"
L13V2_COREBOOT_BIOS_SHA="0f644c93d0431675eb3b089dd198d653f22838a702a366ad8a7be31f7cfe1143"
L13V2_COREBOOT_VERSION="4.7-Purism-4"
L15V3_COREBOOT_BIOS_SHA="315abcdfa6c004045a4bbba8f2f73b46d228ba18869efd91e08bafb8835c4c8b"
......@@ -345,7 +347,7 @@ fi
clear
echo "Which coreboot image do you want to build:"
echo "1 - Librem 13 v1 (Version : $L13V1_COREBOOT_VERSION)"
echo "2 - Librem 15 v2 (port not finished)"
echo "2 - Librem 15 v2 (Version : $L15V2_COREBOOT_VERSION)"
echo "3 - Librem 13 v2 (Version : $L13V2_COREBOOT_VERSION)"
echo "4 - Librem 15 v3 (Version : $L15V3_COREBOOT_VERSION)"
echo ""
......@@ -370,10 +372,9 @@ if [ "$machine" = "1" ]; then
elif [ "$machine" = "2" ]; then
BLOB_DIR="3rdparty/blobs/mainboard/purism/librem15v2"
COREBOOT_FILENAME="coreboot-l15v2.rom"
COREBOOT_BIOS_SHA=""
COREBOOT_BIOS_SHA="$L15V2_COREBOOT_BIOS_SHA"
COREBOOT_TAG="$L15V2_COREBOOT_VERSION"
SKL=0
echo "The Librem 15 v2 has not yet been ported to Coreboot"
exit 1
elif [ "$machine" = "3" ]; then
BLOB_DIR="3rdparty/blobs/mainboard/purism/librem_skl"
COREBOOT_FILENAME="coreboot-l13v2.rom"
......@@ -449,7 +450,7 @@ if [ "$machine" = "1" ]; then
cp coreboot-files/bootorder-l13v1.txt bootorder.txt
elif [ "$machine" = "2" ]; then
cp coreboot-files/configs/config.librem15v2 .config
cp coreboot-files/bootorder-l13v1.txt bootorder.txt
cp coreboot-files/bootorder-l15v2.txt bootorder.txt
elif [ "$machine" = "3" ]; then
cp coreboot-files/configs/config.librem13v2 .config
cp coreboot-files/bootorder-l13v2.txt bootorder.txt
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment