Skip to content

Commit d4d5294

Browse files
committed
Revert "Fix Mk2.5/S zip after change PO-based language translation support"
This reverts commit 7162b22. Revert direct push to prusa3d MK3_3.11.1
1 parent 7162b22 commit d4d5294

File tree

2 files changed

+40
-49
lines changed

2 files changed

+40
-49
lines changed

MK404-build.sh

+8-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# 3. Install latest updates with 'sudo apt-get upgrade'
1111
#
1212
#
13-
# Version: 1.0.0-Build_15
13+
# Version: 1.0.0-Build_14
1414
# Change log:
1515
# 11 Feb 2021, 3d-gussner, Inital
1616
# 11 Feb 2021, 3d-gussner, Optional flags to check for updates
@@ -22,9 +22,8 @@
2222
# 18 Jun 2021, 3d-gussner, Added -g 3 and 4 for more details extrusion lines
2323
# 18 Jun 2021, 3d-gussner, Check for updates is default. Fix update if internet connection is lost.
2424
# 21 Jun 2021, 3d-gussner, Change board_flash argument to 'y' and firmware_version to 'f'
25-
# 25 Jan 2022, 3d-gussner, Allow upper and lower case in selection
25+
# 25 Jan 2021, 3d-gussner, Allow upper and lower case in selection
2626
# Add update option to release OR devel
27-
# 01 Jul 2022, 3d-gussner, Limit atmegaMK404 boards mem to 8,16,32
2827

2928
#### Start: Failures
3029
failures()
@@ -36,7 +35,7 @@ case "$1" in
3635
4) echo "$(tput setaf 1)Some packages are missing please install these!$(tput sgr0)" ; exit 4 ;;
3736
5) echo "$(tput setaf 1)Wrong printer chosen.$(tput sgr0) Following Printers are supported: MK25, MK25S, MK3 and MK3S" ; exit 5 ;;
3837
6) echo "$(tput setaf 1)Unsupported board flash size chosen.$(tput sgr0) Only '256', '384', '512', '1024' and '32M' are allowed." ; exit 6 ;;
39-
7) echo "$(tput setaf 1)Unsupported board mem size chosen.$(tput sgr0) Only '8', '16' and '32' are allowed." ; exit 7 ;;
38+
7) echo "$(tput setaf 1)Unsupported board mem size chosen.$(tput sgr0) Only '8', '16', '32' and '64' are allowed." ; exit 7 ;;
4039
8) echo "$(tput setaf 1)No firmware version file selected!$(tput sgr0)" ; echo "Add argument -f with path and hex filename to start MK404" ; exit 8 ;;
4140
9) echo "$(tput setaf 1)Tried to determine MK404 printer from hex file, but failed!$(tput sgr0)" ; "Add argument -p with 'MK25', 'MK25S', 'MK3' or 'MK3S' to start MK404" ; exit 9 ;;
4241
10) echo "$(tput setaf 1)Missing printer$(tput sgr0)" ; exit 10 ;;
@@ -77,7 +76,7 @@ while getopts c:f:g:m:n:p:u:x:y:?h flag
7776
# '?' 'h' argument usage and help
7877
if [ "$help_flag" == "1" ] ; then
7978
echo "***************************************"
80-
echo "* MK404-build.sh Version: 1.0.0-Build_15 *"
79+
echo "* MK404-build.sh Version: 1.0.0-Build_14 *"
8180
echo "***************************************"
8281
echo "Arguments:"
8382
echo "$(tput setaf 2)-c$(tput sgr0) Check for update"
@@ -102,7 +101,7 @@ echo " -m : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' y
102101
echo " -n : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' yes"
103102
echo " -p : '$(tput setaf 2)MK25$(tput sgr0)', '$(tput setaf 2)MK25S$(tput sgr0)', '$(tput setaf 2)MK3$(tput sgr0)' or '$(tput setaf 2)MK3S$(tput sgr0)'"
104103
echo " -u : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' release ', '$(tput setaf 2)2$(tput sgr0)' devel '"
105-
echo " -x : '$(tput setaf 2)8$(tput sgr0)',$(tput setaf 2)16$(tput sgr0)' or $(tput setaf 2)32$(tput sgr0)' Kb."
104+
echo " -x : '$(tput setaf 2)8$(tput sgr0)',$(tput setaf 2)16$(tput sgr0)',$(tput setaf 2)32$(tput sgr0)' or '$(tput setaf 2)64$(tput sgr0)' Kb."
106105
echo " -y : '$(tput setaf 2)256$(tput sgr0)','$(tput setaf 2)384$(tput sgr0)','$(tput setaf 2)512$(tput sgr0)','$(tput setaf 2)1024$(tput sgr0)''$(tput setaf 2)32M$(tput sgr0)'"
107106
echo
108107
echo "Example:"
@@ -161,6 +160,9 @@ if [ ! -z "$board_mem_flag" ] ; then
161160
elif [ "$board_mem_flag" == "32" ] ; then
162161
BOARD_MEM="0x7DFF"
163162
echo "Board mem size : $board_mem_flag Kb, $BOARD_MEM (hex)"
163+
elif [ "$board_mem_flag" == "64" ] ; then
164+
BOARD_MEM="0xFFFF"
165+
echo "Board mem size : $board_mem_flag Kb, $BOARD_MEM (hex)"
164166
else
165167
failures 7
166168
fi

