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

build fails: cp: cannot stat 'configs/config.pcengines_apu2': No such file or directory #271

Open stapelberg opened 6 years ago

stapelberg commented 6 years ago

Thanks for providing this repository, it’s very useful!

However, I had to work around the following issue to get it building:

% ./build.sh release v4.6.9 apu2
Cloning into 'release/coreboot'...
remote: Counting objects: 16120, done
remote: Finding sources: 100% (513/513)
remote: Total 385791 (delta 50), reused 385511 (delta 50)
Receiving objects: 100% (385791/385791), 84.07 MiB | 10.78 MiB/s, done.
Resolving deltas: 100% (306032/306032), 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 | 5.16 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.9'.

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 c3314b1c56 Merge pull request #143 from pcengines/rel_v4.6.9
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
Unable to find image 'pcengines/pce-fw-builder:latest' locally
latest: Pulling from pcengines/pce-fw-builder
3a8649ffa174: Pull complete 
7fc1ef040198: Pull complete 
6e5a5d8c482f: Pull complete 
1a6d7a044cdb: Pull complete 
ffb2ffc0b3b6: Pull complete 
30adbdb57e64: Pull complete 
Digest: sha256:06c5e363186fb40da065329b6e7a8c440bbc9a77f4118aee66692ca49e9a5eaf
Status: Downloaded newer image for pcengines/pce-fw-builder:latest
Build coreboot for apu2
/home/coreboot/scripts/pce-fw-builder.sh: line 11: [: missing `]'
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.9.rom: No such file or directory
tar: apu2_v4.6.9.rom: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors

As a workaround, in scripts/pce-fw-builder.sh, I hard-coded cp configs/pcengines_$1.config .config and removed the check for $legacy (which also causes a syntax error due to missing whitespace).

pietrushnic commented 6 years ago

@stapelberg thanks for reporting that. I know about the issue. In future please use recent tag since master may contain changes that didn't propagate yet to other repositories eg. pcengines/pce-fw-builder#10 prepare stuff for 4.8.0.x release series and may have problems with other releases.

Anyway, this would be fixed in v.1.2.0

stapelberg commented 6 years ago

If people are supposed to always use tagged versions, could you add this to the README.md please? :)

pietrushnic commented 6 years ago

@miczyg1 this should be simple not that have to be added let some junior handle that.