Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chip-fel-flash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ else

echo == waiting for fastboot ==
if wait_for_fastboot; then
fastboot -i 0x1f3a -u flash UBI ${SPARSE_UBI}
fastboot --unbuffered flash UBI ${SPARSE_UBI}
assert_error 134

fastboot -i 0x1f3a continue
fastboot continue
assert_error 135
else
rm -rf "${TMPDIR}"
Expand Down
4 changes: 2 additions & 2 deletions chip-flash
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ else

log "== waiting for fastboot =="
if wait_for_fastboot ${FASTBOOT_PORT}; then
fastboot ${FASTBOOT_PORT} -i 0x1f3a -u flash UBI ${SPARSE_UBI} > /dev/null
fastboot ${FASTBOOT_PORT} --unbuffered flash UBI ${SPARSE_UBI} > /dev/null
assert_error 134

fastboot ${FASTBOOT_PORT} -i 0x1f3a continue > /dev/null
fastboot ${FASTBOOT_PORT} continue > /dev/null
assert_error 135
else
exit 1
Expand Down
6 changes: 3 additions & 3 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ wait_for_fastboot() {
echo -n "waiting for fastboot...";
export FLASH_WAITING_FOR_DEVICE=1
for ((i=$TIMEOUT; i>0; i--)) {
if [[ ! -z "$(${FASTBOOT} -i 0x1f3a $@ devices)" ]]; then
if [[ ! -z "$(${FASTBOOT} $@ devices)" ]]; then
echo "OK";
unset FLASH_WAITING_FOR_DEVICE
return 0;
Expand Down Expand Up @@ -227,8 +227,8 @@ flash_images() {

export FLASH_VID_PID=1f3a1010
if wait_for_fastboot; then
${FASTBOOT} -i 0x1f3a -u flash UBI $IMAGESDIR/chip-$nand_erasesize-$nand_writesize-$nand_oobsize.ubi.sparse || RC=1
${FASTBOOT} -i 0x1f3a continue > /dev/null
${FASTBOOT} --unbuffered flash UBI $IMAGESDIR/chip-$nand_erasesize-$nand_writesize-$nand_oobsize.ubi.sparse || RC=1
${FASTBOOT} continue > /dev/null
else
echo "failed to flash the UBI image"
RC=1
Expand Down