pkfox Posted May 17 Share Posted May 17 Build logs: https://paste.armbian.com/gaximamalu Hi all, I've been building armbian images for my nanopim4 boards for some time with great success, however I refreshed the build scripts today and I'm seeing LOADS of errors flashing by and then It crashes - my build machine is an intel nuc I5 with 16gb RAM running Debian bookworm - I hope I've got the log url correct 0 Quote Link to comment Share on other sites More sharing options...
SteeMan Posted May 17 Share Posted May 17 If you look at the log you will see that a patch is failing to apply. If you look at the error, you will see that the failure is for: drivers/usb/typec/tcpm/tcmp.c and if you look at kernel.org you will see that that file change earlier today as part of changes for 6.6.31 which was released today. So you can either contribute a fix for the patch, wait until someone else does that, or pin your build to the previous kernel version. 0 Quote Link to comment Share on other sites More sharing options...
pkfox Posted May 17 Author Share Posted May 17 Thanks for replying - How can I pin a build to the previous kernel version ? 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted May 17 Share Posted May 17 Example: https://github.com/armbian/build/blob/v24.05/config/sources/families/bcm2711.conf set KERNELBRANCH to something like tag:v6.7-rc7 in your case this would be tag:v6.6.30 I guess 0 Quote Link to comment Share on other sites More sharing options...
pkfox Posted May 17 Author Share Posted May 17 (edited) @Werner thanks but can you give me the exact syntax please Edited May 18 by pkfox edit 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted May 18 Share Posted May 18 alternatively apply this patch: https://github.com/armbian/build/pull/6618 0 Quote Link to comment Share on other sites More sharing options...
pkfox Posted May 18 Author Share Posted May 18 @Werner will performing a fresh clone bring in the patch ? 0 Quote Link to comment Share on other sites More sharing options...
pkfox Posted May 18 Author Share Posted May 18 Just tried a fresh clone and ran compile.sh - and it crashed as before - it builds a ras pi image OK but not the nanopim4v2 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted May 18 Share Posted May 18 Either checkout the PR instead of main and try again or wait until it got merged. 0 Quote Link to comment Share on other sites More sharing options...
pkfox Posted May 18 Author Share Posted May 18 How do I checkout a PR 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted May 18 Share Posted May 18 https://www.google.com/search?q=how+do+i+checkout+a+pr+github 1 Quote Link to comment Share on other sites More sharing options...
pkfox Posted May 18 Author Share Posted May 18 (edited) @Werner I ran this from the build folder git fetch origin pull/6618/head and I'm trying to build it again - from what I see on the tty it looks to be compiling and linking Edited May 18 by pkfox 0 Quote Link to comment Share on other sites More sharing options...
Hqnicolas Posted May 18 Share Posted May 18 (edited) 4 hours ago, Werner said: Let me google that for you! https://gprivate.com/6b9kg 1 - Follow the Build Armbian instructions if it doesnt Build your image as espected rm -rf build git clone --depth 1 --branch v24.05 https://github.com/armbian/build try again and again and again and again gh pr checkout 6618 Edited May 18 by Hqnicolas 0 Quote Link to comment Share on other sites More sharing options...
pkfox Posted May 18 Author Share Posted May 18 I didn't see that let me google that for you message - I'll try specifying the branch as you suggest 0 Quote Link to comment Share on other sites More sharing options...
pkfox Posted May 18 Author Share Posted May 18 (edited) @Hqnicolas that did the trick thanks for that, presumably this branch predates the breaking change gh pr checkout 6618 the above command didn't work on my Linux box - thanks again. gh pr checkout 6618 fatal: couldn't find remote ref refs/heads/fix-broken-patch Edited May 18 by pkfox edit 0 Quote Link to comment Share on other sites More sharing options...
going Posted May 18 Share Posted May 18 (edited) 17.05.2024 в 19:21, pkfox сказал: Build logs: https://paste.armbian.com/gaximamalu Hi all, [ LINUXFAMILY='rockchip64' ] Try to freeze the kernel version for the target family. Apply this patch to the build system itself. fix-6.6.30-version.patch cd /mnt/music/Armbian/build ls ../fix-6.6.30-version.patch ../fix-6.6.30-version.patch git status git restore file1 file2 .... git pull patch -p1 -i ../fix-6.6.30-version.patch Put the patch in a /mnt/music/Armbian/ folder. Check the status and if there are modified files, do the following: git restore "list files" All this is for the main branch P.S. Try to make an assembly. And please post the log. Edited May 18 by going Add P.S. 0 Quote Link to comment Share on other sites More sharing options...
pkfox Posted May 19 Author Share Posted May 19 (edited) @going thank you for your time - I tried your suggestion and got this ../fix-6.6.30-version.patch diff: unrecognized option '--git' diff: Try 'diff --help' for more information. ../fix-6.6.30-version.patch: line 2: index: command not found ../fix-6.6.30-version.patch: line 3: ---: command not found ../fix-6.6.30-version.patch: line 4: +++: command not found ../fix-6.6.30-version.patch: line 5: @@: command not found ../fix-6.6.30-version.patch: line 7: syntax error near unexpected token `)' ../fix-6.6.30-version.patch: line 7: ` current) Edited May 19 by pkfox 0 Quote Link to comment Share on other sites More sharing options...
going Posted May 19 Share Posted May 19 2 часа назад, pkfox сказал: thank you for your time - I tried your suggestion and got this 😞 Please read some documentation on BASH commands. The BASH command: ls ../fix-6.6.30-version.patch Command output: ../fix-6.6.30-version.patch This only tells you that the patch file is in /mnt/music/Armbian/fix-6.6.30-version.patch If there are modified files in the build system itself, you will not be able to update it. Therefore, it is necessary to check the status. git status And if the files exist then make a command: git restore file1 file2 .... Where file1 and file2 ... are the files reported by the command git status The git pull command will pull the latest updates from the remote repository. Apply the patch that I posted: patch -p1 -i ../fix-6.6.30-version.patch After that, run the build command: ./compile.sh .......... All commands must be executed in the /mnt/music/Armbian/build directory 0 Quote Link to comment Share on other sites More sharing options...
pkfox Posted May 19 Author Share Posted May 19 (edited) I have a very good understanding of bash commands I just read it differently than you intended, everything actually worked without applying the patch so I'm not sure what we've achieved. What doesn't work is downloading a fresh clone - thanks for your help Edit Someone must have merged the fix into the current tree as it now works perfectly again - thanks again Edited May 19 by pkfox New content 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.