PF-build.sh

+32-43
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# Some may argue that this is only used by a script, BUT as soon someone accidentally or on purpose starts Arduino IDE
5757
# it will use the default Arduino IDE folders and so can corrupt the build environment.
5858
#
59-
# Version: 2.0.2-Build_74
59+
# Version: 2.0.2-Build_69
6060
# Change log:
6161
# 12 Jan 2019, 3d-gussner, Fixed "compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections" in 'platform.txt'
6262
# 16 Jan 2019, 3d-gussner, Build_2, Added development check to modify 'Configuration.h' to prevent unwanted LCD messages that Firmware is unknown
@@ -177,9 +177,8 @@
177177
# Fix DEV_STATUS to set correctly on RC/BETA/ALPHA/DEVEL
178178
# Fix atmegaMK404 Board mem and flash modifications
179179
# Limit atmegaMK404 boards mem to 8,16,32
180-
# 20 Jun 2022, 3d-gussner, Change to Ardunio_boards v1.0.5-1
181-
# 20 Jun 2022, wavexx , New PO-based language translation support
182-
# 20 Jun 2022, 3d-gussner, fix Mk2.5/S zip after change PO-based language translation support
180+
# 20 Jun 2022, 3d-gussner, Change to Ardunio_boards v 1.0.5-1
181+
183182

184183
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
185184
export SRCDIR=$SCRIPT_PATH
@@ -236,7 +235,7 @@ while getopts b:c:d:g:h:i:j:l:m:n:o:p:v:x:y:?h flag
236235
# '?' 'h' argument usage and help
237236
if [ "$help_flag" == "1" ] ; then
238237
echo "***************************************"
239-
echo "* PF-build.sh Version: 2.0.2-Build_74 *"
238+
echo "* PF-build.sh Version: 2.0.2-Build_69 *"
240239
echo "***************************************"
241240
echo "Arguments:"
242241
echo "$(tput setaf 2)-b$(tput sgr0) Build/commit number"
@@ -262,15 +261,15 @@ echo " -b : '$(tput setaf 2)Auto$(tput sgr0)' needs git or a number"
262261
echo " -c : '$(tput setaf 2)0$(tput sgr0)' clean up, '$(tput setaf 2)1$(tput sgr0)' keep"
263262
echo " -d : '$(tput setaf 2)GOLD$(tput sgr0)', '$(tput setaf 2)RC$(tput sgr0)', '$(tput setaf 2)BETA$(tput sgr0)', '$(tput setaf 2)ALPHA$(tput sgr0)', '$(tput setaf 2)DEBUG$(tput sgr0)', '$(tput setaf 2)DEVEL$(tput sgr0)' and '$(tput setaf 2)UNKNOWN$(tput sgr0)'"
264263
echo " -g : '$(tput setaf 2)0$(tput sgr0)' no '$(tput setaf 2)1$(tput sgr0)' lite '$(tput setaf 2)2$(tput sgr0)' fancy '$(tput setaf 2)3$(tput sgr0)' lite with Quad_HR '$(tput setaf 2)4$(tput sgr0)' fancy with Quad_HR"
265-
echo " -i : '$(tput setaf 2)1.8.5$(tput sgr0)', '$(tput setaf 2)1.8.19$(tput sgr0)'"
264+
echo " -i : '$(tput setaf 2)1.8.5$(tput sgr0)', '$(tput setaf 2)1.8.13$(tput sgr0)', '$(tput setaf 2)1.8.19$(tput sgr0)'"
266265
echo " -j : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' yes"
267266
echo " -l : '$(tput setaf 2)ALL$(tput sgr0)' for multi language or '$(tput setaf 2)EN_ONLY$(tput sgr0)' for English only"
268267
echo " -m : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' yes '$(tput setaf 2)2$(tput sgr0)' with MMU2"
269268
echo " -n : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' yes"
270269
echo " -o : '$(tput setaf 2)1$(tput sgr0)' force or '$(tput setaf 2)0$(tput sgr0)' block output and delays"
271270
echo " -p : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' yes"
272271
echo " -v : '$(tput setaf 2)All$(tput sgr0)' or variant file name"
273-
echo " -x : '$(tput setaf 2)8$(tput sgr0)','$(tput setaf 2)16$(tput sgr0)'or'$(tput setaf 2)32$(tput sgr0)' Kb."
272+
echo " -x : '$(tput setaf 2)8$(tput sgr0)' or '$(tput setaf 2)64$(tput sgr0)' Kb."
274273
echo " -y : '$(tput setaf 2)256$(tput sgr0)','$(tput setaf 2)384$(tput sgr0)','$(tput setaf 2)512$(tput sgr0)','$(tput setaf 2)1024$(tput sgr0)''$(tput setaf 2)32M$(tput sgr0)'"
275274
echo
276275
echo "Example:"
@@ -346,21 +345,25 @@ if [ ! -z "$board_mem_flag" ] ; then
346345
BOARD_MEM="0x7DFF"
347346
echo "Board mem size : $board_mem_flag Kb, $BOARD_MEM (hex)"
348347
OUTPUT_FILENAME_SUFFIX="${OUTPUT_FILENAME_SUFFIX}_RAM-$board_mem_flag"
348+
elif [ "$board_mem_flag" == "64" ] ; then
349+
BOARD_MEM="0xFFFF"
350+
echo "Board mem size : $board_mem_flag Kb, $BOARD_MEM (hex)"
351+
OUTPUT_FILENAME_SUFFIX="${OUTPUT_FILENAME_SUFFIX}_RAM-$board_mem_flag"
349352
else
350-
echo "Unsupported board mem size chosen. Only '8', '16' and '32' are allowed."
353+
echo "Unsupported board mem size chosen. Only '8', '64' are allowed."
351354
failures 5
352355
fi
353356
fi
354357

