# Help with build script SDK patches

**URL:** <https://community.solid-run.com/t/help-with-build-script-sdk-patches/748>\
**Category:** OCTEON CN9130\
**Created:** [October 22, 2023, 4:34pm UTC](https://community.solid-run.com/t/help-with-build-script-sdk-patches/748 "2023-10-22T16:34:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoutingLoop](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@RoutingLoop](https://community.solid-run.com/u/RoutingLoop)\
**Post date:** [October 22, 2023, 4:34pm UTC](https://community.solid-run.com/t/help-with-build-script-sdk-patches/748/1 "2023-10-22T16:34:40Z")

</div>

Hi I’m trying to rebuild my server image.

U-Boot based on SDK10. Where do I get this from?

“Extract the git-u-boot–.tar.bz2 under the destination folder git-u-boot-- and copy the patches”

What should I be doing regarding the SDK U-Boot patches before I run the runme script?

Also some other things:  
I’ve had a few compile issues with out of date packages. I.e m4, fakeroot (another poster mentions fakeroot). I’ve managed to work around these by updating the packages.

e.g.  
initially:  
cd path/to/buildroot  
git remote add upstream [GitHub - buildroot/buildroot: Buildroot, making embedded Linux easy. Note that this is not the official repository, but only a mirror. The official Git repository is at http://git.buildroot.net/buildroot/. Do not open issues or file pull requests here.](https://github.com/buildroot/buildroot.git)  
git fetch upstream master

then (from within the “buildroot” repo or subrepo)  
rm -r package/m4  
git checkout upstream/master – package/m4  
git add -A  
git status  
git commit -m “Update m4 library”

I currently seem to have a problem with the script compiling U-Boot (hence my question above about patches). But my current error seems related to a bug when using gcc11, i’m might revert to gcc9.

[edit:] downgrading to gcc-9 didn’t work, gave more errors.  
original issue - usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of ‘yylloc’; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here

this fixed it:  
edit the file ./linux-rtk/scripts/dtc/dtc-lexer-lex.c  
Find the line ‘ **YYLTYPE yylloc** ’ and change it to ‘ **extern YYLTYPE yylloc** ’  
[end edit]

Many thanks
