diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-05-17 19:02:59 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-05-17 19:51:08 +0100 |
commit | 364de4be3787614d742c0a57171582a05249b2d1 (patch) | |
tree | 3f662bbccdf7eda24c748416277647c5379bc93c | |
parent | 7c74e5672ecc35d401a83c0ebb5c0a71bdd598b5 (diff) | |
download | librebootfr-364de4be3787614d742c0a57171582a05249b2d1.tar.gz librebootfr-364de4be3787614d742c0a57171582a05249b2d1.zip |
Update flashrom and rebase patches
Rebase the patch to purge unwanted flash chip definitions.
Remove the X200 whitelist patch (merged upstream).
Add a patch to enable X200 Tablet and X200S whitelist.
-rw-r--r-- | docs/release.html | 7 | ||||
-rw-r--r-- | docs/tasks.html | 2 | ||||
-rw-r--r-- | resources/flashrom/patch/purged_chips.diff | 60 | ||||
-rw-r--r-- | resources/flashrom/patch/x200s_x200t_whitelist.diff (renamed from resources/flashrom/patch/x200whitelist.diff) | 11 | ||||
-rwxr-xr-x | resources/scripts/helpers/download/flashrom | 10 |
5 files changed, 53 insertions, 37 deletions
diff --git a/docs/release.html b/docs/release.html index c1de35ce..7db590a9 100644 --- a/docs/release.html +++ b/docs/release.html @@ -114,6 +114,13 @@ Changes for this release (earliest changes last, recent changes first) </h2> <ul> + <li> + Updated flashrom (to SVN revision 1889) + <ul> + <li>X200 whitelist patch removed (merged upstream)</li> + <li>X200 whitelist modified to include X200S and X200 Tablet</li> + </ul> + </li> <li>libreboot_util: don't include cmos layout files (not needed anymore)</li> <li><b>coreboot-libre: backport patches for X200 Tablet digitizer support</b></li> <li>build/release/archives: create SHA512 sum manifest file of the release archives</li> diff --git a/docs/tasks.html b/docs/tasks.html index 14adb26f..9f3f5f07 100644 --- a/docs/tasks.html +++ b/docs/tasks.html @@ -237,7 +237,7 @@ scripts do an excellent job and (adapted) will make it much easier to maintain coreboot-libre. </li> <li> - Add a whitelist entry to board_enable.c in flashrom, for the ThinkPad R400 and T400 + Add a whitelist entry to board_enable.c in flashrom, for the ThinkPad R400, T400 and T500 </li> </ul> <p><a href="#pagetop">Back to top of page.</a></p> diff --git a/resources/flashrom/patch/purged_chips.diff b/resources/flashrom/patch/purged_chips.diff index 8795495c..e15c2fd2 100644 --- a/resources/flashrom/patch/purged_chips.diff +++ b/resources/flashrom/patch/purged_chips.diff @@ -1,6 +1,8 @@ ---- flashchips.c 2014-12-29 23:36:27.463726125 +0000 -+++ flashchips.c_defspurged 2014-12-30 01:53:02.300362113 +0000 -@@ -6602,80 +6602,6 @@ +Index: flashchips.c +=================================================================== +--- flashchips.c (revision 1889) ++++ flashchips.c (working copy) +@@ -7038,80 +7038,6 @@ { .vendor = "Macronix", @@ -39,13 +41,13 @@ - - { - .vendor = "Macronix", -- .name = "MX25L1605A/MX25L1606E", +- .name = "MX25L1605A/MX25L1606E/MX25L1608E", - .bustype = BUS_SPI, - .manufacture_id = MACRONIX_ID, - .model_id = MACRONIX_MX25L1605, - .total_size = 2048, - .page_size = 256, -- /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */ +- /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ - .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, - .tested = TEST_OK_PREW, - .probe = probe_spi_rdid, @@ -70,9 +72,9 @@ - }, - }, - .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ -- .unlock = spi_disable_blockprotect, +- .unlock = spi_disable_blockprotect_bp3_srwd, - .write = spi_chip_write_256, -- .read = spi_chip_read, /* Fast read (0x0B) supported */ +- .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */ - .voltage = {2700, 3600}, - }, - @@ -81,7 +83,7 @@ .name = "MX25L1605D/MX25L1608D/MX25L1673E", .bustype = BUS_SPI, .manufacture_id = MACRONIX_ID, -@@ -6783,41 +6709,6 @@ +@@ -7219,41 +7145,6 @@ { .vendor = "Macronix", @@ -123,11 +125,11 @@ .name = "MX25L3205D/MX25L3208D", .bustype = BUS_SPI, .manufacture_id = MACRONIX_ID, -@@ -6854,84 +6745,6 @@ +@@ -7290,84 +7181,6 @@ { .vendor = "Macronix", -- .name = "MX25L3206E", +- .name = "MX25L3206E/MX25L3208E", - .bustype = BUS_SPI, - .manufacture_id = MACRONIX_ID, - .model_id = MACRONIX_MX25L3205, @@ -158,7 +160,7 @@ - }, - }, - .printlock = spi_prettyprint_status_register_bp3_srwd, -- .unlock = spi_disable_blockprotect, +- .unlock = spi_disable_blockprotect_bp3_srwd, - .write = spi_chip_write_256, - .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ - .voltage = {2700, 3600}, @@ -197,7 +199,7 @@ - }, - }, - .printlock = spi_prettyprint_status_register_bp3_srwd, -- .unlock = spi_disable_blockprotect, +- .unlock = spi_disable_blockprotect_bp3_srwd, - .write = spi_chip_write_256, - .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ - .voltage = {2700, 3600}, @@ -208,19 +210,18 @@ .name = "MX25L3235D", .bustype = BUS_SPI, .manufacture_id = MACRONIX_ID, -@@ -7002,82 +6815,6 @@ - .voltage = {2700, 3600}, - }, +@@ -7476,86 +7289,6 @@ -- { -- .vendor = "Macronix", -- .name = "MX25L6406E/MX25L6436E", + { + .vendor = "Macronix", +- .name = "MX25L6406E/MX25L6408E", - .bustype = BUS_SPI, - .manufacture_id = MACRONIX_ID, - .model_id = MACRONIX_MX25L6405, - .total_size = 8192, - .page_size = 256, -- /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */ +- /* MX25L6406E supports SFDP */ +- /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ - .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, - .tested = TEST_OK_PREW, - .probe = probe_spi_rdid, @@ -232,6 +233,9 @@ - .block_erase = spi_block_erase_20, - }, { - .eraseblocks = { {64 * 1024, 128} }, +- .block_erase = spi_block_erase_52, +- }, { +- .eraseblocks = { {64 * 1024, 128} }, - .block_erase = spi_block_erase_d8, - }, { - .eraseblocks = { {8 * 1024 * 1024, 1} }, @@ -241,16 +245,16 @@ - .block_erase = spi_block_erase_c7, - } - }, -- .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */ -- .unlock = spi_disable_blockprotect, +- .printlock = spi_prettyprint_status_register_bp3_srwd, +- .unlock = spi_disable_blockprotect_bp3_srwd, - .write = spi_chip_write_256, -- .read = spi_chip_read, +- .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ - .voltage = {2700, 3600}, - }, - - { - .vendor = "Macronix", -- .name = "MX25L6445E/MX25L6473E", +- .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E", - .bustype = BUS_SPI, - .manufacture_id = MACRONIX_ID, - .model_id = MACRONIX_MX25L6405, @@ -282,12 +286,14 @@ - } - }, - .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ -- .unlock = spi_disable_blockprotect, +- .unlock = spi_disable_blockprotect_bp3_srwd, - .write = spi_chip_write_256, - .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ - .voltage = {2700, 3600}, - }, - - { - .vendor = "Macronix", - .name = "MX25L12805(D)", +- { +- .vendor = "Macronix", + .name = "MX25L12805D", + .bustype = BUS_SPI, + .manufacture_id = MACRONIX_ID, diff --git a/resources/flashrom/patch/x200whitelist.diff b/resources/flashrom/patch/x200s_x200t_whitelist.diff index c951a8a7..5b9da6b7 100644 --- a/resources/flashrom/patch/x200whitelist.diff +++ b/resources/flashrom/patch/x200s_x200t_whitelist.diff @@ -1,10 +1,13 @@ ---- board_enable.c 2014-12-29 23:30:27.061938702 +0000 -+++ board_enable.x200whitelist.c 2014-12-29 23:30:47.262039193 +0000 -@@ -2427,6 +2427,7 @@ +Index: board_enable.c +=================================================================== +--- board_enable.c (revision 1889) ++++ board_enable.c (working copy) +@@ -2429,7 +2429,7 @@ {0x8086, 0x1E22, 0x17AA, 0x21F6, 0x8086, 0x1E55, 0x17AA, 0x21F6, "^ThinkPad T530", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad T530", 0, OK, p2_whitelist_laptop}, {0x8086, 0x27a0, 0x17aa, 0x2015, 0x8086, 0x27b9, 0x17aa, 0x2009, "^ThinkPad T60", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad T60", 0, OK, p2_whitelist_laptop}, {0x8086, 0x27a0, 0x17aa, 0x2017, 0x8086, 0x27b9, 0x17aa, 0x2009, "^ThinkPad T60", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad T60(s)", 0, OK, p2_whitelist_laptop}, -+ {0x8086, 0x2917, 0x17AA, 0x20F5, 0x8086, 0x2930, 0x17AA, 0x20F9, "^ThinkPad X200$", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad X200", 0, OK, p2_whitelist_laptop}, +- {0x8086, 0x2917, 0x17AA, 0x20F5, 0x8086, 0x2930, 0x17AA, 0x20F9, "^ThinkPad X200$", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad X200", 0, OK, p2_whitelist_laptop}, ++ {0x8086, 0x2917, 0x17AA, 0x20F5, 0x8086, 0x2930, 0x17AA, 0x20F9, "^ThinkPad X200", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad X200", 0, OK, p2_whitelist_laptop}, {0x8086, 0x3B07, 0x17AA, 0x2166, 0x8086, 0x3B30, 0x17AA, 0x2167, "^Lenovo X201", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad X201", 0, OK, p2_whitelist_laptop}, {0x8086, 0x1E22, 0x17AA, 0x21FA, 0x8086, 0x1E55, 0x17AA, 0x21FA, "^ThinkPad X230", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad X230", 0, OK, p2_whitelist_laptop}, {0x8086, 0x27A0, 0x17AA, 0x2017, 0x8086, 0x27B9, 0x17AA, 0x2009, "^ThinkPad X60", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad X60(s)", 0, OK, p2_whitelist_laptop}, diff --git a/resources/scripts/helpers/download/flashrom b/resources/scripts/helpers/download/flashrom index cf957a39..fa6b060c 100755 --- a/resources/scripts/helpers/download/flashrom +++ b/resources/scripts/helpers/download/flashrom @@ -37,21 +37,21 @@ rm -rf flashrom # ------------------------------------------------------------------------------ # download it using subversion -svn co -r 1858 svn://flashrom.org/flashrom/trunk flashrom +svn co -r 1889 svn://flashrom.org/flashrom/trunk flashrom # apply patches cd flashrom/ -# Add whitelist for X200: -printf "Patching board_enable.c for X200 whitelist\n" -patch board_enable.c < ../resources/flashrom/patch/x200whitelist.diff +# Enable X200 Tablet and X200S whitelist (X200 is already whitelisted) +printf "Enabling whitelist for X200S and X200 Tablet\n" +svn patch ../resources/flashrom/patch/x200s_x200t_whitelist.diff # Remove redundant definitions for the flash chips that # supported libreboot machines use. This removes the need # for the user to run with the "-c" argument on these machines printf "Patching flashchips.c to remove the redundant entries\n" -patch flashchips.c < ../resources/flashrom/patch/purged_chips.diff +svn patch ../resources/flashrom/patch/purged_chips.diff cd ../ |