355358
#Start: Check if Arduino IDE version is correct
356359
if [ ! -z "$IDE_flag" ]; then
357-
if [[ "$IDE_flag" == "1.8.5" || "$IDE_flag" == "1.8.19" ]]; then
360+
if [[ "$IDE_flag" == "1.8.5" || "$IDE_flag" == "1.8.13" || "$IDE_flag" == "1.8.19" ]]; then
358361
ARDUINO_ENV="${IDE_flag}"
359362
else
360-
ARDUINO_ENV="1.8.19"
363+
ARDUINO_ENV="1.8.5"
361364
fi
362365
else
363-
ARDUINO_ENV="1.8.19"
366+
ARDUINO_ENV="1.8.5"
364367
fi
365368
#End: Check if Arduino IDE version is correct
366369

@@ -543,7 +546,7 @@ fi
543546
#### Start: Set build environment
544547
set_build_env_variables()
545548
{
546-
BUILD_ENV="1.0.7"
549+
BUILD_ENV="1.0.6"
547550
BOARD="prusa_einsy_rambo"
548551
BOARD_PACKAGE_NAME="PrusaResearch"
549552
if [ "$ARDUINO_ENV" == "1.8.19" ]; then
@@ -1019,15 +1022,12 @@ prepare_code_for_compiling()
10191022
MOTHERBOARD=$(grep --max-count=1 "\bMOTHERBOARD\b" $SCRIPT_PATH/Firmware/variants/$VARIANT.h | sed -e's/ */ /g' |cut -d ' ' -f3)
10201023
# Check development status
10211024
FW_FLAV=$(grep --max-count=1 "//#define FW_FLAVOR\b" $SCRIPT_PATH/Firmware/Configuration.h|cut -d ' ' -f1)
1022-
#echo "FLAV:$FW_FLAV"
10231025
if [[ "$FW_FLAV" != "//#define" ]] ; then
10241026
FW_FLAVOR=$(grep --max-count=1 "\bFW_FLAVOR\b" $SCRIPT_PATH/Firmware/Configuration.h| sed -e's/ */ /g'|cut -d ' ' -f3)
1025-
#echo "FLAVOR:$FW_FLAVOR"
10261027
FW_FLAVERSION=$(grep --max-count=1 "\bFW_FLAVERSION\b" $SCRIPT_PATH/Firmware/Configuration.h| sed -e's/ */ /g'|cut -d ' ' -f3)
10271028
if [[ "$FW_FLAVOR" != "//#define FW_FLAVOR" ]] ; then
10281029
FW="$FW-$FW_FLAVOR"
10291030
DEV_CHECK="$FW_FLAVOR"
1030-
#echo "DEV:$DEV_CHECK"
10311031
if [ ! -z "$FW_FLAVERSION" ] ; then
10321032
FW="$FW$FW_FLAVERSION"
10331033
fi
@@ -1193,28 +1193,24 @@ prepare_variant_for_compiling()
11931193
compile_en_firmware()
11941194
{
11951195
## Check board mem size
1196-
CURRENT_BOARD_MEM=$(grep "#define RAMEND" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h | sed -e's/.* //g'|cut -d ' ' -f2 |tr -d ' \t\n\r')
1196+
CURRENT_BOARD_MEM=$(grep "#define RAMEND" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h | sed -e's/.* //g'|cut -d ' ' -f3|tr -d $'\n')
11971197
if [ $CURRENT_BOARD_MEM != "0x21FF" ] ; then
1198-
echo "$(tput setaf 1)Board mem has been modified or not reset$(tput sgr 0)"
1198+
echo "Board mem has been already modified or not reset"
11991199
echo "Current:" $CURRENT_BOARD_MEM
12001200
PS3="Select $(tput setaf 2)Yes$(tput sgr 0) if you want to reset it."
12011201
select yn in "Yes" "No"; do
12021202
case $yn in
12031203
Yes)
12041204
echo "Resetting board mem size"
12051205
sed -i -- "s/^#define RAMEND .*$/#define RAMEND 0x21FF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1206-
BOARD_MEM_MODIFIED=0
12071206
break
12081207
;;
12091208
*)
12101209
echo "Continuing with modified mem size"
1211-
BOARD_MEM_MODIFIED=1
12121210
break
12131211
;;
12141212
esac
12151213
done
1216-
else
1217-
BOARD_MEM_MODIFIED=0
12181214
fi
12191215
## Modify board mem size
12201216
if [[ ! -z $BOARD_MEM && "$BOARD_MEM" != "0x21FF" ]] ; then
@@ -1224,14 +1220,13 @@ compile_en_firmware()
12241220
read -t 5 -p "To cancel press $(tput setaf 1)CRTL+C$(tput sgr 0)"
12251221
echo ""
12261222
sed -i -- "s/^#define RAMEND 0x21FF/#define RAMEND ${BOARD_MEM}/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1227-
BOARD_MEM_MODIFIED=1
12281223
fi
12291224

