pcengines / apu2-documentation

Documentation and scripts for building and adjusting PC Engines APU2 firmware
https://pcengines.github.io/apu2-documentation/
208 stars 45 forks source link

Tried to build 4.12.0.5 getting error during 3rdparty #261

Open rahlquist opened 3 years ago

rahlquist commented 3 years ago

rahlquist@rltp:~/pce-fw-builder$ ./build.sh release v4.12.0.5 apu2 [sudo] password for rahlquist: Cloning into 'release/coreboot'... remote: Counting objects: 127, done remote: Finding sources: 100% (113/113) remote: Total 584898 (delta 1), reused 584846 (delta 1) Receiving objects: 100% (584898/584898), 156.32 MiB | 2.26 MiB/s, done. Resolving deltas: 100% (436242/436242), done. Submodule '3rdparty/amd_blobs' (https://review.coreboot.org/amd_blobs) registered for path '3rdparty/amd_blobs' Submodule 'arm-trusted-firmware' (https://review.coreboot.org/arm-trusted-firmware.git) registered for path '3rdparty/arm-trusted-firmware' Submodule '3rdparty/blobs' (https://review.coreboot.org/blobs.git) registered for path '3rdparty/blobs' Submodule '3rdparty/chromeec' (https://review.coreboot.org/chrome-ec.git) registered for path '3rdparty/chromeec' Submodule '3rdparty/cmocka' (https://review.coreboot.org/cmocka.git) registered for path '3rdparty/cmocka' Submodule '3rdparty/ffs' (https://review.coreboot.org/ffs.git) registered for path '3rdparty/ffs' Submodule '3rdparty/fsp' (https://review.coreboot.org/fsp.git) registered for path '3rdparty/fsp' Submodule 'intel-microcode' (https://review.coreboot.org/intel-microcode.git) registered for path '3rdparty/intel-microcode' Submodule '3rdparty/intel-sec-tools' (https://review.coreboot.org/9esec-security-tooling.git) registered for path '3rdparty/intel-sec-tools' Submodule 'libgfxinit' (https://review.coreboot.org/libgfxinit.git) registered for path '3rdparty/libgfxinit' Submodule 'libhwbase' (https://review.coreboot.org/libhwbase.git) registered for path '3rdparty/libhwbase' Submodule 'opensbi' (https://review.coreboot.org/opensbi.git) registered for path '3rdparty/opensbi' Submodule '3rdparty/qc_blobs' (https://review.coreboot.org/qc_blobs.git) registered for path '3rdparty/qc_blobs' Submodule '3rdparty/stm' (https://review.coreboot.org/STM) registered for path '3rdparty/stm' Submodule 'vboot' (https://review.coreboot.org/vboot.git) registered for path '3rdparty/vboot' Submodule 'util/nvidia-cbootimage' (https://review.coreboot.org/nvidia-cbootimage.git) registered for path 'util/nvidia/cbootimage' Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/amd_blobs'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/arm-trusted-firmware'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/blobs'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/chromeec'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/cmocka'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/ffs'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/fsp'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/intel-microcode'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/intel-sec-tools'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/libgfxinit'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/libhwbase'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/opensbi'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/qc_blobs'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/stm'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/3rdparty/vboot'... Cloning into '/home/rahlquist/pce-fw-builder/release/coreboot/util/nvidia/cbootimage'... Submodule path '3rdparty/amd_blobs': checked out '8c668ab552a02724a07f8c6e7285a5f21a61569b' Submodule path '3rdparty/arm-trusted-firmware': checked out 'a4c979ade4438dfdd69c1b6e23b64e88eb648183' Submodule path '3rdparty/blobs': checked out 'a59fb6e3892f0629d43769a07ee7f1048a0ae1f8' Submodule path '3rdparty/chromeec': checked out 'a1afae4e002a3eccd7835ac898259b0690e9e61a' Submodule path '3rdparty/cmocka': checked out '672c5cee79eb412025c3dd8b034e611c1f119055' Submodule path '3rdparty/ffs': checked out '3ec70fbc458e32eef0d0b1de79688b4dc48cbd57' Submodule path '3rdparty/fsp': checked out 'eb25f19ef7fbe88fb207c6896a37a2035bba9bc5' Submodule path '3rdparty/intel-microcode': checked out '0e4288f81f806620c65f70ee2bcf94b69d574096' Submodule path '3rdparty/intel-sec-tools': checked out 'a86ff5d400983d685d4389c07433452c7a503300' Submodule path '3rdparty/libgfxinit': checked out '3318bf26803c77d41b18bef6d7ae4e051b97f9f2' Submodule path '3rdparty/libhwbase': checked out 'a3edc6ef32d09c566b7ea3555bc753458ec63039' Submodule path '3rdparty/opensbi': checked out '215421ca610a64b8ec188c96ea8588ae2de41fb7' Submodule path '3rdparty/qc_blobs': checked out '6b7fe498eb782b8f9758f28dd53bb0697be0d0b0' Submodule path '3rdparty/stm': checked out '1f3258261a4f4d6c60ec4447c7a03acf2509b984' Submodule path '3rdparty/vboot': checked out '4c523ed10f25de872ac0513ebd6ca53d3970b9de' Submodule path 'util/nvidia/cbootimage': checked out '65a6d94dd5f442578551e0a81ecbe5235e673fd4' remote: Enumerating objects: 3395, done. remote: Counting objects: 100% (3395/3395), done. remote: Compressing objects: 100% (80/80), done. remote: Total 10206 (delta 3330), reused 3355 (delta 3315), pack-reused 6811 Receiving objects: 100% (10206/10206), 3.69 MiB | 1.83 MiB/s, done. Resolving deltas: 100% (7235/7235), completed with 1068 local objects. From https://github.com/pcengines/coreboot

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 9250913f78 Merge pull request #441 from pcengines/rel_4.12.0.5 remote: Counting objects: 246, done remote: Finding sources: 100% (115/115) remote: Total 115 (delta 48), reused 115 (delta 48) Receiving objects: 100% (115/115), 2.08 MiB | 413.00 KiB/s, done. Resolving deltas: 100% (48/48), done. From https://review.coreboot.org/amd_blobs

miczyg1 commented 3 years ago

@lwcislo isn't it a problem with version check?

lwcislo commented 3 years ago

@miczyg1 @rahlquist it has been fixed in 8e6c98b1fea97ba14f058b4c55479c645255a66f :

lwcislo@lukasz-Dell:~/Projects/pce-fw-builder$ ./build.sh release v4.12.0.5 apu2
[sudo] password for lwcislo: 
Cloning into 'release/coreboot'...
...
Built pcengines/apu2 (apu2)
47b59bdb2c76c785dfc76d0ba733ec2857ee7f046a82d2a47fe5ae07bd951aa0  apu2_v4.12.0.5.rom
miczyg1 commented 3 years ago

Cool, but @lwcislo could you please instruct how to build it to avoid these errors?

lwcislo commented 3 years ago

To build it from scratch:

  1. Clone repository git@github.com:pcengines/pce-fw-builder.git
  2. If you have done it already ensure that you are on master branch (git status)
  3. Pull the latest changes (git pull)
  4. Build FW (i.e. using the same command as shown above) : ./build.sh release <version> <platform> i.e. ./build.sh release v4.12.0.5 apu2