Hi Piotr,
On 03/21/2018 09:49 PM, Piotr Król wrote:
thank you for reading 3mdeb blog :)
Thanks for taking time to write your findings up. Very useful.
MinnowBoard is already integrated. What board are you using ? Is this MinnowBoard Turbot B ?
It is the Turbot but I don't remember if it is B or not. I need to check this this evening.
We were able successfully build coreboot for that platform. What is important is flashing only coreboot region without damaging TXE because that makes platform unbootable.
Is the TXE code also part of the rom? I wonder why it is not showing up in the ifdtool output.
We even prepared Dockerized environment:
I haven't done the docker yet. If all fails I'll try it.
$ docker pull 3mdeb/coreboot-trainings-sdk $ git clone https://review.coreboot.org/coreboot $ docker run --rm -it -v $PWD/coreboot:/home/coreboot/coreboot -w \ /home/coreboot/coreboot 3mdeb/coreboot-trainings-sdk /bin/bash (docker)$ make menuconfig
# select Mainboard vendor (Intel) # select Mainboard model (Minnow Max)
(docker) $ make -j$(nproc) (docker) $ cd util/ifdtool && make
Use compiled ifdtool against oryginal firmware that you flashed to the board:
$ ./util/ifdtool/ifdtool -f layout MNW2MAX1.X64.0097.D01.1709211100.bin
This will give you layout file similar to: 00000000:00000fff fd 00400000:007fffff bios 00001000:003fffff me 00000000:00000fff gbe
I got this as well. Zoran just told me offline that fd and gbe seems to overlap. He also told me that the layout should be fd, gbe, me and finally bios. Is the ifdtool output correct?
Then copy build/coreboot.rom and layout file to your RPi and flash:
(rpi) $ flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=32000 -l \ layout -i bios -w /tmp/coreboot.rom
Our container have default FSP from GitHub which is not the most recent one. Latest you can obtain only through Intel RDC portal.
I suppose the one from GitHub is good enough though? I don't have an RDC portal account.
Thanks, Daniel