12301225
## Check board flash size
1231-
CURRENT_BOARD_FLASH=$(grep "#define FLASHEND" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h | sed -e's/.* //g'|cut -d ' ' -f2 |tr -d ' \t\n\r')
1232-
CURRENT_BOARD_maximum_size=$(grep "prusa_einsy_rambo.upload.maximum_size" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt |cut -d '=' -f2|tr -d ' \t\n\r')
1226+
CURRENT_BOARD_FLASH=$(grep "#define FLASHEND" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h | sed -e's/.* //g'|cut -d ' ' -f3|tr -d $'\n')
1227+
CURRENT_BOARD_maximum_size=$(grep "prusa_einsy_rambo.upload.maximum_size" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt |cut -d '=' -f2|tr -d $'\n')
12331228
if [[ $CURRENT_BOARD_FLASH != "0x3FFFF" || $CURRENT_BOARD_maximum_size != "253952" ]] ; then
1234-
echo "$(tput setaf 1)Board flash has been modified or not reset$(tput sgr 0)"
1229+
echo "Board flash has been already modified or not reset"
12351230
echo "Current flash size:" $CURRENT_BOARD_FLASH
12361231
echo "Current max. size:" $CURRENT_BOARD_maximum_size
12371232
PS3="Select $(tput setaf 2)Yes$(tput sgr 0) if you want to reset it."
@@ -1241,30 +1236,25 @@ compile_en_firmware()
12411236
echo "$(tput setaf 1)Resetting board flash size$(tput sgr 0)"
12421237
sed -i -- "s/^#define FLASHEND .*$/#define FLASHEND 0x3FFFF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
12431238
sed -i -- "s/^prusa_einsy_rambo.upload.maximum_size.*/prusa_einsy_rambo.upload.maximum_size=253952/g" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt
1244-
BOARD_FLASH_MODIFIED=0
12451239
break
12461240
;;
12471241
*)
12481242
echo "$(tput setaf 3)Continuing with modified flash size$(tput sgr 0)"
1249-
BOARD_FLASH_MODIFIED=1
12501243
break
12511244
;;
12521245
esac
12531246
done
1254-
else
1255-
BOARD_FLASH_MODIFIED=1
12561247
fi
12571248
## Modify boad flash size
12581249
if [[ ! -z $BOARD_FLASH && "$BOARD_FLASH" != "0x3FFFF" ]] ; then
1259-
echo "$(tput setaf 3)Modifying board flash size (hex):$(tput sgr 0)"
1250+
echo "Modifying board flash size (hex):"
12601251
echo "Old flash size:" $CURRENT_BOARD_FLASH
12611252
echo "New flash size:" $BOARD_FLASH
12621253
echo "Old max. size:" $CURRENT_BOARD_maximum_size
12631254
echo "New max. size:" $BOARD_maximum_size
12641255
read -t 5 -p "To cancel press $(tput setaf 1)CRTL+C$(tput sgr 0)"
12651256
sed -i -- "s/^#define FLASHEND .*/#define FLASHEND ${BOARD_FLASH}/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
12661257
sed -i -- "s/^prusa_einsy_rambo.upload.maximum_size.*/prusa_einsy_rambo.upload.maximum_size=${BOARD_maximum_size}/g" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt
1267-
BOARD_FLASH_MODIFIED=1
12681258
fi
12691259

