mirror of
https://github.com/pvvx/rtl00TstMinAmebaV35a.git
synced 2024-11-22 09:44:15 +00:00
20 lines
656 B
Bash
20 lines
656 B
Bash
#!/bin/sh
|
|
|
|
#===============================================================================
|
|
CURRENT_UTILITY_DIR=$(pwd)
|
|
echo "..."
|
|
echo $CURRENT_UTILITY_DIR
|
|
RAMFILENAME="./application/Debug/bin/ram_all.bin"
|
|
echo $RAMFILENAME
|
|
#RAMFILENAME="ram_2.bin"
|
|
GDBSCPTFILE="../../../component/soc/realtek/8195a/misc/gcc_utility/rtl_gdb_flash_write.txt"
|
|
|
|
#===============================================================================
|
|
#get file size
|
|
RAM_FILE_SIZE=$(stat -c %s $RAMFILENAME)
|
|
RAM_FILE_SIZE_HEX=`echo "obase=16; $RAM_FILE_SIZE"|bc`
|
|
|
|
echo "size "$RAM_FILE_SIZE" --> 0x"$RAM_FILE_SIZE_HEX
|
|
|
|
echo "set \$RamFileSize = 0x$RAM_FILE_SIZE_HEX" > fwsize.gdb
|
|
exit
|