Skip to contentSkip to conversation

Problem transferring file using kermit

U-Boot-Users Andy Hawkins 2 participants 5 messages Jun 10, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to transfer a file to u-boot using kermit under linux.

I am using the following in kermit:

set line /dev/ttyS1
set speed 115200
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5

connect
(I type "loadb 40000 CR")
CTRL-\ C
send /bin update_eeprom.bin

At this point, the file transfer screen appears, and all I get is the error count going up by 2 every 8 seconds or so.

Can anyone offer any assistance? I've checked in the manual, and all it says is to ensure that kermit is set up as above.

I have previously managed to transfer files using loadb using Hyperterminal, so I know that the serial port and everything is working correctly.

Can anyone offer any assistance?

Thanks

Andy

#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

I am trying to transfer a file to u-boot using kermit under linux.

I am using the following in kermit:

...

Quoted 2 lines

Can anyone offer any assistance? I've checked in the manual, and all it says is to ensure that kermit is set up as above.

What you do looks all correct to me, and to me it works.

Quoted 2 lines

I have previously managed to transfer files using loadb using Hyperterminal, so I know that the serial port and everything is working correctly.

Which board is this? Any change that the serial port needs something like HW handshake signals or so?

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Don't put off for tomorrow what you can  do  today,  because  if  you
enjoy it today you can do it again tomorrow.
#2 lore raw

Hi,

Quoted 1 line

What you do looks all correct to me, and to me it works.

Looks right to me :(

Quoted 2 lines

Which board is this? Any change that the serial port needs something like HW handshake signals or so?

It's custom hardware. Under hyperterminal I have it configured for 115200, 8N1, no flow control (and this matches what I'm using under kermit).

Annoyingly, it works fine under Hyperterminal. However, we're now trying to script the automatic installation of software for this board, so we'd rather (obviously) do this using something scriptable like kermit.

Any other ideas?

Andy

#3 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

Annoyingly, it works fine under Hyperterminal. However, we're now trying to script the automatic installation of software for this board, so we'd rather (obviously) do this using something scriptable like kermit.

Well, can you try some other board to find out if it's the PC / kermit side or the target which is causing the problems?

Quoted 1 line

Any other ideas?

For automatic installation I recommend to use expect - it allows far more things than kermit; btw - why don't you TFTP for download?

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If it went on at this rate, in several billion  years  he'd  be  rich
beyond his wildest dreams!            - Terry Pratchett, _Soul Music_
#4 lore raw
In reply to Wolfgang Denk

Hi,

Some additional info:

If we do the following:

1. Run kermit
2. Set up u-boot to receive a file
3. Quit kermit
4. Run kermit again
5. Send the file

The file transfer works.

However, it we omit steps 3 and 4, the file transfer doesn't work.

Any kermit experts who can help with what might be causing this problem? Perhaps one of our line discipline settings is wrong or something?

Thanks

Andy