Building U-Boot 1.1.3 from LxNETES-3.2 CD according to README fails

Error -./build.sh: 5: declare: not found or gzip: stdin: unexpected end of file

Summary

build.sh uses ´declare´ which is a bash builtin command. However build.sh starts with:
#!/bin/sh
and works only if /bin/sh is a link to bash on your system.

To overcome this, just patch build.sh to start with:
#!/bin/bash

If you experience subsequent build errors, do the build manually with the following pre-conditions:

  • You extracted complete U-Boot sources.
  • You extracted the toolchain into the sources/toolchain directory):

Manual build procedure

export PATH=`pwd`/toolchain/bin:$PATH
make ${PLATFORM}_config
make


where PLATFORM is one out of:
a9m2410
a9m2440
cc9p9750dev
cc9p9750val
ccxp
unc90dev

For the other platforms, CC9P9360, and CC(Wi-)9C use the newer U-Boot 1.1.4 or 1.1.6.

For the other platforms, CC9P9360, and CC(Wi-)9C use the newer U-Boot 1.1.4 or 1.1.6.

Note: make clean will also remove s.t. from your toolchain/ directory, so after make clean you have to re-install the toolchain from the tar.gz

Last updated: Oct 28, 2024

Recently Viewed

No recently viewed articles

Did you find this article helpful?