12701260
#Check if compiler flags are set to Prusa specific needs for the rambo board.
@@ -1347,18 +1337,23 @@ create_multi_firmware()
13471337
cp -f $BUILD_PATH/Firmware.ino.elf $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME.elf
13481338
else
13491339
#Search for created firmware languages
1350-
langs=$(find Firmware-intl-en_*.hex | cut -d "_" -f2 | cut -d "." -f1)
1340+
langs=$(find firmware_*.hex | cut -d "_" -f2 | cut -d "." -f1)
13511341
#Copy found firmware_*.hex files
13521342
for la in $langs; do
1353-
cp -f Firmware-intl-en_$la.hex $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME-$la.hex
1343+
cp -f firmware_$la.hex $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME-$la.hex
13541344
done
13551345
cp -f $BUILD_PATH/Firmware.ino.elf $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME.elf
13561346
echo "$(tput setaf 2)Zip multi language firmware for MK2.5/miniRAMbo board to PF-build-hex folder$(tput sgr 0)"
13571347
if [ $TARGET_OS == "windows" ]; then
13581348
zip a $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME.zip $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME-??.hex
13591349
#rm $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME-??.hex
13601350
elif [ $TARGET_OS == "linux" ]; then
1361-
zip -j ../../$OUTPUT_FOLDER/$OUTPUT_FILENAME.zip ../../$OUTPUT_FOLDER/$OUTPUT_FILENAME-??.hex
1351+
# Make a copy for MK404 sim of MK2, MK2.5, MK2.5S firmware
1352+
if [ ! -z "$mk404_flag" ]; then
1353+
cp -f firmware_de.hex $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME.hex
1354+
fi
1355+
# End of MK2, MK2.5, MK2.5S firmware copy
1356+
zip -j ../../$OUTPUT_FOLDER/$OUTPUT_FILENAME.zip ../../$OUTPUT_FOLDER/$OUTPUT_FILENAME-??.hex
13621357
fi
13631358
fi
13641359

@@ -1439,15 +1434,9 @@ cleanup_firmware()
14391434
fi
14401435

14411436
# Restore build env files to previous state
1442-
if [ $BOARD_MEM_MODIFIED == "1" ]; then
1443-
sed -i -- "s/^#define FLASHEND .*$/#define FLASHEND 0x3FFFF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1444-
echo "$(tput setaf 2)Restored Board Mem$(tput sgr 0)"
1445-
fi
1446-
if [ $BOARD_FLASH_MODIFIED == "1" ]; then
1447-
sed -i -- "s/^prusa_einsy_rambo.upload.maximum_size.*/prusa_einsy_rambo.upload.maximum_size=253952/g" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt
1448-
sed -i -- "s/^#define RAMEND.*/#define RAMEND 0x21FF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1449-
echo "$(tput setaf 2)Restored Board Flash$(tput sgr 0)"
1450-
fi
1437+
sed -i -- "s/^#define FLASHEND .*$/#define FLASHEND 0x3FFFF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1438+
sed -i -- "s/^prusa_einsy_rambo.upload.maximum_size.*/prusa_einsy_rambo.upload.maximum_size=253952/g" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt
1439+
sed -i -- "s/^#define RAMEND.*/#define RAMEND 0x21FF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
14511440

14521441
}
14531442
#### End: Prepare code for compiling

0 commit comments

Comments
 (0)