coreboot/src/mainboard
Raul E Rangel 24ee0b5991 Revert "mb/google/zork: Increase RO section to 5MB"
This reverts commit fddd101904188193197be10c8eae04e76386299b.

Reason for revert: With FSP compression and non serial FSP we now have enough space in RO.

Original change's description:
> mb/google/zork: Increase RO section to 5MB
>
> The current size is too small to fit all the depthcharge assets.
> Increasing it to 5MB gives us 648k of free space.
>
> $ cbfstool /build/zork/firmware/image-trembyle.serial.bin print -r COREBOOT
> FMAP REGION: COREBOOT
> Name                           Offset     Type           Size   Comp
> cbfs master header             0x0        cbfs header        32 none
> fallback/romstage              0x80       stage          524316 none
> fallback/ramstage              0x80100    stage           96592 none
> config                         0x97ac0    raw               843 none
> revision                       0x97e80    raw               680 none
> spd.bin                        0x98180    spd              8192 none
> etc/sdcard0                    0x9a1c0    raw                 8 none
> locales                        0x9a200    raw               141 LZMA (166 decompressed)
> (empty)                        0x9a300    null             3224 none
> fspm.bin                       0x9afc0    fsp            720896 none
> (empty)                        0x14b000   null             3992 none
> fsps.bin                       0x14bfc0   fsp            327680 none
> pci1002,15d8,c1.rom            0x19c000   optionrom       54272 none
> pci1002,15d8,c4.rom            0x1a9480   optionrom       54272 none
> fallback/dsdt.aml              0x1b6900   raw             12727 none
> locale_hi.bin                  0x1b9b00   raw             10441 LZMA (239928 decompressed)
> ...
> locale_ko.bin                  0x254f80   raw             11282 LZMA (231168 decompressed)
> fallback/payload               0x257c00   simple elf      95169 none
> (empty)                        0x26f000   null           245656 none
> apu/amdfw                      0x2aafc0   raw           1277440 none
> (empty)                        0x3e2e00   null           688472 none
> bootblock                      0x48af80   bootblock          64 none
>
> BUG=b:130028876
> BRANCH=none
> TEST=Built image with depthcharge and booted.
>
> Change-Id: I9cd2902404ef68cdbd4a9484d5cb1ee9cba3efd1
> Signed-off-by: Raul E Rangel <rrangel@chromium.org>
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/2042850
> Reviewed-by: Martin Roth <martinroth@google.com>

BUG=b:130028876, b:150746858
BRANCH=none
TEST=emerge-zork coreboot-zork chromeos-bootimage and boot trembyle
localhost ~ # flashrom -p host -r /tmp/main.bin
flashrom v0.9.9  : 1e0291b4 : Apr 16 2020 06:13:41 UTC on Linux 5.4.39 (x86_64)
flashrom v0.9.9  : 1e0291b4 : Apr 16 2020 06:13:41 UTC on Linux 5.4.39 (x86_64)
Calibrating delay loop... OK.
coreboot table found at 0xcbe54000.
Reading flash... SUCCESS

localhost ~ # futility dump_fmap /tmp/main.bin | grep WP_RO -B 3
area:            22
area_offset:     0x00c00000
area_size:       0x00400000 (4194304)
area_name:       WP_RO

localhost ~ # flashrom -p host --wp-range 0xc00000 0x400000 --wp-enable
flashrom v0.9.9  : 1e0291b4 : Apr 16 2020 06:13:41 UTC on Linux 5.4.39 (x86_64)
flashrom v0.9.9  : 1e0291b4 : Apr 16 2020 06:13:41 UTC on Linux 5.4.39 (x86_64)
coreboot table found at 0xcbe54000.
SUCCESS

