Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer rimage git history to subdirectory tools/rimage/ in the sof git repo #8297

Merged
merged 354 commits into from
Oct 11, 2023
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Mar 26, 2020

  1. Remove autotools files

    CMake is to be used instead of autotools. So remove the autotools
    files.
    
    This revert commit f6bf4b0 and
    commit 0d33e87
    
    Signed-off-by: Daniel Leung <[email protected]>
    dcpleung authored and lgirdwood committed Mar 26, 2020
    Configuration menu
    Copy the full SHA
    58acbef View commit details
    Browse the repository at this point in the history
  2. Use CMake to build rimage

    This adds the necessary bits to allow building rimage
    with CMake with similar configure options as the just
    removed autotools files.
    
    Also update README.md for new build instructions.
    
    Signed-off-by: Daniel Leung <[email protected]>
    dcpleung authored and lgirdwood committed Mar 26, 2020
    Configuration menu
    Copy the full SHA
    a264697 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2020

  1. Update rimage to remove ldc generation ability

    This reflects the changes on SOF project commit
    b3c1679.
    
    Signed-off-by: Daniel Leung <[email protected]>
    dcpleung authored and lgirdwood committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    e09354a View commit details
    Browse the repository at this point in the history
  2. Remove cmake option SOF_SOURCE_DIR

    Since both fw.h and manifest.h are being used in the main SOF
    repo and also here in the standalone rimage repo, to prevent
    them getting out of sync, the SOF main repo is going to use
    the ones coming from the rimage repo. So there is no need for
    the option anymore.
    
    Signed-off-by: Daniel Leung <[email protected]>
    dcpleung authored and lgirdwood committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    ea04cb8 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2020

  1. rimage: Align function arguments in rimage.h

    Code formatting should be consistent and function arguments
    should be aligned to opening parenthesis.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    c4701c7 View commit details
    Browse the repository at this point in the history
  2. rimage: Remove unused 'image' argument in elf_find_section()

    Unused arguments shouldn't be passed to function because it
    makes code messy.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    e433e87 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2020

  1. Match LICENSE from the main SOF repo

    This changes the LICENSE file to match the LICENSE file
    from the main SOF repo, except they entries for the kconfig
    scripts which are not here in this repo.
    
    Signed-off-by: Daniel Leung <[email protected]>
    dcpleung authored and lgirdwood committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    6c4c873 View commit details
    Browse the repository at this point in the history
  2. Fix compiler errors

    Fixes following error when compiling code:
    ...
    src/elf.c: In function ‘elf_find_section’:
    src/elf.c:469:20: error: initialization discards ‘const’ qualifier
               from pointer target type [-Werror=discarded-qualifiers]
      469 |  Elf32_Ehdr *hdr = &module->hdr;
          |                    ^
    cc1: all warnings being treated as errors
    ...
    
    Signed-off-by: Andrei Emeltchenko <[email protected]>
    finikorg authored and lgirdwood committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    cc5eabb View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2020

  1. Handle missing .init_array section

    Fixes issue ".init_array" is not copied to ri image making it zero
    filled. This causes Zephyr crashing trying to execute functions from
    this section.
    
    Signed-off-by: Andrei Emeltchenko <[email protected]>
    finikorg authored and lgirdwood committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    ca65a44 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2020

  1. CI: Travis: init build test for rimage

    Enable simple build test for rimage.
    
    Signed-off-by: Pan Xiuli <[email protected]>
    xiulipan authored and lgirdwood committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    aecc0b5 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2020

  1. elf: Add function to read section content with allocation

    In many functions there is need to read user section content
    and check firmware version or write section content to some
    manifest or dictionary. Previously to do it, in each function
    was loop to search for proper section in proper module,
    then allocate buffer, read content and check for possible error
    between each step what is quite overwhelming. After change there
    will be one function responsible for this task.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    f79d8d7 View commit details
    Browse the repository at this point in the history
  2. ext_man: Create extended manifest

    Extended manifest is a place to store metadata about firmware, known during
    compilation time - for example firmware version or used compiler.
    Given information are read on host side before firmware startup.
    This part of output binary is not signed.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    f0c6ee0 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2020

  1. ext_man: Move data section name to global define

    This name is used in different part of source code so should refer
    to single place instead by copied.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    6b34a04 View commit details
    Browse the repository at this point in the history
  2. ext_man: elf: Split module and section searching

    Such a solution improve code hermentization and flexibility.
    Also such a solution is more relevant because of focus on particular
    module during section reading, so there won't be possibility to
    implicity scan section 'A' from first module and section 'B' from
    second one.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    0fa22ac View commit details
    Browse the repository at this point in the history
  3. ext_man: Fix write flow when ext_man should be build

    elf_read_section() returns section size when everything is ok,
    so ret value should be reset to 0 after this function call
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    3288674 View commit details
    Browse the repository at this point in the history
  4. ext_man: Make extended manifest build optional

    Try to build extended manifest only when `e` flag will be set,
    to prevent error and warning printing during creating optional
    part of formware image.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    76b6301 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2020

  1. ext_man: Remove redundant variable assign

    ret variable is always set in elf_read_section(), to initial value
    is not important.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed May 7, 2020
    Configuration menu
    Copy the full SHA
    537255b View commit details
    Browse the repository at this point in the history
  2. manifest: ads: meu: Fill FW version description also when MEU is used

    This part of binary should contain valid firmware version.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed May 7, 2020
    Configuration menu
    Copy the full SHA
    ece04f9 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2020

  1. rimage: show LMA and VMA in section view

    Sometimes they will be different and this will make developer
    aware of the differences
    
    Signed-off-by: Adrian Bonislawski <[email protected]>
    abonislawski authored and lgirdwood committed May 12, 2020
    Configuration menu
    Copy the full SHA
    932478a View commit details
    Browse the repository at this point in the history
  2. rimage: use lma if available

    some sections may use different lma than vma address,
    in such case rimage needs to use lma
    
    Signed-off-by: Adrian Bonislawski <[email protected]>
    abonislawski authored and lgirdwood committed May 12, 2020
    Configuration menu
    Copy the full SHA
    f23b2c2 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2020

  1. ext_man: Move extended manifest generator out of kernel folder

    Generator is part of rimage tool and there is any reference to them
    in kernel source code, so it should be moved out of kernel folder.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed May 25, 2020
    Configuration menu
    Copy the full SHA
    67d09d6 View commit details
    Browse the repository at this point in the history
  2. headers: Move headers to rimage namespace

    Because there is possibility to reference headers from this repo
    from another one, there is a need to put every header into rimage
    namespace. Otherwise reference to headers from duplicated
    namespace (like kernel) from external repo may be ambiguous.
    Update guard ifdef/define/endif sequence value, to make it more
    unique
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed May 25, 2020
    Configuration menu
    Copy the full SHA
    116e141 View commit details
    Browse the repository at this point in the history
  3. headers: Use full path to header

    Path added to include should end at 'include' as usual, then
    it is easy to see where specific headers comes from during reading
    source code. It is especially important for projects composed from
    a few parts, like firmware, driver, build and debug tools in this
    project.
    Moreover changed "" to <> in include directives because there is
    specified full path to file from project include root and to be
    aligned with code style from firmware repository,
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed May 25, 2020
    Configuration menu
    Copy the full SHA
    9f3f2d7 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2020

  1. cmake: use CMAKE_BUILD_TYPE and default to Debug

    Unlike hardcoded target_compile_options(-g) can be overriden from the
    command line, from the parent ExternalProject_Add(CMAKE_ARGS) (tested)
    or from a CMake GUI (not tested).
    
    Default to Debug because the time spent running rimage is negligible
    compared to building the image to sign and because the time saved
    learning CMake when it crashes can be huge for some people.
    
    BTW -O2 -g is rarely ever useful.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Jun 16, 2020
    Configuration menu
    Copy the full SHA
    4348e2a View commit details
    Browse the repository at this point in the history
  2. rimage.c: add assert(image.adsp->write_firmware[_meu])

    This makes the write_firmware NULL pointer added by commit
    dd77445 and corresponding crash more user-friendly.
    Before:
    
      Program received signal SIGSEGV, Segmentation fault.
    
    After:
    
      rimage: src/rimage.c:197: main: Assertion `image.adsp->write_firmware'
      failed.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Jun 16, 2020
    Configuration menu
    Copy the full SHA
    2156dcb View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2020

  1. manifest: set feature mask to 0xffff

    This feature is not used by SOF anyway and only causes
    FW load failures, we can set it to 0xffff so it will
    work for ADL+ platforms.
    
    Signed-off-by: Janusz Jankowski <[email protected]>
    jajanusz authored and lgirdwood committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    7317f2a View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2020

  1. toml: Add TOML parsing library as git submodule

    TOML aims to be a minimal configuration file format that's easy to read
    due to obvious semantics. TOML is designed to map unambiguously to a hash table.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    29ed0da View commit details
    Browse the repository at this point in the history
  2. adsp: Refactor machine searching

    This part should be moved to separate function,
    to allow easily add another way of machine description.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    210009c View commit details
    Browse the repository at this point in the history
  3. manifest: Export man_write_fw_vX_Y() to global context

    Exported function will be used in configuration parser, to
    assign correct function version depending on manifest versiony
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    f654d53 View commit details
    Browse the repository at this point in the history
  4. config: Add configuration file parsing interface

    This allow to add new platform with old version of rimage tool.
    Default values are easily to define for any fields, so fields
    duplication in config files should be reduced.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    de1b0f7 View commit details
    Browse the repository at this point in the history
  5. toml: Add platform configuration files

    Given config files may be used as template for new platforms.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    a94e12d View commit details
    Browse the repository at this point in the history
  6. manifest: Remove -m option

    Used platform should be defined by config file, given in
    -c option. Double ways of defining platform may lead to
    missalignement, so old way should be removed.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    2965908 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2020

  1. toml: Add version information in verbose mode

    It allows to assure right version of chosen headers during
    reading logs in verbose mode.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    dab9730 View commit details
    Browse the repository at this point in the history
  2. toml: Add adsp_file_ext attributes parsing

    This field left without possibility to set value from
    config file.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    3169dbd View commit details
    Browse the repository at this point in the history
  3. toml: manifest: Clear manifest allocated on heap before use

    Memory clear allows to easily set seserved/padding fields to zero.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    d3ead75 View commit details
    Browse the repository at this point in the history
  4. toml: Fix adsp v1.5 parsing

    Set right write function.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    e9759df View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2020

  1. toml: Use only standard error codes

    Error codes like ENOKEY and EBADE are not provide for all windows
    toolchains, so to immit possible build errors, some more standard
    error codes should be used.
    Detailed error message is printed in stderr, so end user still
    will be well informed about error source.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    6dcf1b6 View commit details
    Browse the repository at this point in the history
  2. travis: Add more warnings to make command

    Warnings may point some fatal error in source code.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    3b2398a View commit details
    Browse the repository at this point in the history
  3. travis: Treat warnings as errors

    Then each warning message should be addressed.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    f4e0178 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. Stop silently discarding -l option

    Commit https://github.com/thesofproject/soft/commits/59d81995f6828 added
    an -l option (for --liam? :-) which was never implemented. Remove it
    because silently discarding user input is really not nice no matter how
    wrong it is.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    82d4767 View commit details
    Browse the repository at this point in the history
  2. rimage.c: print an error instead of crashing when zero ELF argument

    Also rename elf_argc to first_non_opt because it's a position, not a
    count.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    91bd4fe View commit details
    Browse the repository at this point in the history
  3. elf.c: check ELF32-LE magic number instead of crashing

    Passing a 64 bits ELF file by accident (for instance: '/usr/bin/openssl'
    while messing up the command line options) caused an interesting cascade
    of errors and memory corruption which are all caught in this commit.
    
    This doesn't make rimage fuzz-proof far from it; only fool-proof which
    is still useful.
    
    In passing add some quotes so the error message when failing to find the
    SHT_NULL section with an empty name is a little bit more readable.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    75f9695 View commit details
    Browse the repository at this point in the history
  4. adsp_config.c: actually check error when parsing "version" array elem…

    …ents
    
    Caveat: this was just reported by valgrind. I did not test any actual
    toml parsing error either (who tests error handling?) but this code
    can't be worse than the previous one.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    e67d68e View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. travis: Use $(...) instead ... in bash scripts

    It's encouraged to use version with $(...).
        Backtick command substitution `...` is legacy
        syntax with several issues.
    
       1. It has a series of undefined behaviors related to quoting in POSIX.
       2. It imposes a custom escaping mode with surprising results.
       3. It's exceptionally hard to nest.
    
       ~https://github.com/koalaman/shellcheck/wiki/SC2006
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    e29baaa View commit details
    Browse the repository at this point in the history
  2. travis: Scan patch codestyle

    Checkpatch is a tool which checks patch code style
    alignment with Linux kernel code.
    By the way print short graphs of used commits, to
    show whats under test.
    Checkpatch call is precede by `set -x`, to show used
    arguments values, especially checked commits range.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    fccf521 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2020

  1. manifest.c: assert buffer overflow in man_copy_sram()

    Does not solve thesofproject#3423 but
    converts a buffer overflow and crash into a more usable assert.
    
    Buffer overflow found by running rimage with valgrind and the binaries
    provided by @singalsu
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Oct 15, 2020
    Configuration menu
    Copy the full SHA
    7322c02 View commit details
    Browse the repository at this point in the history
  2. Merge pull request thesofproject#28 from marc-hb/copy-sram-overflow

    manifest.c: assert buffer overflow in man_copy_sram()
    marc-hb authored Oct 15, 2020
    Configuration menu
    Copy the full SHA
    37323fa View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2020

  1. hash: Assert memory overflow during hash calculation

    ri_sha*() functions are often called with arguments calculated on
    the fly, so at list basic assertion here may save debugging time
    in the future.
    Cast size to uint64_t to properly handle nagative sizes, casted to
    uint32_t in argument list. Otherwise, sum size and offset may
    overflow uint32_t and don't trigger assert.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    86754c1 View commit details
    Browse the repository at this point in the history
  2. pkcs1_5.c: intermediate named constants in ri_manifest_sign_v1_x()

    As suggested by Karol in the review of the next commit. Makes the
    function call shorter and naming the parameters makes the code much more
    readable. Can help for debugging too.
    
    Absolutely zero change: the two CMAKE_BUILD_TYPE=Release rimage binaries
    before and after this commit are actually identical.
    
    In passing, replace void * arithmetic in that function
    with char *. void * arithmetic is an actually illegal gcc
    extension (not just "undefined").
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    e87db0f View commit details
    Browse the repository at this point in the history
  3. pkcs1_5.c: don't pretend everything is fine when failing to sign

    Found by chance and reproduced by making a typo in the key's filename.
    
    Note there is already an (unchanged) error message:
    
     pkcs: signing with key sof/keys/otc_private_key_3k.pemX
     error: can't open file sof/keys/otc_private_key_3k.pemX -2
     Firmware manifest and signing completed !
    
    But now rimage does not pretend success and the build does not keep
    going with an unsigned image like nothing happened.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    b9cf1ae View commit details
    Browse the repository at this point in the history
  4. toml: Extract version parsing to separate function

    This task is fully separatable from adsp_parse_config_fd(),
    so should be done in separate function, to improve code readability.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    c98a29d View commit details
    Browse the repository at this point in the history
  5. toml: Keep available manifest parsers in list

    This approach allows to easily expand parsers list in future,
    without harming code readability.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    8249abf View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2020

  1. gitignore: Add checkpatch temporary file to gitignore

    Any generated file should be tracked by git to keep repositiry clean.
    Such an file should be added to .gitignore to reduce possibility of
    accidentally pushig this file to remote branches, eg. after typing
    `git add *` before pushing changes.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Oct 22, 2020
    Configuration menu
    Copy the full SHA
    0d2af68 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2020

  1. README: install is optional and missed "sudo". CMake 3.13 -B option.

    Also show useful "make help" that lists all targets.
    
    Show -B option of CMake that avoids changing the current directory to
    the build directory: especially inconvenient considering the
    recommended, CMake way to clean is to delete this directory and the
    recommended way to build multiple configurations is to use multiple
    build directories.
    
    -B was introduced in CMake 3.13 which has been released two years ago
    now and CMake spoils its users with a choice of ways to upgrade:
    
    https://cmake.org/download/
     https://apt.kitware.com/
     https://pypi.org/project/cmake/
    
    This does _not_ imply CMakeLists.txt should drop backward compatibility
    with CMake < 3.13. I only think a README.md file should not keep the
    majority of users in the dark only for the convenience of a minority of
    obsolete CMake users.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    f0fa661 View commit details
    Browse the repository at this point in the history
  2. config: tgl: fix CSE offsets for TGL

    Now aligns with actual offsets.
    
    Signed-off-by: Liam Girdwood <[email protected]>
    lrgirdwo authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    d6cf696 View commit details
    Browse the repository at this point in the history
  3. css: add css header for cavs v2.5

    Header contests are the same but with bigger key.
    
    Signed-off-by: Liam Girdwood <[email protected]>
    lrgirdwo authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    48ba01e View commit details
    Browse the repository at this point in the history
  4. cse: add simple crc32 function to calculate the v2.5 header checksum

    Add simple crc32 function to calculate the checksum for v2.5 headers.
    Implementation is very simple using shift register as we don't require
    speed. Calculate the v2.5 header checksum with crc-32/iso-hdlc
    parameters.
    
    Signed-off-by: Jaska Uimonen <[email protected]>
    Signed-off-by: Liam Girdwood <[email protected]>
    Jaska Uimonen authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    8478c03 View commit details
    Browse the repository at this point in the history
  5. manifest: Add cavs2.5 structures and offsets

    cavs2.5 has different offsets and structures.
    
    Signed-off-by: Liam Girdwood <[email protected]>
    lrgirdwo authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    7e9952f View commit details
    Browse the repository at this point in the history
  6. user: manifest: add macros for SHA385 modulus length

    Signed-off-by: Liam Girdwood <[email protected]>
    lrgirdwo authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    0c3f8e2 View commit details
    Browse the repository at this point in the history
  7. pkcs: Add PSS signing mechanism for CAVS2.5

    Add RSA PSS signing support for CAVS 2.5 platforms.
    
    Signed-off-by: Liam Girdwood <[email protected]>
    lrgirdwo authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    df20485 View commit details
    Browse the repository at this point in the history
  8. hash: make module_sha384_create non static.

    Used by other clients now.
    
    Signed-off-by: Liam Girdwood <[email protected]>
    lrgirdwo authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    f84676f View commit details
    Browse the repository at this point in the history
  9. plat_auth: use cavs 2.5 plat auth offsets

    cavs2.5 has different offsets for plat auth data.
    
    Signed-off-by: Liam Girdwood <[email protected]>
    lrgirdwo authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    68b3693 View commit details
    Browse the repository at this point in the history
  10. cavs: add support for cavs2.5 code signing

    cavs 2.5 uses a larger key and the RSA signing PSS mode.
    
    Signed-off-by: Liam Girdwood <[email protected]>
    lrgirdwo authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    db40934 View commit details
    Browse the repository at this point in the history
  11. manifest: cavs25: Add support for ext data type 0x16

    This type was used by early versions of meu, but the hash is not
    used in later versions. Leave the code in in case it has to come back.
    
    Signed-off-by: Liam Girdwood <[email protected]>
    lrgirdwo authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    1c1c09c View commit details
    Browse the repository at this point in the history
  12. verify: add signature verification support

    Add support to verify signatures of cavs firmware binaries.
    
    Signed-off-by: Liam Girdwood <[email protected]>
    lrgirdwo authored and lgirdwood committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    7b7c192 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2020

  1. config: merge icl and jsl toml file

    ICL and JSL is same DSP with differnt HW config.
    They can share same toml file
    
    Signed-off-by: Pan Xiuli <[email protected]>
    xiulipan authored and lgirdwood committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    2e29db4 View commit details
    Browse the repository at this point in the history
  2. config: add tgl-h toml file to support tglh build

    Add tgl-h toml file to support sof-tgl-h.ri binary build
    
    Signed-off-by: Pan Xiuli <[email protected]>
    xiulipan authored and lgirdwood committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    d1f91ef View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2021

  1. pkcs_v1_5_sign_man_v2_5(): add "salt length" comment

    This comment is meant for "git grep salt", that's its main purpose.
    
    Much more obvious timestamps aside, this new code is the only
    non-deterministic part of rimage - learned the very hard way
    (OpenSSL "documentation" calls it "sLen"...)
    
    A/B testing of build system changes is much, much easier when
    locally and temporarily making the build 100% deterministic.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Jan 6, 2021
    Configuration menu
    Copy the full SHA
    0dba230 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2021

  1. minor -h fix: -s meu_offset disables rimage signing

    It wasn't exactly obvious who does what.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Mar 9, 2021
    Configuration menu
    Copy the full SHA
    0d641a7 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2021

  1. rimage: add cavs fw layout support

    Add support of cavs extended manifest and modules. Now
    we will have another config tgl-cavs for tgl.
    
    Signed-off-by: Rander Wang <[email protected]>
    RanderWang authored and lgirdwood committed Apr 21, 2021
    Configuration menu
    Copy the full SHA
    dbb49e0 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2021

  1. ext_man: Fix memory leak after manifest build

    sec_buffer allocated inside elf_read_section()
    was not being freed before and is freed now.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    6c44aef View commit details
    Browse the repository at this point in the history
  2. ext_man: Fix code formating

    Function parameters should be separated by ', '.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    994ee24 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2021

  1. config: Fix 'module' parsing error messages

    'key' argument must describe 'key' which triggered error message
    to keep stderr output helpful.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed May 5, 2021
    Configuration menu
    Copy the full SHA
    0297c67 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2021

  1. adsp_config: fix out of bounds error

    cppcheck find
    
    Signed-off-by: Curtis Malainey <[email protected]>
    cujomalainey authored and lgirdwood committed May 19, 2021
    Configuration menu
    Copy the full SHA
    8f42ee8 View commit details
    Browse the repository at this point in the history
  2. ext_manifest: cppcheck: refactor to silence false positive

    memory clearly has exit path through argument, factor out temporary
    variable to silence cppcheck
    
    Signed-off-by: Curtis Malainey <[email protected]>
    cujomalainey authored and lgirdwood committed May 19, 2021
    Configuration menu
    Copy the full SHA
    1cca9bf View commit details
    Browse the repository at this point in the history
  3. manifest: close file on error

    found via cppcheck
    
    Signed-off-by: Curtis Malainey <[email protected]>
    cujomalainey authored and lgirdwood committed May 19, 2021
    Configuration menu
    Copy the full SHA
    7764a8b View commit details
    Browse the repository at this point in the history
  4. actions: add cppcheck and yamllint

    CI saves lives
    
    Signed-off-by: Curtis Malainey <[email protected]>
    cujomalainey authored and lgirdwood committed May 19, 2021
    Configuration menu
    Copy the full SHA
    6f45b61 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2021

  1. sanity check allocated memory

    Issue detected by Klocwork
    
    Signed-off-by: Slawomir Blauciak <[email protected]>
    slawblauciak authored and lgirdwood committed May 26, 2021
    Configuration menu
    Copy the full SHA
    5aeb95b View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. config: tgl: change image_size to the real SRAM size

    We have 46 bank HP and 1 bank LP SRAM on TGL, change to toml config file
    to reflect that.
    
    Signed-off-by: Keyon Jie <[email protected]>
    keyonjie authored and lgirdwood committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    9e50a02 View commit details
    Browse the repository at this point in the history
  2. config: tgl-h: change image_size to the real SRAM size

    We have 30 bank HP and 1 bank LP SRAM on TGL-H, change to toml config file
    to reflect that.
    
    Signed-off-by: Keyon Jie <[email protected]>
    keyonjie authored and lgirdwood committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    8073ea3 View commit details
    Browse the repository at this point in the history
  3. config: icl: change image_size to the real SRAM size

    We have 47 bank HP and 1 bank LP SRAM on ICL, change to toml config file
    to reflect that.
    
    Signed-off-by: Keyon Jie <[email protected]>
    keyonjie authored and lgirdwood committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    f52a078 View commit details
    Browse the repository at this point in the history
  4. config: jsl: change image_size to the real SRAM size

    We have 16 bank HP and 1 bank LP SRAM on JSL, change to toml config file
    to reflect that.
    
    Signed-off-by: Keyon Jie <[email protected]>
    keyonjie authored and lgirdwood committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    1de9ccc View commit details
    Browse the repository at this point in the history
  5. config: cnl: change image_size to the real SRAM size

    We have 47 bank HP and 1 bank LP SRAM on CNL, change to toml config file
    to reflect that.
    
    Signed-off-by: Keyon Jie <[email protected]>
    keyonjie authored and lgirdwood committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    8a2ea00 View commit details
    Browse the repository at this point in the history
  6. config: apl: change image_size to the real SRAM size

    We have 8 bank HP and 2 bank LP SRAM on APL, change to toml config file
    to reflect that.
    
    Signed-off-by: Keyon Jie <[email protected]>
    keyonjie authored and lgirdwood committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    9a26e45 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2021

  1. config: tgl-cavs: change image_size to the real SRAM size

    Apply "config: tgl: change image_size to the real SRAM size"
    (9e50a02) to tgl-cavs
    
    Signed-off-by: Rander Wang <[email protected]>
    RanderWang authored and keyonjie committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    580e4d6 View commit details
    Browse the repository at this point in the history
  2. config: sue: change image_size to the real SRAM size

    We have 47 bank HP and 1 bank LP SRAM on Suecreek, change the toml config file
    to reflect that.
    
    Signed-off-by: Keyon Jie <[email protected]>
    keyonjie authored and lgirdwood committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    44b37d1 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2021

  1. config: kbl: change image_size to the real SRAM size

    We have 30 bank HP and 2 bank LP SRAM on KBL, change to toml config file
    to reflect that.
    
    Signed-off-by: Keyon Jie <[email protected]>
    keyonjie committed Jul 23, 2021
    Configuration menu
    Copy the full SHA
    9c9e07c View commit details
    Browse the repository at this point in the history
  2. config: skl: change image_size to the real SRAM size

    We have 30 bank HP and 2 bank LP SRAM on SKL, change to toml config file
    to reflect that.
    
    Signed-off-by: Keyon Jie <[email protected]>
    keyonjie committed Jul 23, 2021
    Configuration menu
    Copy the full SHA
    246ea64 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2021

  1. config: add rn toml file to support renoir build

    Add rn toml file to support sof-rn.ri binary build
    
    Signed-off-by: Basavaraj Hiregoudar <[email protected]>
    Signed-off-by: Anup Kulkarni <[email protected]>
    Signed-off-by: balapati <[email protected]>
    balakishorepati authored and lgirdwood committed Jul 26, 2021
    Configuration menu
    Copy the full SHA
    d1553e9 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2021

  1. Configuration menu
    Copy the full SHA
    b28b993 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. config: Add imx8ulp.toml

    Add imx8ulp toml file to support sof-imx8ulp.ri binary build.
    
    Signed-off-by: Zhang Peng <[email protected]>
    Zhang Peng authored and dbaluta committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    9716e10 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2021

  1. adsp_config: fix potential overflow in strtol()

    This patch fixes the potential overflow which may happen during
    conversion of signed long. On a platforms where signed long
    is only 32 bits the address which is stored in temp_s will experience
    overflow.
    
    Signed-off-by: Marcin Rajwa <[email protected]>
    mrajwa authored and lgirdwood committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    aea1969 View commit details
    Browse the repository at this point in the history
  2. rimage: Add support for mt8195

    Add mt8195.toml to support sof-mt8195.ri binary build.
    Add mt8195 memory layout
    Add mt8195 machine_id
    
    Signed-off-by: YC Hung <[email protected]>
    Signed-off-by: Allen-KH Cheng <[email protected]>
    Allen-kh Cheng authored and lgirdwood committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    9bf46d3 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. config: Remove unused adsp structs

    After commit 2965908 "manifest: Remove -m option" those
    structs are unused. ADSP configuration comes from toml
    configuration files.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    916fc2c View commit details
    Browse the repository at this point in the history
  2. config: Remove machine_id field

    This enum value is used only to distinguish suecreek from other
    platforms, which can be done also by platform name.
    
    Manual enumeration, in separate toml files with manual synchronization
    in enum definition is quite error prone. After commit
    9bf46d3: "rimage: Add support for mt8195" and
    9716e10: "config: Add imx8ulp.toml" there are two different
    platform with the same enum value 15 specified, which proves such a
    thesis.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    c4a7456 View commit details
    Browse the repository at this point in the history
  3. config: Adjust return type with function name

    Function with `parse_uint32` should return uint32_t value
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    de9177b View commit details
    Browse the repository at this point in the history
  4. config: Explicit state return value for error cases in parse_uint32_*…

    … functions
    
    Developer should know what is ther return value for error cases.
    Improved doxydoc may be used eg. by IDE to speed-up code development.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    ada30c1 View commit details
    Browse the repository at this point in the history
  5. config: Return error value in parse_uint32_* functions when key is no…

    …t found
    
    Return value, for error case should be unified.
    For those functions, default error value is UINT32_MAX.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and lgirdwood committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    3e20076 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2021

  1. rimage: Fix error message content after adsp malloc fail

    Message should reflect error root cause.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and dbaluta committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    fc4d7b8 View commit details
    Browse the repository at this point in the history
  2. config: Remove unused, platform specific, memory region definitions

    After commit 916fc2c: "config: Remove unused adsp structs"
    those defines are unused.
    
    Signed-off-by: Karol Trzcinski <[email protected]>
    ktrzcinx authored and dbaluta committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    dcfcef8 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2021

  1. pkcs: quote the name of key file when logging it

    This makes is more obvious when the filename is empty, which happened in
    bug thesofproject#4711
    
    Also prefix identical log statements with their different __func__
    names.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    4823e87 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. ext_manifest: Fix incorrect signature

    This patch changes the incorrect signature of extended manifest
    to the correct one "$AE1"
    
    Signed-off-by: Marcin Rajwa <[email protected]>
    mrajwa authored and lgirdwood committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    241af31 View commit details
    Browse the repository at this point in the history
  2. remove '-x' option

    This patch removes the unnecessary and unscalable -x option.
    This option aims to add an offset to the .data section of
    its parent .module section. This is horrible idea because this
    offset will vary depend on the compiler used. It is better and
    much easier to just store only the .data section so the offset
    is always 0.
    
    Signed-off-by: Marcin Rajwa <[email protected]>
    mrajwa authored and lgirdwood committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    a9faf85 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2021

  1. README.md: explain how to run SOF tests on new rimage code

    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Sep 17, 2021
    Configuration menu
    Copy the full SHA
    6e22944 View commit details
    Browse the repository at this point in the history
  2. Do not exit(0) on invalid options or parameters

    When some automation script gets some rimage flag wrong then rimage
    exits and does not run at all. In such a case we want the build to fail
    immediately and see the error at the bottom of the build logs and not
    obscured by other, consecutive failures caused by the lack of rimage
    output.
    
    Take control of the exit code away from usage() and give it back to
    main() where it belongs.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Sep 17, 2021
    Configuration menu
    Copy the full SHA
    0d7f2d4 View commit details
    Browse the repository at this point in the history
  3. Revert "ext_manifest: Fix incorrect signature"

    This reverts commit 241af31 so the DSP
    can boot again.
    
    On my APL UP2 this fixes:
    
    10:06:38: 00:0e.0: unstall/run core: core_mask = 1
    10:06:38: 00:0e.0: DSP core(s) enabled? 1 : core_mask 1
    10:06:38: 00:0e.0: FW Poll Status: reg[0x4c]=0x40000000 successful
    10:06:38: 00:0e.0: FW Poll Status: reg[0x4]=0x3030202 successful
    10:06:38: 00:0e.0: FW Poll Status: reg[0x4]=0x1010202 successful
    10:06:38: 00:0e.0: DSP core(s) enabled? 0 : core_mask 2
    10:06:38: 00:0e.0: FW Poll Status: reg[0x80000]=0x5000001 successful
    10:06:41: 00:0e.0: FW Poll Status: reg[0x80000]=0x80000007 timedout
    10:06:41: 00:0e.0: error: cl_copy_fw: timeout HDA_DSP_SRAM_REG_ROM_STATUS read
    10:06:41: 00:0e.0: FW Poll Status: reg[0x160]=0x140000 successful
    10:06:41: 00:0e.0: ------------[ DSP dump start ]------------
    10:06:41: 00:0e.0: unknown ROM status value 80000007
    10:06:41: 00:0e.0: error: extended rom status:  0x80000007 0x2f 0x0 0x0 \
                                                    0x0 0x0 0x1522100 0x0
    10:06:41: 00:0e.0: ------------[ DSP dump end ]------------
    10:06:41: 00:0e.0: error: load fw failed ret: -110
    10:06:41: 00:0e.0: error: failed to start DSP
    10:06:41: 00:0e.0: error: failed to boot DSP firmware -110
    10:06:41: 00:0e.0: FW Poll Status: reg[0x4]=0x1d003c timedout
    10:06:41: 00:0e.0: error: hda_dsp_core_reset_enter: timeout on  \
                                                      HDA_DSP_REG_ADSPCS read
    10:06:41: 00:0e.0: error: dsp core reset failed: core_mask 3
    10:06:41: probe of 0000:00:0e.0 failed with error -110
    
    Test PR thesofproject#4782 show this commit
    broke the DSP boot on ALL platforms
      https://sof-ci.01.org/sofpr/PR4782/build10387/devicetest/
    
    ```
    [    7.798750] kernel: sof-audio-acpi-intel-bdw INT3438:00: error: invalid firmware signature
    [    7.798827] kernel: sof-audio-acpi-intel-bdw INT3438:00: error: invalid FW header
    [    7.798943] kernel: sof-audio-acpi-intel-bdw INT3438:00: error: failed to load DSP firmware -22
    [    7.810348] kernel: sof-audio-acpi-intel-bdw INT3438:00: error:
    sof_probe_work failed err: -22
    ```
    
    This also broke QEMU boot on a number of platforms: BDW, BYT and CHT, see
    `error: invalid firmware signature` in
    
    https://sof-ci.01.org/sofpr/PR4782/build10387/boottest/ and
    https://github.com/thesofproject/sof/pull/4782/checks?check_run_id=3634915322
    
    How was it tested?
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and plbossart committed Sep 17, 2021
    Configuration menu
    Copy the full SHA
    8960097 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2021

  1. README.md: add warning that forks must be created using Github

    Otherwise the SHA1 is not found and the rest of the process fails.
    
    Problem discovered in
    thesofproject#4790 (comment)
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    c038d62 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2021

  1. css.c: add __func__ to "completing manifest" log

    This is useful to show which one of the 3 duplicated functions runs.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    0c66aa9 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2021

  1. cmake: drop '3' from -Wimplicit-fallthrough=3, it's the default value

    From the gcc documentation:
    
    '-Wimplicit-fallthrough'
    
         '-Wimplicit-fallthrough' is the same as '-Wimplicit-fallthrough=3'
         and '-Wno-implicit-fallthrough' is the same as
         '-Wimplicit-fallthrough=0'.
    
    clang supports only the number-less option.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    ecb9212 View commit details
    Browse the repository at this point in the history
  2. cmake: drop binutils-specific '-Wl,-EL' option

    Fixes clang failure:
    
      clang: error: -Wl,-EL: 'linker' input unused [-Werror,-Wunused-command-line-argument]
    
    -EL has an effect only when using OUTPUT_FORMAT or --oformat but rimage
    uses neither.
    
    The binaries produced by ld version 2.34 are strictly identical before
    and after this removal.
    
    It is not clear why -EL was ever added. It was added to src/Makefile.am
    by commit 0d33e87 and to src/CMakeLists.txt by commit 4e3ead0
    but these commits were initial additions of the entire files and they
    did not get into detail.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    bcbcec7 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2021

  1. rimage: add functionality to resign fw image

    Add function to resign already signed images. This can
    be done with switch "q" as follows:
    
    "rimage -q sof-tgl.ri -o sof-tgl-mod.ri -c tgl.toml -k key.pem"
    
    Signed-off-by: Jaska Uimonen <[email protected]>
    Jaska Uimonen authored and lgirdwood committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    bd51ec1 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2021

  1. rimage: refactor and add openssl 3.0 support

    Refactor the signing and verification functions as they have a lot of
    duplicated code and adding openssl 3.0 support without refactor would
    make things even more messy.
    
    1) Add common "rimage_read_key" to read the key from file.
    
    2) Variate most important functionality based on different openssl versions:
    - rimage_check_key
    - rimage_set_modexp
    - rimage_sign
    - rimage_verify
    - rimage_get_key_size
    
    Signed-off-by: Jaska Uimonen <[email protected]>
    Jaska Uimonen authored and lgirdwood committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    3c23242 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2021

  1. manifest: fix buffer init in resign

    Set buffer to NULL to prevent freeing bogus memory in error case.
    
    Signed-off-by: Jaska Uimonen <[email protected]>
    Jaska Uimonen authored and lgirdwood committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    0f64a20 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

  1. remove x from getopt

    x param was removed from switch case but not from getopt. So if you use
    x rimage silently fails on the switch case.
    
    Signed-off-by: Curtis Malainey <[email protected]>
    cujomalainey authored and lgirdwood committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    32052ad View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. cse: fix signed integer overflow

    literals are signed by default, so shifting them 32 times is an
    overflow, found via cppcheck
    
    Signed-off-by: Curtis Malainey <[email protected]>
    cujomalainey authored and lgirdwood committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    23a53ac View commit details
    Browse the repository at this point in the history
  2. rimage: fix openssl 1.0 support

    cppcheck gives errors from openssl 1.0 related code that has some old
    churn and should be fixed, so fix it.
    
    Signed-off-by: Jaska Uimonen <[email protected]>
    Jaska Uimonen authored and lgirdwood committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    3b4b142 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2022

  1. Remove unused declaration of global platform specific manifests

    Such a global variables does not exists, so should not be declared.
    It has been deprecated since:
    2965908 (manifest: Remove -m option)
    
    Signed-off-by: Trzcinski, Karol <[email protected]>
    ktrzcinx authored and lgirdwood committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    8753a9e View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2022

  1. adsp_config: fix invalid format specifier

    This patch fixes an invalid format specifier that causes a numeric value
    to be interpreted as a string, resulting in an Segmentation fault.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    Adrian Warecki authored and lgirdwood committed Jan 17, 2022
    Configuration menu
    Copy the full SHA
    ce69d7b View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2022

  1. Update to C99 standard to match SOF. Silenced warning generated by ne…

    …west GCC compiler related to int cast of char typed values that may result in negative values. Syntax fix in linkage of crypto library to more generic approach.
    Andrey Borisovich authored and lgirdwood committed Jan 21, 2022
    Configuration menu
    Copy the full SHA
    ecb6a66 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2022

  1. Remove unconditional "(1 || verbose)" debug hack in cavs25

    This is especially a problem considering the -v option outputs non-ASCII
    garbage which can break some automation, see issue thesofproject#86
    
    Fixes commit db40934 ("cavs: add support for cavs2.5 code
    signing")
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    d855fbf View commit details
    Browse the repository at this point in the history
  2. Fix confusion in headers between uint8_t arrays and strings

    Strings are null terminated, byte arrays not always.
    
    Fixes garbage in debug output issue thesofproject#86
    
    Add new parse_printable_key() function that takes a uint8_t * argument
    instead of char *. Casting the argument on almost every call was a clear
    indication of the problem.
    
    Add new DUMP_PRINTABLE_BYTES() to printf uint8_t arrays _and_ their
    _optional_ padding.
    
    No change to the .ri output, bit for bit identical.
    
    Here's an example of how the -v output is fixed:
    
    ```diff
        mem_zone.host_offset: 0x0
    
     cse
    -         partition_name: 'ADSPADSP.man'
    +         partition_name: ADSP
              header_version: 1
               entry_version: 1
                  nb_entries: 3
    -             entry.name: 'ADSP.man'
    +             entry.name: ADSP.man\x00\x00\x00\x00
                entry.offset: 0x58
                entry.length: 0x378
    -             entry.name: 'cavs0015.met'
    +             entry.name: cavs0015.met
                entry.offset: 0x400
                entry.length: 0x60
    -             entry.name: 'cavs0015'
    +             entry.name: cavs0015\x00\x00\x00\x00
                entry.offset: 0x480
                entry.length: 0x0
    
    @@ -140,7 +132,7 @@
               exponent_size: 1
    
     signed_pkg
    -                   name: 'ADSP'
    +                   name: ADSP
                         vcn: 0
                         svn: 0
                     fw_type: 0
    @@ -161,17 +153,17 @@
                      bitmap: 0
                      bitmap: 0
                      bitmap: 0
    -              meta.name: 'cavs0015.met^C^B '
    +              meta.name: cavs0015.met
                   meta.type: 0x3
              meta.hash_algo: 0x2
              meta.hash_size: 0x20
              meta.meta_size: 96
    
     partition_info
    -                   name: 'ADSP'
    +                   name: ADSP
                part_version: 0x10000000
                 instance_id: 1
    -            module.name: 'cavs0015.met^C'
    +            module.name: cavs0015.met
            module.meta_size: 0x60
                 module.type: 0x3
    
    @@ -186,7 +178,7 @@
    
     fw_desc.header
                   header_id: '$AM1'
    -                   name: 'ADSPFW'
    +                   name: ADSPFW\x00\x00
          preload_page_count: 0
              fw_image_flags: 0x0
                feature_mask: 0xffff
    ```
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and lgirdwood committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    d006212 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2022

  1. Fixed warning of wrong variable type in fprintf

    Fixed warning where variable passed to fprintf was of type size_t and
    fprintf expected format of long int.
    
    Signed-off-by: Andrey Borisovich <[email protected]>
    Andrey Borisovich authored and lgirdwood committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    1589641 View commit details
    Browse the repository at this point in the history
  2. Added handling of OpenSSL on Windows with MSYS2

    Added new MSYS_INSTALL_DIR variable that points to MSYS2 installation
    for Windows users. It is used to include POSIX native headers from
    /usr/include also required openssl headers.
    
    Signed-off-by: Andrey Borisovich <[email protected]>
    Andrey Borisovich authored and lgirdwood committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    ee5c3e1 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2022

  1. config: Add mt8186.toml

    Add mt8186.toml to support sof-mt8186.ri binary build
    
    Signed-off-by: Allen-KH Cheng <[email protected]>
    Signed-off-by: Tinghan Shen <[email protected]>
    tinghan-shen authored and lgirdwood committed Feb 8, 2022
    Configuration menu
    Copy the full SHA
    05be213 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2022

  1. Write firmware file micro version to manifest for cAVS platforms

    SOF CMake can extract FW file version from latest git tag and defines
    SOF_MAJOR, SOF_MINOR and SOF_MICRO for 3 version fields. But rimage only
    gets major and minor version from SOF CMake and writes them into the
    standard firmware manifest header of cAVS platforms.
    
    This patch make rimage also get the micro version from SOF CMake, and
    write it to the unused hotfix_version field of manifest header.
    
    This update will enable sof_ri_info.py to dump entire file version from
    a FW binary for cAVS platforms. So we can check if a FW release candidate
    is built from the correct git tag.
    
    Signed-off-by: mengdonglin <[email protected]>
    
    update
    mengdonglin authored and lgirdwood committed May 9, 2022
    Configuration menu
    Copy the full SHA
    9d45332 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2022

  1. config: add rmb toml file to support rembrandt build

    Add rmb toml file to support sof-rmb.ri binary build
    
    Signed-off-by: Balakishorepati <[email protected]>
    balakishorepati authored and lgirdwood committed May 23, 2022
    Configuration menu
    Copy the full SHA
    1b233f6 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2022

  1. rimage: add ACE V1.5 handling

    Add ACE 1.5 set of functions to support v3.0 manifest
    
    Signed-off-by: Krzysztof Frydryk <[email protected]>
    bkolodzi authored and lgirdwood committed May 26, 2022
    Configuration menu
    Copy the full SHA
    c484d99 View commit details
    Browse the repository at this point in the history
  2. config: Add toml config for mtl

    This patch will add mtl support
    
    Signed-off-by: Adrian Bonislawski <[email protected]>
    marcinszkudlinski authored and lgirdwood committed May 26, 2022
    Configuration menu
    Copy the full SHA
    af947cb View commit details
    Browse the repository at this point in the history
  3. mtl: Add ASRC module to the manifest

    Added ASRC module to config/mtl.toml
    
    Signed-off-by: Adrian Warecki <[email protected]>
    Adrian Warecki authored and lgirdwood committed May 26, 2022
    Configuration menu
    Copy the full SHA
    fe4dcaa View commit details
    Browse the repository at this point in the history
  4. adsp_config: fix name parsing error in parse_signed_pkg_ace_v1_5

    Fix name parsing error in parse_signed_pkg_ace_v1_5
    
    Signed-off-by: Krzysztof Frydryk <[email protected]>
    kfrydryx authored and lgirdwood committed May 26, 2022
    Configuration menu
    Copy the full SHA
    8ba3d17 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2022

  1. rimage: fix openssl 3.0 support in ver25 signing

    Fix a misunderstanding with openssl APIs and don't "double sign" the
    binary.
    
    Signed-off-by: Jaska Uimonen <[email protected]>
    Jaska Uimonen authored and lgirdwood committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    73a9d7c View commit details
    Browse the repository at this point in the history
  2. rimage: ace signing functions need openssl 3.0 guards

    Ace signing functions need guards for not to use deprecated openssl
    functions and thus fail the compilation. Openssl3 implementation
    needs to be done as the added stub now returns just -EINVAL.
    
    Signed-off-by: Jaska Uimonen <[email protected]>
    Jaska Uimonen authored and lgirdwood committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    02abc5d View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. mtl: Add SRC module to the manifest

    Added SRC module to config/mtl.toml.
    
    Signed-off-by: Krzysztof Frydryk <[email protected]>
    kfrydryx authored and lgirdwood committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    452847d View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2022

  1. toml: add tgl-h config file for IPC4

    tgl-h target is missing the IPC4 toml config file, so add it.
    tgl-h-cavs.toml is a direct copy from tgl-cavs.toml, only the image size
    has been changed.
    
    Signed-off-by: Jaska Uimonen <[email protected]>
    Jaska Uimonen authored and lgirdwood committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    12bb327 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2022

  1. Add lib_code module type.

    External libraries can contain processing module code or common library code.
    Library manager need to distinguish between both type of modules for proper loading.
    
    Signed-off-by: Jaroslaw Stelter <[email protected]>
    jxstelter authored and lgirdwood committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    5504179 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2022

  1. mtl: add MicSel support

    Add MicSel config int mtl.toml
    
    Signed-off-by: Rander Wang <[email protected]>
    RanderWang authored and lgirdwood committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    d94cfc9 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2022

  1. manifest max size for loadable modules

    Library manager during loading modules needs manifest max size
    
    Signed-off-by: Dobrowolski, PawelX <[email protected]>
    pjdobrowolski authored and lgirdwood committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    d50aefc View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. mtl: Add UPDWMIX module to the manifest

    Added Up Down Mixer module to config/mtl.toml
    Increased modules count.
    
    Signed-off-by: Arsen Eloglian <[email protected]>
    Arsen Eloglian authored and AEloglian committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    6b4848e View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2022

  1. config: tgl-cavs: add probe module

    Add probe module to tgl-cavs config
    
    Signed-off-by: Adrian Bonislawski <[email protected]>
    abonislawski authored and lgirdwood committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    5b076f1 View commit details
    Browse the repository at this point in the history
  2. config: tgl-h-cavs: add probe module

    Add probe module to tgl-h-cavs config
    
    Signed-off-by: Adrian Bonislawski <[email protected]>
    abonislawski authored and lgirdwood committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    542924d View commit details
    Browse the repository at this point in the history
  3. config: mtl: add probe module

    Add probe module to mtl config
    
    Signed-off-by: Adrian Bonislawski <[email protected]>
    abonislawski authored and lgirdwood committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    fb28357 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2022

  1. manifest: add fw_ver_micro to manifest

    Pass fw_ver_micro value to manifest.
    
    Signed-off-by: Damian Nikodem <[email protected]>
    dnikodem authored and lgirdwood committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    a1b6e6d View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2022

  1. rimage: make ace15 signing to support openssl3

    Ace signing is currently missing openssl3 support, so let's add it.
    
    Signed-off-by: Jaska Uimonen <[email protected]>
    Jaska Uimonen authored and lgirdwood committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    d957e03 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2022

  1. mux: add mux cfg to list of modules

    No mux in the manifest
    
    Signed-off-by: Kwasowiec, Fabiola <[email protected]>
    fkwasowi committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    dcfd11b View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2022

  1. mux: fix module type

    error: invalid type /error: key 'module' parsing error
    
    Signed-off-by: Kwasowiec, Fabiola <[email protected]>
    fkwasowi committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    1f4a36e View commit details
    Browse the repository at this point in the history
  2. probe: mtl.toml invaliv probe type

    error: invalid type 16error: key 'module' parsing error
    probe module type is 10,which is treated hexally
    
    Signed-off-by: Kwasowiec, Fabiola <[email protected]>
    fkwasowi committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    3ee717e View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2022

  1. config: mtl: add kd module

    Add KD module config
    
    Signed-off-by: Ievgen Ganakov <[email protected]>
    iganakov authored and lgirdwood committed Nov 8, 2022
    Configuration menu
    Copy the full SHA
    85a2d1e View commit details
    Browse the repository at this point in the history
  2. config: mtl: add kpb module

    Add KPB module config
    
    Signed-off-by: Ievgen Ganakov <[email protected]>
    iganakov authored and lgirdwood committed Nov 8, 2022
    Configuration menu
    Copy the full SHA
    6623073 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2022

  1. rimage: remove incorrect module order check

    The original check for "i - 1 == type" is used to make
    sure that all modules in toml file are in order from 0
    to max continuously. But the problem is that some modules
    are not supported now or some modules share the same module
    type of efx, so this check is incorrect.
    
    Signed-off-by: Rander Wang <[email protected]>
    RanderWang authored and mwasko committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    f51ff46 View commit details
    Browse the repository at this point in the history
  2. rimage: correct module type

    Currently some module types are incorrect and it was set by the change
    sequence. The module type is used by windows driver not Linux driver.
    It is defined in the following enum definition in cavs_ext_manifest.h.
    
    UpDwMix module type is 5, Mux is 6 kpb is 11, and Selector is 12. The
    module ASRC, GAIN, PROBE are type of efx (9) according to spec.
    
    enum mod_type {
            ebasefw = 0,
            emixin,
            emixout,
            ecopier,
            epeakvol,
            eupdwmix,
            emux,
            esrc,
            ewov,
            efx,
            eaec,
            ekpb,
            emicselect,
            efxf,   /*i.e.SmartAmp */
            eaudclass,
            efakecopier,
            eiodriver,
            ewhm,
            egdbstub,
            esensing,
            emax,
            einvalid = emax
    } ;
    
    Signed-off-by: Rander Wang <[email protected]>
    RanderWang authored and mwasko committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    fe5b959 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2022

  1. rimage: add src support

    Add src's params to rimage
    
    Signed-off-by: Gongjun Song <[email protected]>
    gongjun-song authored and lgirdwood committed Nov 25, 2022
    Configuration menu
    Copy the full SHA
    65f345a View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. config: Add mt8188.toml

    Add mt8188.toml to support sof-mt8188.ri binary build.
    
    Signed-off-by: Tinghan Shen <[email protected]>
    tinghan-shen authored and yaochunhung committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    082b626 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2022

  1. config: tgl-cavs: add smart amp test module config

    This patch adds module config for smart amp test module.
    
    Signed-off-by: Chao Song <[email protected]>
    Chao Song authored and lgirdwood committed Dec 21, 2022
    Configuration menu
    Copy the full SHA
    1c48208 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. Add a command line option to set an Intel-specific PV bit

    Add a '-p' command line flag to set Intel reserved bit in IMR area.
    
    Signed-off-by: Guennadi Liakhovetski <[email protected]>
    lyakh authored and lgirdwood committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    bdba825 View commit details
    Browse the repository at this point in the history
  2. Fix IMR type parsing

    The IMR type can be specified either in the TOML configuration file
    or on the command line. The command line value should override the
    one from the configuration file. But the current code overwrites the
    configuration file value with the default value even if no value has
    been specified on the command line, which is wrong. Fix this by using
    the default value when reading the configuration file and only
    overwriting it when the respective command line parameter is used.
    
    Signed-off-by: Guennadi Liakhovetski <[email protected]>
    lyakh authored and lgirdwood committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    f3eef3c View commit details
    Browse the repository at this point in the history
  3. Fix bitmap according to the IMR type

    When the IMR type is set to 4, the default bitmap field thesofproject#4 must be
    0x10.
    
    Signed-off-by: Guennadi Liakhovetski <[email protected]>
    lyakh authored and lgirdwood committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    ba8534b View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2023

  1. config: tgl-cavs: add fir and iir eq module config

    This patch adds module config for fir and iir eq module.
    
    Signed-off-by: Jaska Uimonen <[email protected]>
    Jaska Uimonen authored and lgirdwood committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    bdf48ee View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. config: align module_type with mtl for tgl and tgl-h

    The module_type member in module config should be assigned
    according to the mod_type enum. Previously, for tgl and tgl-h,
    it is assigned in an incremental way, which is wrong. MTL assigns
    module_type in the correct way, so align the module_type with
    mtl for tgl and tgl-h in this patch.
    
    Signed-off-by: Chao Song <[email protected]>
    Chao Song authored and kv2019i committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    bc7d49d View commit details
    Browse the repository at this point in the history
  2. config: correct module config load_type

    The load_type in extended manifest is used to indicate
    if a module is a built-in module(0) or a loadable(1)
    module.
    
    We don't have loadable module yet, so load_type should
    be zero for all modules.
    
    Signed-off-by: Chao Song <[email protected]>
    Chao Song authored and kv2019i committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    3da7739 View commit details
    Browse the repository at this point in the history
  3. config: mtl: add smart amp test module config

    This patch adds smart amp test module config for mtl.
    
    Signed-off-by: Chao Song <[email protected]>
    Chao Song authored and kv2019i committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    7bc3cfc View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. Convert all ELF addresses to cached for calculations

    Rimage calculates sizes of ELF sections, for which it has to use
    addresses from the same address space: either all cached or all
    uncached. The ELF image itself can contain mixed addresses. Convert
    all to cached for internal calculations.
    
    Signed-off-by: Guennadi Liakhovetski <[email protected]>
    lyakh authored and lgirdwood committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    ec649f3 View commit details
    Browse the repository at this point in the history
  2. src: adsp_config: Use reserved bits for module init config

    Use some of the reserved bits to add a new field, init_config, in struct
    sof_man_module_type. This will be used to specify the type of payload
    that the module expects. For now, the 2 options are to have the base
    config only or the base config with an extension that contains the pin
    formats. This can be extended in the future to support additional
    options for modules that need more than the base config or base config +
    extension.
    
    Signed-off-by: Ranjani Sridharan <[email protected]>
    ranj063 authored and lgirdwood committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    15ea481 View commit details
    Browse the repository at this point in the history
  3. config: tgl-cavs: set init_config for smart test

    Smart amp needs the base config extension during init.
    
    Signed-off-by: Ranjani Sridharan <[email protected]>
    ranj063 authored and lgirdwood committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    b5d7622 View commit details
    Browse the repository at this point in the history
  4. config: mtl: Set init_config for smart amp

    Smart amp needs the base config extension during module init.
    
    Signed-off-by: Ranjani Sridharan <[email protected]>
    ranj063 authored and lgirdwood committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    d48ae7a View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2023

  1. Fix regression - make default return code an error

    A recent commit ec649f3 ("Convert all ELF addresses to cached
    for calculations") had a bug: it assumed a call to
    parse_uint32_hex_key() for an absent key would return an error by
    default, which isn't the case. To force it set the default return
    code to an error value.
    
    Signed-off-by: Guennadi Liakhovetski <[email protected]>
    lyakh authored and lgirdwood committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    def9d51 View commit details
    Browse the repository at this point in the history
  2. config: set cached and uncached aliases for affected platforms

    Set cached and uncached address aliases for all Intel ADSP platforms,
    supported by Zephyr.
    
    Signed-off-by: Guennadi Liakhovetski <[email protected]>
    lyakh authored and lgirdwood committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    9b507ec View commit details
    Browse the repository at this point in the history
  3. config:tgl/tglh: Do not set cached/uncached address aliases

    tgl.toml and tgl-h.toml are only used for xtos builds.
    
    Suggested-by: Guennadi Liakhovetski <[email protected]>
    Signed-off-by: Ranjani Sridharan <[email protected]>
    ranj063 authored and kv2019i committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    1e0a85b View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. Don't convert ROM addresses to cached aliases

    We don't include ROM sections into the output image. If conversion is
    applied to them, they end up in the SRAM address range, which then
    generates corrupted images.
    
    Signed-off-by: Guennadi Liakhovetski <[email protected]>
    lyakh authored and kv2019i committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    3863e94 View commit details
    Browse the repository at this point in the history
  2. config: mtl: set KDTEST module_type to 8

    KDTEST module_type should be 8
    
    Signed-off-by: Libin Yang <[email protected]>
    libinyang authored and lgirdwood committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    bf23b5e View commit details
    Browse the repository at this point in the history
  3. config: tgl-cavs: add kpb, selector and kd support

    Add KPB, Selector and KD module config
    
    Signed-off-by: Libin Yang <[email protected]>
    libinyang authored and lgirdwood committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    cb9c880 View commit details
    Browse the repository at this point in the history
  4. adsp_config: make the default value zero for init_config

    The init_config is used to indicate if base config extension is
    used (1) or not (0). Its default value is used if not specified
    in module config, the default value for init_config should be zero
    instead of one.
    
    Signed-off-by: Chao Song <[email protected]>
    Chao Song authored and lgirdwood committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    ffd0542 View commit details
    Browse the repository at this point in the history
  5. adsp_config: add dump for init_config

    This patch adds dump for init_config for debug.
    
    Signed-off-by: Chao Song <[email protected]>
    Chao Song authored and lgirdwood committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    d48ad6b View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. config: mtl: set init_config for micsel

    The micsel module will use base config extension,
    init_config should be one for it.
    
    Signed-off-by: Chao Song <[email protected]>
    Chao Song authored and kv2019i committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    3aa199f View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2023

  1. main: heap_adsp release fix

    In image re-signing mode or if there are no input files, the memory
    allocated for heap_adsp was not released.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    0931d9c View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2023

  1. toml_utils: adsp_config: Moved generic parser functions to toml_utils

    A set of functions which make it easier to parse toml files has been
    separated into a new file.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    fed69d4 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. file_utils: manifest: ext_manifest: Add new create_file_name function

    A new function create_file_name has been created that prepares the name
    of the output file with the given extensions. Unlike the previous solution,
    it checks whether the new name will fit in the output buffer.
    
    A new file_utils.c file has been prepared, into which generic functions to
    simplify the use of files will be moved.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    055ea7e View commit details
    Browse the repository at this point in the history
  2. file_utils: Add a new get_file_size function

    The get_file_size function allows to conveniently get the size of the file.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    6a64cb9 View commit details
    Browse the repository at this point in the history
  3. manifest: Use the get_file_size function

    Simplified retrieval of file size by using the function get_file_size.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    98c7f7b View commit details
    Browse the repository at this point in the history
  4. elf: Use the get_file_size function

    Simplified retrieval of file size by using the function get_file_size.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    36c0c90 View commit details
    Browse the repository at this point in the history
  5. rimage: use hex number

    Module type is interpreted as hex number
    
    Signed-off-by: Rander Wang <[email protected]>
    RanderWang authored and mwasko committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    5ebbd65 View commit details
    Browse the repository at this point in the history
  6. toml_utils: Adding support for decimal numbers in hex parser

    Modified the strtoul function parameter to automatically recognize
    the value format. This will avoid the situation when a decimal value
    is parsed as hexadecimal.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    a4ca53c View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. ext_manifest: Fix fw_ext_man_cavs_header version

    The version fields in the fw_ext_man_cavs_header structure describe version
    of the structure itself, not the image. The correct version number has been
    set.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    9ce1cc8 View commit details
    Browse the repository at this point in the history
  2. misc_utils: Move byte_swap function to new misc_utils.c file

    This function will be used in different places in the code, so I moved it
    to a separate file.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    93c5e8b View commit details
    Browse the repository at this point in the history
  3. hash: New hash functions

    Prepared a new set of functions for computing digest with error handling.
    The hash context has been placed into a separate structure. This allows
    to conveniently pass the calculated digest along with its length and used
    algorithm.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    2bd8be3 View commit details
    Browse the repository at this point in the history
  4. manifest: pkcs1_5: Use new hash functions

    Switched to use new hash functions. The parameter list for the rimage_sign
    and rimage_verify functions has been simplified. The necessary information
    is now included in the hash_context structure. In addition, code fragments
    that may be common to different versions of the manifest have been
    separated.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    d258ea2 View commit details
    Browse the repository at this point in the history
  5. hash: Remove old hash functions

    Removed currently unused functions.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    6c7a151 View commit details
    Browse the repository at this point in the history
  6. rimage: Removed hash context from image structure

    Fields related to hash computing have been removed from the image
    structure. Removed openssl headers from rimage.h, which made it necessary
    to add some missing includes in several files.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    6fad356 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. mtl: add eq-iir and fir support

    Port from tgl-cavs.toml
    
    Signed-off-by: Rander Wang <[email protected]>
    RanderWang authored and lgirdwood committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    35bc644 View commit details
    Browse the repository at this point in the history
  2. rimage: fix build error

    Recent changes introduce build error, fix the build
    error.
    
    Signed-off-by: Chao Song <[email protected]>
    Chao Song authored and lgirdwood committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    5bc2010 View commit details
    Browse the repository at this point in the history
  3. mtl: add Aria module to extended manifest

    Add ARIA module to MTL extended manifest.
    
    Signed-off-by: Przemyslaw Blaszkowski <[email protected]>
    pblaszko authored and lgirdwood committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    d32db50 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2023

  1. file_utils: Removed duplicated function descriptions

    Functions are already described in the header file.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    dd15443 View commit details
    Browse the repository at this point in the history
  2. file_utils: Add file_error function

    Added a generic function that displays a file operation error message.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    32a5388 View commit details
    Browse the repository at this point in the history
  3. Use file_error function to print file related errors

    Added error handling where it was missing. According to the documentation,
    the fseek function returns a non-zero value on error. The conditions for
    checking this value have been corrected.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    4aacac3 View commit details
    Browse the repository at this point in the history
  4. file_utils: Fix error detection in get_file_size function

    The fseek function returns -1 to signal an error. Return value was assigned
    to a variable without a sign, so the error could not be detected.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    125745b View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2023

  1. Revert "config:tgl/tglh: Do not set cached/uncached address aliases"

    Now that rimage can distinguish between Zephyr and XTOS builds, we
    can use memory alias specifiers with both.
    
    This reverts commit 1e0a85b.
    
    Signed-off-by: Guennadi Liakhovetski <[email protected]>
    lyakh authored and kv2019i committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    343b6d8 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2023

  1. cAVS: add alias definitions to cAVS 1.5-2.0

    cAVS 1.5, 1.8 and 2.0 are supported by Zephyr, their configurations
    need alias definitions.
    
    Signed-off-by: Guennadi Liakhovetski <[email protected]>
    lyakh authored and kv2019i committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    63eb6ff View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2023

  1. config: tgl-h-cavs: align modules to tgl-cavs config

    Update the list of modules to match that of "tgl-cavs".
    
    Signed-off-by: Kai Vehmanen <[email protected]>
    kv2019i committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    1bf447c View commit details
    Browse the repository at this point in the history
  2. lnl: Add LNL configuration file

    Add base LNL config derived from MTL.
    
    Signed-off-by: Jaroslaw Stelter <[email protected]>
    jxstelter authored and kv2019i committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    01fd742 View commit details
    Browse the repository at this point in the history
  3. kpb: update UUID

    Change of uuid
    regarding Windows compatibility
    
    Signed-off-by: Kwasowiec, Fabiola <[email protected]>
    fkwasowi committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    9643a98 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2023

  1. elf: Add header guard to elf.h

    Added header guard in elf.h file to allow safe include this header by
    multiple units.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    b2177e5 View commit details
    Browse the repository at this point in the history
  2. manifest: Check return value of man_create_modules

    The man_create_modules function may return an error that was ignored. Added
    check of a return value.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    9633c3b View commit details
    Browse the repository at this point in the history
  3. Remove unused dram_offset field / config option

    There was no dram_offset value in any configuration file. It also wasn't
    used anywhere in the code. So the code reading it from the tolm file has
    been removed.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    c210183 View commit details
    Browse the repository at this point in the history
  4. misc_utils: Added functions to print enum and flags value

    Added name_val structure representing name/value tuple. Added function
    print_enum which displays the name of the enum corresponding to a given
    value. Added print_flags function which display names of flags constituting
    a given value.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    d209160 View commit details
    Browse the repository at this point in the history
  5. rimage: adsp_config: Create new memory_config structure.

    Moved mem_zone field from adsp structure to the new memory_config structure
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    b9ecb00 View commit details
    Browse the repository at this point in the history
  6. rimage: Moved memory alias configuration to a new struct

    A new memory_alias structure containing memory address alias configurations
    has been created. It was placed in the memory_config structure.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    9ecae53 View commit details
    Browse the repository at this point in the history
  7. rimage: manifest: Rename struct module to manifest_module

    Changing the name of the structure type is a prelude to separating
    information about the elf file from the information used during creation
    of a manifest.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    99195d2 View commit details
    Browse the repository at this point in the history
  8. manifest_module: rename fw_size to output_size

    Changed the name of the fw_size variable to a more clear one and added
    a description.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    7367fdf View commit details
    Browse the repository at this point in the history
  9. manifest_module: Add is_bootloader field

    A is_bootloader field has been added to determine whether a module is
    a bootloader. This is clearer than checking the module index and the number
    of modules in different places in the program.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    1bda0c5 View commit details
    Browse the repository at this point in the history
  10. rimage: Add suport for loadable modules

    A new -l parameter has been added to the program's command line. It
    instructs the program to not treat the first module as a bootloader
    and not to skip the bss section for it.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    6e3abe6 View commit details
    Browse the repository at this point in the history
  11. manifest: Move MAN_MAX_SIZE_V1_8 define to the public manifest header

    Currently, sof incorrectly includes a private manifest.h header belonging
    to the manifest.c module. Moved the MAN_MAX_SIZE_V1_8 definition used by
    sof, to the public manifest header to allow sof to switch to using the
    correct file.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    debf4cf View commit details
    Browse the repository at this point in the history
  12. manifest: Use module manifest from toml as a template for elf modules

    The manifest for elf modules is read from their .module section.
    The modules configuration parsed from a toml file was completely ignored.
    After this change, the parsed configuration is treated as a template for
    the module manifest.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    25804e7 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

  1. Fix: Use module manifest from toml as a template for elf modules

    Some platforms (eg. tgl) dont have modules configuration in a toml files.
    An attempt to use the configuration template ended with a reference to
    a null pointer. This commit fixes this issue.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and lgirdwood committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    ab0429f View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2023

  1. cmake: remove "install" target

    The deleted "install" target copied only the rimage executable and
    left the config files behind. This gave the wrong impression that the
    executable is useful without config files.
    
    "Installing" also gave the wrong impression that rimage versions are
    somewhat stable and relatively independent of SOF versions: they're
    not. In fact there is no such thing as an rimage "version": everyone
    should always use the exact rimage _git commit_ from the west manifest
    or git submodule. There are no rimage "releases" and no semantic
    versioning or anything like it, rimage is effectively part of the SOF
    source and build and run directly from its build directory by
    practically every SOF developer and SOF CI thanks to
    
      sof/src/arch/xtensa/CMakeLists.txt#ExternalProject_Add(rimage_ep ...
      sof/scripts/xtensa-build-zephyr.py#def build_rimage()
      sof/zephyr/CMakeLists.txt#set(RIMAGE_CONFIG_PATH ...
    
    etc.
    
    Providing an "install" target greatly increases the chances of
    different people and CIs using different rimage versions which is the
    last thing we want considering the many significant rimage changes
    happening right now, examples:
    
    - zephyrproject-rtos/zephyr#56099
    - zephyrproject-rtos/zephyr#54700
    - thesofproject#7270
    - thesofproject#7304
    - thesofproject#7320
    - thesofproject/rimage#155
    
    While it's useful for multiple files (e.g.: config files), a CMake
    target was always overkill to copy a single file. Someone or some
    script who really wants to copy the rimage binary to some other place
    that the build directory for some (discouraged) reason _can still do
    so_ with a much more basic, simpler and more transparent file copy
    command.
    
    Finally, the default "bin" DESTINATION required root access which
    is otherwise totally unncessary to build SOF.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and kv2019i committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    77d4a2a View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2023

  1. Config: Change SRCINTC for tgl-cavs.toml and tgl-h-cavs.toml to LL

    The SRC should be a normal LL component, it can process 1 ms blocks
    of audio in real-time. The domain_types = "1" is for DP scheduling
    that is not enabled currently in Zephyr configuration. It causes a
    pipeline prepare fail when a topology contains SRC.
    
    Signed-off-by: Seppo Ingalsuo <[email protected]>
    singalsu authored and kv2019i committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    acd8a2b View commit details
    Browse the repository at this point in the history
  2. Config: Change indent for SRCINTC

    This patch removes one unnecessary tab from section for SRCINTC.
    
    Signed-off-by: Seppo Ingalsuo <[email protected]>
    singalsu authored and kv2019i committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    8f250a9 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2023

  1. README.md: remove "install" target

    Fixes commit 77d4a2a ("cmake: remove "install" target")
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed May 25, 2023
    Configuration menu
    Copy the full SHA
    1ea1327 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2023

  1. file_simple: Allocate correct buffer size for writing sections out

    The original size given to the "calloc" call did not account for the
    necessity to pad section sizes to a multiple of 4 bytes. As such, every
    time we wrote a section that did not have a size multiple of 4 we would
    overflow the allocated buffer.
    
    Fix the calloc call to account for that padding requirement.
    
    Signed-off-by: Paul Olaru <[email protected]>
    Paul Olaru authored and dbaluta committed May 30, 2023
    Configuration menu
    Copy the full SHA
    649b0a6 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2023

  1. kpb: update kpb uuid for lnl

    Change of uuid
    regarding Windows compatibility
    
    Signed-off-by: Jaroslaw Stelter <[email protected]>
    jxstelter committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    4ce79b1 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. Config: Add Aria module to tgl-cavs.toml and tgl-h-cavs.toml

    This patch adds Aria module for TGL and TGL-H platforms. The
    used configuration data is copy from mtl.toml. This change
    allows to use Aria component in topologies.
    
    Signed-off-by: Seppo Ingalsuo <[email protected]>
    singalsu authored and lgirdwood committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    089157d View commit details
    Browse the repository at this point in the history
  2. config: add vangogh toml file to support vangogh build

    Add vangogh toml file to support sof-vangogh.ri binary build
    
    Signed-off-by: SaiSurya, Ch <[email protected]>
    saisurya-ch authored and lgirdwood committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    4877720 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. rimage.c: fix bug where -p requires a new and ignored parameter

    Fixes commit 6e3abe6 ("rimage: Add suport for loadable modules")
    
    It looks like that commit mistook the `:` sign as a separator. This
    accidentally added the requirement to give `-p` a parameter which is
    then ignored. Remove the spurious `:`.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb authored and kv2019i committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    aa0ac9e View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Config: Add DRC component to TGL, TGL-H, MTL, LNL

    This patch allows to load the DRC component.
    
    Signed-off-by: Seppo Ingalsuo <[email protected]>
    singalsu authored and lgirdwood committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    b8ee1aa View commit details
    Browse the repository at this point in the history
  2. Config: Fix comment typo for EQ FIR module

    The comment for FIR module entry is corrected.
    
    Signed-off-by: Seppo Ingalsuo <[email protected]>
    singalsu authored and lgirdwood committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    af9a2fe View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. actions: remove travis

    We removed them from the main repo, lets remove them here too.
    
    Signed-off-by: Curtis Malainey <[email protected]>
    cujomalainey authored and lgirdwood committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    d20f1d8 View commit details
    Browse the repository at this point in the history
  2. style: trailing whitespace is the root of all evil

    Signed-off-by: Curtis Malainey <[email protected]>
    cujomalainey authored and lgirdwood committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    8c84400 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. Config: Add crossover component for TGL and TGL-H cAVS platforms

    The configuration is for now copy from IIR, name and UUID are
    changed. The init_config is set to 1 to let kernel know that the
    base_cfg_ext is passed to firmware.
    
    Signed-off-by: Seppo Ingalsuo <[email protected]>
    singalsu authored and kv2019i committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    c809af8 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2023

  1. config: lnl+mtl: fix length of ADSP.man CSE manifest

    The ADSP.man contents is different for ACE_V1_5 layout
    compared to CAVS_V2_5 layout. so the ADSP.man length should
    be adjusted accordingly.
    
    With this fix, sof_ri_info.py can be used to analyze
    LNL and MTL firmware images created with rimage.
    
    Closes: thesofproject#8073
    Signed-off-by: Kai Vehmanen <[email protected]>
    kv2019i committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    4fb9fe0 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Config: Add crossover component for MTL and LNL platforms

    This PR adds the crossover component for MTL and LNL. The
    parameters are copied from TGL and TGL-H configuration of
    crossover.
    
    Signed-off-by: Seppo Ingalsuo <[email protected]>
    singalsu authored and lgirdwood committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    43eb2a4 View commit details
    Browse the repository at this point in the history
  2. mtl: add measured cps and cpc values

    Add CPS and CPC consumptions for given modules
    
    Signed-off-by: Krzysztof Frydryk <[email protected]>
    kfrydryx authored and lgirdwood committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    c183ce2 View commit details
    Browse the repository at this point in the history
  3. mtl: fill in subsequent measured cps and mcps data

    Fill in measured cps consumption data for: mixin, mixout, copier,
    peakvol, gain, src, updwnmixer for a range of supported formats.
    
    Signed-off-by: Krzysztof Frydryk <[email protected]>
    kfrydryx authored and lgirdwood committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    352f01f View commit details
    Browse the repository at this point in the history
  4. mtl: fill in cps and cpc data for ASRC module

    Fill in measured cps consumption data for ASRC module for various
    formats.
    
    Signed-off-by: Krzysztof Frydryk <[email protected]>
    kfrydryx authored and lgirdwood committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    476d636 View commit details
    Browse the repository at this point in the history
  5. mtl: fill in cps and cpc data for smart_amp_test module

    Fill in measured cps consumption data for SMATEST module
    
    Signed-off-by: Adrian Bonislawski <[email protected]>
    abonislawski authored and lgirdwood committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    fea2a30 View commit details
    Browse the repository at this point in the history
  6. mtl: fill in cps and cpc data for EQIIR module

    Fill in measured cps consumption data for EQIIR module
    
    Signed-off-by: Adrian Bonislawski <[email protected]>
    abonislawski authored and lgirdwood committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    4a36634 View commit details
    Browse the repository at this point in the history
  7. mtl: fill in cps and cpc data for COPIER & GAIN modules

    Fill in measured cps consumption data for COPIER & GAIN  modules
    
    Signed-off-by: Adrian Bonislawski <[email protected]>
    abonislawski authored and lgirdwood committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    8bcf1fc View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. Config: Add Multiband-DRC component to TGL, TGL-H, MTL, LNL

    This patch allows to load the Multiband-DRC component.
    
    Signed-off-by: Seppo Ingalsuo <[email protected]>
    singalsu authored and kv2019i committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    e8b380d View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. Config: Add DCblock to TGL, TGL-H, MTL, and LNL

    This patch enables load of the DC blocker component.
    
    Signed-off-by: Seppo Ingalsuo <[email protected]>
    singalsu authored and lgirdwood committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    7bc2958 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

  1. elf_file: Set of new functions for reading elf files

    A structure was created to represent a file, a section and a strings
    section. Created a new functions to read a elf file, retrieve a section
    header based on index or name, read a section contents based on
    a header or name, retrieve section name and functions that print file,
    section and program headers.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    5f47509 View commit details
    Browse the repository at this point in the history
  2. module: Set of a new functions to parse modules

    A structure was created to represent the module, module section and section
    informations. Added a set of new functions for parsing a module and reading
    its contents.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    539c2b3 View commit details
    Browse the repository at this point in the history
  3. Switch to new elf reader and module parse functions.

    Moved the module information to the new module structure. Used new
    functions to parse module.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    7155327 View commit details
    Browse the repository at this point in the history
  4. elf: Remove unused elf.c

    Removed elf.c file that is no longer in use.
    
    Signed-off-by: Adrian Warecki <[email protected]>
    softwarecki authored and pjdobrowolski committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    4fc431b View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. ipc4: add google rtc AEC support for mtl

    Signed-off-by: Rander Wang <[email protected]>
    RanderWang authored and lgirdwood committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    d89b7d2 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Congfig: Add TDFB to TGL, TGL-H, MTL, and LNL

    This patch enables load the of Time domain fixed beamformer (TDFB).
    
    Signed-off-by: Seppo Ingalsuo <[email protected]>
    singalsu authored and kv2019i committed Oct 2, 2023
    Configuration menu
    Copy the full SHA
    ac487e0 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. rimage: move everything down to subdir tools/rimage/, prepare move to…

    … sof
    
    Preparation to move everything back into the
    https://github.com/thesofproject/sof/ repo, see
    thesofproject#8178 for details.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    b5f3ed9 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. Merge full rimage.git history back into tools/rimage/ subdir of sof.git

    Merge full rimage.git history back into tools/rimage/ subdir of
    sof.git thanks to:
    
       git merge --allow-unrelated-histories rimage-repo/main
    
    Also list incoming tools/rimage/tomlc99 16000 gitlink in
    sof/.gitmodules to avoid breaking all git submodule commands.
    This MUST be done as part of this merge commit to avoid
    git submodule errors and preserve git bisectability.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    4fe87be View commit details
    Browse the repository at this point in the history
  2. Clean just inherited tools/rimage/.gitmodules file (for tomlc99)

    .gitmodules files have no effect unless they're at the top-level.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    99206de View commit details
    Browse the repository at this point in the history
  3. Add new sof/tools/rimage/tomlc99 submodule to west.yml too

    Add it both as a git submodule and west submodule to minimize
    disruption. The current focus is on rimage and that's a dramatic enough
    change; one problem at at time.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    9b31875 View commit details
    Browse the repository at this point in the history
  4. Switch Zephyr build to new sof/tools/rimage location

    Switch away from the independent rimage submodule. Long story in
    thesofproject#8178 and others.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    f55338a View commit details
    Browse the repository at this point in the history
  5. Switch smex and sof-logger to new sof/tools/rimage location

    Switch away from the independent rimage submodule. Long story in
    thesofproject#8178 and others.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    157457c View commit details
    Browse the repository at this point in the history
  6. cmake: switch XTOS build to sof/tools/rimage

    Switch away from the independent rimage submodule. Long story in
    thesofproject#8178 and others.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    98ee39f View commit details
    Browse the repository at this point in the history
  7. Delete old rimage submodule and old rimage west module

    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    e330fb4 View commit details
    Browse the repository at this point in the history