How to install firmware via ftp, cli and telnet?

Booting, installing, newbie
Post Reply
Message
Author
jackheart
Posts: 1
Joined: Tue 25 Apr 2017, 22:21

How to install firmware via ftp, cli and telnet?

#1 Post by jackheart »

I have puppy Wary 5.5 on an very old laptop, a Compaq Armada M300 cir. 1998. I need to perform a convoluted firmware downgrade on a network device and need to access it via serial, ftp, and telnet. If I can do it all on this laptop, it would make things easier. With other popular distros I can just do:

#ftp (ip)

I think I need to perform the ftp action via the ftp cli, not an ftp gui like gftp, or at least I have not figured that out yet. I could not find 'ftp' in ppm. My repository settings might not be right also. Would appreciate any leads and can answer any questions. Thanks!

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Hello, jackheart.

You could try ftpget and its twin ftpput, which are components of busybox.
They are invoked as

Code: Select all

busybox ftpget
or

Code: Select all

busybox ftpput
with the settings you need. (Please see attached illustration.)

IHTH
Attachments
ftpget.jpg
(106.17 KiB) Downloaded 208 times
Last edited by musher0 on Wed 26 Apr 2017, 02:59, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#3 Post by smokey01 »

You could try this http://www.ncftp.com/ncftp/

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#4 Post by musher0 »

Hello again, jackheart.

Almost forgot: Midnight Commander has an ftp function.

Here's a video about using the ftp in midnight commander
https://www.youtube.com/watch?v=uqPihYkxBdk

Here's a simple written tutorial about it:
http://www.trembath.co.za/mctutorial.html#anchor12

I made a recent version of mc available here a couple of months ago.

Alternatively, a few ftp cli apps are recommended here:
https://askubuntu.com/questions/12774/r ... tp-clients
on the ubuntu forum.

IHTH
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

jd7654
Posts: 296
Joined: Mon 06 Apr 2015, 16:10

Re: ftp cli

#5 Post by jd7654 »

jackheart wrote:With other popular distros I can just do:
#ftp (ip)
Puppy is unlike other (full) Linux distros in that it is partly busybox based and doesn't have the complete suite of GNU utilities like ftp.

If you just want the original ftp you can easily compile from the GNU inetutils source:
https://www.gnu.org/software/inetutils/

Not aware of a .pet for inetutils or ftp, but someone might be able to provide one if you can't compile it yourself.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#6 Post by musher0 »

Hello, jd7654, jackheart and all.

Please find attached a compilation of the latest GNU ftp (from ineutils-1.9.4),
from the GNU source jd7654 mentioned in his post.

Now this has been compiled on the latest PuppyStretch which has a ldd/glibc
of 2.24, so it may not work on jakeheart's Wary 5.5. Unfortunately, I do not
have Wary 5.5 on this computer.

Please test. Feedback is always appreciated.

BFN.
Attachments
ftp-inetutils-1.9.4.pet
(97.86 KiB) Downloaded 112 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#7 Post by jafadmin »

For firmware upgrading, tftp (trivial FTP) is commonly used. It is in most puppies as it is in busybox.

Post Reply