Linux build fails

Hi

I am struggling to get past the following error during building the kernel from the default instructions in the BeagleBoard Documentation on a new Ubuntu22.04 (all necessary updates and installs were also done):

git clone https://git.beagleboard.org/RobertCNelson/ti-linux-kernel-dev
cd ti-linux-kernel-dev
git checkout ti-linux-5.10.y
./build_deb.sh

Output:

user@user-virtual-machine:~/ti-linux-kernel-dev$ ./build_deb.sh
+ Detected build host [Ubuntu 22.04.4 LTS]
+ host: [x86_64]
+ git HEAD commit: [adc70203f62ea3596d6949ba9b78717f6769f4b9]
-----------------------------
cpio: cpio (GNU cpio) 2.13
lz4: *** LZ4 command line interface 64-bits v1.9.3, by Yann Collet ***
xz: xz (XZ Utils) 5.2.5
glibc: 2.35
Using Existing Toolchain: gcc_10_arm
-----------------------------
scripts/gcc: Using: arm-linux-gnueabi-gcc (GCC) 10.5.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------
CROSS_COMPILE=/home/user/ti-linux-kernel-dev/dl/gcc-10.5.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-
scripts/git: [git version 2.34.1]
-----------------------------
scripts/git: LINUX_GIT not defined in system.sh
using default location: /home/user/ti-linux-kernel-dev/ignore/linux-src/
-----------------------------
scripts/git: Debug: LINUX_GIT is setup as: [/home/user/ti-linux-kernel-dev/ignore/linux-src].
scripts/git: [url=https://github.com/beagleboard/mirror-ti-linux-kernel.git]
-----------------------------
fatal: Resolve operation not in progress, we are not resuming.
/usr/bin/git tree is clean...
[master 168aa8be28d4] empty cleanup commit
HEAD is now at 168aa8be28d4 empty cleanup commit
Already on 'master'
Your branch is ahead of 'origin/master' by 4 commits.
  (use "git push" to publish your local commits)
log: [/usr/bin/git pull --no-rebase --no-edit]
Already up to date.
-----------------------------
scripts/git: pulling from: https://github.com/beagleboard/mirror-ti-linux-kernel.git
log: [/usr/bin/git pull --no-rebase --no-edit https://github.com/beagleboard/mirror-ti-linux-kernel.git master --tags]
From https://github.com/beagleboard/mirror-ti-linux-kernel
 * branch                      master     -> FETCH_HEAD
Already up to date.
-----------------------------
scripts/git: fetching from: https://github.com/beagleboard/mirror-ti-linux-kernel.git
From https://github.com/beagleboard/mirror-ti-linux-kernel
 * branch                      master     -> FETCH_HEAD
fatal: 'v5.10.168' is not a commit and a branch 'v5.10.168-ti-r79' cannot be created from it

Any help to resolve the last line in the above would be greatly appreciated!
fatal: 'v5.10.168' is not a commit and a branch 'v5.10.168-ti-r79' cannot be created from it

Not sure what is going on, I don’t have time to dig into this at the moment. Did you create the system.sh file?. Mine is pointing to a local tree and this might be my problem.

Updating files: 100% (75871/75871), done.
fatal: Resolve operation not in progress, we are not resuming.
/usr/bin/git tree is clean...
[detached HEAD 0e9faf9adf45] empty cleanup commit
HEAD is now at 0e9faf9adf45 empty cleanup commit
Updating files: 100% (65977/65977), done.
Warning: you are leaving 1 commit behind, not connected to
any of your branches:

  0e9faf9adf45 empty cleanup commit

If you want to keep it by creating a new branch, this may be a good time
to do so with:

 git branch <new-branch-name> 0e9faf9adf45

Branch 'master' set up to track remote branch 'master' from 'origin'.
Switched to a new branch 'master'
log: [/usr/bin/git pull --no-rebase --no-edit]
Already up to date.
-----------------------------
scripts/git: pulling from: https://github.com/beagleboard/mirror-ti-linux-kernel.git
log: [/usr/bin/git pull --no-rebase --no-edit https://github.com/beagleboard/mirror-ti-linux-kernel.git master --tags]
remote: Enumerating objects: 33250, done.
remote: Counting objects: 100% (16436/16436), done.
remote: Compressing objects: 100% (2672/2672), done.
remote: Total 33250 (delta 13777), reused 13764 (delta 13764), pack-reused 16814 (from 1)
Receiving objects: 100% (33250/33250), 23.39 MiB | 1.70 MiB/s, done.
Resolving deltas: 100% (25523/25523), completed with 2345 local objects.
From https://github.com/beagleboard/mirror-ti-linux-kernel
 * branch                      master     -> FETCH_HEAD
Performing inexact rename detection: 100% (32462298/32462298), done.
Auto-merging Documentation/ABI/testing/sysfs-bus-iio-proximity-as3935
CONFLICT (content): Merge conflict in Documentation/ABI/testing/sysfs-bus-iio-proximity-as3935
Auto-merging Documentation/ABI/testing/sysfs-bus-usb
CONFLICT (content): Merge conflict in Documentation/ABI/testing/sysfs-bus-usb
Auto-merging Documentation/Makefile
CONFLICT (content): Merge conflict in Documentation/Makefile
Auto-merging Documentation/admin-guide/module-signing.rst
CONFLICT (content): Merge conflict in Documentation/admin-guide/module-signing.rst
CONFLICT (modify/delete): Documentation/arm64/tagged-pointers.txt deleted in HEAD and modified in e1fe3813117f465a2db200aebb13969056986c64.  Version e1fe3813117f465a2db200aebb13969056986c64 of Documentation/arm64/tagged-pointers.txt left in tree.
Auto-merging Documentation/devicetree/bindings/arm/omap/omap.txt
CONFLICT (modify/delete): Documentation/devicetree/bindings/ata/ahci-platform.txt deleted in HEAD and modified in e1fe3813117f465a2db200aebb13969056986c64.  Version e1fe3813117f465a2db200aebb13969056986c64 of Documentation/devicetree/bindings/ata/ahci-platform.txt left in tree.
CONFLICT (modify/delete): Documentation/devicetree/bindings/clock/imx31-clock.txt deleted in HEAD and modified in e1fe3813117f465a2db200aebb13969056986c64.  Version e1fe3813117f465a2db200aebb13969056986c64 of Documentation/devicetree/bindings/clock/imx31-clock.txt left in tree.
CONFLICT (modify/delete): Documentation/devicetree/bindings/clock/imx35-clock.txt deleted in HEAD and modified in e1fe3813117f465a2db200aebb13969056986c64.  Version e1fe3813117f465a2db200aebb13969056986c64 of Documentation/devicetree/bindings/clock/imx35-clock.txt left in tree.
CONFLICT (modify/delete): Documentation/devicetree/bindings/clock/sunxi.txt deleted in HEAD and modified in e1fe3813117f465a2db200aebb13969056986c64.  Version e1fe3813117f465a2db200aebb13969056986c64 of Documentation/devicetree/bindings/clock/sunxi.txt left in tree.

1 Like

That’s correct, it’ll check out a specific git sha256 and patch it…

Regards,

Thanks for the reply Robert.

I edited the original post to clarify the problem:
fatal: 'v5.10.168' is not a commit and a branch 'v5.10.168-ti-r79' cannot be created from it

It does not matter which version I check out - the result remains as above (with the version different of course).
Regards
George

Oh i see the issue… give me a few minutes…

(no tags)… When i setup the mirror to off-load some load, well, missed the kernel tags…

okay, figured it out, github as a limit of 5000 references on a git push, so my mirror never got finished up… So i have a script running, uploading one ref at a time…

#!/bin/bash

git for-each-ref --format="%(refname)" --sort='authordate' refs/heads refs/tags | \
while read ref; 
do git push origin $ref:$ref
done

“Even” when importing a new repo into github, this limitation also exists…

Regards,

Thanks Robert

It is working a lot better now up to the v6.1.83-ti-r35 (ti-linux-6.1.y) kernel.
I do get a similar problem with the v6.6.32-ti-arm32-r7 (ti-linux-arm32-6.6.y) though:
fatal: 'v6.6.32' is not a commit and a branch 'v6.6.32-ti-arm32-r7' cannot be created from it.

I would now like to move to the BeaglePlay build as well and would appreciate if you could point me in the right direction for building u-boot, please.

Kind regards

Oh fun! TI never pushed the v6.6.x tag’s in their repo… i’ll do that manually, so it’s ti - mirror + 6.6.x tags now. :wink:

1 Like

Apologies for all the problems!

No thanks for testing! git.ti.com was having a problem a few weeks back, so i’ve been moving mirrors to github to help the load… ( and so microsoft can pay the bandwidth)…

Regards,

2 Likes

Would you kindly point me in the right direction for building u-boot for the BeaglePlay?
(Then I promise I will shut up :sweat_smile:)

Kind regards

This should work BeagleBoard.org / u-boot-beagleplay · GitLab

debian package dependices: build_uboot.sh · main · BeagleBoard.org / u-boot-beagleplay · GitLab

voodoo@la-i5-1135G7:~/scratchpad/u-boot-beagleplay$ tree public/
public/
├── bl31.bin
├── get_n_install.sh
├── tee-pager_v2.bin
├── tiboot3.bin
├── tispl.bin
└── u-boot.img

1 directory, 6 files
1 Like

Thanks Robert

It started good but then:

make[1]: Entering directory '/home/user/u-boot-beagleplay/CORTEXR'
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
make[1]: arm-linux-gnueabihf-gcc: No such file or directory
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
dirname: missing operand
Try 'dirname --help' for more information.
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
  GEN     Makefile
scripts/kconfig/conf  --syncconfig Kconfig
/home/user/u-boot-beagleplay/u-boot/scripts/gcc-version.sh: 26: arm-linux-gnueabihf-gcc: not found
/home/user/u-boot-beagleplay/u-boot/scripts/gcc-version.sh: 27: arm-linux-gnueabihf-gcc: not found
/home/user/u-boot-beagleplay/u-boot/scripts/gcc-version.sh: 29: arm-linux-gnueabihf-gcc: not found
/home/user/u-boot-beagleplay/u-boot/scripts/gcc-version.sh: 26: arm-linux-gnueabihf-gcc: not found
/home/user/u-boot-beagleplay/u-boot/scripts/gcc-version.sh: 27: arm-linux-gnueabihf-gcc: not found
/home/user/u-boot-beagleplay/u-boot/scripts/gcc-version.sh: 29: arm-linux-gnueabihf-gcc: not found
Kconfig:66: syntax error
Kconfig:65: invalid option
/home/user/u-boot-beagleplay/u-boot/scripts/clang-version.sh: 15: arm-linux-gnueabihf-gcc: not found
make[3]: *** [/home/user/u-boot-beagleplay/u-boot/scripts/kconfig/Makefile:75: syncconfig] Error 1
make[2]: *** [/home/user/u-boot-beagleplay/u-boot/Makefile:586: syncconfig] Error 2
make[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
make[1]: Leaving directory '/home/user/u-boot-beagleplay/CORTEXR'
make: *** [Makefile:177: sub-make] Error 2
make: Leaving directory '/home/user/u-boot-beagleplay/u-boot'
Failure in u-boot CORTEXR build of [am62x_beagleplay_r5_defconfig]

It shows right at the start the 2 compilers not found:

./build_uboot.sh: line 10: arm-linux-gnueabihf-gcc: command not found
./build_uboot.sh: line 11: aarch64-linux-gnu-gcc: command not found

Kind regards

sudo apt-get install -yq bc bison device-tree-compiler flex gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf libssl-dev python3-cryptography python3-dev python3-jsonschema python3-pycryptodome python3-pyelftools python3-setuptools python3-yaml swig yamllint
1 Like

Thanks Robert

That did it!

Kind regards

Hello Robert,
the same is true now for newer v6.12.y kernels above v6.12.4…

And I guess there might be a similar issue in GitHub - RobertCNelson/ti-linux-kernel-dev: vendor bsp..., the tags jump directly from 6.12-ti-arm64-r9 to 6.12.9-ti-arm32-r5 with no others in between…

Have a nice day, thanks for always helping us, regards,
Bernd

Okay I’ll look at this when I get back next Wednesday

Okay this is fixed, ti doesn’t seem to like tags anymore, so i’ve added the v6.12.x stable tags, and an note when we jump over v6.12.17

Regards,