Skip to content

Update additional MX8 targets to the latest NXP BSP#933

Merged
ricardosalveti merged 17 commits intofoundriesio:mainfrom
ricardosalveti:mx8
Nov 25, 2022
Merged

Update additional MX8 targets to the latest NXP BSP#933
ricardosalveti merged 17 commits intofoundriesio:mainfrom
ricardosalveti:mx8

Conversation

@ricardosalveti
Copy link
Copy Markdown
Member

@ricardosalveti ricardosalveti commented Nov 20, 2022

CI runs: foundriesio/lmp-manifest#258

Validation:

  • mx8mp
    • build tested
    • normal test run
    • ebbr test run
    • base test run
    • sec test run
    • mfgtools
  • mx8mn
    • build tested
    • normal test run
    • base test run
    • sec test run
    • mfgtools
  • mx8qm
    • build tested
    • normal test run
    • base test run
    • sec test run
    • mfgtools
  • apalis-imx8
    • build tested
    • normal test run
    • base test run
    • mfgtools

@ricardosalveti
Copy link
Copy Markdown
Member Author

Matching CI build at foundriesio/lmp-manifest#258.

@vanmaegima @Tim-Anderson can you give a hand to validate the builds on 8mn and 8mp? I don't have either locally. Thanks!

@MrCry0
Copy link
Copy Markdown
Contributor

MrCry0 commented Nov 20, 2022

