1
0
Fork 0
Commit Graph

49 Commits

Author SHA1 Message Date
Shawn Nock bb1a94f020 More attempts to stop termios 2020-01-16 13:39:13 -05:00
Shawn Nock c857c88fd6 More thorough override on "-s 0" to stop termios interfering 2020-01-16 13:21:25 -05:00
Shawn Nock 051b086c0f Assigns special baudrate '0' to skip uart speed setup
The MT7628 uartlite is janky, allow umcumgr to skip setup so that finer
grained adjustments can be done manually in the peripheral registers. umcumgr
then just uses these values.
2020-01-16 11:03:01 -05:00
Shawn Nock f46750c4df Include bootloader v0.5.0 and expand autoupgrade to 0.4.x 2019-06-26 12:01:41 -04:00
Shawn Nock 63419ac7c0 Overload -n to disable driving the REQ/RST pins 2019-06-25 15:39:58 -04:00
Shawn Nock d1cc5c3f4c Adds dump mode and no-fix mode 2019-06-19 13:39:53 -04:00
Shawn Nock 5b9a07c92f Always run subsequent upload in fast_mode after bootloader upgrade 2019-06-18 15:10:14 -04:00
Shawn Nock ed9e766423 Eliminates excessive sleep waiting for response and send wait for fast_mode 2019-06-18 15:07:14 -04:00
Shawn Nock 50f987eb48 Adds in optional fast_mode for later c3w bootloaders 2019-06-18 14:44:47 -04:00
Shawn Nock f1f64667f3 Fixes invalid length on last chunk logic error 2019-06-18 14:08:35 -04:00
Shawn Nock e5bc535c72 Make writing the serial port a fatal error 2019-06-18 13:57:58 -04:00
Shawn Nock 56c833edba Fixes possible NULL dereference, increases error checking / reporting 2019-06-18 13:43:05 -04:00
Shawn Nock 10b9f33142 Integrates fixkey workflow into the normal update workflow
Normal upload via umcumgr can update the bootloader if needed without additional steps.
2019-06-18 11:12:46 -04:00
Shawn Nock d1a1717af9 Reverts dynamic HCI payload trigger 2019-06-04 12:45:50 -04:00
Shawn Nock 77730a004f Integrates fixkey workflow into the normal update workflow
Normal upload via umcumgr can update the bootloader if needed without additional steps.
2019-06-04 12:38:32 -04:00
Shawn Nock 6fb12916b1 Static trigger test 2019-05-24 10:28:30 +00:00
Shawn Nock cd468ddc57 Configurable timeout, option to dump payload trigger packet 2019-05-24 09:42:54 +00:00
Shawn Nock eeb5f05615 Adds -p option to specify payload function offset 2019-05-23 14:36:18 +00:00
Shawn Nock 974d675621 Fixes typo in tmp buffer 2019-05-22 15:25:32 +00:00
Shawn Nock 599d9a2b3b Increases rx buffer and tosses out possible prefixed junk 2019-05-22 15:13:46 +00:00
Shawn Nock a78bc320f8 Improvements to response handling 2019-05-22 14:56:29 +00:00
Shawn Nock 4f90783950 Refactors response handling code due to segfaults on mipsel 2019-05-22 12:35:07 +00:00
Shawn Nock 363f7d88a6 Improves response handling further 2019-05-21 16:04:05 +00:00
Shawn Nock d0067b8a79 Adds better processing of payload response 2019-05-21 15:46:50 +00:00
Shawn Nock 61c67bc051 Refactors serial into library; adds fixkey demo 2019-05-21 13:25:17 +00:00
Shawn Nock 99cb7816ad Checks if we rx data past the \n before we copy the buffer 2019-05-08 16:27:33 +00:00
Shawn Nock 28a0622aa3 Adds timeout 2019-05-08 15:53:08 +00:00
Shawn Nock a76382c2bb Use pkgconfig to find tinycbor 2019-05-08 15:09:10 +00:00
Shawn Nock 8cab0c7082 Refactor for system tinycbor 2019-05-08 14:47:29 +00:00
Shawn Nock 9d0baf6335 APLv2 except for base64 2019-05-08 14:47:07 +00:00
Shawn Nock 2828b8f568 Adds BSD License 2019-05-08 13:52:55 +00:00
Shawn Nock e1406829db Removes tinycbor submodule in favour of separate packaging 2019-05-08 13:41:37 +00:00
Shawn Nock cc1ab9323a Adds cmake install info 2019-05-08 12:23:36 +00:00
Shawn Nock 86819ebac2 Removes unneeded include from main.c 2019-05-08 11:48:39 +00:00
Shawn Nock 09b64ed0b4 Removes static build option 2019-05-08 11:48:07 +00:00
Shawn Nock 29b066ee7d Fixes invalid call to fprintf 2019-05-08 11:05:41 +00:00
Shawn Nock c86c0d2777 Reduce the minimum cmake version for openwrt 2019-05-08 11:03:27 +00:00
Shawn Nock 1857c617f0 Disables static build by default 2019-05-08 11:01:38 +00:00
Shawn Nock 57d47d64c9 Tunes the MTU parameters for max upload speed with boot_serial 2019-05-08 10:48:41 +00:00
Shawn Nock 5f8a942ad4 Adds support for building without SHA256 2019-05-08 10:14:59 +00:00
Shawn Nock f82c788382 Fixes upload 2019-05-08 10:11:57 +00:00
Shawn Nock 925266f845 First update packet now identical to reference; WIP 2019-05-07 16:19:42 +00:00
Shawn Nock 830699b3ad Closer to reference output 2019-05-03 23:14:14 -04:00
Shawn Nock 7dce280154 more WIP, trying to replicate the newtmgr exactly 2019-05-03 13:06:01 -04:00
Shawn Nock 50c30b0822 WIP shitshow 2019-05-02 16:54:43 +00:00
Shawn Nock fa35034fd6 Initial working "image version" response parsing 2019-05-02 12:48:43 +00:00
Shawn Nock 1ee27ccced Initial support for sending the list command 2019-05-01 16:25:19 +00:00
Shawn Nock c0b555755b WIP 2019-04-25 12:47:53 -04:00
Shawn Nock 12a0a3ca3c Initial commit
Shell of a program with tinycbor submodule and some light getopt(3)
work.
2019-03-26 14:24:36 -04:00