localhost ~ # flashrom -p host --wp-status
flashrom v0.9.9  : 1e0291b4 : Apr 16 2020 06:13:41 UTC on Linux 5.4.39 (x86_64)
flashrom v0.9.9  : 1e0291b4 : Apr 16 2020 06:13:41 UTC on Linux 5.4.39 (x86_64)
coreboot table found at 0xcbe54000.
WP: status: 0x0094
WP: status.srp0: 1
WP: status.srp1: 0
WP: write protect is enabled.
WP: write protect range: start=0x00c00000, len=0x00400000

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: I5df10ee8e855adfaaf4b2fac4c2c47037ec093b4
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42049
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2020-06-04 23:06:41 +00:00
..
51nb src: Remove duplicated includes 2020-06-02 07:41:25 +00:00
adlink mb/*/Kconfig: Factor out MAINBOARD_VENDOR 2020-03-03 10:15:22 +00:00
amd src: Remove unused '#include <cpu/x86/lapic.h>' 2020-06-02 07:38:45 +00:00
aopen mb/aopen/dxplplusu: Control SMI related FADT entries 2020-06-03 12:19:24 +00:00
apple mainboard/*/*/*.cb: Remove leading blank lines from SPDX header 2020-05-18 07:01:11 +00:00
asrock mb/asrock/h110m: Select MAINBOARD_HAS_LPC_TPM 2020-06-02 07:46:45 +00:00
asus src: Remove unused '#include <cpu/x86/lapic.h>' 2020-06-02 07:38:45 +00:00
bap mb/bap/ode_e21XX: Drop old commented Kconfigs 2020-06-03 12:16:43 +00:00
biostar src: Remove unused '#include <cpu/x86/lapic.h>' 2020-06-02 07:38:45 +00:00
cavium mainboard/*/*/*.cb: Remove leading blank lines from SPDX header 2020-05-18 07:01:11 +00:00
compulab mainboard/*/*/*.cb: Remove leading blank lines from SPDX header 2020-05-18 07:01:11 +00:00
dell mb/dell/optiplex_9010: Add Dell OptiPlex 9010 SFF support 2020-05-16 17:38:46 +00:00
elmex src: Fix up #-commented SPDX headers 2020-06-01 17:08:53 +00:00
emulation mb/emulation: Remove fake devicetree.cb components 2020-05-28 09:29:45 +00:00
facebook src: Remove unused '#include <cbfs.h>' 2020-06-02 07:42:56 +00:00
foxconn mainboard/*/*/Kconfig*: Remove leading blank lines from SPDX header 2020-05-18 07:00:58 +00:00
getac mainboard/*/*/*.cb: Remove leading blank lines from SPDX header 2020-05-18 07:01:11 +00:00
gigabyte mb/gigabyte/ga-g41m-es2l: Remove MEI PCI devices from devicetree 2020-06-03 12:23:43 +00:00
gizmosphere src: Remove unused '#include <cpu/x86/lapic.h>' 2020-06-02 07:38:45 +00:00
google Revert "mb/google/zork: Increase RO section to 5MB" 2020-06-04 23:06:41 +00:00
hp src: Remove unused '#include <cpu/x86/lapic.h>' 2020-06-02 07:38:45 +00:00
ibase src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
intel Makefile: Drop HAVE_SMI_HANDLER test for smm-class 2020-06-03 12:18:30 +00:00
jetway src: Fix up #-commented SPDX headers 2020-06-01 17:08:53 +00:00
kontron src: Remove unused '#include <cpu/x86/lapic.h>' 2020-06-02 07:38:45 +00:00
lenovo mb/lenovo/x230: Add support for ThinkLight 2020-06-02 07:45:25 +00:00
libretrend skylake: update processor power limits configuration 2020-05-18 07:13:23 +00:00
lippert src: Fix up #-commented SPDX headers 2020-06-01 17:08:53 +00:00
msi src: Remove unused '#include <cpu/x86/lapic.h>' 2020-06-02 07:38:45 +00:00
ocp treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
opencellular mainboard/*/*/*.cb: Remove leading blank lines from SPDX header 2020-05-18 07:01:11 +00:00
packardbell src: Remove unused '#include <cpu/x86/lapic.h>' 2020-06-02 07:38:45 +00:00
pcengines src: Fix up #-commented SPDX headers 2020-06-01 17:08:53 +00:00
portwell src: Remove unused '#include <cbfs.h>' 2020-06-02 07:42:56 +00:00
protectli src: Remove unused 'include <bootstate.h>' 2020-06-02 07:40:35 +00:00
purism mb/purism/librem*: drop EC chip device 2020-06-02 07:46:29 +00:00
razer skylake: update processor power limits configuration 2020-05-18 07:13:23 +00:00
roda src: Remove unused 'include <string.h>' 2020-05-18 07:41:24 +00:00
samsung src: Remove unused 'include <arch/smp/mpspec.h>' 2020-06-02 07:40:08 +00:00
sapphire src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
scaleway src: Remove unused 'include <arch/smp/mpspec.h>' 2020-06-02 07:40:08 +00:00
siemens treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
sifive src: Remove unused '#include <cbfs.h>' 2020-06-02 07:42:56 +00:00
supermicro src: Remove redundant includes 2020-06-02 07:42:32 +00:00
system76 cannonlake: update processor power limits configuration 2020-05-26 15:02:54 +00:00
ti mainboard/*/*/*.cb: Remove leading blank lines from SPDX header 2020-05-18 07:01:11 +00:00
up treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Kconfig mb/*/Kconfig: Factor out MAINBOARD_VENDOR 2020-03-03 10:15:22 +00:00