pcengines / apu2-documentation

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

cannot build 4.6.1 #270

Open stapelberg opened 6 years ago

stapelberg commented 6 years ago

As 4.6.1 is the latest version with working PXE boot on the apu2c4 (I mailed support@pcengines.ch about it yesterday), I wanted to customize that image.

Unfortunately, building 4.6.1 fails:

% ./build.sh release v4.6.1 apu2             
Cloning into 'release/coreboot'...           
remote: Counting objects: 15882, done
remote: Finding sources: 100% (196/196)
remote: Total 386032 (delta 49), reused 385941 (delta 49)
Receiving objects: 100% (386032/386032), 84.07 MiB | 10.89 MiB/s, done.
Resolving deltas: 100% (306301/306301), done.
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 '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 '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/michael/apu2/pce-fw-builder/release/coreboot/3rdparty/arm-trusted-firmware'...
Cloning into '/home/michael/apu2/pce-fw-builder/release/coreboot/3rdparty/blobs'...
Cloning into '/home/michael/apu2/pce-fw-builder/release/coreboot/3rdparty/chromeec'...
Cloning into '/home/michael/apu2/pce-fw-builder/release/coreboot/3rdparty/libgfxinit'...
Cloning into '/home/michael/apu2/pce-fw-builder/release/coreboot/3rdparty/libhwbase'...
Cloning into '/home/michael/apu2/pce-fw-builder/release/coreboot/3rdparty/vboot'...
Cloning into '/home/michael/apu2/pce-fw-builder/release/coreboot/util/nvidia/cbootimage'...
Submodule path '3rdparty/arm-trusted-firmware': checked out '693e278e308441d716f7f5116c43aa150955da31'
Submodule path '3rdparty/blobs': checked out '78a02a7f9d979fcc864638cc40084e662476095f'
Submodule path '3rdparty/chromeec': checked out '11bd4c0f4d11357ab830982d7dec164813c886dd'
Submodule path '3rdparty/libgfxinit': checked out '98a673dc57d90cc79e64c53bd02cfcc1c48ea1aa'
Submodule path '3rdparty/libhwbase': checked out '637f2a4f21ead8ccc45d5256834eb27ce72088db'
Submodule path '3rdparty/vboot': checked out '392211f0358919d510179ad399d8f056180e652e'
Submodule path 'util/nvidia/cbootimage': checked out '64045f993c2cd8989838aeaad3d22107d96d5596'
remote: Counting objects: 5266, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 5266 (delta 1582), reused 1577 (delta 1574), pack-reused 3672
Receiving objects: 100% (5266/5266), 2.42 MiB | 4.56 MiB/s, done.
Resolving deltas: 100% (3562/3562), completed with 308 local objects.
From https://github.com/pcengines/coreboot
 * [new branch]            alix_early_cbmem    -> pcengines/alix_early_cbmem
 * [new branch]            apu2-uefi-new       -> pcengines/apu2-uefi-new
 * [new branch]            apu5_s1button_ml    -> pcengines/apu5_s1button_ml
 * [new branch]            coreboot-4.0.x      -> pcengines/coreboot-4.0.x
 * [new branch]            coreboot-4.5.x      -> pcengines/coreboot-4.5.x
 * [new branch]            coreboot-4.6.x      -> pcengines/coreboot-4.6.x
 * [new branch]            coreboot-4.6.x-uefi -> pcengines/coreboot-4.6.x-uefi
 * [new branch]            coreboot-4.7.x      -> pcengines/coreboot-4.7.x
 * [new branch]            coreboot-4.7.x-uefi -> pcengines/coreboot-4.7.x-uefi
 * [new branch]            coreboot-4.7.x-wip  -> pcengines/coreboot-4.7.x-wip
 * [new branch]            develop             -> pcengines/develop
 * [new branch]            disable_lpcclk0     -> pcengines/disable_lpcclk0
 * [new branch]            iommu_support       -> pcengines/iommu_support
 * [new branch]            kmalkki-xen-fixes   -> pcengines/kmalkki-xen-fixes
 * [new branch]            master              -> pcengines/master
 * [new branch]            rel_4.8.0.1         -> pcengines/rel_4.8.0.1
 * [new branch]            rel_v4.0.18         -> pcengines/rel_v4.0.18
 * [new branch]            rel_v4.6.10         -> pcengines/rel_v4.6.10
 * [new branch]            rel_v4.6.9          -> pcengines/rel_v4.6.9
 * [new branch]            release             -> pcengines/release
 * [new branch]            rtconf              -> pcengines/rtconf
 * [new branch]            runtime_config      -> pcengines/runtime_config
 * [new branch]            v0.4.1.1-sd-debug   -> pcengines/v0.4.1.1-sd-debug
 * [new branch]            v0.4.1.1-usb-debug  -> pcengines/v0.4.1.1-usb-debug
 * [new tag]               coreboot-4.7.x      -> coreboot-4.7.x
 * [new tag]               v4.0.17             -> v4.0.17
 * [new tag]               v4.5.8              -> v4.5.8
 * [new tag]               v4.6.9              -> v4.6.9
 * [new tag]               v4.7.0              -> v4.7.0
 * [new tag]               apu2b-20160304      -> apu2b-20160304
 * [new tag]               v4.0.1              -> v4.0.1
 * [new tag]               v4.0.1.1            -> v4.0.1.1
 * [new tag]               v4.0.10             -> v4.0.10
 * [new tag]               v4.0.11             -> v4.0.11
 * [new tag]               v4.0.12             -> v4.0.12
 * [new tag]               v4.0.13             -> v4.0.13
 * [new tag]               v4.0.14             -> v4.0.14
 * [new tag]               v4.0.15             -> v4.0.15
 * [new tag]               v4.0.16             -> v4.0.16
 * [new tag]               v4.0.18-test        -> v4.0.18-test
 * [new tag]               v4.0.2              -> v4.0.2
 * [new tag]               v4.0.3              -> v4.0.3
 * [new tag]               v4.0.4              -> v4.0.4
 * [new tag]               v4.0.5              -> v4.0.5
 * [new tag]               v4.0.6              -> v4.0.6
 * [new tag]               v4.0.7              -> v4.0.7
 * [new tag]               v4.0.7.1            -> v4.0.7.1
 * [new tag]               v4.0.7.2            -> v4.0.7.2
 * [new tag]               v4.0.8              -> v4.0.8
 * [new tag]               v4.0.9              -> v4.0.9
 * [new tag]               v4.5.2              -> v4.5.2
 * [new tag]               v4.5.3              -> v4.5.3
 * [new tag]               v4.5.3.1            -> v4.5.3.1
 * [new tag]               v4.5.4              -> v4.5.4
 * [new tag]               v4.5.5              -> v4.5.5
 * [new tag]               v4.5.5.1            -> v4.5.5.1
 * [new tag]               v4.5.5.2            -> v4.5.5.2
 * [new tag]               v4.5.6              -> v4.5.6
 * [new tag]               v4.5.7              -> v4.5.7
 * [new tag]               v4.6.0              -> v4.6.0
 * [new tag]               v4.6.1              -> v4.6.1
 * [new tag]               v4.6.10-test        -> v4.6.10-test
 * [new tag]               v4.6.2              -> v4.6.2
 * [new tag]               v4.6.3              -> v4.6.3
 * [new tag]               v4.6.4              -> v4.6.4
 * [new tag]               v4.6.5              -> v4.6.5
 * [new tag]               v4.6.6              -> v4.6.6
 * [new tag]               v4.6.7              -> v4.6.7
 * [new tag]               v4.6.8              -> v4.6.8
 * [new tag]               v4.6.9-test         -> v4.6.9-test
