BPI-SINOVOIP / BPI-R2-bsp

Supports Banana Pi BPI-R2 (MT7623N) (Kernel 4.4)
81 stars 33 forks source link

u-boot build failing to build (with error) but 'Build success!' on 32 bit hosts #14

Open AaronNGray opened 7 years ago

AaronNGray commented 7 years ago

I am getting the following on Debian 9.1 32 bit :-

  ...
  LD      u-boot
  OBJCOPY u-boot.srec
  OBJCOPY u-boot.bin
/bin/sh: 1: ./mkimage: Exec format error
Makefile:814: recipe for target 'u-boot-mtk.bin' failed
make[1]: *** [u-boot-mtk.bin] Error 2
make[1]: Leaving directory '/home/aaron/BPI-R2-bsp/u-boot-mt'
Makefile:40: recipe for target 'u-boot' failed
make: *** [u-boot] Error 2

 Build success!

And the following on Ubuntu 16.04.3 32 bit :-

  LD      u-boot
  OBJCOPY u-boot.srec
  OBJCOPY u-boot.bin
./mkimage: 1: ./mkimage: Syntax error: "(" unexpected
Makefile:814: recipe for target 'u-boot-mtk.bin' failed
make[1]: *** [u-boot-mtk.bin] Error 2
make[1]: Leaving directory '/home/aaron/GitHub/BPI-R2-bsp/u-boot-mt'
Makefile:40: recipe for target 'u-boot' failed
make: *** [u-boot] Error 2

 Build success!
frank-w commented 7 years ago

Seems you have to install u-boot-tools...

"Build success"-message comes always, no check if it failed before...see my build.sh-patch

issue #18