make it work on CHIPs with empty NANDs

chip/stable
Alex Kaplan 7 years ago
parent dcfd128eff
commit 690f0d18da
  1. 7
      chip-fel-fastboot.sh
  2. 2
      chip-update-firmware.sh
  3. 2
      common.sh

@ -81,12 +81,9 @@ prepare_uboot_script() {
echo "echo going to fastboot mode" >>$UBOOT_SCRIPT_SRC
echo "fastboot" >>$UBOOT_SCRIPT_SRC
echo "echo " >>$UBOOT_SCRIPT_SRC
echo "echo *****************[ BOOT ]*****************" >>$UBOOT_SCRIPT_SRC
echo "echo " >>$UBOOT_SCRIPT_SRC
echo "echo *********************************************" >>$UBOOT_SCRIPT_SRC
echo "echo *****************[ SUCCESS ]*****************" >>$UBOOT_SCRIPT_SRC
echo "echo *********************************************" >>$UBOOT_SCRIPT_SRC
echo "echo " >>$UBOOT_SCRIPT_SRC
echo "echo " >>$UBOOT_SCRIPT_SRC
echo "boot" >>$UBOOT_SCRIPT_SRC
mkimage -A arm -T script -C none -n "flash CHIP" -d $UBOOT_SCRIPT_SRC $UBOOT_SCRIPT
}

@ -69,5 +69,5 @@ cache_download "${FW_IMAGE_DIR}" uboot-env.bin
cache_download "${FW_IMAGE_DIR}" zImage
cache_download "${FW_IMAGE_DIR}" u-boot-dtb.bin
BUILDROOT_OUTPUT_DIR="${FW_DIR}" ${FLASH_SCRIPT}
BUILDROOT_OUTPUT_DIR="${FW_DIR}" ${FLASH_SCRIPT} erase-bb
exit $?

@ -1,6 +1,6 @@
#!/bin/bash
TIMEOUT=20
TIMEOUT=30
onMac() {
if [ "$(uname)" == "Darwin" ]; then

Loading…
Cancel
Save