[U-Boot-Users] Problem transferring file using kermit

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

In message 002101c56da1$536dbc70$153335bf@cabletime.com you wrote:
I am trying to transfer a file to u-boot using kermit under linux.
I am using the following in kermit:
...
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.
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

Hi,
What you do looks all correct to me, and to me it works.
Looks right to me :(
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

In message 002601c56da8$4fef3fe0$153335bf@cabletime.com 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?
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

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
participants (2)
-
Andy Hawkins
-
Wolfgang Denk