On Sat, May 23, 2015 at 7:55 PM, Vincent Palatin <
vpal...@chromium.org> wrote:
> to flash the firmware on Link using a Servo v2, we are normally using the
> following recipe :
>
> dut-control spi2_vref:pp3300 spi2_buf_en:on spi2_buf_on_flex_en:on
> spi_hold:off cold_reset:on
> sudo flashrom -p ft2232_spi:type=servo-v2 --fast-verify -w bios.bin
> dut-control spi2_vref:off spi2_buf_en:off spi2_buf_on_flex_en:off
> cold_reset:off
Thanks, that worked.
Now that I can unbrick my device, I found that image-link.bin from the
latest firmware_from_source.tar.bz2 works OK. But if I build and
flash u-boot from ToT it just hangs. So I rewound u-boot and
vboot_reference to the firmware-link-2695.B tag, but that doesn't even
build:
i686-pc-linux-gnu-gcc -g -DVBOOT_DEBUG -Os -ffunction-sections
-fvisibility=hidden -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x01110000
-fno-builtin -ffreestanding -nostdinc -isystem
/usr/lib/gcc/i686-pc-linux-gnu/4.9.x-google/include -pipe
-fno-strict-aliasing -Wstrict-prototypes -mregparm=3
-fomit-frame-pointer -ffreestanding -fno-toplevel-reorder
-fno-stack-protector -mpreferred-stack-boundary=2 -fno-dwarf2-cfi-asm
-DREALMODE_BASE=0x7c0 -DCONFIG_X86 -D__I386__ -march=i386 -Werror
-Werror -Wall -Wstrict-prototypes -fno-stack-protector
-Wno-format-nonliteral -Wno-format-security -DNDEBUG
-DTPM_BLOCKING_CONTINUESELFTEST
-I/mnt/host/source/src/platform/vboot_reference/firmware/include
-I/mnt/host/source/src/platform/vboot_reference/firmware/lib/include
-I/mnt/host/source/src/platform/vboot_reference/firmware/lib/cgptlib/include
-I/mnt/host/source/src/platform/vboot_reference/firmware/lib/cryptolib/include
-I/mnt/host/source/src/platform/vboot_reference/firmware/lib/tpm_lite/include
-I/mnt/host/source/src/platform/vboot_reference/firmware/arch/x86/include
-MMD -MF /build/link/tmp/portage/sys-boot/chromeos-u-boot-9999/work/build/include/generated/vboot/firmware/./lib/tpm_lite/tlcl.o.d
-c -o /build/link/tmp/portage/sys-boot/chromeos-u-boot-9999/work/build/include/generated/vboot/firmware/./lib/tpm_lite/tlcl.o
lib/tpm_lite/tlcl.c
In file included from
/mnt/host/source/src/platform/vboot_reference/firmware/lib/cgptlib/include/cgptlib.h:9:0,
from lib/cgptlib/cgptlib.c:6:
/mnt/host/source/src/platform/vboot_reference/firmware/include/sysincludes.h:39:26:
fatal error: biosincludes.h: No such file or directory
#include "biosincludes.h"
^
compilation terminated.
../
build.mk:18: recipe for target
'/build/link/tmp/portage/sys-boot/chromeos-u-boot-9999/work/build/include/generated/vboot/firmware/./lib/cgptlib/cgptlib.o'
failed
make[2]: *** [/build/link/tmp/portage/sys-boot/chromeos-u-boot-9999/work/build/include/generated/vboot/firmware/./lib/cgptlib/cgptlib.o]
Error 1
I had to override $FIRMWARE_ARCH in vboot_reference/Makefile to work
around it. But it seems like many other parts of my build environment
(such as cros_bundle_firmware) are no longer able to build firmware
images for link, either. Is there a documented procedure to "go back
in time" and build the firmware from this branch?
FWIW I tried "repo init -b firmware-link-2695.B ; repo sync". That
spent a couple of hours downloading stuff, then it tried to delete a
whole bunch of trees and errored out.
The goal of this exercise is to disable ec_software_sync in u-boot,
since the released version of u-boot doesn't honor the GBB flag. If
there's an easier way of doing that, maybe I don't need to rebuild
u-boot at all.