Note: checking out 'v4.6.1'.

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 performing another checkout.

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

  git checkout -b <new-branch-name>

HEAD is now at 512105cdb1 Merge pull request pcengines/pce-fw-builder#50 from pcengines/rel_v4.6.1
Submodule path '3rdparty/arm-trusted-firmware': checked out 'bfd925139fdbc2e87979849907b34843aa326994'
Submodule path '3rdparty/blobs': checked out '8ad2d6385652e14b6f0d35ab9b474c31ddeb1773'
Submodule path '3rdparty/chromeec': checked out 'ea1a8699e96425806abdd532d04da254ae093f6e'
Submodule path '3rdparty/libgfxinit': checked out '83693c8d7d87f5cebe120abdf25951c9e212b319'
Submodule path '3rdparty/libhwbase': checked out '5e9b1b50e7ac90f68ca2ea798ef656ac863c2851'
Submodule path '3rdparty/vboot': checked out 'ea72ee454aea5e0f378275fe7114cf683b7db938'
Release apu2 build coreboot mainline
Build coreboot for apu2
cp: cannot stat 'configs/config.pcengines_apu2': No such file or directory
Error: Expected config file (/home/coreboot/coreboot/.config) not present.
Please specify a config file or run 'make menuconfig' to
generate a new config file.
Makefile:128: recipe for target 'real-all' failed
make: *** [real-all] Error 1
cp: cannot stat 'coreboot/build/coreboot.rom': No such file or directory
md5sum: apu2_v4.6.1.rom: No such file or directory
tar: apu2_v4.6.1.rom: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
miczyg1 commented 6 years ago

@stapelberg please refer to https://github.com/pcengines/apu2-documentation#building-firmware-using-pc-engines-firmware-builder

It says: For releases older than v4.0.17 and v4.6.9 use the procedure described in this document

stapelberg commented 6 years ago

Thanks! Maybe the build tool could check the version and print an error message, so that other people don’t miss it like I did? :)

pietrushnic commented 6 years ago

@stapelberg good point. @miczyg1 let's add that check in new release.

pietrushnic commented 6 years ago

@stapelberg @miczyg1 added support for that checks: https://github.com/pcengines/pce-fw-builder/pull/12

stapelberg commented 6 years ago

Great, thanks! Maybe the error message could contain a pointer to the guide for older versions?

pietrushnic commented 6 years ago

@stapelberg URLs are likely to change if there will be more requests for this problem we will consider that.