Skip to content

Updates for v72#196

Merged
ricardosalveti merged 21 commits intofoundriesio:masterfrom
ricardosalveti:master
Jul 17, 2020
Merged

Updates for v72#196
ricardosalveti merged 21 commits intofoundriesio:masterfrom
ricardosalveti:master

Conversation

@ricardosalveti
Copy link
Copy Markdown
Member

@ricardosalveti ricardosalveti commented Jul 17, 2020

Quite a few changes but most are needed for making it compatible with latest oe-master.

Some notes:

  • GCC 10 and QEMU 5, which is why we are dropping a few changes
  • OPTEE-OS/SKS are just minor updates to cover the work done by @ldts
  • Cherry-picks from torizon: docker-ce and aktualizr-lite systemd service changes (related to boot-target)
  • iMX: changes needed to avoid letting meta-toradex-nxp break all other imx targets (bringing from meta-toradex-nxp and adding original append to bbmask)

Musl-based LMP is not officially supported (due several issues with
systemd and other recipes, so drop the gcc patch entirely as OE-Core
moves to GCC 10.x.

Signed-off-by: Ricardo Salveti <[email protected]>
OE-Core now provides QEMU 5.0, which already includes the patch.

Signed-off-by: Ricardo Salveti <[email protected]>
Sync from OE-Core af687c9137a3e8efe48afa6fd12866cf656ae913.

Signed-off-by: Ricardo Salveti <[email protected]>
Sync changes from meta-updater a7189aa (sanity check).

Signed-off-by: Ricardo Salveti <[email protected]>
Use the patch available from meta-freescale for optee-imx in order to
make optee-os compatible with gcc10.

Not applied to the optee-os fio repository as that requires backport of
more patches in order to be compatible with both gcc 9 and 10 (and we
hope to rebase to a newer version soon).

Signed-off-by: Ricardo Salveti <[email protected]>
Relevant changes:
- 57e1652 Globals: add missing include string

Signed-off-by: Ricardo Salveti <[email protected]>
Relevant changes:
- 51586b13 [FIO toup] libnxpse050: ecc: fix sign/verify
- 60999608 [FIO toup] libnxpse050: ecc: fix support for verify
- 3e0d239d [FIO toup] libnxpse050: refactor apdu api
- fc785154 [FIO toup] libnxpse050: SCP03 key rotation
- b2732736 [FIO toup] libnxpse050: core: ecc shared secret
- c3a6d3b5 [FIO toup] libnxpse050: glue: lock i2c transfers
- 57d51746 Revert "[FIO temphack] core: se050: disable canaries"
- dcf48198 [FIO toup] core: increase stacks when using SE050

Signed-off-by: Ricardo Salveti <[email protected]>
Extend the default list of fallback ntp server to include the ntp server
from cloudflare.com. This is done in a way to avoid relying on one
single domain, which might be blocked in certain networks.

This change also allows the user to easily overwrite the default
fallback via the DEF_FALLBACK_NTP_SERVERS variable.

Change based on a similar change done in meta-toradex-torizon.

Signed-off-by: Ricardo Salveti <[email protected]>
Docker is a crucial service for LMP, so make sure the service triggers a
reboot in case it fails to start, as then the system can automatically
perform a rollback in case of a bad update.

Also enable TasksMax=infinity since this is recommended by the Docker
team when using newer systemd version than 226.

Change based on a similar change done in meta-toradex-torizon.

Signed-off-by: Ricardo Salveti <[email protected]>
From the systemd.special(7) man page section boot-complete.target:
This target is intended as generic synchronization point for services
that shall determine or act on whether the boot process completed
successfully.

Let's make use of the target. Since aktualizr-lite by default marks a
boot as successful, we consider aktualizr.service a service which needs
to be executed on successful boot (hence after the boot-complete.target).

This allows to declare a service as crucial by simply ordering it before
the boot-complete.target. The systemd example service
systemd-boot-check-no-failures.service can serve as an example.

This change does not add any service dependency by default as
boot-complete.target by default does not has any extra dependencies.

Note that rebooting in the failure case is not handled by this
mechanism. This can be added by using FailureAction.

Boot assessement infrastructure got introduced with systemd 240. See
also:
https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/

Change based on a similar change done in meta-toradex-torizon.

Signed-off-by: Ricardo Salveti <[email protected]>
Make use of the boot-complete.target synchronization point. Order the
unit docker.service before this target to make its start necessary for
a boot to be considered successful.

This makes sure that aktualizr-lite.service (which is ordered after
boot-complete.target) only gets started if the docker.service is
successful, and hence a boot is only marked successful if Docker starts
and is functional.

Change based on a similar change done in meta-toradex-torizon.

Signed-off-by: Ricardo Salveti <[email protected]>
Prefer using a known SRCREV instead of AUTOREV in order to avoid
unexpected issues due repo changes.

Signed-off-by: Ricardo Salveti <[email protected]>
Meta-virtualization changed docker to be activated via socket instead of
the standard service file, so move back to force docker.service as the
default activation mechanism in LMP.

This is required as docker is a critical service for LMP, and we need to
know if it is functional or not during early boot instead of only when
it gets first used by the system.

Signed-off-by: Ricardo Salveti <[email protected]>
Include additional bbappend that are now available in the latest
meta-toradex-bsp-common repository (which can cause contamination with
other targets).

Signed-off-by: Ricardo Salveti <[email protected]>
Mirror update from meta-toradex-nxp.

Signed-off-by: Ricardo Salveti <[email protected]>
Update the default bbmask list based on the latest meta-toradex-nxp
update (27643dc).

Signed-off-by: Ricardo Salveti <[email protected]>
Relevant changes:
- b63b688c85add ARM: defconfig: apalis/colibri-imx*: enable GPIO/serial sources for PPS
- 78e290d674455 arm64: defconfig: enable GPIO/serial sources for PPS
- ad1860a80539f ARM64: dts: apalis-imx8x: remove no-1-8-v from sd-card node
- b4d382b9ea490 ARM64: dts: colibri-imx8x: remove no-1-8-v from sd-card node
- 02ffc275063f1 ARM64: dts: apalis-imx8x: disable write-protection on apalis-sd
- 33f0885835b0e imx8: isi: ar0521: disable debug messages
- 5903b6ce9b0fc arm64: dts: apalis-imx8qm: add ar0521 device trees
- 950b5c0df30de arm64: defconfig: enable ar0521 driver
- 1554f7c30bb7b imx8: isi: ar0521: add initial driver
- 70115fee22201 arm64: dts: apalis-imx8qxp: cleanup pinctrl gpio mess
- 636221c6d4053 arm64: dts: apalis-imx8qm: cleanup pinctrl gpio mess
- 303d84b713620 arm64: dts: apalis-imx8qm: improve v1.1 related stuff
- 56751cc5442f7 ARM64: dts: apalis-imx8: use proper rgmii-rxid
- a8363cd02eec2 ARM64: dts: apalis-imx8qm: sync pcie clocks with NXP branch imx_4.14.98_2.3.0
- 453fdfde79e13 ARM64: dts: fsl-imx8qm-apalis-v1.1-eval: change model string
- 60f8ee9af1da4 ARM64: dts: apalis-imx8qm-v1.1: spi: use gpio cs
- b642c7233b0fc ARM: dts: imx8qxp-apalis: add gpio-line-names
- 118d6304a06eb ARM: dts: imx8qm-apalis: add gpio-line-names
- 440ffd07418da ARM: dts: imx8qxp-colibri: add gpio-line-names
- 4b7f6697ff56a ARM: dts: imx6ull-colibri: add gpio-line-names
- af79b7f174405 arm64: defconfig: add bluetooth drivers for Gumstix AutoBSP
- 4caad84c583b1 arm64: defconfig: add sensor drivers for Gumstix AutoBSP
- c150a766f251a arm64: defconfig: add sound drivers for Gumstix AutoBSP
- bf660e2d081ae ASoC: Add prompt for ICS43432 codec
- 6ce96b6f20b77 ARM64: dts: verdin-imx8mm: sort alphabetically
- fac5bc1cc73bc ARM64: dts: apalis-imx8x: integrate reset_moci#_drv handling
- ec7d8bddde9b1 ARM64: dts: apalis-imx8x: pull reset_moci low into reset-active
- 676affd2e411a scripts/dtc: Remove duplicate definitions of yylloc
- 88c001354a157 scripts/dtc: Remove redundant YYLOC global declaration
- 8c0a76c920130 ARM: dts: imx6-apalis: add gpio-line-names
- 76f62fe644888 ARM: dts: imx6-colibri: add gpio-line-names
- b02286c7121c8 usb: misc: usb3503: make error text unique
- b23cb2e3601c2 ARM64: dts: keep hub control signals reset pull state
- fb6b17a226345 ARM: dts: verdin-imx8mm: add gpio-line-names
- e9310105b093f ARM64: dts: verdin-imx8mm: add dahlia carrier board
- d832964749954 ARM64: dts: verdin-imx8mm: prepare for dahlia carrier board
- c4136f24663a7 ARM64: verdin-imx8mm: silence mmc wp switch warning
- ee6d8af88d62a ARM: dts: imx7-colibri: add gpio-line-names
- 35db8a1fc5c54 Accept partial 'gpio-line-names' property.
- 0347fe7527d06 MLK-23837 Asoc: fsl_dsp: Fix system crash when do dsp suspend test
- 20a5e74485abe MLK-23880 arm64: dts: imx8dx: refine the pcieb clocks
- aa5d66d3571e8 MLK-23275-3: regulator: bd71837: correct ldo1/ldo2 group
- 167cbe000b2e8 MLK-23275-2: ARM64: dts: freescale: fsl-imx8mn-ddr4-evk: correct ldo1/ldo2 voltage
- 96c179b63e7bb MLK-23275-1: ARM64: dts: freescale: fsl-imx8mm-evk: correct ldo1/ldo2 voltage
- 52635c5ba1ff8 MGS-5565-1 staging: android: ion: Flush outer cache after zero CMA allocated memory
- 03cfd33c5f341 MGS-5565 staging: android: ion: Flush cache after zero CMA allocated memory
- 252217e0dc992 LF-1236 mxc: vpu_malone: roundup allocated kfifo size to power-of-two
- 02e96760b8fbe MLK-21644 crypto: tcrypt - workaround for overlapping src, dst AAD
- 651364b5fe44c LF-717: crypto: dcp - fix scatterlist linearization for hash
- c2937fd8fe144 MLK-23681 arm64: dts: imx: enable pcieb on 8qm mek baseboard
- 82a6695ed109e MLK-23220:mxc:vpu_malone:kfifo_alloc failure in VPU driver when memory fragment
- fc7c45cf829d1 MLK-23396: crypto: caam - ensure CAAM context is not sharing the cacheline
- 359d8f37b464a MLK-23233-5 PCI: imx: add the mandatory required peripheral clocks
- 73a14019d0d4c MLK-23233-4 arm64: dts: refine pcie dts and add the pcieax2 and pciebx1 usecase
- 041b7a6f981bb MLK-23233-3 ata: imx: add the clks into sata driver
- e7e4a80d6b9a2 MLK-23233-2 dts: arm64: sata: add the clks into sata nodes
- 22b12c5f04d4a MLK-23233-1 dt-bindings: ata: add the peripheral clocks for imx8qm sata
- 54312465a5121 MLK-23331 arm64: dts: imx8mn: Update settings according to latest datasheet
- 5ae5b1903d413 LF-838: crypto: caam - increase the domain of write memory barrier to full system
- e4b7f6538df92 MLK-23326 arm64: dts: imx8mn-evk: Correct 1.2GHz OPP voltage

Signed-off-by: Ricardo Salveti <[email protected]>
OE-Core e684532 changed the sccs parsing order, making defconfig be the
first one to be parsed, but the required elements check wasn't updated
to include the new sccs_defconfig variable, causing scc to be skipped
and resulting in a kernel build failure.

Workaround the issue by defining KERNEL_FEATURES with a common and basic
config fragment, as then elements will not be empty, causing scc to be
called as usual.

Can be reverted once the proper fix lands upstream.

Signed-off-by: Ricardo Salveti <[email protected]>
Relevant changes:
- 9713f2b Replace ThalesIgnite/crypto11 with patched version
- 6548084 ecies: Pull in pkcs11 implementation
- 2c3ad9d ecies: Make handler generic to key source
- ef8e96b use new ecies library in application
- d3c6fe4 Pull in ecies implementation from ethereum
- e671534 Start of pkcs11 support
- 8eceef8 pkcs11: Stub out where this will happen
- 8bea5ca app: Actually process the sota.toml
- a6fc8e4 Use real TLS server and sota.toml for testing
- 225f82d clean up testWrapper
- 5528586 Decouple decryption logic for app creation
- 8c25022 main: Don't crash if init functions fail

Signed-off-by: Ricardo Salveti <[email protected]>
Toradex bsp layer ends up overriding generic variables (e.g. SRCREV),
which is not ideal for us, so port the required imx-boot changes from
meta-toradex-nxp to meta-lmp-bsp instead.

Signed-off-by: Ricardo Salveti <[email protected]>
Copy link
Copy Markdown
Contributor

@mike-scott mike-scott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ricardosalveti ricardosalveti merged commit eccc1ab into foundriesio:master Jul 17, 2020
quaresmajose pushed a commit that referenced this pull request Nov 9, 2022
Relevant changes:
- de0eb14 Merge pull request #210 from YoeDistro/yoe/mut
- 1bf66f8 linux-firmware: Use nonarch_base_libdir instead of hardcoding /lib
- 478e0c4 Merge pull request #209 from YoeDistro/yoe/mut
- 7ca49de ti-18xx-wlconf: Drop spurious dot from PV
- aff7e79 ti-18xx-wlconf: Use nonarch_base_libdir instead of hardcoding /lib
- f244dd4 Merge pull request #207 from chrisdimich/master
- d52f46a linux-boundary: bump revision to bb58f0ee
- 1e88fc2 Merge pull request #206 from Ossanes/topic/fix-nitrogen8-boards
- 47d2543 nitrogen*: Drop duplicated WKS dependencies
- b806279 nitrogen8*: Drop useless overrides for WKS_FILE_DEPENDS
- 18912db Merge pull request #203 from boundarydevices/master
- 4d1b126 u-boot-boundary: fix fw_env.config management
- bd3eb22 u-boot-boundary: switch filesextrapaths to generic-bsp
- 7596527 Merge pull request #202 from YoeDistro/yoe/mut
- 1efcb1b recipes: Use SPDX naming scheme for LICENSE field
- a27ac73 Merge pull request #199 from chrisdimich/master
- b30a5bc u-boot-boundary: bump revision to 3d5e7f60
- 4d7c7c5 linux-boundary: bump revision to 04f4286f
- f467829 Merge pull request #198 from Ossanes/topic/linux-kontron
- 100b41b linux-kontron: defconfig: Rework to enable CONFIG_KPROBES
- d236514 linux-kontron: Upgrade 5.4.41>5.10.95
- dc91d5e Merge pull request #197 from Freescale/topic/simplify-overrides
- b034e5c Rework machine definitions to reduce duplication
- bf7ae43 u-boot-script-toradex: Revert wrong override change
- 671aee4 Generalize overrides subsystem for NXP and Mainline support
- a161b3a Merge pull request #196 from Ossanes/topic/nitrogen8mp
- 52e9a93 nitrogen8mp: Define nxp as default BSP
- 10a470a Merge pull request #195 from YoeDistro/yoe/mut
- 4560e22 layers: Bump to use kirkstone
- 0c68a5a Merge pull request #193 from Ossanes/topic/imx7d-remarkable2-remove-firmwares
- 654d5b5 imx7d-remarkable2: Remove bcm43456 firmware as it has no providers
- f8d9213 Merge pull request #192 from Ossanes/topic/imx6dl-riotboard-uboot
- e78de66 imx6dl-riotboard: Fix u-boot target
- 6059586 Merge pull request #191 from sapiippo/apalis-imx6
- 61b70a0 apalis-imx6: add missing space to append
- b3670f9 Merge pull request #190 from MaxKrummenacher/master
- e064d0e colibri-imx6ull: fix mistyped override
- b26df7f Merge pull request #187 from boundarydevices/master
- 748b8f0 linux-boundary: bump revision to acef1311
- f007a9f Merge pull request #185 from MaxKrummenacher/update-toradex
- 13bd2ac machines: toradex: update
- 02bff68 linux-toradex: vf: update to 4.4.291
- 74fc138 linux-toradex: imx: update to 5.4-2.3.x-imx
- a2c343e u-boot-script-toradex: improve script
- 6e8f05b u-boot-toradex: updated to latest
- 839df32 u-boot-toradex: drop inc file
- 4661bdc Merge pull request #184 from texierp/topic/git-fetcher
- be54937 recipes: use https protocol and add explicit branch parameter
- be3442a Merge pull request #183 from Ossanes/topic/remove-dms-ba16
- f6c6d9e Merge pull request #182 from Ossanes/topic/remove-congatec
- 5dc9275 imx6q-dms-ba16: Remove files because it is not being maintained
- 00acf49 congatec: Remove defconfig
- af1c0cb Merge pull request #181 from Ossanes/topic/remove-congatec
- 3777793 congatec: Remove files because it is not being maintained
- 557e7b6 Merge pull request #180 from Ossanes/topic/u-boot-script-gateworks-imx
- d57becc u-boot-script-gateworks-imx.bb: Fix license checksum
- ea36713 Merge pull request #178 from Ossanes/topic/linux-remarkable
- 322f7f9 linux-remarkable2_5.4.bb: Fix git revision
- 5ed5d23 Merge pull request #177 from Ossanes/topic/imx6sl-warp-uboot
- 18f54fa imx6sl-warp: Fix u-boot suffix
- c57b5f3 Merge pull request #176 from Ossanes/topic/riotboard-suffix
- a9fce64 imx6dl-riotboard: Fix u-boot suffix

Signed-off-by: Ricardo Salveti <[email protected]>
quaresmajose pushed a commit that referenced this pull request Jan 10, 2023
Bumping pflag to version v1.0.5-4-gd5e0c06, which comprises the following commits:

    d5e0c06 allow for blank ip addresses (#316)
    85dd5c8 Add IPNetSlice and unit tests (#170)
    6971c29 remove dead code for checking error nil (#282)
    81378bb Add exported functions to preserve `pkg/flag` compatibility (#220)
    14457a6 Remove require pflag v1.0.3
    e8f2996 Fix typo in go.mod
    8e39cc4 gofmt
    68f4136 Add SliceValue Comments
    b22fc70 Expand SliceValue support to all slice and array types.
    c6c0f0f Add first SliceValue implementations
    9722382 Added String-To-Int64 option parsing (#211)
    4890c25 Fix package doc
    b3e76d4 Fix descriptions for StringSlice functions
    24fa697 fix misspell (#197)
    916c5bf Fix typo in count.go (#196)
    aea12ed add int32 & int64 slice support (#194)
    454a7fb add float32 & float64 slice support (#192)
    082b515 Travis: test on 1.9 as well (#191)
    252d3ee travis: update to 1.10 and 1.11 in travis tests (#190)
    0873577 Fix golint import path (#189)
    b5e1a80 Sentence restructure and grammar fix (#188)
    298182f Fix panic when parsing unknown flag followed by empty argument (#173)
    d929dcb Handle single string=>string flags without quotes (#179)
    947b89b Add map valued (string->string, string->int) flags. (#133)
    9a97c10 bytes: add support for base64 encoded flags (#177)
    3ebe029 Allow bubbling up of -test.* flags (#169)
    583c0c0 Typo correction in flag.go (#164)
    329ebf1 Allow Users To Show Deprecated Flags (#163)
    1ce0cc6 make x.Parsed() return true after AddGoFlagSet(x) and pflag.Parse() (#162)
    1cd4a0c add ability to ignore unknown flags (#160)
    ad68c28 Add multiline wrapping support (#155)
    45e82a3 Implement BytesHex type of argument (#115)
    ee5fd03 doc: clarify difference between string slice vs. array (#158)
    6a877eb DurationSlice: implementation and tests (#122)
    4c012f6 Add uintSlice and boolSlice to name prettifier (#150)
    97afa5e Prevent printing when using ContinueOnError (#144)
    1f33b80 add int16 flag (#143)
    a9789e8 Remove redundant break
    2c300e7 Fixing Count flag usage string (#141)
    be7121d Fix SetNormalizeFunc (#137)
    5c2d607 Generate flag error output for errors returned from the parseFunc (#138)
    7aff26d New: renamed intSlice to ints in usage
    230e229 Fixed: updated unittest
    adc6ccc New: added a default name to avoid stringSlice in the usage message.
    e57e3ee Delete example, what isn't even shown in docs
    80fe0fb Testing for Shorthand Lookup
    75859d1 Add example to FlagSet.ShorthandLookup
    86425cb Add example to ShorthandLookup
    10b28b3 Add note about panic in ShorthandLookup
    a84f757 Allow lookup by shorthand (#106)
    c990990 Add Go 1.8.1 to .travis.yml
    af3f947 Update .travis.yml
    f1d95a3 Unify error message for panic and f.out
    314c91c Use comparison a string with "" instead of comparison of len
    1cd6182 Prevent parsing if there are no arguments
    9c8891d Add more verbosity to panic of shorthand redefinition
    1d9fab4 Use f.out in output flag deprecation
    4995a3e Make more detailed error in Set
    9421342 Add comments for better understanding of parsing short flags
    159e1d7 Document Count function
    e466d44 Delete setFlag
    686edd7 Fix alreadythere variable name
    af10531 Note about SortFlags in README
    e453343 flag_test: fix go vet (#123)
    0328f15 Cache sorted flags
    9a906f1 Prevent changing order of flags after SetNormalizeFunc() (#121)
    d16db1e Modified to display a string default value as double quoted and escaped (#118)
    d90f37a Add SortFlags option (#113)
    b205ad1 Change `ogier` to `spf13` in docs and README
    9ff6c69 Add FlagSet.FlagUsagesWrapped(cols) which wraps to the given column (#105)
    3f939ad Removed unused field "exitOnError".

Signed-off-by: Bruce Ashfield <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants