Skip to content

Commit

Permalink
Merge pull request #18 from mahdichi/v24.11
Browse files Browse the repository at this point in the history
fix update scripts
  • Loading branch information
mahdichi authored Nov 16, 2024
2 parents 4a8da97 + 4ccadb9 commit d6d59db
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,21 +195,21 @@ CreateUsbFlashUpdate()
mmc list
mmc dev
fatload usb 0:1 ${load_addr0} flash.img
echo "usb: flash image size: ${filesize} bytes"
fatload usb 0:1 \${load_addr0} flash.img
echo "usb: flash image size: \${filesize} bytes"
setexpr file_size_blk ${filesize} / 0x200
echo "mtd: flash image block size: ${file_size_blk}"
setexpr file_size_blk \${filesize} / 0x200
echo "mtd: flash image block size: \${file_size_blk}"
mtd_blk read ${load_addr1} 0 ${file_size_blk}
mtd_blk read \${load_addr1} 0 \${file_size_blk}
setexpr cmp_size ${filesize} / 4
echo "cmp: cmp size: ${cmp_size}"
setexpr cmp_size \${filesize} / 4
echo "cmp: cmp size: \${cmp_size}"
echo "cmp: compare usb flash.img with mtd content"
cmp ${load_addr0} ${load_addr1} ${cmp_size}
cmp \${load_addr0} \${load_addr1} \${cmp_size}
if test $? -eq 0 ; then
if test \$? -eq 0 ; then
echo "******************************************"
echo "usb: flash already updated"
echo "******************************************"
Expand All @@ -225,7 +225,7 @@ CreateUsbFlashUpdate()
gpio set gpio212
echo "mtd: wait for copy flash image to Nor Flash"
mtd_blk write ${load_addr0} 0 ${file_size_blk}
mtd_blk write \${load_addr0} 0 \${file_size_blk}
echo "mtd: copy completed"
rkimgtest mtd 2
Expand Down

0 comments on commit d6d59db

Please sign in to comment.