module : Colibri iMX6ULL
I am trying to build U-Boot according to the guide above.
I’m having issues when cloning the U-Boot source code.
- Git checkout of the U-Boot code:
$ git checkout v2022.07
$ git clone https://git.toradex.com/cgit/meta-toradex-bsp-common.git
does not work (unable to clone)git checkout <meta-toradex-bsp-common-hash>
- I’m not sure which hash value to use
- I do not know the specific BSP version I’m using
- When I run
git checkout 1a14c2724ab0cbcf3d01042fed7b60b48c8ab836
, I get a patch error - Build error:
cc1: error: unknown value ‘generic-armv7-a’ for ‘-mtune’
Please refer to the log below.
server:~/asurada/standalone$ git clone u-boot / u-boot · GitLab
Cloning into ‘u-boot’…
remote: Enumerating objects: 1062768, done.
remote: Counting objects: 100% (36/36), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 1062768 (delta 10), reused 30 (delta 10), pack-reused 1062732 (from 1)
Receiving objects: 100% (1062768/1062768), 241.01 MiB | 25.20 MiB/s, done.
Resolving deltas: 100% (883344/883344), done.
Updating files: 100% (36214/36214), done.
server:~/asurada/standalone$ cd u-boot/
server:~/asurada/standalone/u-boot$ git checkout v2022.07
Note: switching to ‘v2022.07’.
You are in ‘detached HEAD’ state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at e092e325027 Prepare v2022.07
server:~/asurada/standalone/u-boot$
server:~/asurada/standalone/u-boot$
server:~/asurada/standalone/u-boot$ git branch
- (HEAD detached at v2022.07)
master
server:~/asurada/standalone/u-boot$ git checkout -b toradex-v2022.07
Switched to a new branch ‘toradex-v2022.07’
server:~/asurada/standalone/u-boot$ mkdir patch
server:~/asurada/standalone/u-boot$ rm patch/
rm: cannot remove ‘patch/’: Is a directory
server:~/asurada/standalone/u-boot$ mkdir patches
server:~/asurada/standalone/u-boot$ rm -rf patch
server:~/asurada/standalone/u-boot$ cd patches/
server:~/asurada/standalone/u-boot/patches$
server:~/asurada/standalone/u-boot/patches$
server:~/asurada/standalone/u-boot/patches$
server:~/asurada/standalone/u-boot/patches$ cd …/…/
server:~/asurada/standalone$ git clone meta-toradex-bsp-common.git - Toradex BSP layer, recipes common to all modules
Cloning into ‘meta-toradex-bsp-common’…
^C
server:~/asurada/standalone$
server:~/asurada/standalone$
server:~/asurada/standalone$
server:~/asurada/standalone$ git clone git://git.toradex.com/meta-toradex-bsp-common.git
Cloning into ‘meta-toradex-bsp-common’…
remote: Enumerating objects: 9380, done.
remote: Counting objects: 100% (9380/9380), done.
remote: Compressing objects: 100% (8214/8214), done.
remote: Total 9380 (delta 5453), reused 1729 (delta 704), pack-reused 0
Receiving objects: 100% (9380/9380), 2.80 MiB | 1.66 MiB/s, done.
Resolving deltas: 100% (5453/5453), done.
server:~/asurada/standalone$ cd meta-toradex-bsp-common/
server:~/asurada/standalone/meta-toradex-bsp-common$ git checkout 1a14c2724ab0cbcf3d01042fed7b60b48c8ab836
Note: switching to ‘1a14c2724ab0cbcf3d01042fed7b60b48c8ab836’.
You are in ‘detached HEAD’ state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 1a14c27 linux-toradex-mainline: update to 6.0.17
server:~/asurada/standalone/meta-toradex-bsp-common$ cp -r recipes-bsp/u-boot/u-boot-toradex/*.patch …/u-boot/patches/
server:~/asurada/standalone/meta-toradex-bsp-common$ cd …/u-boot/patches/
server:~/asurada/standalone/u-boot/patches$
server:~/asurada/standalone/u-boot/patches$ ls -al
total 112
drwxrwxr-x 2 hyosuk.kim hyosuk.kim 4096 6월 3 18:55 .
drwxrwxr-x 27 hyosuk.kim hyosuk.kim 4096 6월 3 18:52 …
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 7220 6월 3 18:55 0001-apalis-colibri_imx6-imx6ull-_imx7-update-env-memory-.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 1402 6월 3 18:55 0001-ARM-imx8mp-verdin-imx8mp-Add-memory-size-detection.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 1020 6월 3 18:55 0001-colibri_imx7-boot-linux-kernel-in-secure-mode.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 2628 6월 3 18:55 0001-toradex-tdx-cfg-block-use-only-snprintf.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 1556 6월 3 18:55 0002-toradex-tdx-cfg-block-use-defines-for-string-length.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 5591 6월 3 18:55 0003-toradex-tdx-cfg-block-extend-assembly-version.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 4293 6월 3 18:55 0004-toradex-tdx-cfg-block-add-new-toradex-oui-range.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 3435 6월 3 18:55 0005-toradex-tdx-cfg-block-add-0068-i.mx-8m-mini-sku.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 2403 6월 3 18:55 0006-toradex-common-Remove-stale-comments-about-modules-a.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 1497 6월 3 18:55 0007-toradex-common-Use-ARRAY_SIZE-macro.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 19123 6월 3 18:55 0008-toradex-tdx-cfg-block-Cleanup-interactive-cfg-block-.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 1029 6월 3 18:55 0009-toradex-common-Remove-stale-function-declaration.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 1421 6월 3 18:55 0010-toradex-common-Remove-ifdef-usage-for-2nd-ethaddr.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 13851 6월 3 18:55 0011-toradex-tdx-cfg-block-Use-official-SKU-names.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 1533 6월 3 18:55 0012-toradex-common-Improve-product-serial-print-during-b.patch
-rw-rw-r-- 1 hyosuk.kim hyosuk.kim 1688 6월 3 18:55 0013-configs-colibri-imx7-Enable-bootd-command.patch
server:~/asurada/standalone/u-boot/patches$
server:~/asurada/standalone/u-boot/patches$
server:~/asurada/standalone/u-boot/patches$ git am 0001-toradex-tdx-cfg-block-use-only-snprintf.patch \
0002-toradex-tdx-cfg-block-use-defines-for-string-length.patch
0003-toradex-tdx-cfg-block-extend-assembly-version.patch
0004-toradex-tdx-cfg-block-add-new-toradex-oui-range.patch
0005-toradex-tdx-cfg-block-add-0068-i.mx-8m-mini-sku.patch
0006-toradex-common-Remove-stale-comments-about-modules-a.patch
0007-toradex-common-Use-ARRAY_SIZE-macro.patch
0008-toradex-tdx-cfg-block-Cleanup-interactive-cfg-block-.patch
0009-toradex-common-Remove-stale-function-declaration.patch
0010-toradex-common-Remove-ifdef-usage-for-2nd-ethaddr.patch
0011-toradex-tdx-cfg-block-Use-official-SKU-names.patch
0012-toradex-common-Improve-product-serial-print-during-b.patch
0013-configs-colibri-imx7-Enable-bootd-command.patch
0001-ARM-imx8mp-verdin-imx8mp-Add-memory-size-detection.patch
0001-apalis-colibri_imx6-imx6ull-_imx7-update-env-memory-.patch
0001-configs-colibri-imx7-Fix-bad-block-table-in-flash-co.patch
0001-colibri_imx6-fix-RALAT-and-WALAT-values.patch
error: cannot stat patches//0001-configs-colibri-imx7-Fix-bad-block-table-in-flash-co.patch: No such file or directory
fatal: Failed to split patches.
server:~/asurada/standalone/u-boot/patches$ git am 0001-toradex-tdx-cfg-block-use-only-snprintf.patch 0002-toradex-tdx-cfg-block-use-defines-for-string-length.patch 0003-toradex-tdx-cfg-block-extend-assembly-version.patch 0004-toradex-tdx-cfg-block-add-new-toradex-oui-range.patch 0005-toradex-tdx-cfg-block-add-0068-i.mx-8m-mini-sku.patch 0006-toradex-common-Remove-stale-comments-about-modules-a.patch 0007-toradex-common-Use-ARRAY_SIZE-macro.patch 0008-toradex-tdx-cfg-block-Cleanup-interactive-cfg-block-.patch 0009-toradex-common-Remove-stale-function-declaration.patch 0010-toradex-common-Remove-ifdef-usage-for-2nd-ethaddr.patch 0011-toradex-tdx-cfg-block-Use-official-SKU-names.patch 0012-toradex-common-Improve-product-serial-print-during-b.patch 0013-configs-colibri-imx7-Enable-bootd-command.patch 0001-ARM-imx8mp-verdin-imx8mp-Add-memory-size-detection.patch 0001-apalis-colibri_imx6-imx6ull-_imx
7-update-env-memory-.patch 0001-colibri_imx6-fix-RALAT-and-WALAT-values.patch
error: cannot stat patches//0001-colibri_imx6-fix-RALAT-and-WALAT-values.patch: No such file or directory
fatal: Failed to split patches.
server:~/asurada/standalone/u-boot/patches$ git am 0001-toradex-tdx-cfg-block-use-only-snprintf.patch 0002-toradex-tdx-cfg-block-use-defines-for-string-length.patch 0003-toradex-tdx-cfg-block-extend-assembly-version.patch 0004-toradex-tdx-cfg-block-add-new-toradex-oui-range.patch 0005-toradex-tdx-cfg-block-add-0068-i.mx-8m-mini-sku.patch 0006-toradex-common-Remove-stale-comments-about-modules-a.patch 0007-toradex-common-Use-ARRAY_SIZE-macro.patch 0008-toradex-tdx-cfg-block-Cleanup-interactive-cfg-block-.patch 0009-toradex-common-Remove-stale-function-declaration.patch 0010-toradex-common-Remove-ifdef-usage-for-2nd-ethaddr.patch 0011-toradex-tdx-cfg-block-Use-official-SKU-names.patch 0012-toradex-common-Improve-product-serial-print-during-b.patch 0013-configs-colibri-imx7-Enable-bootd-command.patch 0001-ARM-imx8mp-verdin-imx8mp-Add-memory-size-detection.patch 0001-apalis-colibri_imx6-imx6ull-_imx7-update-env-memory-.patch
Applying: toradex: tdx-cfg-block: use only snprintf
Applying: toradex: tdx-cfg-block: use defines for string length
Applying: toradex: tdx-cfg-block: extend assembly version
Applying: toradex: tdx-cfg-block: add new toradex oui range
Applying: toradex: tdx-cfg-block: add 0068 i.mx 8m mini sku
Applying: toradex: common: Remove stale comments about modules availability
Applying: toradex: common: Use ARRAY_SIZE macro
Applying: toradex: tdx-cfg-block: Cleanup interactive cfg block creation
Applying: toradex: common: Remove stale function declaration
Applying: toradex: common: Remove #ifdef usage for 2nd ethaddr
Applying: toradex: tdx-cfg-block: Use official SKU names
Applying: toradex: common: Improve product/serial print during boot
Applying: configs: colibri-imx7: Enable bootd command
Applying: ARM: imx8mp: verdin-imx8mp: Add memory size detection
Applying: apalis/colibri_imx6/-imx6ull/_imx7: update env memory layout
server:~/asurada/standalone/u-boot/patches$ git log --oneline
9278e5e8e3b (HEAD → toradex-v2022.07) apalis/colibri_imx6/-imx6ull/_imx7: update env memory layout
2299652a12a ARM: imx8mp: verdin-imx8mp: Add memory size detection
3e6fd7f3352 configs: colibri-imx7: Enable bootd command
3bda92251d9 toradex: common: Improve product/serial print during boot
e473f3a7c8c toradex: tdx-cfg-block: Use official SKU names
8114ba87942 toradex: common: Remove #ifdef usage for 2nd ethaddr
6683df8ff29 toradex: common: Remove stale function declaration
41778ccb9eb toradex: tdx-cfg-block: Cleanup interactive cfg block creation
dc932b81c23 toradex: common: Use ARRAY_SIZE macro
33344b7fc5b toradex: common: Remove stale comments about modules availability
f90c8493667 toradex: tdx-cfg-block: add 0068 i.mx 8m mini sku
c2213508d87 toradex: tdx-cfg-block: add new toradex oui range
5579eaaabf0 toradex: tdx-cfg-block: extend assembly version
400147e4825 toradex: tdx-cfg-block: use defines for string length
494ef1c7d32 toradex: tdx-cfg-block: use only snprintf
e092e325027 (tag: v2022.07) Prepare v2022.07
b960d654cba requirements: Move to atomicwrites==1.4.1
c519b82e7ce imx8mq_phanbell: Remove custom CONFIG_SYS_MALLOC_F_LEN
2d2c61ff046 Merge tag ‘efi-2022-07-rc7’ of Making sure you're not a bot!
8fb9dbdea71 test/py: efi_secboot: add a test for a forged signed image
634f6b2fb10 efi_loader: image_loader: add a missing digest verification for signed PE image
b72d09fa7df efi_loader: image_loader: replace EFI_PRINT with log macros
b330140659e efi_loader: signature: export efi_hash_regions()
b124efc09fc lib: crypto: add mscode_parser
0cc846dafcf (tag: v2022.07-rc6) Prepare v2022.07-rc6
d98a6a95bde configs: Resync with savedefconfig
9125b4b021d usb: host: ehci-generic: Fix error check
730fc474b1b Merge tag ‘efi-2022-07-rc6’ of Making sure you're not a bot!
6cae9aeeab3 Merge branch ‘2022-07-01-additional-critical-fixes-and-updates’
7a85f32413a EFI: Fix ReadBlocks API reading incorrect sector for UCLASS_PARTITION devices
054de212cef disk: honor CONFIG_SYS_64BIT_LBA
server:~/asurada/standalone/u-boot/patches$
server:~/asurada/standalone/u-boot/patches$
server:~/asurada/standalone/u-boot/patches$
server:~/asurada/standalone/u-boot/patches$ cd …
server:~/asurada/standalone/u-boot$ source ~/export_compiler
server:~/asurada/standalone/u-boot$ make mrproper
server:~/asurada/standalone/u-boot$ make colibri-imx6ull-emmc_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
LEX scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
configuration written to .config
server:~/asurada/standalone/u-boot$ make u-boot-dtb.imx
scripts/kconfig/conf --syncconfig Kconfig
UPD include/config.h
CFG u-boot.cfg
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
UPD include/config/uboot.release
UPD include/generated/version_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
UPD include/generated/dt.h
ENVC include/generated/env.txt
ENVP include/generated/env.in
ENVT include/generated/environment.h
CC lib/asm-offsets.s
cc1: error: unknown value ‘generic-armv7-a’ for ‘-mtune’
cc1: note: valid arguments are: cortex-a34 cortex-a35 cortex-a53 cortex-a57 cortex-a72 cortex-a73 thunderx thunderxt88p1 thunderxt88 octeontx octeontx81 octeontx83 thunderxt81 thunderxt83 ampere1 ampere1a emag xgene1 falkor qdf24xx exynos-m1 phecda thunderx2t99p1 vulcan thunderx2t99 cortex-a55 cortex-a75 cortex-a76 cortex-a76ae cortex-a77 cortex-a78 cortex-a78ae cortex-a78c cortex-a65 cortex-a65ae cortex-x1 ares neoverse-n1 neoverse-e1 octeontx2 octeontx2t98 octeontx2t96 octeontx2t93 octeontx2f95 octeontx2f95n octeontx2f95mm a64fx tsv110 thunderx3t110 zeus neoverse-v1 neoverse-512tvb saphira cortex-a57.cortex-a53 cortex-a72.cortex-a53 cortex-a73.cortex-a35 cortex-a73.cortex-a53 cortex-a75.cortex-a55 cortex-a76.cortex-a55 cortex-r82 cortex-a510 cortex-a710 cortex-x2 neoverse-n2 demeter neoverse-v2 generic
make[1]: *** [scripts/Makefile.build:147: lib/asm-offsets.s] Error 1
make: *** [Makefile:1965: prepare0] Error 2
server:~/asurada/standalone/u-boot$