Trent V. 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							90ddbf6f2c 
							
						 
					 
					
						
						
							
							updated shebang to use a more standard path for bash ( #7922 )  
						
						... 
						
						
						
						Signed-off-by: Trenton VanderWert <trenton.vanderwert@gmail.com> 
						
					 
					
						2025-09-13 11:56:23 -05:00 
						 
				 
			
				
					
						
							
							
								Jeremiah K 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f26e657577 
							
						 
					 
					
						
						
							
							Fix esptool detection and baud rate issues in Windows batch scripts ( #7856 )  
						
						... 
						
						
						
						- Fix esptool detection to use 'version' subcommand instead of no arguments
- Fix device-update.bat to use 115200 bps for flashing, 1200 bps only for reset
- Add missing closing quotes in debug messages
Replace magic numbers with named constants for better maintainability
- Add RESET_BAUD=1200 constant for reset baud rate
- Add UPDATE_OFFSET=0x10000 constant for update flash offset
- Use constants instead of hardcoded values throughout script
Extract magic numbers to constants in shell scripts for consistency
- Add FLASH_BAUD, RESET_BAUD, UPDATE_OFFSET constants to device-update.sh
- Add RESET_BAUD, FIRMWARE_OFFSET constants to device-install.sh
- Replace hardcoded values with named constants throughout
- Maintain consistency with batch script improvements
Fix Python path quoting and remove unreachable code
- Quote Python interpreter paths to handle spaces in paths like 'C:\Program Files\Python\python.exe'
- Remove unreachable GOTO statements after EXIT /B commands
- Improve robustness when custom Python interpreters are specified
Fix esptool detection for pipx installations
- Change from checking ERRORLEVEL GEQ 2 to EQU 9009
- Pipx-installed esptool returns exit code 2 when showing help (normal)
- Only treat Windows 'command not found' error (9009) as truly not found
- Add debug output to show actual exit codes for troubleshooting 
						
					 
					
						2025-09-06 06:20:57 -05:00 
						 
				 
			
				
					
						
							
							
								Manuel 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8aae4f1b9d 
							
						 
					 
					
						
						
							
							Update device-install scripts for T-LoRa Pager ( #7833 )  
						
						... 
						
						
						
						* add tlora-pager to device install scripts + fixes
* replace deprecated commands (write_flash) 
						
					 
					
						2025-09-03 06:22:57 -05:00 
						 
				 
			
				
					
						
							
							
								mikecarper 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							10bd10b9d1 
							
						 
					 
					
						
						
							
							bugfix Syntax error: "(" unexpected in device-update.sh ( #7514 )  
						
						... 
						
						
						
						* Update device-update.sh to use /bin/bash
* Update meshtasticd.postinst to use /bin/bash
* Update meshtasticd.postrm to use /bin/bash 
						
					 
					
						2025-07-31 06:02:09 -05:00 
						 
				 
			
				
					
						
							
							
								Neil Hanlon 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							622023de8b 
							
						 
					 
					
						
						
							
							fix(device-update.sh): safely filter args without breaking parsing ( #7305 )  
						
						... 
						
						
						
						The previous method of removing `--change-mode` from the argument list used a
string (`NEW_ARGS`) and `eval set -- $NEW_ARGS` to reconstruct the positional
parameters. This was both unsafe and incorrect.
Because `NEW_ARGS` was built using quoted literal `$arg` strings instead of the
actual values, it resulted in all filtered arguments being set to the same last
value of `$arg`. This caused `getopts` to receive incorrect input and silently
fail to parse options like `-p` and `-f`, leading to broken behavior and unset
variables (e.g., `ESPTOOL_CMD` never got a port).
This patch rewrites the logic to use an array (`NEW_ARGS+=("$arg")`), and
resets positional parameters via `set -- "${NEW_ARGS[@]}"`. This preserves
argument integrity and avoids the unsafe use of `eval`.
Example of the broken behavior before this fix:
  ./device-update.sh -p /dev/ttyACM0 -f firmware.bin
Resulted in:
  set -- firmware.bin firmware.bin firmware.bin firmware.bin
Now:
  set -- -p /dev/ttyACM0 -f firmware.bin
as expected.
Signed-off-by: Neil Hanlon <neil@shrug.pw> 
						
					 
					
						2025-07-13 06:19:58 -05:00 
						 
				 
			
				
					
						
							
							
								Matt Smith 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ff4eed08bc 
							
						 
					 
					
						
						
							
							Fixed --change-mode option since it was broken ( #7144 )  
						
						... 
						
						
						
						getopts can't parse double-dash options so it had to be done separately.  Also fixed where CHANGE_MODE was checked since it wasn't working either. 
						
					 
					
						2025-07-03 19:41:17 -05:00 
						 
				 
			
				
					
						
							
							
								Mario Murphy 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e78033bb85 
							
						 
					 
					
						
						
							
							Clean up install & update shell scripts ( #6839 )  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	CI / build-esp32-c3 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-esp32-c6 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-nrf52 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-rpi2040 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-stm32 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-debian-src (push) Waiting to run 
				
			 
		
			
				
	CI / package-pio-deps-native-tft (push) Waiting to run 
				
			 
		
			
				
	CI / test-native (push) Waiting to run 
				
			 
		
			
				
	CI / docker-deb-amd64 (push) Waiting to run 
				
			 
		
			
				
	CI / docker-deb-amd64-tft (push) Waiting to run 
				
			 
		
			
				
	CI / docker-alp-amd64 (push) Waiting to run 
				
			 
		
			
				
	CI / docker-alp-amd64-tft (push) Waiting to run 
				
			 
		
			
				
	CI / docker-deb-arm64 (push) Waiting to run 
				
			 
		
			
				
	CI / docker-deb-armv7 (push) Waiting to run 
				
			 
		
			
				
	CI / gather-artifacts (esp32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32c3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32c6) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32s3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (nrf52840) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (rp2040) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (stm32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-artifacts (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32c3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32c6) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32s3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (nrf52840) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (rp2040) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (stm32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / publish-firmware (push) Blocked by required conditions 
				
			 
		
		
	 
 
	 
						
						Fixed quoting of the `FILENAME` variable to work when the path of the
passed argument contains a space. Also fixed syntactical issues called
out by `shellcheck` in multi-condition `if` statements.
Also normalized indentation chars (was mix of tabs & spaces) and
trailing whitespace.
Co-authored-by: Tom Fifield <tom@tomfifield.net> 
						
					 
					
						2025-06-08 14:04:31 +10:00 
						 
				 
			
				
					
						
							
							
								Kalle Lilja 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4d81280ac2 
							
						 
					 
					
						
						
							
							Add --1200bps-reset param to device-install/update scripts ( #6752 )  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	CI / build-esp32-c3 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-esp32-c6 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-nrf52 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-rpi2040 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-stm32 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-debian-src (push) Waiting to run 
				
			 
		
			
				
	CI / package-pio-deps-native-tft (push) Waiting to run 
				
			 
		
			
				
	CI / test-native (push) Waiting to run 
				
			 
		
			
				
	CI / docker-deb-amd64 (push) Waiting to run 
				
			 
		
			
				
	CI / docker-deb-amd64-tft (push) Waiting to run 
				
			 
		
			
				
	CI / docker-alp-amd64 (push) Waiting to run 
				
			 
		
			
				
	CI / docker-alp-amd64-tft (push) Waiting to run 
				
			 
		
			
				
	CI / docker-deb-arm64 (push) Waiting to run 
				
			 
		
			
				
	CI / docker-deb-armv7 (push) Waiting to run 
				
			 
		
			
				
	CI / gather-artifacts (esp32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32c3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32c6) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32s3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (nrf52840) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (rp2040) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (stm32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-artifacts (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32c3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32c6) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32s3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (nrf52840) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (rp2040) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (stm32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / publish-firmware (push) Blocked by required conditions 
				
			 
		
		
	 
 
	 
						
						* add change-mode support
* add change-mode support
* tab to space
* fix if check
* change param name to 1200bps-reset
* update help section
* missed one in help seciton
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com> 
						
					 
					
						2025-06-02 20:35:26 -05:00 
						 
				 
			
				
					
						
							
							
								Kalle Lilja 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8efc9702d3 
							
						 
					 
					
						
						
							
							device-install/update: fix esptool --port ( #6341 )  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	CI / build-esp32 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-esp32-s3 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-esp32-c3 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-esp32-c6 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-nrf52 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-rpi2040 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-stm32 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-debian-src (push) Waiting to run 
				
			 
		
			
				
	CI / package-pio-deps-native-tft (push) Waiting to run 
				
			 
		
			
				
	CI / test-native (push) Waiting to run 
				
			 
		
			
				
	CI / docker-debian-amd64 (push) Waiting to run 
				
			 
		
			
				
	CI / docker-alpine-amd64 (push) Waiting to run 
				
			 
		
			
				
	CI / docker-debian-arm64 (push) Waiting to run 
				
			 
		
			
				
	CI / docker-debian-armv7 (push) Waiting to run 
				
			 
		
			
				
	CI / after-checks (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32c3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32c6) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32s3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (nrf52840) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (rp2040) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (stm32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-artifacts (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32c3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32c6) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32s3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (nrf52840) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (rp2040) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (stm32) (push) Blocked by required conditions 
				
			 
		
		
	 
 
	 
						
						* fix errorlevel check
* add esptool --port if supplied
* match device-install
* add --port if supplied
* update logmessage
* bump version
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com> 
						
					 
					
						2025-03-17 20:16:16 -05:00 
						 
				 
			
				
					
						
							
							
								Jeremiah K 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							bd3755bb33 
							
						 
					 
					
						
						
							
							Fix device flashing scripts so they work with esptool when it's installed via pipx ( #5269 )  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	CI / setup (rp2040) (push) Waiting to run 
				
			 
		
			
				
	CI / setup (stm32) (push) Waiting to run 
				
			 
		
			
				
	CI / check (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-esp32 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-esp32-s3 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-esp32-c3 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-esp32-c6 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-nrf52 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-rpi2040 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / build-stm32 (push) Blocked by required conditions 
				
			 
		
			
				
	CI / package-raspbian (push) Waiting to run 
				
			 
		
			
				
	CI / package-raspbian-armv7l (push) Waiting to run 
				
			 
		
			
				
	CI / package-native (push) Waiting to run 
				
			 
		
			
				
	CI / after-checks (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32c3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32c6) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (esp32s3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (nrf52840) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (rp2040) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / gather-artifacts (stm32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-artifacts (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32c3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32c6) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (esp32s3) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (nrf52840) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (rp2040) (push) Blocked by required conditions 
				
			 
		
			
				
	CI / release-firmware (stm32) (push) Blocked by required conditions 
				
			 
		
			
				
	Flawfinder Scan / Flawfinder (push) Waiting to run 
				
			 
		
		
	 
 
	 
						
						* Try esptool.py in device flashing scripts for pipx compatibility
* esptool detection fixes in device flashing .bat's 
						
					 
					
						2024-11-07 09:43:34 +08:00 
						 
				 
			
				
					
						
							
							
								Thomas Göttgens 
							
						 
					 
					
						
						
						
						
							
						
						
							ab3446faed 
							
						 
					 
					
						
						
							
							Back out changes to non-source files  
						
						
						
					 
					
						2023-01-21 21:23:24 +01:00 
						 
				 
			
				
					
						
							
							
								Thomas Göttgens 
							
						 
					 
					
						
						
						
						
							
						
						
							51b2c431d9 
							
						 
					 
					
						
						
							
							trunk roundhouse kick  
						
						
						
					 
					
						2023-01-21 21:23:24 +01:00 
						 
				 
			
				
					
						
							
							
								Ben Meadors 
							
						 
					 
					
						
						
						
						
							
						
						
							7570cdbd22 
							
						 
					 
					
						
						
							
							Fix shell scripts for both linux and darwin  
						
						
						
					 
					
						2022-12-03 08:24:11 -06:00 
						 
				 
			
				
					
						
							
							
								Ben Meadors 
							
						 
					 
					
						
						
						
						
							
						
						
							f1179d31ba 
							
						 
					 
					
						
						
							
							Fixed shell scripts  
						
						
						
					 
					
						2022-11-27 07:40:40 -06:00 
						 
				 
			
				
					
						
							
							
								Ben Meadors 
							
						 
					 
					
						
						
						
						
							
						
						
							e7dbbeb606 
							
						 
					 
					
						
						
							
							Fix conditional syntax  
						
						
						
					 
					
						2022-11-26 14:50:07 -06:00 
						 
				 
			
				
					
						
							
							
								Thomas Göttgens 
							
						 
					 
					
						
						
						
						
							
						
						
							082aa07e7f 
							
						 
					 
					
						
						
							
							update batch scripts to further check filename.  
						
						
						
					 
					
						2022-11-26 17:00:33 +01:00 
						 
				 
			
				
					
						
							
							
								Thomas Göttgens 
							
						 
					 
					
						
						
						
						
							
						
						
							29fb283daf 
							
						 
					 
					
						
						
							
							adaptig for  #1938  
						
						
						
					 
					
						2022-11-24 12:30:15 +01:00 
						 
				 
			
				
					
						
							
							
								Thomas Göttgens 
							
						 
					 
					
						
						
						
						
							
						
						
							e98c11ff89 
							
						 
					 
					
						
						
							
							The new combined firmware starts flashing at offset 0, no need to flash system-info or partitions any more.  
						
						
						
					 
					
						2022-10-01 09:46:56 +02:00 
						 
				 
			
				
					
						
							
							
								Ben Meadors 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4cfc229e77 
							
						 
					 
					
						
						
							
							Update device-update.sh  
						
						
						
					 
					
						2022-08-19 13:35:54 -05:00 
						 
				 
			
				
					
						
							
							
								Ben Meadors 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a1dc350231 
							
						 
					 
					
						
						
							
							Changed default baud to 115200 ( #1517 )  
						
						... 
						
						
						
						Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com> 
						
					 
					
						2022-06-15 11:44:37 -05:00 
						 
				 
			
				
					
						
							
							
								Tim Gunter 
							
						 
					 
					
						
						
						
						
							
						
						
							ce5d57d250 
							
						 
					 
					
						
						
							
							Allow device-*.sh file to flash to be specified without '-f'  
						
						
						
					 
					
						2021-04-09 20:02:25 -07:00 
						 
				 
			
				
					
						
							
							
								Tim Gunter 
							
						 
					 
					
						
						
						
						
							
						
						
							bae1d7a894 
							
						 
					 
					
						
						
							
							Default interpreter to "python" if "python3" doesn't exist  
						
						
						
					 
					
						2021-04-09 20:01:12 -07:00 
						 
				 
			
				
					
						
							
							
								IZ1IVA 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							29eb5e8327 
							
						 
					 
					
						
						
							
							Update device-update.sh  
						
						... 
						
						
						
						Please have a look at https://github.com/meshtastic/Meshtastic-device/issues/760  
						
					 
					
						2021-03-26 14:49:27 +01:00 
						 
				 
			
				
					
						
							
							
								Tim Gunter 
							
						 
					 
					
						
						
						
						
							
						
						
							13889124c1 
							
						 
					 
					
						
						
							
							Add option to set python interpreter used for device-install.sh and device-update.sh  
						
						
						
					 
					
						2021-03-21 18:29:20 -07:00 
						 
				 
			
				
					
						
							
							
								Kevin Hester 
							
						 
					 
					
						
						
						
						
							
						
						
							27c35f69aa 
							
						 
					 
					
						
						
							
							Fix flash flippy-flop error after commandline update (thanks @Stephen304)  
						
						
						
					 
					
						2021-03-14 12:41:31 +08:00 
						 
				 
			
				
					
						
							
							
								Todd Allen 
							
						 
					 
					
						
						
						
						
							
						
						
							d191b12801 
							
						 
					 
					
						
						
							
							Adding port/help flags and error checking  
						
						
						
					 
					
						2020-07-27 09:14:04 -04:00 
						 
				 
			
				
					
						
							
							
								Nicolas Derive 
							
						 
					 
					
						
						
						
						
							
						
						
							9f2646ba03 
							
						 
					 
					
						
						
							
							writeflash is actually write_flash in esptool.py  
						
						
						
					 
					
						2020-05-22 12:53:54 +02:00 
						 
				 
			
				
					
						
							
							
								Mark Huson 
							
						 
					 
					
						
						
						
						
							
						
						
							fc0c9bcfe3 
							
						 
					 
					
						
						
							
							add update script and README changes  
						
						
						
					 
					
						2020-05-06 19:43:17 -07:00