Minicom for image download
Hi,
does anybody use minicom for serial image downloads? If yes, how?
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4Hi Robert:
Yes - I am using it -
Uggh, if you really, really must use Minicom for upload, try this! (I presume you meant upload, not download.) It has worked for me when I absolutely, positively couldn't use any better way (network, BDI-2000, etc).
This little utility was written to work with Minicom, and supports XON-XOFF in case your target does, also. I have used it successfully on Sandpoint using DINK32 with rather large binary images.
-Chris Hallinan
DS4.COM, Inc.
Quoted 23 lines
-----Original Message-----
From: u-boot-users-admin at lists.sourceforge.net [mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Robert
Schwebel
Sent: Tuesday, March 18, 2003 3:26 PM
To: U-Boot Mailing List
Subject: [U-Boot-Users] Minicom for image downloadHi,
does anybody use minicom for serial image downloads? If yes, how?
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4
Quoted 12 lines
-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing.
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binupld.c
Type: application/octet-stream
Size: 5403 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20030318/f69c646b/attachment.obj
Hi Jerry,
Quoted 1 line · Jerry Walden
Yes - I am using it -
Great!
Quoted 3 lines
From the minicom window I type control-s which brings up a menu of file send options. On the u-boot side I first get the recieve side ready, and then I do a kermit send.
Which is what I did, but it does not work the way I assumed. What do you have in your "File transfer protocols" dialogue? I have something like
/usr/bin/gkermit -q -i -s Y U Y N N
/usr/bin/gkermit -q -i -r Y D Y N N
for up- and download. I suppose I somehow have to give him the scripts from...
Quoted 3 lines
If I were like Wolfgang I would strongly admonish you to read the README file in the u-boot source under /tools/scripts/readme - however I'm not Wolfgang ;-)
... this directory instead?
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4Oh - one important detail - for some reason gkermit would not work for me (I guessed that is is only a subset of the full kermit - although
that is only a guess). I had to get the RPM (I'm using Redhat 7.3) for C-Kermit,
and install is, and put the path for that application in minicom. For some reason
when I used gkermit, when I attempted to to a kermit transfer, there was no response,
as if the kermit application could not be spawned off.
Jerry Walden
-----Original Message-----
From: [email protected] [mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Robert Schwebel
Sent: Tuesday, March 18, 2003 4:00 PM
To: U-Boot Mailing List
Subject: Re: [U-Boot-Users] Minicom for image download
Hi Jerry,
Quoted 1 line · Jerry Walden
Yes - I am using it -
Great!
Quoted 3 lines
From the minicom window I type control-s which brings up a menu of file send options. On the u-boot side I first get the recieve side ready, and then I do a kermit send.
Which is what I did, but it does not work the way I assumed. What do you have in your "File transfer protocols" dialogue? I have something like
/usr/bin/gkermit -q -i -s Y U Y N N
/usr/bin/gkermit -q -i -r Y D Y N N
for up- and download. I suppose I somehow have to give him the scripts from...
Quoted 3 lines
If I were like Wolfgang I would strongly admonish you to read the README file in the u-boot source under /tools/scripts/readme - however I'm not Wolfgang ;-)
... this directory instead?
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4
-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
Quoted 2 lines · In message <[email protected]> you wrote:
does anybody use minicom for serial image downloads? If yes, how?
minicom is known to have serious problems. Don't use it.
Use "cu" or "kermit".
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Hiring experienced unix people is like a built-in filter against
idiots. Hiring experienced NT people provides no such guarantee.
-- Miguel Cruz in WgL96.349$CC.122704 at typhoon2.ba-dsg.netQuoted 6 lines · In message <[email protected]> you wrote:
Which is what I did, but it does not work the way I assumed. What do you have in your "File transfer protocols" dialogue? I have something like
/usr/bin/gkermit-q -i -s Y U Y N N
/usr/bin/gkermit-q -i -r Y D Y N N
Why do you make it that complicated, instead of using a (broken) tool like minicom as terminal interface and another (feature-limited) tool like gkermit you can do the same function (just better, because it's working, and not only under Linux, but also nearly _any_ other OS, too) using C-Kermit.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Use C++ to confuse your enemies; use C to produce stable code.
Quoted 3 lines · Wolfgang Denk
minicom is known to have serious problems. Don't use it.
Use "cu" or "kermit".
Can you be more specific about this? Unfortunately the sourceforge search engine for the ppcboot mailing list doesn't seem to be working.
I've used minicom for ages with the zmodem upload for DIL/Net-PCs, so I'm wondering what shall be wrong with it.
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4Quoted 7 lines · In message <[email protected]> you wrote:
Oh - one important detail - for some reason gkermit would not work for me (I guessed that is is only a subset of the full kermit - although
that is only a guess). I had to get the RPM (I'm using Redhat 7.3) for C-Kermit,
and install is, and put the path for that application in minicom. For some reason
If you have C-kermit, just "rpm -e minicom". This will solve a couple of problems.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de "Where humor is concerned there are no standards -- no one can say what is good or bad, although you can be sure that everyone will. - John Kenneth Galbraith
Quoted 5 lines · In message <[email protected]> you wrote:
Quoted 2 lines
Use "cu" or "kermit".
Can you be more specific about this? Unfortunately the sourceforge search engine for the ppcboot mailing list doesn't seem to be working.
Both tools are explained in the DPLG, see
http://www.denx.de/re/DPLG.html
Quoted 2 lines
I've used minicom for ages with the zmodem upload for DIL/Net-PCs, so I'm wondering what shall be wrong with it.
It is not working for you now, right? To make it work for example for
a simple s-record download you will have to add specific
per-character or per-line delays, which depend on the performance of your host and your target system(s) - I don't remember the details. Sorry, but I tend to ignore broken tools.
Especially when there are replacements that offer the same function, without the problems.
Wolfgang Denk
Signature · 6 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
: 1. What is the possibility of this being added in the future?
In the near future, the probability is close to zero. In the distant
future, I'll be dead, and posterity can do whatever they like... :-)
- lwallQuoted 3 lines
Hi,
does anybody use minicom for serial image downloads? If yes, how?
I'm always using the BDI2000 for downloads (so far, this will change once our piece is in a proper case).
Buf for some stuff, I'm using a self-compiled ckermit 8.0.201. I once even used the scripting capabilities of ckermit to connect to the BDI2000 (ckermit can do telnet and serial communication) and remote-control the BDI2000 to flash my target.
Signature · 5 lines
MN-Logistik GmbH http://www.mn-logistik.de Holger Schurig Dieselstr. 18 61191 Rosbach v.d.H?he Tel: 06003/9141-0 Fax: 06003/9141-49
Quoted 7 lines · Jerry Walden
Oh - one important detail - for some reason gkermit would not work for me (I guessed that is is only a subset of the full kermit - although that is only a guess). I had to get the RPM (I'm using Redhat 7.3) for C-Kermit, and install is, and put the path for that application in minicom. For some reason when I used gkermit, when I attempted to to a kermit transfer, there was no response, as if the kermit application could not be spawned off.
Another important detail ;) - how does your "File transfer protocols" entry for kermit look like?
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4Quoted 2 lines · Wolfgang Denk
Both tools are explained in the DPLG, see
http://www.denx.de/re/DPLG.html
I've read it, but the question was if somebody has it working with minicom, not if there are other tools.
Quoted 1 line
It is not working for you now, right?
That's why I suppose I use an incorrect tool for handling the download.
Quoted 4 lines
To make it work for example for a simple s-record download you will have to add specific per-character or per-line delays, which depend on the performance of your host and your target system(s) - I don't remember the details. Sorry, but I tend to ignore broken tools.
Strange - I've used it with zModem for quite a long time and it never had any problems. So my naive assumption is that with the correct backend it should work.
Quoted 2 lines
Especially when there are replacements that offer the same function, without the problems.
The idea is that one does _not_ need special cryptic command line tools to download an image to a target. This works with other embedded boards and that's what I would like to have for my u-boot based systems. It's bad enough that there are no modern and end user ready terminal programs for Linux out there today.
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4Quoted 7 lines · Wolfgang Denk
Quoted 2 lines
Both tools are explained in the DPLG, see
http://www.denx.de/re/DPLG.htmlI've read it, but the question was if somebody has it working with minicom, not if there are other tools.
It works for me with minicom-2.0.0 and text SREC uploads (o;
Rick
Quoted 5 lines · In message <[email protected]> you wrote:
Buf for some stuff, I'm using a self-compiled ckermit 8.0.201. I once even used the scripting capabilities of ckermit to connect to the BDI2000 (ckermit can do telnet and serial communication) and remote-control the BDI2000 to flash my target.
This works to some extend, but the tool of choice for such tasks is expect.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Testing can show the presense of bugs, but not their absence.
-- Edsger DijkstraQuoted 1 line · Robert Schwebel
does anybody use minicom for serial image downloads? If yes, how?
Here's a short status report; it works, with minicom 1.83.1 (Debian Unstable) and gkermit 1.00. I added this to the file transfer protocols' dialog:
K gkermit /usr/bin/gkermit -s Y U N Y N L gkermit /usr/bin/gkermit -r Y D Y Y N
The only drawback is that there is no progress bar, so I first thought nothing would happen when he gave me this screen:
-------------------------------------------------------------
G-Kermit CU-1.00, Columbia University, 1999-12-25 Escape back to your local Kermit and give a RECEIVE command.
KERMIT READY TO SEND...
-------------------------------------------------------------
But if you wait long enough for the file to be transferred it somewhen stops and the image is correct.
Strange is the fact that at the end of the transmission I get garbage data on the terminal before the size message is printed. But the size itself is correct, the iminfo command gives a correct crc and the image boots.
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4