friendlyarm / friendlywrt_manifests

29 stars 34 forks source link

n2s & n4s build fails in u-boot #6

Open nickbetteridge opened 1 year ago

nickbetteridge commented 1 year ago

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 commented 1 year ago

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.