Giter VIP home page Giter VIP logo

release_manifests's Introduction

Release manifests for PCEngines firmware bundles

This repository contains manifests for repo tool used for tracking the releases of mainline (4.6.x) and legacy (4.0.x) versions of firmware bundle.

There are two branches:

  • coreboot-4.0.x - for legacy releases
  • coreboot-4.6.x - for mainline releases

Use repo tool to initialize set of repositories

mkdir apu2_fw_rel
cd apu2_fw_rel

repo init -u [email protected]:pcengines/release_manifests.git -b refs/tags/<tag_release>
# or
repo init -u [email protected]:pcengines/release_manifests.git -b <branch_name>

repo sync --force-sync

where:

  • <tag_release> - is the release version number (e.g. v4.5.3.1)
  • <branch_name> - is the release branch (i.e. coreboot-4.0.x for legacy, and coreboot-4.6.x for mainline

Build container

This is to avoid impact of system on build results:

docker build -t pcengines/apu2 apu2/apu2-documentation

This step could be omitted, if there was build done before (container already exists).

Build release

Assuming you initialized the repo with mainline release:

./apu2/apu2-documentation/scripts/apu2_fw_rel.sh build-ml menuconfig

Please choose:

Mainboard -> Mainboard vendor -> PC Engines
Mainboard -> Mainboard model  -> APU2
#or
Mainboard -> Mainboard model  -> APU3

All other pieces will be set according to recent release configuration. coreboot image will start to build after exiting menu.

For legacy release you can use this command. You don't need to run menuconfig first, because legacy release get's initialized by custom .config file:

./apu2/apu2-documentation/scripts/apu2_fw_rel.sh build

There are also additional commands like:

# distclean && menuconfig
./apu2/apu2-documentation/scripts/apu2_fw_rel.sh build-ml distclean

#rm -rf .config* && menuconfig
./apu2/apu2-documentation/scripts/apu2_fw_rel.sh build-ml cfgclean

#custom make parameters
./apu2/apu2-documentation/scripts/apu2_fw_rel.sh build-ml custom <param>

After successful build, you can flash target device.

Flash release

Note that below script assume that you have ssh enabled connection with target device and destination OS APU2 image builder or other distro that have working flashrom available in PATH. Without keys added you will see question about password couple times during flashing.

./apu2/apu2-documentation/scripts/apu2_fw_rel.sh flash <user>@<ip_address>

For mainline:

./apu2/apu2-documentation/scripts/apu2_fw_rel.sh flash-ml <user>@<ip_address>

Best way is to use root as <user> because it can have no problem with low level access.

Please do not hesitate with providing feedback or contributing fixes.

Known issues

using repo with coreboot show errors like:

fatal: Not a git repository (or any parent up to mount point /coreboot)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Since it use git commands to create build timestamp.

flashing doesn't work

[21:51:53] pietrushnic:apu2_fw_rel $ ../apu2-documentation/scripts/apu2_fw_rel.sh flash-ml [email protected]
flash-ml [email protected]
The authenticity of host '192.168.0.103 (192.168.0.103)' can't be established.
(...)
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.103' (ECDSA) to the list of known hosts.
bash: remountrw: command not found
coreboot.rom                                      100% 8192KB   8.0MB/s   00:00
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified

scripts finish with error

If you see something like this:

dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
docker: Error response from daemon: Invalid volume spec ":": Invalid volume specification: ':'.
See 'docker run --help'.

Try to run:

eval $(ssh-agent)
ssh-add

Reporting issues

If you have any trouble or find any bug, please report an issue in this location. To create the issue, from the list of available templates select the one, that fits best the nature of the issue (bug, feature, question or task) and fill it.

release_manifests's People

Contributors

macpijan avatar mek-x avatar miczyg1 avatar pietrushnic avatar sulewskiprzemyslaw avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

release_manifests's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.