Piotr Kubik
9cf572e22e
iop: ssh_upgrade: Disable host key checking
...
This change simplifies ssh updates when connecting to
different hosts with same IP address.
2022-10-27 06:46:50 +00:00
Piotr Kubik
1759f36740
iop: ssh_upgrade: Fix usage option typo
2022-10-27 06:46:50 +00:00
Andreas Gnau
4890420a25
iop: ssh_upgrade: Use mktemp instead of tempfile
...
The tempfile has been deprecated for a long time and is no longer
available on RHEL and Fedora, use mktemp instead.
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-09-15 16:43:55 +00:00
Andreas Gnau
5c94741584
iop: ssh_upgrade: Update help text
...
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-09-15 16:43:55 +00:00
Andreas Gnau
9934ee03c6
iop: ssh_upgrade: Fix typos
...
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-09-15 16:43:55 +00:00
Andreas Gnau
63a2edb417
iop: ssh_upgrade: Adapt to new image filenames
...
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-09-15 16:43:55 +00:00
Andreas Gnau
9a9bef4935
iop: ssh_upgrade: Update for new sysupgrade-params
...
sysupgrade CLI has changed over time. Update ssh_upgrade script to
accomodate for those changes.
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-09-15 16:43:55 +00:00
Andreas Gnau
0078265697
iop: ssh_upgrade: Use ssh instead of scp
...
Use SSH with a pipe to transfer the file and invoke sysupgrade in one
go. Using SSH instead of SCP gives a higher throughput (not very
noticable for small files like the ones we use for sysupgrade, though),
but using only one command invocation saves a significant overhead of
TCP and SSH connection setup.
The main reason for this change is though that OpenSSH 9.0 and later
use SFTP instead of the scp protocol when using the scp command in an
effort of deprecating the very clunky legacy SCP protocol. One can use
scp -O to continue using scp, but switching to ssh only has other
benefits outlined above.
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-09-15 16:43:55 +00:00
Andreas Gnau
3a7d8b1c51
iop: ssh_upgrade: Don't hardcode subtarget to generic
...
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-09-15 16:43:55 +00:00
Andreas Gnau
30bfe70fb3
iop: ssh_upgrade: Remove iopu support
...
iopu has been removed in IOWRT 6 and has never really been supported.
Remove any support for it in the ssh_upgrade helper script.
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-09-15 16:43:55 +00:00
Andreas Gnau
243642c35e
iop: ssh_upgrade: Fix formatting using shfmt
...
The file was formatted using a wild mix of tabs and spaces. Run shfmt on
it to fix the formatting
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-09-15 16:43:55 +00:00
Kenneth Johansson
ff63939e84
ssh_upgrade: Add handling for config option.
...
can now handle no reboot and keep config options.
2020-10-30 19:06:22 +01:00
Kenneth Johansson
3b283b8f3a
iop: ssh_upgrade: use sysupgrade as default.
...
sysupgrade is now more functional than iopu so use that instead.
2020-10-29 18:33:00 +01:00
Kenneth Johansson
d829f00e07
iop: ssh_upgrade: remove debug printout
2020-10-13 21:56:33 +02:00
Kenneth Johansson
640535a2ef
iop: ssh_upgrade now defaults to use the last.pkgtb file.
2020-10-13 21:46:30 +02:00
Kenneth Johansson
9d20839041
make ./iop ssh_upgrade work on sdk504
...
./iop ssh_upgrade will now install latest image on broadcom boards.
2020-09-10 19:54:59 +02:00
Kenneth Johansson
351965e397
iop upgrade: add upgrade of boot loader.
2019-01-16 21:32:02 +01:00
Kenneth Johansson
2187c6cadd
iop upgrade: implement force image.
...
during development we might want to do it.
2019-01-16 19:01:23 +01:00
Kenneth Johansson
4fa352c5fc
iop upgrade: add handling of no reboot option.
2019-01-16 16:58:42 +01:00
Kenneth Johansson
c2776532c5
iop upgrade: add sysupgrade option.
...
Needed to be able to update old boards.
2019-01-14 15:22:07 +01:00
Kenneth Johansson
ebd13be2c5
iopupgrade: Add interactive mode.
2019-01-14 14:58:00 +01:00
Kenneth Johansson
e0792ad185
iop ssh_upgrade: lost a $
...
it compared a string instead of a variable.
2019-01-11 17:09:02 +01:00
Kenneth Johansson
d18fd1cd4a
iop ssh_upgrade: ask before starting flash.
...
Printout what options is going to be used and ask if its ok before
burning image.
2019-01-11 16:04:46 +01:00
Kenneth Johansson
7571abd272
iop update: new iop command ./iop ssh_update.
...
Only tested on dg400 and will fail on mediatek and intel boards.
Does currently not handle keeping the configuration.
2019-01-10 23:11:31 +01:00