@ricardosalveti
mx8mp:

  • flash with mfgtool image (build #1888)
  • boot (build #1888)
  • network (build #1888)
    The issue is about an ethernet IP address getting, but it might be LAVA LAB specified (not enough dev tools in the image to investigate this).

@vanmaegima
Copy link
Copy Markdown
Member

vanmaegima commented Nov 21, 2022

mx8mn:

  • boot -sec
  • boot normal (on closed board)
  • mfgtool test

@ricardosalveti
Copy link
Copy Markdown
Member Author

@vanmaegima
Copy link
Copy Markdown
Member

error with imx8mn base:

U-Boot SPL 2022.04+fio+g92012fed80 (Nov 10 2022 - 16:25:08 +0000)

ERROR ### Please RESET the board

@vanmaegima
Copy link
Copy Markdown
Member

error with imx8mp base:

U-Boot SPL 2022.04+fio+g92012fed80 (Nov 10 2022 - 16:25:08 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
PCA6416: probe
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x0, pagesize 0x200, ivt offset 0x0
Can't support legacy image
SPL: failed to boot from all boot devices

ERROR ### Please RESET the board

@vanmaegima
Copy link
Copy Markdown
Member

vanmaegima commented Nov 23, 2022

  • imx8mn base
  • imx8mp base

@ricardosalveti ricardosalveti force-pushed the mx8 branch 5 times, most recently from 36493a6 to 748b5a5 Compare November 25, 2022 02:46
Switch default u-boot-fio version for imx8mp-lpddr4-evk to imx-2022.04,
and change the required configs in order to be aligned with the newer
version (base, sec, ebbr and standard lmp).

uEnv.txt.in for base-scr also updated to reflect the new fdtfile
variable name (changed in 2022.04).

Signed-off-by: Ricardo Salveti <[email protected]>
Switch default u-boot-fio-mfgtool version for imx8mp-lpddr4-evk to
imx-2022.04, and change the required config in order to be aligned with
the newer version.

Signed-off-by: Ricardo Salveti <[email protected]>
Switch imx8mp* machines to use kernel 5.15-2.1.x-imx.

Signed-off-by: Ricardo Salveti <[email protected]>
Switch default u-boot-fio version for imx8mn-ddr4-evk to imx-2022.04,
and change the required configs in order to be aligned with the newer
version (base, sec and standard lmp).

uEnv.txt.in for base-scr also updated to reflect the new fdtfile
variable name (changed in 2022.04).

Signed-off-by: Ricardo Salveti <[email protected]>
Switch default u-boot-fio-mfgtool version for imx8mn-ddr4-evk to
imx-2022.04, and change the required config in order to be aligned with
the newer version.

Signed-off-by: Ricardo Salveti <[email protected]>
Switch imx8mn* machines to use kernel 5.15-2.1.x-imx.

Add updated patch in order to apply to the 5.15 series.

Signed-off-by: Ricardo Salveti <[email protected]>
Switch imx8qm-mek machine to use kernel 5.15-2.1.x-imx.

Signed-off-by: Ricardo Salveti <[email protected]>
Switch default u-boot-fio version for imx8qm-mek to imx-2022.04,
and change the required configs in order to be aligned with the newer
version (base and standard lmp).

Signed-off-by: Ricardo Salveti <[email protected]>
Switch default u-boot-fio-mfgtool version for imx8qm-mek to
imx-2022.04, and change the required config in order to be aligned with
the newer version.

Signed-off-by: Ricardo Salveti <[email protected]>
Update apalis-imx8 u-boot-fio configs (base and standard lmp) based on
the update to imx-2022.04.

Signed-off-by: Ricardo Salveti <[email protected]>
…2.04

Update apalis-imx8 u-boot-fio-mfgtool configs to match the update to imx-2022.04.

Signed-off-by: Ricardo Salveti <[email protected]>
Relevant changes:
- 8dbcdd99bb9 [FIO tosquash] fastboot: correctly fix build warning
- 258be720254 [FIO fromlist] configs: verdin-imx8mp: enable caam
- 44959eacdbd [FIO fromlist] verdin-imx8mp: spl: initialize caam
- e32ed8fa75b [FIO fromlist] arm: dts: verdin-imx8mp: enable caam in SPL
- 1e49fb5613e [FIO extras] configs: verdin-imx8mm: revert to old bootcount functionality
- 05be7fadc20 [FIO tonxp] configs: verdin-imx8mp: enable phy and drop incompatible usb stuff
- b96234d4d8f [FIO tonxp] board: toradex: verdin-imx8mp: add usb_1_en handling
- f65af30dfc9 [FIO tonxp] arm64: dts: verdin-imx8mp: add downstream usb properties
- 2d34e4b0cbb [FIO tonxp] board: verdin-imx8mp: backport USB code
- a7732e01ed5 [FIO tonxp] arm64: dts: imx8mp: add rdc config
- 6442acd283c [FIO tonxp] board: verdin-imx8mp: add USB power hooks
- 7c1474fd5e1 [FIO fromlist] verdin-imx8mp: various config additions and improvements
- a01c6394aff [FIO fromlist] verdin-imx8mm: verdin-imx8mp: drop obsolete net/phy configs
- 6b26efc67a0 [FIO fromtree] imx8/ls10xx: Use a sane SYS_MALLOC_F_LEN default
- 9deb78e3076 [FIO fromlist] ARM: imx8mp: verdin-imx8mp: Add memory size detection
- 815f080d52f [FIO tonxp] configs: verdin-imx8mm: disable LTO
- 3921fca5f61 [FIO tonxp] configs: verdin-imx8mm: add missing USB features vs BSP5
- 369b796b34a [FIO fromlist] verdin-imx8mm: various config additions and improvements
- 2ae439b91c3 [FIO fromlist] verdin-imx8mm: improve and extend boot devices
- 1fc6282945e [FIO fromlist] verdin-imx8mm: prepare for optional job ring driver model
- 8338f8de803 [FIO fromlist] verdin-imx8mm: verdin-imx8mp: update env memory layout
- 91ba22d2ee9 [FIO tonxp] board: verdin-imx8mm: add USB power hooks
- 18b702687ab [FIO fromlist] verdin-imx8mp: do not save environment when it's nowhere
- c66a5ab977d [FIO fromlist] verdin-imx8mm: do not save environment when it's nowhere
- 1a7a70d2a68 [FIO fromtree] toradex: imx8: set default dhcp distroboot scriptname
- fb1450a6567 [FIO fromtree] ARM: imx8mm: verdin-imx8mm: fix board hang in spl
- 3605db447f5 [FIO fromtree] configs: verdin-imx8mm: verdin-imx8mp: enable dm serial
- 096aa15d9ee [FIO fromtree] ARM: imx8mm: verdin-imx8mm: Drop superfluous header
- e0e1007bf3a [FIO fromtree] ARM: imx8mm: verdin-imx8mm: Rework board_early_init()
- 3f02ef4a61d [FIO fromlist] board: verdin-imx8mp: add call to ft_common_board_setup
- df761865dda [FIO fromlist] board: verdin-imx8mm: add call to ft_common_board_setup
- 0417679d1f8 [FIO fromtree] verdin-imx8mm, verdin-imx8mp: Fix default systemd console output
- 02dfcaf29e8 [FIO fromtree] toradex: common: Improve product/serial print during boot
- b9a41909236 [FIO fromtree] toradex: tdx-cfg-block: Use official SKU names
- cb341ef12a3 [FIO fromtree] toradex: common: Remove #ifdef usage for 2nd ethaddr
- 27dbb209db4 [FIO fromtree] toradex: common: Remove stale function declaration
- 5c8f07a6697 [FIO fromtree] toradex: tdx-cfg-block: Cleanup interactive cfg block creation
- 4e6b120516c [FIO fromtree] toradex: common: Use ARRAY_SIZE macro
- 4e244b73519 [FIO fromtree] toradex: common: Remove stale comments about modules availability
- d076aff3cc2 [FIO toup] net: dm: dwc_eth_qos: support the phy-supply binding
- bd6722adf89 [FIO tonxp] fastboot: fix build warnings
- 5b42f934a86 [FIO fromtree] toradex: tdx-cfg-block: add 0068 i.mx 8m mini sku
- 682ef22f9ad [FIO fromtree] toradex: tdx-cfg-block: add new toradex oui range
- 6376cb883e8 [FIO fromtree] toradex: tdx-cfg-block: extend assembly version
- a9982f831df [FIO fromtree] toradex: tdx-cfg-block: use defines for string length
- c04b9989b91 [FIO fromtree] toradex: tdx-cfg-block: use only snprintf
- a7c31f5df61 [FIO fromtree] imx8m: fixup thermal trips
- 65cae584903 [FIO fromtree] toradex: tdx-cfg-block: add new 8gb apalis-imx8
- 6e386c18ae8 [FIO fromtree] fdt: Add U-Boot version to chosen node
- aa90ee8bc24 [FIO fromtree] board: toradex: drop colibri pxa270 support
- 9296e8be5a2 [FIO fromtree] configs: tdx: Do not overwrite fdtfile if it got set manually
- ecf676ab863 [FIO fromtree] configs: toradex: enable missing fit options
- fb459b78867 [FIO fromtree] toradex: apalis-imx8x: drop support for apalis imx8x
- 04eb4308fd3 [FIO internal] ARM: dts: fsl-imx8qm-mek-u-boot: add optee node

Signed-off-by: Ricardo Salveti <[email protected]>
Used by imx8mq-evk.

Signed-off-by: Ricardo Salveti <[email protected]>
Add linux-firmware-bcm4356-pcie to MACHINE_FIRMWARE as it is required
for wifi/bluetooth to work correctly.

Signed-off-by: Ricardo Salveti <[email protected]>
Not required as the standard vid/pid in u-boot is already enough for
uuu.

Signed-off-by: Ricardo Salveti <[email protected]>
@ricardosalveti
Copy link
Copy Markdown
Member Author

Since most targets are now working (pending apalis-imx8/u-boot), will merge so we can work on the remaining issues on top of a single manifest.

@ricardosalveti ricardosalveti merged commit 5a10223 into foundriesio:main Nov 25, 2022
quaresmajose pushed a commit that referenced this pull request Jan 10, 2023
Bumping crun to version 1.6-75-g4907f10, which comprises the following commits:

    0e4cf20 container: pass the argv0 on errors with handlers
    6da989c wasmtime: honor error message length
    2f46f21 wasmtime: mark unused argument
    baa98f4 container: use clone3 to join directly the target cgroup
    2497b9b linux: add run.oci.pidfd_receiver=PATH annotation
    37a438d cgroupfs: implement precreate cgroup
    c4af47e cgroup: new interface to preload a cgroup
    352d8ac criu: use a temporary error
    3ebaba3 container: cache the bpf generated by seccomp
    18abbfc Typos: a/an
    e5d4c07 man: fix indentation for run.oci.handler=HANDLER
    74d097b seccomp: use relative paths to open bpf
    8cfcc8f seccomp: move copy bpf to seccomp
    7a66ccc container: move open_seccomp_output to seccomp
    a2de8fb seccomp: add functions to calculate checksum
    6861b2a container: compute seccomp options earlier
    dd310aa configure.ac: add check for libgcrypt
    81d3b16 exec: set context
    0cffffe crun: display rundir in --version output
    882a054 wasm: inherit environment variables in the WasmEdge handler
    1f71880 man: cleanup run.oci.handler and define krun and wasm
    d474211 Refer to libocispec header files under ocispec/
    5027629 build(deps): bump uraimo/run-on-arch-action from 2.2.1 to 2.3.0
    fef6ce2 build(deps): bump github/codeql-action from 1 to 2
    5837234 crun: open libcrun with dlopen
    5f2464f build(deps): bump actions/cache from 2 to 3
    ba0adeb build(deps): bump uraimo/run-on-arch-action from 2.2.0 to 2.2.1
    5d2a536 build(deps): bump actions/upload-artifact from 2 to 3
    a4ffe17 build(deps): bump actions/checkout from 2 to 3
    108d9ec Check for github actions updates on weekly basis
    9f2acfc cgroup: account for swap usage for checkBeforeUsage
    6666dec list: remove yajl usage
    6fdcb89 container: new API libcrun_write_json_containers_list
    e1b32c7 update: remove yajl usage
    270961f python: Fix argument type in container_delete
    17f4e55 container: new API libcrun_container_update_from_values
    1c681c1 python: Fix argument parsing in make_context
    e666af1 crun: chown std streams before joining the user namespace
    391df45 linux: reject sysctl kernel.domainname when OCI knob domainname is set
    f94655c test: ack (none) as output of getdomainname
    fdb26d0 cgroup: honor checkBeforeUpdate
    8758f31 add support for setting the domainname
    17ba516 libocispec update
    7ea7617 systemd: create sub-cgroup on v1 as well
    08bccc7 tests: update containerd to 1.6.8
    978e719 Copr: Fix i386 builds
    18cf2ef NEWS: tag 1.6
    396ac88 seccomp: honor SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
    074cd9a wasm: provide an integration test for crun with wasmedge support
    399e5ea wasm: use wasmedge library soname in dlopen
    3e34345 crun: reintroduce -V (uppercase) as an alias for --version
    17337c4 seccomp: use helper process to send listener fd
    f34ebf2 Copr: wasmtime support only for non-x86
    df20997 crun: now -v prints the version
    fdcf83a utils: wrap mmap and munmap
    95744c8 utils: unify read process exit status
    44c305f linux: move definition of syscall_clone to linux.h
    d254d3e utils: run process with timeout restores sigmask
    57df79b init mask
    430dea1 container: drop intermediate userns feature
    2e647e0 crio,CI: skip failing checkpoint and restore one container
    8d0dfc3 podman,CI: skip top on priviledged container
    ad9008b copr: depend on wasmtime-c-api for shared lib

Bumping runtime-spec to version v1.0.2-114-g494a5a6, which comprises the following commits:

    4bcd065 seccomp: Add flag SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
    6be797c CODEOWNERS: sync with MAINTAINERS
    9e658bc config-linux: add memory.checkBeforeUpdate
    1924f6b GOVERNANCE: correct the Charter URL
    744912b add domainname spec entity
    0da1600 fix rfc link
    b57ada5 maintainer updates as per #1101
    e78a3c3 Add available `LinuxSeccompFlag`s

Bumping libocispec to latest, which comprises the following commits:

    02f231b Move header files under ocispec/
    39e1872 Make libocispec installable
    6fd1d94 update runtime-spec to latest
    1e37c8a rust, runtime: add domainname to spec
    d59cc93 rust,runtime: add MountUidMapping and MountGidMapping
    ac69f5a rust,runtime: add idle type to CPU
    e9c21c1 rust,runtime: rename GidMapping,UidMapping to Linux{Uid/Gid}Mapping
    8258e1d image-spec: update from upstream
    b2e74e1 runtime-spec: update from upstream
    ce973fd parser: allocate empty arrays
    845aad5 runtime-spec: sync from upstream
    1380666 image-spec: sync from upstream
    9bb6aa9 src: fix regression
    27763d8 runtime-spec: sync from upstream
    8abb1b1 image-spec: update from upstream
    2ea0d22 runtime-spec: update from upstream
    cde73d8 yajl: update from upstream
    fc57095 src: fix generated code indentation
    e739a1c .github: set safe directory
    f09f411 build: fix bashism in configure.ac
    23ed5eb git: ignore newly added test binary to prevent untracked changes in crun
    d15ed35 fix bug when contain null value in json
    2a622ef image-spec: update from upstream
    3dd60db runtime-spec: update from upstream
    88241d7 sync: add CMT and MBM fields to Intel RDT

Bumping image-spec to version v1.1.0-rc2-12-g4df8887, which comprises the following commits:

    867ce74 ArtifactType is optional, omit when empty
    59780aa Add ArgsEscaped field to image config
    3625ee3 doc: fix example in artifact.md
    94f2431 version: bump main back to -dev
    19a74bc version: release v1.1.0-rc2
    0a97fe7 docs: Added artifact.md to docs and spec.md
    c91663b Update RELEASES.md
    0e7e0dd docs: Update release process docs with checklist
    5d055a4 version: switch back to -dev
    4728b6e version: bump for 1.1.0-rc1 release
    a7ac485 Rename refers field to subject (#950)
    4c15674 Use go install and full path to commands
    ce50f1f Bump from Go 1.16 to 1.17
    ca2e500 Embed Platform in Image
    a865bc0 Fix whitespace consistency in config.md
    da33ef0 Remove io/ioutil references
    ed7e07b Add artifact to spec.md
    bc9c4bd Update schema for mediaType validation (#933)
    b04b320 Working Group Proposal for Reference Types
    ba36edd Add regclient to implementations
    ba3f174 Add maintainer nomination template
    08825b8 Pinning version of golangci-lint to support 1.16
    9747134 Move inactive maintainers to emeritus
    0bd8a03 Add Brandon as maintainer
    c7ca3ac Update URLs to https
    874a191 Add Sajay as maintainer
    6ffdc78 Move inactive maintainers to emeritus
    d6ce48a Add mediaType fields into example manifest & image index JSON references
    bc44f5b Fixing charter link
    0895292 implementations: point to krustlet/oci-distribution
    02c5c05 implementations: adding the C and Rust libraries
    a36b0c8 Handle multiple matching index entries
    a3eee7d README.md: Remove link to OCI scope table The OCI scope table no-longer exists.
    4533d3e schema: use Go's embed package instead of esc
    d147780 .tool: remove lint tool, call linter directly
    0e094f3 schema, specs-go: fix lint errors
    d3cd202 *: switch to golangci-lint
    4d865bc go: have the go.mod at top-level
    0f6c001 Remove unneeded docker pull of pandoc image
    de28903 Makefile: stale installation of glide was failing
    3a46ac8 github: bring forward the versions of golang tested/built with
    6ced3bd media-types: `.mediaType` is available in both OCI and Docker
    3be64d9 version: bump main back to -dev
    beccafd version: release 1.0.2
    5b82148 specs-go: adding `mediaType` to the index and manifest structures
    2eb4046 *.md: bring mediaType out of reserved status
    e3885ce version: bump main back to -dev
    67d2d56 version: release 1.0.2
    dcdcb7f specs-go: adding `mediaType` to the index and manifest structures
    5f31485 *.md: bring mediaType out of reserved status
    3fee04b Adding ACR to implementations
    8087946 Reflect docker dontation of distribution to CNCF
    bd2fa25 Minor spelling correction
    fc4df0a Fix very minor oversight in config example
    0d98a6c Scope data verification to content consumers
    83479d4 Clean up portability considerations
    fccc435 Implementations MUST NOT populate data arbitrarily
    2596ec0 Expand godoc for Data
    58c082d Add note about portability concerns
    ce281ce Add Embedded Data section
    aaf8045 Define the data field
    4f080a7 Add go.mod and pin dependencies

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.

3 participants