Fork of the vendor (Boundary Devices) u-boot for Reform 2, with minor tweaks. The goal is to migrate to mainstream u-boot or barebox ASAP. The main impediment so far is the 4GB RAM config.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
751B

  1. #!/bin/sh
  2. if [ $# -lt 1 ]; then
  3. echo "Error, missing a parameter:"
  4. echo "$0 <mount_path>"
  5. exit 1
  6. fi
  7. grep ^CONFIG_ARM64 .config > /dev/null
  8. if [ $? -eq 0 ]; then
  9. ARCH=arm64
  10. else
  11. ARCH=arm
  12. fi
  13. uboot_defconfig=`grep CONFIG_DEFCONFIG include/config.h|sed -e 's/#define CONFIG_DEFCONFIG[^"]\{1,\}"\([^"]\{1,\}\)"/\1/'`
  14. ./tools/mkimage -A $ARCH -O linux -T script -C none \
  15. -a 0 -e 0 -n "update script" \
  16. -d board/boundary/bootscripts/upgrade.txt upgrade.scr
  17. if [ -f u-boot.imx ]; then
  18. cp u-boot.imx u-boot.$uboot_defconfig
  19. fi
  20. if [ -f flash.bin ]; then
  21. cp flash.bin u-boot.$uboot_defconfig
  22. fi
  23. if [ ! -f u-boot.$uboot_defconfig ]; then
  24. echo "Couldn't find u-boot.$uboot_defconfig!"
  25. exit 1
  26. fi
  27. mv -v -t $1/ u-boot.$uboot_defconfig upgrade.scr