Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

n2s & n4s build fails in u-boot #6

Open
nickbetteridge opened this issue Dec 9, 2022 · 1 comment
Open

n2s & n4s build fails in u-boot #6

nickbetteridge opened this issue Dec 9, 2022 · 1 comment

Comments

@nickbetteridge
Copy link

For the r2s I have the following script:

cd friendlywrt22-rk3328
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v22.03 -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo  --no-clone-bundle
repo sync -c --no-clone-bundle

and for the r4s I have the following script:

cd friendlywrt-rk3399
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v21.02 -m rk3399.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle
repo sync -c --no-clone-bundle

In both cases, when I do the build, I get an error:

  CC      lib/panic.o
  CC      lib/strto.o
  CC      lib/strmhz.o
  LD      lib/built-in.o
  CC      examples/standalone/stubs.o
  CC      examples/standalone/hello_world.o
  LD      examples/standalone/libstubs.o
  LD      examples/standalone/hello_world
  OBJCOPY examples/standalone/hello_world.srec
  OBJCOPY examples/standalone/hello_world.bin
  LD      u-boot
  OBJCOPY u-boot.srec
  OBJCOPY u-boot-nodtb.bin
  DTC     arch/arm/dts/rk3036-sdk.dtb
  DTC     arch/arm/dts/rk3066a-mk808.dtb
  DTC     arch/arm/dts/rk3126-evb.dtb
start=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00200000 $start $end
  DTC     arch/arm/dts/rk3128-evb.dtb
  DTC     arch/arm/dts/rk3188-radxarock.dtb
  DTC     arch/arm/dts/rk3288-evb.dtb
  SYM     u-boot.sym
Error: arch/arm/dts/.rk3036-sdk.dtb.pre.tmp:77.1-10 syntax error
FATAL ERROR: Unable to parse input tree
make[2]: *** [scripts/Makefile.lib:319: arch/arm/dts/rk3036-sdk.dtb] Error 1
make[2]: *** Waiting for unfinished jobs....
Error: arch/arm/dts/.rk3188-radxarock.dtb.pre.tmp:383.1-10 syntax error
FATAL ERROR: Unable to parse input tree
make[2]: *** [scripts/Makefile.lib:319: arch/arm/dts/rk3188-radxarock.dtb] Error 1
make[1]: *** [dts/Makefile:101: arch-dtbs] Error 2
make: *** [Makefile:883: dts/dt.dtb] Error 2
make: *** Waiting for unfinished jobs....
make: *** [Makefile:19: friendly_nanopi_r4s] Error 2

When I inspect arch/arm/dts/.rk3036-sdk.dtb.pre.tmp I can see a \ at line 77 before the #include

The referenced dtsi file rk3036-sdk-u-boot.dtsi in \#include "rk3036-sdk-u-boot.dtsi" exists in the arch/arm/dts folder

@lawrencetg
Copy link
Contributor

I wanted to suggest that you take a look at the following project: https://github.com/friendlyarm/Actions-FriendlyWrt. In particular, you may find the information on setting up the build environment to be helpful.

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

No branches or pull requests

2 participants